వాడుకరి:Veeven/twinkle/twinkle.js: కూర్పుల మధ్య తేడాలు

Content deleted Content added
చిదిద్దుబాటు సారాంశం లేదు
చిదిద్దుబాటు సారాంశం లేదు
 
పంక్తి 8:
* Built from source code at GitHub repository [https://github.com/veeven/twinkle-tewiki]
* All changes should be made in the repository. Please do not attempt to edit this file directly.
* This build was generated from the source files at the repository as of the commit
* 834b2e4b7e0ebc86189ccd1e3307c6fa96ab2ba5. You can browse the repo at that point in time using this link:
* https://github.com/veeven/twinkle-tewiki/tree/834b2e4b7e0ebc86189ccd1e3307c6fa96ab2ba5
* Changes between two commits of Twinkle can be compared using
* https://github.com/veeven/twinkle-tewiki/compare/COMMIT_HASH_1..COMMIT_HASH_2
*/
/* <nowiki> */
!function(){var e={795:function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}e.exports=function(){"use strict";var e=function(){function e(e){this.locale=e}var t=e.prototype;return t.convertPlural=function(t,a){var i=new RegExp("\\d+=","i");if(!a||0===a.length)return"";for(var n=0;n<a.length;n++){var o=a[n];if(i.test(o)){if(parseInt(o.slice(0,o.indexOf("=")),10)===t)return o.slice(o.indexOf("=")+1);a[n]=void 0}}a=a.filter((function(e){return!!e}));var r=e.pluralRules[this.locale];r||(r={one:"i = 1 and v = 0"});var s=this.getPluralForm(t,r);return a[s=Math.min(s,a.length-1)]},t.getPluralForm=function(e,t){for(var a=["zero","one","two","few","many","other"],i=0,n=mw.libs.pluralRuleParser,o=0;o<a.length;o++)if(t[a[o]]){if(n(t[a[o]],e))return i;i++}return i},t.convertNumber=function(e,t){var a=this.digitTransformTable(this.locale),i=String(e),n="";if(!a)return e;if(t){if(parseFloat(e,10)===e)return e;var o=[];for(var r in a)o[a[r]]=r;a=o}for(var s=0;s<i.length;s++)a[i[s]]?n+=a[i[s]]:n+=i[s];return t?parseFloat(n,10):n},t.convertGrammar=function(e,t){return e},t.gender=function(e,t){if(!t||0===t.length)return"";for(;t.length<2;)t.push(t[t.length-1]);return"male"===e?t[0]:"female"===e?t[1]:3===t.length?t[2]:t[0]},t.digitTransformTable=function(t){return!!e.digitTransforms[t]&&e.digitTransforms[t].split("")},e}();e.pluralRules={},e.digitTransforms={};var a={bs:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="s "+e;break;case"lokativ":e="o "+e}return e},a}(e),default:e,dsb:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e},a}(e),fi:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){var a=e.match(/[aou][^\xe4\xf6y]*$/i),i=e;switch(e.match(/wiki$/i)&&(a=!1),e.match(/[bcdfghjklmnpqrstvwxz]$/i)&&(e+="i"),t){case"genitive":e+="n";break;case"elative":e+=a?"sta":"st\xe4";break;case"partitive":e+=a?"a":"\xe4";break;case"illative":e+=e.slice(-1)+"n";break;case"inessive":e+=a?"ssa":"ss\xe4";break;default:e=i}return e},a}(e),ga:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){if("ainmlae"===t)switch(e){case"an Domhnach":e="D\xe9 Domhnaigh";break;case"an Luan":e="D\xe9 Luain";break;case"an Mh\xe1irt":e="D\xe9 Mh\xe1irt";break;case"an Ch\xe9adaoin":e="D\xe9 Ch\xe9adaoin";break;case"an D\xe9ardaoin":e="D\xe9ardaoin";break;case"an Aoine":e="D\xe9 hAoine";break;case"an Satharn":e="D\xe9 Sathairn"}return e},a}(e),he:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"prefixed":case"\u05ea\u05d7\u05d9\u05dc\u05d9\u05ea":"\u05d5"===e.slice(0,1)&&"\u05d5\u05d5"!==e.slice(0,2)&&(e="\u05d5"+e),"\u05d4"===e.slice(0,1)&&(e=e.slice(1)),(e.slice(0,1)<"\u05d0"||e.slice(0,1)>"\u05ea")&&(e="\u05be"+e)}return e},a}(e),hsb:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e},a}(e),hu:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"rol":e+="r\xf3l";break;case"ba":e+="ba";break;case"k":e+="k"}return e},a}(e),hy:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){return"genitive"===t&&("\u0561"===e.slice(-1)?e=e.slice(0,-1)+"\u0561\u0575\u056b":"\u0578"===e.slice(-1)?e=e.slice(0,-1)+"\u0578\u0575\u056b":"\u0563\u056b\u0580\u0584"===e.slice(-4)?e=e.slice(0,-4)+"\u0563\u0580\u0584\u056b":e+="\u056b"),e},a}(e),la:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"genitive":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"i")).replace(/ommunia$/i,"ommunium")).replace(/a$/i,"ae")).replace(/libri$/i,"librorum")).replace(/nuntii$/i,"nuntiorum")).replace(/tio$/i,"tionis")).replace(/ns$/i,"ntis")).replace(/as$/i,"atis")).replace(/es$/i,"ei");break;case"accusative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"um")).replace(/ommunia$/i,"am")).replace(/a$/i,"ommunia")).replace(/libri$/i,"libros")).replace(/nuntii$/i,"nuntios")).replace(/tio$/i,"tionem")).replace(/ns$/i,"ntem")).replace(/as$/i,"atem")).replace(/es$/i,"em");break;case"ablative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"o")).replace(/ommunia$/i,"ommunibus")).replace(/a$/i,"a")).replace(/libri$/i,"libris")).replace(/nuntii$/i,"nuntiis")).replace(/tio$/i,"tione")).replace(/ns$/i,"nte")).replace(/as$/i,"ate")).replace(/es$/i,"e")}return e},a}(e),os:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){var a,i,n,o;switch(a="\u043c\xe6",i="",n="",o="",e.match(/\u0442\xe6$/i)?(e=e.slice(0,-1),a="\xe6\u043c"):e.match(/[\u0430\xe6\u0435\u0451\u0438\u043e\u044b\u044d\u044e\u044f]$/i)?i="\u0439":e.match(/\u0443$/i)?e.slice(-2,-1).match(/[\u0430\xe6\u0435\u0451\u0438\u043e\u044b\u044d\u044e\u044f]$/i)||(i="\u0439"):e.match(/[\u0431\u0432\u0433\u0434\u0436\u0437\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0444\u0445\u0446\u0447\u0448\u0449\u044c\u044a]$/i)||(n="-"),t){case"genitive":o=n+i+"\u044b";break;case"dative":o=n+i+"\xe6\u043d";break;case"allative":o=n+a;break;case"ablative":o="\u0439"===i?n+i+"\xe6":n+i+"\xe6\u0439";break;case"superessive":o=n+i+"\u044b\u043b";break;case"equative":o=n+i+"\u0430\u0443";break;case"comitative":o=n+"\u0438\u043c\xe6"}return e+o},a}(e),ru:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){return"genitive"===t&&("\u044c"===e.slice(-1)?e=e.slice(0,-1)+"\u044f":"\u0438\u044f"===e.slice(-2)?e=e.slice(0,-2)+"\u0438\u0438":"\u043a\u0430"===e.slice(-2)?e=e.slice(0,-2)+"\u043a\u0438":"\u0442\u0438"===e.slice(-2)?e=e.slice(0,-2)+"\u0442\u0435\u0439":"\u0434\u044b"===e.slice(-2)?e=e.slice(0,-2)+"\u0434\u043e\u0432":"\u043d\u0438\u043a"===e.slice(-3)&&(e=e.slice(0,-3)+"\u043d\u0438\u043a\u0430")),e},a}(e),sl:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"mestnik":e="o "+e;break;case"orodnik":e="z "+e}return e},a}(e),uk:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"genitive":"\u044c"===e.slice(-1)?e=e.slice(0,-1)+"\u044f":"\u0456\u044f"===e.slice(-2)?e=e.slice(0,-2)+"\u0456\u0457":"\u043a\u0430"===e.slice(-2)?e=e.slice(0,-2)+"\u043a\u0438":"\u0442\u0438"===e.slice(-2)?e=e.slice(0,-2)+"\u0442\u0435\u0439":"\u0434\u044b"===e.slice(-2)?e=e.slice(0,-2)+"\u0434\u043e\u0432":"\u043d\u0438\u043a"===e.slice(-3)&&(e=e.slice(0,-3)+"\u043d\u0438\u043a\u0430");break;case"accusative":"\u0456\u044f"===e.slice(-2)&&(e=e.slice(0,-2)+"\u0456\u044e")}return e},a}(e)},i=new RegExp("(?:([A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02bb-\u02c1\u02d0\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0482\u048a-\u052f\u0531-\u0556\u0559-\u055f\u0561-\u0587\u0589\u0903-\u0939\u093b\u093d-\u0940\u0949-\u094c\u094e-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c0\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e1\u09e6-\u09f1\u09f4-\u09fa\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac0\u0ac9\u0acb\u0acc\u0ad0\u0ae0\u0ae1\u0ae6-\u0af0\u0af9\u0b02\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0b5c\u0b5d\u0b5f-\u0b61\u0b66-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c5a\u0c60\u0c61\u0c66-\u0c6f\u0c7f\u0c82\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0cde\u0ce0\u0ce1\u0ce6-\u0cef\u0cf1\u0cf2\u0d02\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d5f-\u0d61\u0d66-\u0d75\u0d79-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e4f-\u0e5b\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00-\u0f17\u0f1a-\u0f34\u0f36\u0f38\u0f3e-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fda\u1000-\u102c\u1031\u1038\u103b\u103c\u103f-\u1057\u105a-\u105d\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108c\u108e-\u109c\u109e-\u10c5\u10c7\u10cd\u10d0-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u137c\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u167f\u1681-\u169a\u16a0-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7\u17c8\u17d4-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a16\u1a19\u1a1a\u1a1e-\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aad\u1b04-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b4b\u1b50-\u1b6a\u1b74-\u1b7c\u1b82-\u1ba1\u1ba6\u1ba7\u1baa\u1bae-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1bfc-\u1c2b\u1c34\u1c35\u1c3b-\u1c49\u1c4d-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u302e\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u31ba\u31f0-\u321c\u3220-\u324f\u3260-\u327b\u327f-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua60c\ua610-\ua62b\ua640-\ua66e\ua680-\ua69d\ua6a0-\ua6ef\ua6f2-\ua6f7\ua722-\ua787\ua789-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua824\ua827\ua830-\ua837\ua840-\ua873\ua880-\ua8c3\ua8ce-\ua8d9\ua8f2-\ua8fd\ua900-\ua925\ua92e-\ua946\ua952\ua953\ua95f-\ua97c\ua983-\ua9b2\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9cd\ua9cf-\ua9d9\ua9de-\ua9e4\ua9e6-\ua9fe\uaa00-\uaa28\uaa2f\uaa30\uaa33\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa7b\uaa7d-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaaeb\uaaee-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab65\uab70-\uabe4\uabe6\uabe7\uabe9-\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b]|\ud800[\udc0d-\udc26]|\ud800[\udc28-\udc3a]|\ud800\udc3c|\ud800\udc3d|\ud800[\udc3f-\udc4d]|\ud800[\udc50-\udc5d]|\ud800[\udc80-\udcfa]|\ud800\udd00|\ud800\udd02|\ud800[\udd07-\udd33]|\ud800[\udd37-\udd3f]|\ud800[\uddd0-\uddfc]|\ud800[\ude80-\ude9c]|\ud800[\udea0-\uded0]|\ud800[\udf00-\udf23]|\ud800[\udf30-\udf4a]|\ud800[\udf50-\udf75]|\ud800[\udf80-\udf9d]|\ud800[\udf9f-\udfc3]|\ud800[\udfc8-\udfd5]|\ud801[\udc00-\udc9d]|\ud801[\udca0-\udca9]|\ud801[\udd00-\udd27]|\ud801[\udd30-\udd63]|\ud801\udd6f|\ud801[\ude00-\udf36]|\ud801[\udf40-\udf55]|\ud801[\udf60-\udf67]|\ud804\udc00|\ud804[\udc02-\udc37]|\ud804[\udc47-\udc4d]|\ud804[\udc66-\udc6f]|\ud804[\udc82-\udcb2]|\ud804\udcb7|\ud804\udcb8|\ud804[\udcbb-\udcc1]|\ud804[\udcd0-\udce8]|\ud804[\udcf0-\udcf9]|\ud804[\udd03-\udd26]|\ud804\udd2c|\ud804[\udd36-\udd43]|\ud804[\udd50-\udd72]|\ud804[\udd74-\udd76]|\ud804[\udd82-\uddb5]|\ud804[\uddbf-\uddc9]|\ud804\uddcd|\ud804[\uddd0-\udddf]|\ud804[\udde1-\uddf4]|\ud804[\ude00-\ude11]|\ud804[\ude13-\ude2e]|\ud804\ude32|\ud804\ude33|\ud804\ude35|\ud804[\ude38-\ude3d]|\ud804[\ude80-\ude86]|\ud804\ude88|\ud804[\ude8a-\ude8d]|\ud804[\ude8f-\ude9d]|\ud804[\ude9f-\udea9]|\ud804[\udeb0-\udede]|\ud804[\udee0-\udee2]|\ud804[\udef0-\udef9]|\ud804\udf02|\ud804\udf03|\ud804[\udf05-\udf0c]|\ud804\udf0f|\ud804\udf10|\ud804[\udf13-\udf28]|\ud804[\udf2a-\udf30]|\ud804\udf32|\ud804\udf33|\ud804[\udf35-\udf39]|\ud804[\udf3d-\udf3f]|\ud804[\udf41-\udf44]|\ud804\udf47|\ud804\udf48|\ud804[\udf4b-\udf4d]|\ud804\udf50|\ud804\udf57|\ud804[\udf5d-\udf63]|\ud805[\udc80-\udcb2]|\ud805\udcb9|\ud805[\udcbb-\udcbe]|\ud805\udcc1|\ud805[\udcc4-\udcc7]|\ud805[\udcd0-\udcd9]|\ud805[\udd80-\uddb1]|\ud805[\uddb8-\uddbb]|\ud805\uddbe|\ud805[\uddc1-\udddb]|\ud805[\ude00-\ude32]|\ud805\ude3b|\ud805\ude3c|\ud805\ude3e|\ud805[\ude41-\ude44]|\ud805[\ude50-\ude59]|\ud805[\ude80-\udeaa]|\ud805\udeac|\ud805\udeae|\ud805\udeaf|\ud805\udeb6|\ud805[\udec0-\udec9]|\ud805[\udf00-\udf19]|\ud805\udf20|\ud805\udf21|\ud805\udf26|\ud805[\udf30-\udf3f]|\ud806[\udca0-\udcf2]|\ud806\udcff|\ud806[\udec0-\udef8]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e]|\ud809[\udc70-\udc74]|\ud809[\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38]|\ud81a[\ude40-\ude5e]|\ud81a[\ude60-\ude69]|\ud81a\ude6e|\ud81a\ude6f|\ud81a[\uded0-\udeed]|\ud81a\udef5|\ud81a[\udf00-\udf2f]|\ud81a[\udf37-\udf45]|\ud81a[\udf50-\udf59]|\ud81a[\udf5b-\udf61]|\ud81a[\udf63-\udf77]|\ud81a[\udf7d-\udf8f]|\ud81b[\udf00-\udf44]|\ud81b[\udf50-\udf7e]|\ud81b[\udf93-\udf9f]|\ud82c\udc00|\ud82c\udc01|\ud82f[\udc00-\udc6a]|\ud82f[\udc70-\udc7c]|\ud82f[\udc80-\udc88]|\ud82f[\udc90-\udc99]|\ud82f\udc9c|\ud82f\udc9f|\ud834[\udc00-\udcf5]|\ud834[\udd00-\udd26]|\ud834[\udd29-\udd66]|\ud834[\udd6a-\udd72]|\ud834\udd83|\ud834\udd84|\ud834[\udd8c-\udda9]|\ud834[\uddae-\udde8]|\ud834[\udf60-\udf71]|\ud835[\udc00-\udc54]|\ud835[\udc56-\udc9c]|\ud835\udc9e|\ud835\udc9f|\ud835\udca2|\ud835\udca5|\ud835\udca6|\ud835[\udca9-\udcac]|\ud835[\udcae-\udcb9]|\ud835\udcbb|\ud835[\udcbd-\udcc3]|\ud835[\udcc5-\udd05]|\ud835[\udd07-\udd0a]|\ud835[\udd0d-\udd14]|\ud835[\udd16-\udd1c]|\ud835[\udd1e-\udd39]|\ud835[\udd3b-\udd3e]|\ud835[\udd40-\udd44]|\ud835\udd46|\ud835[\udd4a-\udd50]|\ud835[\udd52-\udea5]|\ud835[\udea8-\udeda]|\ud835[\udedc-\udf14]|\ud835[\udf16-\udf4e]|\ud835[\udf50-\udf88]|\ud835[\udf8a-\udfc2]|\ud835[\udfc4-\udfcb]|\ud836[\udc00-\uddff]|\ud836[\ude37-\ude3a]|\ud836[\ude6d-\ude74]|\ud836[\ude76-\ude83]|\ud836[\ude85-\ude8b]|\ud83c[\udd10-\udd2e]|\ud83c[\udd30-\udd69]|\ud83c[\udd70-\udd9a]|\ud83c[\udde6-\ude02]|\ud83c[\ude10-\ude3a]|\ud83c[\ude40-\ude48]|\ud83c\ude50|\ud83c\ude51|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6]|\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34]|\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1d]|\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]|[\udb80-\udbbe][\udc00-\udfff]|\udbbf[\udc00-\udffd]|[\udbc0-\udbfe][\udc00-\udfff]|\udbff[\udc00-\udffd])|([\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05ff\u07c0-\u07ea\u07f4\u07f5\u07fa-\u0815\u081a\u0824\u0828\u082e-\u0858\u085c-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb4f\u0608\u060b\u060d\u061b-\u064a\u066d-\u066f\u0671-\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u0710\u0712-\u072f\u074b-\u07a5\u07b1-\u07bf\u08a0-\u08e2\ufb50-\ufd3d\ufd40-\ufdcf\ufdf0-\ufdfc\ufdfe\ufdff\ufe70-\ufefe]|\ud802[\udc00-\udd1e]|\ud802[\udd20-\ude00]|\ud802\ude04|\ud802[\ude07-\ude0b]|\ud802[\ude10-\ude37]|\ud802[\ude3b-\ude3e]|\ud802[\ude40-\udee4]|\ud802[\udee7-\udf38]|\ud802[\udf40-\udfff]|\ud803[\udc00-\ude5f]|\ud803[\ude7f-\udfff]|\ud83a[\udc00-\udccf]|\ud83a[\udcd7-\udfff]|\ud83b[\udc00-\uddff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\ude00-\udeef]|\ud83b[\udef2-\udeff]))"),n=function(){function e(e){this.locale=e,this.language=new(a[e]||a.default)(e)}var t=e.prototype;return t.emit=function(e,t){var a,i,n,r=this;switch(typeof e){case"string":case"number":a=e;break;case"object":i=e.slice(1).map((function(e){return r.emit(e,t)})),a="function"==typeof this[n=e[0].toLowerCase()]?this[n](i,t):"{{"+new o(this.locale).simpleParse(e[0],t)+i.map((function(e){return"|"+e}))+"}}";break;case"undefined":a="";break;default:throw new Error("unexpected type in AST: "+typeof e)}return a},t.concat=function(e){var t="";return e.forEach((function(e){t+=e})),t},t.replace=function(e,t){var a=parseInt(e[0],10);return a<t.length?t[a]:"$"+(a+1)},t.plural=function(e){var t=parseFloat(this.language.convertNumber(e[0],10)),a=e.slice(1);return a.length?this.language.convertPlural(t,a):""},t.gender=function(e){var t=e[0],a=e.slice(1);return this.language.gender(t,a)},t.grammar=function(e){var t=e[0],a=e[1];return a&&t&&this.language.convertGrammar(a,t)},t.bidi=function(e){var t=function(e){var t=e.match(i);return t?void 0===t[2]?"ltr":"rtl":null}(e[0]);return"ltr"===t?"\u202a"+e[0]+"\u202c":"rtl"===t?"\u202b"+e[0]+"\u202c":e[0]},t.formatnum=function(e){var t=!!e[1]&&"R"===e[1],a=e[0];return"string"==typeof a||"number"==typeof a?this.language.convertNumber(a,t):a},e}(),o=function(){function e(e){this.locale=e,this.emitter=new n(this.locale)}var t=e.prototype;return t.parse=function(e,t){if(e.includes("{{")){var a=function(e){var t,a,i,n,o,r,s,l=0;function d(e){return function(){for(var t=0;t<e.length;t++){var a=e[t]();if(null!==a)return a}return null}}function c(e){for(var t=l,a=[],i=0;i<e.length;i++){var n=e[i]();if(null===n)return l=t,null;a.push(n)}return a}function u(e,t){return function(){for(var a=l,i=[],n=t();null!==n;)i.push(n),n=t();return i.length<e?(l=a,null):i}}function p(t){var a=t.length;return function(){var i=null;return e.slice(l,l+a)===t&&(i=t,l+=a),i}}function g(t){return function(){var a=e.slice(l).match(t);return null===a?null:(l+=a[0].length,a[0])}}var f,m,h=p("|"),b=p(":"),v=p("\\"),w=g(/^./),y=p("$"),k=g(/^\d+/),T=g(/^[^{}$\\]/),x=g(/^[^{}$\\|]/);function C(){var e=c([v,w]);return null===e?null:e[1]}function P(){var e=c([y,k]);return null===e?null:["REPLACE",parseInt(e[1],10)-1]}function N(){var e=c([h,u(0,r)]);if(null===e)return null;var t=e[1];return t.length>1?["CONCAT"].concat(t):t[0]}function M(){var e=c([n,b,P]);return null===e?null:[e[0],e[2]]}function A(){var e=c([n,b,r]);return null===e?null:[e[0],e[2]]}t=d([C,x]),a=d([C,T]),f=g(/^[ !"$&'()*,./0-9;=?@A-Z^_`a-z~\x80-\xFF+-]+/),m=function(e){return e.toString()},n=function(){var e=f();return null===e?null:m(e)},i=d([function(){var e=c([d([M,A]),u(0,N)]);return null===e?null:e[0].concat(e[1])},function(){var e=c([n,u(0,N)]);return null===e?null:[e[0]].concat(e[1])}]);var S=p("{{"),D=p("}}");function E(){var e=c([S,i,D]);return null===e?null:e[1]}if(o=d([E,P,function(){var e=u(1,a)();return null===e?null:e.join("")}]),r=d([E,P,function(){var e=u(1,t)();return null===e?null:e.join("")}]),s=function(){var e=u(0,o)();return null===e?null:["CONCAT"].concat(e)}(),null===s||l!==e.length)throw new Error("Parse error at position "+l.toString()+" in input: "+e);return s}(e);return this.emitter.emit(a,t)}return this.simpleParse(e,t)},t.simpleParse=function(e,t){return e.replace(/\$(\d+)/g,(function(e,a){var i=parseInt(a,10)-1;return void 0!==t[i]?t[i]:"$"+a}))},e}(),r=function(){function e(e){this.sourceMap=new Map}var t=e.prototype;return t.load=function(e,t){if("object"!=typeof e)throw new Error("Invalid message source. Must be an object");if(t){if(!/^[a-zA-Z0-9-]+$/.test(t))throw new Error("Invalid locale "+t);for(var a in e)if(0!==a.indexOf("@")){if("object"==typeof e[a])return this.load(e);if("string"!=typeof e[a])throw new Error("Invalid message for message "+a+" in "+t+" locale.");break}this.sourceMap.has(t)?this.sourceMap.set(t,Object.assign(this.sourceMap.get(t),e)):this.sourceMap.set(t,e)}else for(t in e)this.load(e[t],t)},t.getMessage=function(e,t){var a=this.sourceMap.get(t);return a?a[e]:null},t.hasLocale=function(e){return this.sourceMap.has(e)},e}();return function(){function t(e,t){var a=void 0===t?{}:t,i=a.finalFallback,n=void 0===i?"en":i,s=a.messages;this.locale=e,this.parser=new o(this.locale),this.messageStore=new r,s&&this.load(s,this.locale),this.fallbackLocales=[],this.finalFallback=n}var a=t.prototype;return a.load=function(e,t){return this.messageStore.load(e,t||this.locale)},a.i18n=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return this.parser.parse(this.getMessage(e),a)},a.setLocale=function(e){this.locale=e,this.parser=new o(this.locale)},a.getFallbackLocales=function(){return[].concat(this.fallbackLocales,[this.finalFallback])},a.setFallbackLocales=function(e){this.fallbackLocales=e},a.setPluralRules=function(t,a){e.pluralRules[t]=a},a.setDigitTransforms=function(t,a){e.digitTransforms[t]=a},a.getMessage=function(e){for(var t=this.locale,a=0,i=this.getFallbackLocales();t;){var n=t.split("-"),o=n.length;do{var r=n.slice(0,o).join("-"),s=this.messageStore.getMessage(e,r);if("string"==typeof s)return s;o--}while(o);t=i[a],a++}return e},a.registerParserPlugin=function(e,t){n.prototype[e]=t},t}()}()},146:function(e,t,a){"use strict";var n;!function(e){e.scriptName="Twinkle",e.userAgent="Twinkle ("+mw.config.get("wgWikiID")+")",e.changeTags="",e.summaryAd=" ("+e.scriptName+")",e.preModuleInitHooks=[],e.preModuleInitHooksWithConfig=[],e.registeredModules=[],e.activeSpecialPages=["Block","Contributions","Recentchanges","Recentchangeslinked"].concat(Morebits.userIsSysop?["DeletedContributions","Prefixindex"]:[]),e.messageOverrides={},e.extraMwMessages=[]}(n||(n={}));var o,r=mw.config.get("wgNamespaceIds"),s=r[""],l=(r.talk,r.special,r.file),d=(r.template,r.category,r.project),c=(r.user,r.user_talk);!function(e){e.botUsernameRegex=/bot\b/i,e.flaggedRevsNamespaces=[s,d],e.permalinkSpecialPageName="Special:PermanentLink",e.redirectTagAliases=["#REDIRECT"],e.signatureTimestampFormat=null}(o||(o={}));var u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},u(e,t)};function p(e,t){function a(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}var g=function(){return g=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},g.apply(this,arguments)};Object.create;function f(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<a;t++)for(var o=arguments[t],r=0,s=o.length;r<s;r++,n++)i[n]=o[r];return i}Object.create;var m=a(795),h=a.n(m),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(Error);function v(e){return e?Array.isArray(e)?e:[e]:[]}function w(e){var t=mw.Title.newFromUserInput(e);return t?t.getNameText():e}function y(e,t){return"{{"+e+T(t).filter((function(e){e[0];return!!e[1]})).map((function(e){return"|"+e[0]+"="+e[1]})).join("")+"}}"}function k(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function T(e){return Object.entries?Object.entries(e):Object.keys(e).map((function(t){return[t,e[t]]}))}var x,C=function(e){function t(t,a,i){return a=$.extend({action:"query",format:"json",formatversion:"2",uselang:D,errorlang:D,errorsuselocal:!0,tags:n.changeTags},a),e.call(this,t,a,null,i,null)||this}return p(t,e),t.prototype.post=function(t){return t||(t={}),t.headers||(t.headers={}),t.headers["Api-User-Agent"]=n.userAgent,e.prototype.post.call(this,t)},t}(Morebits.wiki.api);var P,N,M,A=["colon-separator","semicolon-separator","word-separator","comma-separator","and","parentheses","percent","blanknamespace","protectlogpage","stable-logpage","duration-hours","duration-days","duration-weeks","duration-years","protect-expiry-indefinite","group-autoconfirmed","group-sysop","protectexpiry","restriction-edit","restriction-move","restriction-create","restriction-level-autoconfirmed","restriction-level-sysop","block-expiry","blocklogpage","period-am","period-pm","january","jan","february","feb","march","mar","april","apr","may_long","may","june","jun","july","jul","august","aug","september","sep","october","oct","november","nov","december","dec","sunday","sun","monday","mon","tuesday","tue","wednesday","wed","thursday","thu","friday","fri","saturday","sat","sunday","sun"],S=JSON.parse('{"@metadata":{"authors":["SD0001"]},"tooltip-mark":"?","relative-today":"[Today at] h:mm A","relative-prevday":"[Yesterday at] h:mm A","relative-nextday":"[Tomorrow at] h:mm A","relative-thisweek":"dddd [at] h:mm A","relative-pastweek":"[Last] dddd [at] h:mm A","relative-other":"YYYY-MM-DD","done":"Done","api-error":"$1 \\"$2\\" occurred while contacting the API.","invalid-token-retrying":"Invalid token. Getting a new token and retrying...","getting-token":"Retrieving token...","opening-page":"Opening page \\"$1\\"","retrieving-page":"Retrieving page...","protected-edit-warning":"You are about to make an edit to the fully protected page \\"$1\\" (protection expiring {{date:$1|relative|utc}} (UTC)).\\n\\nClick OK to proceed with the edit, or Cancel to skip this edit.","protected-indef-edit-warning":"You are about to make an edit to the fully protected page \\"$1\\" (protected indefinitely).\\n\\nClick OK to proceed with the edit, or Cancel to skip this edit.","protected-aborted":"Edit to fully protected page was aborted.","saving-page":"Saving page...","getting-creator":"Retrieving page creation information","token-fetch-fail":"Failed to retrieve edit token.","invalid-title":"The page title is invalid: $1","cross-redirect-abort":"$1 is a cross-namespace redirect to $2, aborted","redirected":"Redirected from $1 to $2","redirect-resolution-fail":"Could not resolve redirects for: $1","api-error-unknown":"Unknown error received from API while saving page","editconflict-purging":"Edit conflict detected, purging server cache","editconflict-retrying":"Edit conflict detected, reapplying edit","save-failed-retrying":"Save failed, retrying in $1 seconds ...","moving-page":"moving page...","batch-starting":"Performing batch operation","batch-no-pages":"no pages specified","batch-done-page":"completed ([[$1]])","batch-progress":"Done ($1/$2 actions completed successfully)","submit":"Submit Query","bullet-separator":" \u2022&#32;","revert-mismatch":"The retrieved revision does not match the requested revision.","revert-curid-fail":"Failed to retrieve current revision ID.","revert-user-fail":"Failed to retrieve user who made the revision.","revert-summary":"Restored revision $1 by $2","hidden-user":"an unknown user","querying-user":"Querying user \\"$1\\"","fetching-userinfo":"Retrieving user information...","failed-timestamp":"Failed to retrieve current timestamp.","failed-token":"Failed to retrieve token.","failed-userinfo":"Failed to retrieve user info for $1.","already-blocked-indef":"$1 is already blocked (indefinitely; by $2), would you like to override the block?","already-blocked":"$1 is already blocked (until {{date:$2|relative}}; by $3), would you like to override the block?","reblock-aborted":"Reblock aborted","invalid-block-expiry":"You must provide a valid block expiration.","ip-indef-confirm":"$1 is an IP address, do you really want to block it indefinitely? \\n\\nClick OK to proceed with the block, or Cancel to abort.","ip-indef-aborted":"Indefinite block of IP address was aborted.","admin-block-confirm":"$1 is an administrator, are you sure you want to block them? \\n\\nClick OK to proceed with the block, or Cancel to abort.","admin-block-aborted":"Block of administrator was aborted.","partial-usertalk":"Partial blocks cannot prevent talk page access unless also restricting {{ns:3}} namespace.","blocking":"blocking user...","not-blocked":"User is not blocked.","indirect-block":"User is not directly blocked, but rather $1 is.","unblocking":"unblocking user...","notify-fail-iprange":"Cannot notify IP ranges","notify-self-skip":"You ($1) created this page; skipping user notification","notify-fail-noexist":"Cannot notify the user because the user does not exist.","notify-fail-template":"User talk page transcludes {{$1}}, aborting notification","notify-fail-optout":"User has opted out of this notification, aborting","notify-fail-bot":"User is a bot, aborting notification","notify-fail-blocked":"User is indefinitely blocked, aborting notification","notifying-user":"Notifying $1","watching-user":"Watching user page...","info":"Info","note":"Note","error":"Error","link-rollback":"rollback","link-vandalism":"vandalism","link-goodfaith-rollback":"rollback (AGF)","restore-revision":"restore this version","fetching-data":"Grabbing data of earlier revisions","saving-reverted":"Saving reverted contents","prompt-reason-restore":"Please specify a reason for the revert: ","reversion-complete":"Reversion completed","cant-edit-protected":"Unable to edit the page, it\'s probably protected.","no-revisions":"We have less than one additional revision, thus impossible to revert.","bad-revid":"The most recent revision ID received from the server, <strong>$1</strong>, is less than the ID of the displayed revision. This could indicate that the current revision has been deleted, the server is lagging, or that bad data has been received. Stopping revert.","revid-mismatch":"Latest revision <strong>$1</strong> doesn\'t equal our revision <strong>$2</strong>","latest-rev-same-user":"Latest revision was also made by <strong>$1</strong>. As we assume vandalism, we will proceed to revert.","latest-rev-same-64":"Latest revision was made by <strong>$1</strong>, which is on the same /64 subnet. As we assume vandalism, we will proceed to revert.","latest-rev-other-user-goodfaith":"Latest revision was made by <strong>$1</strong>. As we assume good faith, we will stop the revert, as the problem might have been fixed.","latest-rev-other-user":"Latest revision was made by <strong>$1</strong>, but we will stop the revert.","latest-rev-bot":"Latest revision was made by <strong>$1</strong>, a trusted bot, and the revision before was made by our vandal, so we will proceed with the revert.","latest-rev-reverted":"Latest revision was made by <strong>$1</strong>, so it might have already been reverted, we will stop the revert.","bot-revert":"Vandalism revert was chosen on <strong>$1</strong>. As this is a trusted bot, we assume you wanted to revert vandalism made by the previous user instead.","bot-revert-goodfaith":"Good faith revert was chosen on <strong>$1</strong>. This is a trusted bot and thus AGF rollback will not proceed.","bot-revert-prompt":"Normal revert was chosen, but the most recent edit was made by a trusted bot ($1). Do you want to revert the revision before instead?","bot-revert-previous":"Normal revert was chosen on <strong>$1</strong>. This is a trusted bot, and per confirmation, we\'ll revert the previous revision instead.","bot-revert-selected":"Normal revert was chosen on <strong>$1</strong>. This is a trusted bot, but per confirmation, revert on selected revision will proceed.","ipv6-same-user":"Treating consecutive IPv6 addresses in the same /64 as the same user","no-previous-revision":"No previous revision found. Perhaps <strong>$1</strong> is the only contributor, or they have made more than {{formatnum:$2}} edits in a row.","no-edits-revert":"As it is not possible to revert zero revisions, we will stop this revert. It could be that the edit has already been reverted, but the revision ID was still the same.","revert-multiple-prompt":"$1 has made {{formatnum:$2}} edits in a row. Are you sure you want to revert them all?","stopping":"Stopping revert.","revision-age":" revision <strong>$1</strong> that was made <strong>{{formatnum:$2}}</strong> revisions ago by $3","summary-prompt":"An optional comment for the edit summary: ","user-aborted":"Aborted by user.","restore-summary":"Restored revision $1 by %USER%","goodfaith-summary":"Reverted good faith edits by %USER%","vandalism-summary":"Reverted {{formatnum:$1}} {{plural:$1|edit|edits}} by %USER% to last revision by $2","normal-summary":"Reverted {{formatnum:$1}} {{plural:$1|edit|edits}} by %USER%","revert-confirm":"Reverting page: are you sure?","revert-complete":"Reversion completed","opening-talk":"Opening user talk page edit form for user <strong>$1</strong>","pcreview-comment":"Automatically reviewing reversion","pcreview-accepting":"Automatically accepting your changes","diff-last":"Last","diff-last-tooltip":"Show most recent diff","diff-since":"Since","diff-since-tooltip":"Show difference between last diff and the revision made by previous user","diff-sincemine":"Since mine","diff-sincemine-tooltip":"Show difference between last diff and my last revision","diff-current":"Current","diff-current-tooltip":"Show difference to current revision","diff-error":"no suitable earlier revision found, or $1 is the only contributor. Aborting.","reason":"Reason:","reason-tooltip":"You can use wikimarkup in your reason. Twinkle will automatically sign your post.","loading":"Loading...","select-all":"Select All","deselect-all":"Deselect All","fetching-list":"Grabbing list of pages","option-delete":"Delete pages","option-talks":"Delete associated talk pages (except user talk pages)","option-redirects":"Delete redirects to deleted pages","option-subpages":"Delete subpages of deleted pages","option-subpage-talks":"Delete talk pages of deleted subpages","option-subpage-redirects":"Delete redirects to deleted subpages","option-subpage-unlink":"Unlink backlinks to each deleted subpage (in Main and Portal namespaces only)","option-unlink":"Unlink backlinks to each page (in Main and Portal namespaces only)","option-unlink-file":"Remove usages of each file (in all namespaces)","pages-label":"Pages to delete","complete":"Batch deletion is now complete","confirm-protected":"You are about to delete {{formatnum:$1}} fully protected page(s). Are you sure?","dbatch-give-reason":"You need to give a reason, you cabal crony!","dbatch-no-pages":"nothing to delete, aborting","deleting":"Deleting pages","starting":"Initiating requested tasks","deleting-page":"Deleting page $1","deleting-subpages":"Deleting subpages","deleting-subpage":"Deleting subpage $1","fetching-backlinks":"Grabbing backlinks","fetching-filelinks":"Grabbing file links","fetching-redirects":"Grabbing redirects","check-talk":"Checking whether talk page exists","deleting-redirects":"Deleting redirects to $1","delete-redirect-summary":"Redirect to deleted page \\"$1\\"","deleting-talk":"Deleting talk page of page $1","delete-talk-summary":"Talk page of deleted page \\"$1\\"","unlink-page":"Unlinking backlinks to $1","unlink-on":"Unlinking on $1","unlink-summary":"Removing link(s) to deleted page $1","unlink-img-on":"Removing file usages on $1","img-comment":"Commented out because image was deleted","unlink-img-summary":"Removing instance of file $1 that has been deleted because \\"$2\\"","undbatch-restore-talks":"Restore talk pages of undeleted pages if they existed","undbatch-pages-label":"Pages to undelete","undbatch-complete":"Batch undeletion is now complete","undbatch-confirm-protected":"You are about to undelete {{formatnum:$1}} fully create protected page(s). Are you sure?","undbatch-no-pages":"nothing to undelete, aborting","undeleting":"Undeleting pages","undeleting-page":"Undeleting page $1","check-talk-deleted":"Checking talk page for deleted revisions","undeleting-talk-status":"Undeleting talk page of $1","undeleting-talk-summary":"Undeleting talk page of \\"$1\\"","create-protected-indef":"(fully create protected indefinitely)","create-protected":"(fully create protected, expires $1 (UTC))","unlink-title":"Unlinking backlinks","unlink-title-file":"Unlinking backlinks and file usages","unlink-intro":"This tool allows you to unlink all incoming links (\\"backlinks\\") that point to this page. For instance, <code>[[$1|link text]]</code> would become <code>link text</code> and <code>[[$1]]</code> would become <code>$1</code>. Use it with caution.","unlink-intro-file":"This tool allows you to unlink all incoming links (\\"backlinks\\") that point to this page and/or hide all inclusions of this file by wrapping them in &lt;!-- --&gt; comment markup. For instance, <code>[[:$1|link text]]</code> would become <code>link text</code> and <code>[[$1]]</code> would become <code>&lt;!-- [[$1]] --&gt;</code>. Use it with caution.","unlink-give-reason":"You must specify a reason for unlinking.","unlink-select-one":"You must select at least one item to unlink.","unlink-status-links-files":"Unlinking backlinks and instances of file usage","unlink-status-links":"Unlinking backlinks","unlink-status-files":"Unlinking instances of file usage","unlink-in":"Unlinking in page \\"$1\\"","no-file-usage":"No instances of file usage found.","file-usage":"File usage","first-n-files":"First {{formatnum:$1}} file usages shown.","backlinks":"Backlinks","no-backlinks":"No backlinks found.","first-n-links":"First {{formatnum:$1}} backlinks shown.","change-twpref":"You can change this with your Twinkle preferences, linked at the bottom of this Twinkle window","selected-namespaces":"Selected namespaces: {{list:$1}}","commented-out":"Commented out","no-links-files-found":"Didn\'t find any backlinks or file usages on the page.","no-links-found":"Didn\'t find any backlinks on the page.","no-files-found":"Didn\'t find any file usages on the page.","summary-links-files":"Commenting out use(s) of file / Removing link(s) to \\"$1\\"","summary-links":"Removing link(s) to \\"$1\\"","summary-files":"Commenting out use(s) of file to \\"$1\\"","protect-action-type":"Type of action","protect-protect-label":"Protect page","protect-protect-tooltip":"Apply actual protection to the page.","protect-tag-label":"Tag page with protection template","protect-tag-tooltip":"If the protecting admin forgot to apply a protection template, or you have just protected the page without tagging, you can use this to apply the appropriate protection tag.","protect-request-label":"Request page protection","protect-request-tooltip":"If you want to request protection via WP:RPP.","protect-request-sysop-tooltip":"If you want to request protection via WP:RPP instead of doing the protection by yourself.","preset":"Preset","choose-preset":"Choose a preset:","prev-protections":"Previous protections","past-protected":"This page has been protected in the past","sysops-contacted":"Have you attempted to contact the protecting admins ({{list:$1}}) first?","unprotected-time":"unprotected {{date:$1|relative|utc}}","expired-time":"expired {{date:$1|relative|utc}}","expires-time":"expires {{date:$1|relative|utc}}","reset-time":"reset {{date:$1|relative|utc}}","duration-months":"$1 {{plural:$1|month|months}}","protect-options":"Protection options","protect-edit-modify":"Modify edit protection","protect-edit-modify-tooltip":"If this is turned off, the edit protection level, and expiry time, will be left as is.","protect-edit-label":"Edit protection:","protect-move-modify":"Modify move protection","protect-move-modify-tooltip":"If this is turned off, the move protection level, and expiry time, will be left as is.","protect-move-label":"Move protection:","protect-stable-modify":"Modify pending changes protection","protect-stable-modify-tooltip":"If this is turned off, the pending changes level, and expiry time, will be left as is.","protect-stable-label":"Pending changes:","protect-create-label":"Create protection:","protect-reason":"Reason (for protection log):","protect-current-label":"Current protection level","protect-current-none":"<b>no protection</b>","protect-current":"<b>$1: $2</b>","protect-current-cascading":"<b>$1: $2 (cascading)</b>","protect-current-stable":"<b>Pending changes: $1</b>","protect-cascade-from":"<b>Cascading protection</b> from [[$1]]","by-sysop":"by [[{{ns:3}}:$1|$1]]","duration-label":"Duration:","protect-notes-label":"Notes:","note-requested-label":"$1 request","note-requested-tooltip":"Add a note to the protection log that this was requested at $1","note-requested":"requested at $1","request-revid-label":"$1 revision ID","request-revid-tooltip":"Optional revision ID of the $1 page where protection was requested.","protect-select-tag":"Choose protection template:","protect-tag-small-label":"Iconify","protect-tag-small-tooltip":"Will use the |small=yes feature of the template, and only render it as a keylock","protect-tag-noinclude-label":"Wrap protection template with &lt;noinclude&gt;","protect-tag-noinclude-tooltip":"Will wrap the protection template in &lt;noinclude&gt; tags, so that it won\'t transclude","protect-request-preset-label":"Type of protection","protect-request-type-label":"Type and reason:","temporary":"Temporary","custom-expiry-prompt":"Enter a custom expiry time. \\nYou can use relative times, like \\"1 minute\\" or \\"19 days\\", or absolute timestamps, \\"yyyymmddhhmm\\" (e.g. \\"200602011405\\" is Feb 1, 2006, at 14:05 UTC).","all-users":"All","custom-expiry-label":"Custom...","protect-request-exists":"There is already a protection request for this page at [[$1]], aborting.","protect-tag-adding":"Applying protection template","protect-tag-none-status":"nothing to do","protect-tag-exists-prompt":"{{$1}} was found on the page. \\nClick OK to remove it, or click Cancel to leave it there.","protect-tag-removing":"Removing protection template","protect-tag-abort":"Redirect category shell present","nothing-to-do":"nothing to do","block-window-title":"Block or issue block template to $1","block-self-warn":"You are about to block yourself! Are you sure you want to proceed?","block-action":"Block user","block-action-tooltip":"Block the relevant user with the given options. If partial block is unchecked, this will be a sitewide block.","block-partial":"Partial block","block-partial-tooltip":"Enable partial blocks and partial block templates.","block-tag":"Add block template to user talk page","block-tag-tooltip":"Add block template to user talk page","block-64-field-label":"Convert to /64 rangeblock","block-64-help":"It\'s usually fine, if not better, to block the /64 range ([[Special:Contributions/$1|$1]]).","block-64-label":"Block the /64 instead","block-64-template":"Any template issued will go to the original IP: $1","block-tag-options":"Template options","block-block-options":"Block options","block-expiry-indefinite":"indefinite","unblock-label":"Unblock this user","block-custom-expiry":"Custom expiry","block-custom-expiry-tooltip":"You can use relative times, like \\"1 minute\\" or \\"19 days\\", or absolute timestamps, \\"yyyymmddhhmm\\" (e.g. \\"200602011405\\" is Feb 1, 2006, at 14:05 UTC).","fetching-userinfo-error":"Error fetching user info","block-prior-label":"Prior block settings","block-pages-label":"Specific pages to block from editing","block-pages-tooltip":"10 page max.","block-namespaces-label":"Namespace blocks","block-namespaces-tooltip":"Block from editing these namespaces.","block-nocreate-label":"Block account creation","block-noemail-label":"Block user from sending email","block-disabletalk-label":"Prevent this user from editing their own talk page while blocked","block-partial-disabletalk-tooltip":"If issuing a partial block, this MUST remain unchecked unless you are also preventing them from editing User talk space","block-auto-label":"Autoblock any IP addresses used (hardblock)","block-hard-label":"Block logged-in users from using this IP address (hardblock)","block-watch-label":"Watch user and user talk pages","block-reason-label":"Reason (for block log):","block-reason-tooltip":"Consider adding helpful details to the default message.","block-see-label":"See also:","block-see-tooltip":"Insert a \\"see also\\" message to indicate whether the filter log or deleted contributions played a role in the decision to block.","block-see-filter":"Filter log","block-see-deleted":"Deleted contribs","block-tag-template":"Choose talk page template:","block-linked-label":"Linked page","block-linked-tooltip":"A page can be linked within the notice, perhaps if it was the primary target of disruption. Leave empty for no page to be linked.","block-partial-area-label":"Area blocked from","block-partial-area-tooltip":"Optional explanation of the pages or namespaces the user was blocked from editing.","block-tag-expiry":"Period of blocking:","block-tag-expiry-tooltip":"The period the blocking is due for, for example 24 hours, 2 weeks, indefinite etc...","block-tag-reason-label":"You have been blocked for ...","block-tag-reason-tooltip":"An optional reason, to replace the default generic reason. Only available for the generic block templates.","block-tag-noexpiry-label":"Do not include expiry in template","block-tag-noexpiry-tooltip":"Instead of including the duration, make the block template read \\"You have been blocked temporarily...\\"","block-tag-notalk-label":"Talk page access disabled","block-tag-notalk-tooltip":"Make the block template state that the user\'s talk page access has been removed","block-tag-noemail-label":"User blocked from sending email","block-tag-noemail-tooltip":"If the area is not provided, make the block template state that the user\'s email access has been removed","block-tag-nocreate-label":"User blocked from creating accounts","block-tag-nocreate-tooltip":"If the area is not provided, make the block template state that the user\'s ability to create accounts has been removed","select2-badsearch":"Incomplete or invalid search term","block-namespaces-placeholder":"Select namespaces to block user from","block-pages-placeholder":"Select pages to block user from","block-current-partial":"$1 is partially blocked","block-current":"$1 is blocked sitewide","block-current-range":"$1 is blocked sitewide as a rangeblock","block-current-in-range":"$1 is blocked sitewide within a /$2 rangeblock ($3)","block-current-partial-range":"$1 is partially blocked as a rangeblock","block-current-partial-in-range":"$1 is partially blocked within a /$2 rangeblock ($3)","block-expiry-date":"expires {{date:$1|relative|utc}}","block-current-change":"This form will change the existing block.","block-current-add":"This form will add an additional block.","unblocked-ago":"unblocked {{date:$1|relative|utc}}","block-expired":"$1, expired {{date:$2|relative|utc}}","block-log-current":"Previous blocks","block-log-past":"This user has been blocked in the past","block-partial-blank":"No pages or namespaces were selected, nor were email or account creation restrictions applied; please select at least one option to apply a partial block!","block-warn-noexpiry":"Please provide an expiry!","block-warn-indef-ip":"Can\'t indefinitely block an IP address!","block-warn-noreason":"Please provide a reason for the block!","block-doing":"Executing block","block-warn-partial-usertalk":"Partial blocks cannot prevent talk page access unless also restricting them from editing User talk space!","block-conflict":"The block status of $1 has changed. Last block log entry:","block-conflict-block":"Blocked by $1 with comment \\"$2\\". Expiring {{date:$3|relative|utc}}. Do you want to override with your settings?","block-conflict-unblock":"Unblocked by $1 with comment \\"$2\\". ({{date:$3|relative|utc}}.) Do you want to override with your settings?","block-noop":"Please give Twinkle something to do!","block-complete":"Actions complete, loading user talk page in a few seconds","block-tagging-status":"User talk page modification","block-blank-talk":"Blanking talk page per preferences and creating a new talk page section for this month","block-new-section":"Will create a new talk page section for this month, as none was found","search-tags":"Filter tag list:","summary-added":"Added {{list:$1}} {{plural:$2|tag|tags}}","summary-removed":"Removed {{list:$1}} {{plural:$2|tag|tags}}","summary-added-removed":"Added {{list:$1}}; and removed {{list:$2}} {{plural:$3|tag|tags}}","status-added":"Added $1 {{plural:$1|tag|tags}}","status-removed":"Removed $1 {{plural:$1|tag|tags}}","status-added-removed":"Added $1 {{plural:$1|tag|tags}}; Removed $2 {{plural:$2|tag|tags}}","untag-from-read":"For removal of existing tags, please open Tag menu from the current version of article","tags-present-header":"Tags already present","mark-patrolled":"Mark the page as patrolled/reviewed","tag-complete":"Tagging complete, reloading $1 in a few seconds","select-one":"You must select at least one tag!","getting-redirects":"Getting template redirects","cant-reposition":"Failed to find {{$1}} on the page... skip repositioning","cant-remove":"Failed to find {{$1}} on the page... cannot remove","untagging":"Untagging","removing":"Already present tags: removing de-selected tags","resolved-redirect":"Resolved template redirect {{$1}} to {{$2}}","tagging-status":"Tagging $1","tag-fetching-redirects":"Getting redirects for {{list:$1}}","xfd-venue-label":"Deletion discussion venue:","xfd-venue-tooltip":"When activated, a default choice is made, based on what namespace you are in. This default should be the most appropriate.","notify-creator-label":"Notify page creator if possible","notify-creator-tooltip":"A notification template will be placed on the creator\'s talk page if this is true.","deletion-reason-here":"Your deletion rationale is provided below, which you can copy and paste into a new XFD dialog if you wish to try again:","looking-old-nominations":"Looking for prior nominations of this page","bad-venue":"Unrecognised venue: $1","nomination-complete-redirect":"Nomination complete, now redirecting to the discussion page","protected-no-editreq":"Page protected and nowhere to add an edit request, aborting","protected-editreq":"Page protected, requesting edit","posting-editreq":"Automatically posting edit request on talk page","xfd-editreq-title":"Edit request to complete $1 nomination","xfd-editreq-failed":"Unable to add edit request, the talk page may be protected","fetching-creator":"Finding page creator","notifying-creator":"Notifying initial contributor ($1)","pref-logxfdnominations-label":"Keep a log in userspace of all pages you nominate for a deletion discussion (XfD)","pref-logxfdnominations-tooltip":"The userspace log offers a good way to keep track of all pages you nominate for XfD using Twinkle.","pref-xfdlogpagename-label":"Keep the deletion discussion userspace log at this user subpage","pref-xfdlogpagename-tooltip":"Enter a subpage name in this box. You will find your XfD log at User:<i>username</i>/<i>subpage name</i>. Only works if you turn on the XfD userspace log.","pref-xfdwatchpage-label":"Add the nominated page to watchlist","pref-xfdwatchdiscussion-label":"Add the deletion discussion page to watchlist","pref-xfdwatchlist-label":"Add the daily log or list page to the watchlist","pref-xfdwatchlist-tooltip":"This only applies for venues where the discussion takes place on a newly-created page which is transcluded on to a log or list page.","pref-xfdwatchuser-label":"Add user talk page of initial contributor to watchlist (when notifying)"}'),D=(N="uselang",mw.util.getParamValue(N)||mw.config.get("wgContentLanguage")),E={date:function(e){var t="function"==typeof e[0].getTime?new Morebits.date(e[0].getTime()):new Morebits.date(e[0]),a=e[1],i="utc"===e[2]?"utc":void 0;return"relative"===a?t.calendar(i):t.format(a,i)},int:function(e){var t=e[0],a=e.slice(1);return I.apply(void 0,f([t],a))},ns:function(e){var t=String(e[0]).trim();return/^\d+$/.test(t)||(t=String(mw.config.get("wgNamespaceIds")[t.replace(/ /g,"_").toLowerCase()])),(t=mw.config.get("wgFormattedNamespaces")[t])||""},ucfirst:function(e){return Morebits.string.toUpperCaseFirstChar(e[0])},lcfirst:function(e){return Morebits.string.toLowerCaseFirstChar(e[0])},list:function(e){for(var t=e[0],a="",i=0;i<t.length;i++)a+=t[i],t.length-2===i?a+=I("and")+I("word-separator"):t.length-1!==i&&(a+=I("comma-separator"));return a},sysop:function(e){return Morebits.userIsSysop?e[1]:e[2]}};function R(e){P.load(e,D)}function I(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!P)throw new Error("Can't emit messages before initMessaging() has run!");return M?"("+e+")":P.i18n.apply(P,f([e],t))}var L;function W(e,t){for(var a=[],i=0;i<e.length;i+=50)a.push(x.getMessages(e.slice(i,i+50),{amlang:t,maxage:31536e3,smaxage:31536e3,uselang:"content"}).then((function(e){R(e)})));return Promise.all(a)}function F(e){if("en"===e)return Promise.resolve();var t="tw-i18n-"+e,a=mw.storage.getObject(t);return a&&new Morebits.date(a["@timestamp"]).add(2,"days").isAfter(new Date)?(O(a),Promise.resolve()):$.get("https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/gadgets/TwinkleCore/+/i18n/build-i18n/"+e+".json?format=text").then((function(e){var a=JSON.parse(decodeURIComponent(window.atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")));a["@timestamp"]=(new Date).toISOString(),mw.storage.setObject(t,a),O(a)}),(function(e){mw.log.warn("[twinkle]: no messages loaded from gerrit.",e)}))}function O(e){P.setFallbackLocales(e["@fallbacks"]),delete e["@fallbacks"],delete e["@timestamp"];for(var t=0,a=T(e);t<a.length;t++){var i=a[t],n=i[0],o=i[1];o["@pluralrules"]&&P.setPluralRules(n,o["@pluralrules"]),o["@digittransforms"]&&P.setDigitTransforms(n,o["@digittransforms"])}P.load(e)}var U={optionsVersion:2,userTalkPageMode:"tab",dialogLargeFont:!1,disabledModules:[],disabledSysopModules:[],portletArea:null,portletId:null,portletName:null,portletType:null,portletNext:null,autolevelStaleDays:3,revertMaxRevisions:50,batchMax:5e3,batchChunks:50,summaryAd:" ([[WP:TW|TW]])",deletionSummaryAd:" ([[WP:TW|TW]])",protectionSummaryAd:" ([[WP:TW|TW]])",logXfdNominations:!1,xfdLogPageName:"XfD log",noLogOnXfdNomination:[],xfdWatchDiscussion:"default",xfdWatchList:"no",xfdWatchPage:"default",xfdWatchUser:"default",xfdWatchRelated:"default",markXfdPagesAsPatrolled:!0,autoMenuAfterRollback:!1,openTalkPage:["agf","norm","vand"],openTalkPageOnAutoRevert:!1,rollbackInPlace:!1,markRevertedPagesAsMinor:["vand"],watchRevertedPages:["agf","norm","vand","torev"],watchRevertedExpiry:"1 month",offerReasonOnNormalRevert:!0,confirmOnFluff:!1,confirmOnMobileFluff:!0,showRollbackLinks:["diff","others"],speedySelectionStyle:"buttonClick",watchSpeedyPages:["g3","g5","g10","g11","g12"],watchSpeedyExpiry:"1 month",markSpeedyPagesAsPatrolled:!1,defaultWarningGroup:"1",combinedSingletMenus:!1,showSharedIPNotice:!0,watchWarnings:"1 month",oldSelect:!1,customWarningList:[],spiWatchReport:"yes",topWelcomes:!1,watchWelcomes:"3 months",insertUsername:!0,quickWelcomeMode:"norm",quickWelcomeTemplate:"welcome",customWelcomeList:[],customWelcomeSignature:!0,markSharedIPAsMinor:!0,markTalkbackAsMinor:!0,insertTalkbackSignature:!0,talkbackHeading:"New message from "+mw.config.get("wgUserName"),mailHeading:"You've got mail!"};function B(e){e.forEach((function(e){U[e.name]=e.value}))}function q(e){return"object"==typeof L&&void 0!==L[e]?L[e]:"object"==typeof window.TwinkleConfig&&void 0!==window.TwinkleConfig[e]?window.TwinkleConfig[e]:"object"==typeof window.FriendlyConfig&&void 0!==window.FriendlyConfig[e]?window.FriendlyConfig[e]:U[e]}var j=function(){function e(){}return e.addGroup=function(t,a){e.sections[t]=a},e.addPreference=function(t,a){e.sections[t].preferences.push(a)},e.init=function(){if(mw.config.get("wgNamespaceNumber")===mw.config.get("wgNamespaceIds").project&&"Twinkle/Preferences"===mw.config.get("wgTitle")&&"view"===mw.config.get("wgAction")){if(!document.getElementById("twinkle-config"))return;document.getElementById("twinkle-config-titlebar").style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB%2FqqA%2BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhQTFRFr73ZobTPusjdsMHZp7nVwtDhzNbnwM3fu8jdq7vUt8nbxtDkw9DhpbfSvMrfssPZqLvVztbno7bRrr7W1d%2Fs1N7qydXk0NjpkW7Q%2BgAAADVJREFUeNoMwgESQCAAAMGLkEIi%2FP%2BnbnbpdB59app5Vdg0sXAoMZCpGoFbK6ciuy6FX4ABAEyoAef0BXOXAAAAAElFTkSuQmCC)";var t=document.getElementById("twinkle-config-content");if(t.textContent="",window.TwinkleConfig||window.FriendlyConfig){var a=document.createElement("p");a.innerHTML='<table class="plainlinks ombox ombox-content"><tr><td class="mbox-image"><img alt="" src="https://upload.wikimedia.org/wikipedia/commons/3/38/Imbox_content.png" /></td><td class="mbox-text"><p><big><b>Before modifying your settings here,</b> you must remove your old Twinkle and Friendly settings from your personal skin JavaScript.</big></p><p>To do this, you can <a href="'+mw.util.getUrl("User:"+mw.config.get("wgUserName")+"/"+mw.config.get("skin")+".js",{action:"edit"})+'" target="_blank"><b>edit your personal skin javascript file</b></a> or <a href="'+mw.util.getUrl("User:"+mw.config.get("wgUserName")+"/common.js",{action:"edit"})+'" target="_blank"><b>your common.js file</b></a>, removing all lines of code that refer to <code>TwinkleConfig</code> and <code>FriendlyConfig</code>.</p></td></tr></table>',t.appendChild(a)}var i=document.createElement("div");i.className="toc",i.style.marginLeft="0.4em";var n=document.createElement("div");n.id="toctitle";var o=document.createElement("h2");o.textContent="Contents ",n.appendChild(o);var r=document.createElement("span");r.className="toctoggle",r.appendChild(document.createTextNode("["));var s=document.createElement("a");s.className="internal",s.setAttribute("href","#tw-tocshowhide"),s.textContent="hide",r.appendChild(s),r.appendChild(document.createTextNode("]")),n.appendChild(r),i.appendChild(n);var l=document.createElement("ul");s.addEventListener("click",(function(){var e=$(l);e.toggle(),e.find(":visible").length?s.textContent="hide":s.textContent="show"}),!1),i.appendChild(l),t.appendChild(i);var d=document.createElement("form");d.setAttribute("action","javascript:void(0)"),d.addEventListener("submit",e.save,!0),t.appendChild(d);var c=document.createElement("table");c.style.width="100%",d.appendChild(c),k(e.sections).forEach((function(t){if(t.hidden||t.adminOnly&&!Morebits.userIsSysop)return!0;var a=document.createElement("li");a.className="toclevel-1";var i=document.createElement("a");i.setAttribute("href","#"+t.module),i.appendChild(document.createTextNode(t.title)),a.appendChild(i),l.appendChild(a);var n=document.createElement("tr"),o=document.createElement("td");o.setAttribute("colspan","3");var r=document.createElement("h4");r.style.borderBottom="1px solid gray",r.style.marginTop="0.2em",r.id=t.module,r.appendChild(document.createTextNode(t.title)),o.appendChild(r),n.appendChild(o),c.appendChild(n);var s=1;return t.preferences.forEach((function(t){if(t.adminOnly&&!Morebits.userIsSysop)return!0;(n=document.createElement("tr")).style.marginBottom="0.2em",s++%2==0&&(n.style.backgroundColor="rgba(128, 128, 128, 0.1)"),o=document.createElement("td");var a,i,r=q(t.name);switch(t.type){case"boolean":o.setAttribute("colspan","2"),a=document.createElement("label"),(i=document.createElement("input")).setAttribute("type","checkbox"),i.setAttribute("id",t.name),i.setAttribute("name",t.name),!0===r&&i.setAttribute("checked","checked"),a.appendChild(i),a.appendChild(document.createTextNode(" "+t.label)),o.appendChild(a);break;case"string":case"integer":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em",(i=document.createElement("input")).setAttribute("type","text"),i.setAttribute("id",t.name),i.setAttribute("name",t.name),"integer"===t.type&&(i.setAttribute("size",6),i.setAttribute("type","number"),i.setAttribute("step","1")),r&&i.setAttribute("value",r),o.appendChild(i);break;case"enum":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em",(i=document.createElement("select")).setAttribute("id",t.name),i.setAttribute("name",t.name),$.each(t.enumValues,(function(e,t){var a=document.createElement("option");a.setAttribute("value",e),(r===e||"boolean"==typeof r&&(r&&"yes"===e||!r&&"no"===e))&&a.setAttribute("selected","selected"),a.appendChild(document.createTextNode(t)),i.appendChild(a)})),o.appendChild(i);break;case"set":o.setAttribute("colspan","2"),(a=document.createElement("label")).appendChild(document.createTextNode(t.label+":")),o.appendChild(a);var l=document.createElement("div");l.style.paddingLeft="1em";var d=function(e,a){var i=document.createElement("label");i.style.marginRight="0.7em",i.style.display="inline-block";var n=document.createElement("input");n.setAttribute("type","checkbox"),n.setAttribute("id",t.name+"_"+e),n.setAttribute("name",t.name+"_"+e),r&&-1!==r.indexOf(e)&&n.setAttribute("checked","checked"),"unlinkNamespaces"===t.name&&r&&-1!==r.indexOf(parseInt(e,10))&&n.setAttribute("checked","checked"),i.appendChild(n),i.appendChild(document.createTextNode(a)),l.appendChild(i)};t.setDisplayOrder?$.each(t.setDisplayOrder,(function(e,a){d(a,t.setValues[a])})):$.each(t.setValues,d),o.appendChild(l);break;case"customList":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em";var u=document.createElement("button");u.setAttribute("id",t.name),u.setAttribute("name",t.name),u.setAttribute("type","button"),u.addEventListener("click",G.display,!1),$(u).data({value:r,pref:t}),u.appendChild(document.createTextNode("Edit items")),o.appendChild(u);break;default:alert("twinkleconfig: unknown data type for preference "+t.name)}if(n.appendChild(o),(o=document.createElement("td")).style.fontSize="90%",o.style.color="gray",t.helptip&&(o.innerHTML=t.helptip.replace(/{{(.+?)}}/g,'{{<a href="'+mw.util.getUrl("Template:")+'$1" target="_blank">$1</a>}}')),"customList"!==t.type){var p=document.createElement("a");p.setAttribute("href","#tw-reset"),p.setAttribute("id","twinkle-config-reset-"+t.name),p.addEventListener("click",e.resetPrefLink,!1),p.style.cssFloat="right",p.style.margin="0 0.6em",p.appendChild(document.createTextNode("Reset")),o.appendChild(p)}return n.appendChild(o),c.appendChild(n),!0})),!0}));var u=document.createElement("div");u.setAttribute("id","twinkle-config-buttonpane"),u.style.backgroundColor="#BCCADF",u.style.padding="0.5em";var p=document.createElement("button");p.setAttribute("id","twinkle-config-submit"),p.setAttribute("type","submit"),p.appendChild(document.createTextNode("Save changes")),u.appendChild(p);var g=document.createElement("span");g.className="plainlinks",g.style.marginLeft="2.4em",g.style.fontSize="90%";var f=document.createElement("a");if(f.setAttribute("href","#tw-reset-all"),f.setAttribute("id","twinkle-config-resetall"),f.addEventListener("click",e.resetAllPrefs,!1),f.appendChild(document.createTextNode("Restore defaults")),g.appendChild(f),u.appendChild(g),d.appendChild(u),window.location.hash){var m=window.location.hash;window.location.hash="",window.location.hash=m}}else if(mw.config.get("wgNamespaceNumber")===mw.config.get("wgNamespaceIds").user&&0===mw.config.get("wgTitle").indexOf(mw.config.get("wgUserName"))&&".js"===mw.config.get("wgPageName").slice(-3)){var h=document.createElement("div");h.setAttribute("id","twinkle-config-headerbox");var b,v=mw.config.get("wgPageName").slice(mw.config.get("wgPageName").lastIndexOf("/")+1,mw.config.get("wgPageName").lastIndexOf(".js"));"twinkleoptions"===v?(h.setAttribute("class","config-twopt-box"),mw.config.get("wgArticleId")>0?h.appendChild(document.createTextNode("This page contains your Twinkle preferences. You can change them using the ")):h.appendChild(document.createTextNode("You can customize Twinkle to suit your preferences by using the ")),(b=document.createElement("a")).setAttribute("href",mw.util.getUrl(mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").project]+":Twinkle/Preferences")),b.appendChild(document.createTextNode("Twinkle preferences panel")),h.appendChild(b),h.appendChild(document.createTextNode(", or by editing this page.")),$(h).insertAfter($("#contentSub"))):-1!==["monobook","vector","cologneblue","modern","timeless","minerva","common"].indexOf(v)&&(h.setAttribute("class","config-userskin-box"),h.appendChild(document.createTextNode("If you want to set Twinkle preferences, you can use the ")),(b=document.createElement("a")).setAttribute("href",mw.util.getUrl(mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").project]+":Twinkle/Preferences")),b.appendChild(document.createTextNode("Twinkle preferences panel")),h.appendChild(b),h.appendChild(document.createTextNode(".")),$(h).insertAfter($("#contentSub")))}},e.resetPrefLink=function(t){var a=t.target.id.substring(21);return k(e.sections).forEach((function(t){if(t.hidden||t.adminOnly&&!Morebits.userIsSysop)return!0;var i=!1;return t.preferences.forEach((function(t){return t.name!==a||(e.resetPref(t),i=!0,!1)})),!i&&void 0})),!1},e.resetPref=function(e){switch(e.type){case"boolean":document.getElementById(e.name).checked=U[e.name];break;case"string":case"integer":case"enum":document.getElementById(e.name).value=U[e.name];break;case"set":$.each(e.setValues,(function(t){var a=document.getElementById(e.name+"_"+t);a&&(a.checked=-1!==U[e.name].indexOf(t))}));break;case"customList":$(document.getElementById(e.name)).data("value",U[e.name]);break;default:alert("twinkleconfig: unknown data type for preference "+e.name)}},e.resetAllPrefs=function(){return k(e.sections).forEach((function(t){return t.hidden||t.adminOnly&&!Morebits.userIsSysop||t.preferences.forEach((function(t){t.adminOnly&&!Morebits.userIsSysop||e.resetPref(t)})),!0})),!1},e.save=function(t){Morebits.status.init(document.getElementById("twinkle-config-content"));var a=mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").user]+":"+mw.config.get("wgUserName")+"/twinkleoptions.js",i=new Morebits.wiki.page(a,"Saving preferences to "+a);return i.setCallbackParameters(t.target),i.load(e.writePrefs),!1},e.writePrefs=function(t){var a=t.getCallbackParameters(),i={optionsVersion:2.1};k(e.sections).forEach((function(e){e.adminOnly&&!Morebits.userIsSysop||e.preferences.forEach((function(t){var n;if(!t.adminOnly||Morebits.userIsSysop)if(e.hidden)L&&(n=L[t.name]);else switch(t.type){case"boolean":n=a[t.name].checked;break;case"string":case"enum":n=a[t.name].value;break;case"integer":n=parseInt(a[t.name].value,10),isNaN(n)&&(Morebits.status.warn("Saving","The value you specified for "+t.name+" ("+a[t.name].value+") was invalid. The save will continue, but the invalid data value will be skipped."),n=null);break;case"set":n=[],t.setDisplayOrder?$.each(t.setDisplayOrder,(function(e,i){a[t.name+"_"+i].checked&&n.push(i)})):$.each(t.setValues,(function(e){a[t.name+"_"+e].checked&&n.push(e)}));break;case"customList":n=$(a[t.name]).data("value");break;default:alert("twinkleconfig: unknown data type for preference "+t.name)}void 0===n||function(e,t){if(Array.isArray(e)){if(e.length!==t.length)return!1;for(var a=e.sort(),i=t.sort(),n=0;a[n];++n){if("object"==typeof a[n]&&(a[n].label!==i[n].label||a[n].value!==i[n].value))return!1;if(a[n].toString()!==i[n].toString())return!1}return!0}return e===t}(n,U[t.name])||(i[t.name]=n)}))}));var o="// twinkleoptions.js: personal Twinkle preferences file\n//\n// NOTE: The easiest way to change your Twinkle preferences is by using the\n// Twinkle preferences panel, at [["+Morebits.pageNameNorm+']].\n//\n// This file is AUTOMATICALLY GENERATED. Any changes you make (aside from\n// changing the configuration parameters in a valid-JavaScript way) will be\n// overwritten the next time you click "save" in the Twinkle preferences\n// panel. If modifying this file, make sure to use correct JavaScript.\n// <no"+"wiki>\n\nwindow.Twinkle.prefs = ';o+=JSON.stringify(i,null,2),o+=";\n\n// </no"+"wiki>\n// End of twinkleoptions.js\n",t.setPageText(o),t.setEditSummary("Saving Twinkle preferences: automatic edit from [[:"+Morebits.pageNameNorm+"]]"),t.setChangeTags(n.changeTags),t.setCreateOption("recreate"),t.save(e.saveSuccess)},e.saveSuccess=function(e){e.getStatusElement().info("successful");var t=document.createElement("div");t.className="successbox",t.style.fontSize="100%",t.style.marginTop="2em",t.innerHTML='<p><b>Your Twinkle preferences have been saved.</b></p><p>To see the changes, you will need to <b>clear your browser cache entirely</b> (see <a href="'+mw.util.getUrl("WP:BYPASS")+'" title="WP:BYPASS">WP:BYPASS</a> for instructions).</p>',Morebits.status.root.appendChild(t);var a=document.createElement("br");a.style.clear="both",Morebits.status.root.appendChild(a)},e.sections={general:{title:"General",module:"general",preferences:[{name:"userTalkPageMode",label:"When opening a user talk page, open it",type:"enum",enumValues:{window:"In a window, replacing other user talks",tab:"In a new tab",blank:"In a totally new window"},default:"tab"},{name:"dialogLargeFont",label:"Use larger text in Twinkle dialogs",type:"boolean",default:!1},{name:"disabledModules",label:"Turn off the selected Twinkle modules",helptip:"Anything you select here will NOT be available for use, so act with care. Uncheck to reactivate.",type:"set",setValues:{arv:"ARV",warn:"Warn",welcome:"Welcome",shared:"Shared IP",talkback:"Talkback",speedy:"CSD",prod:"PROD",xfd:"XfD",image:"Image (DI)",protect:"Protect (RPP)",tag:"Tag",diff:"Diff",unlink:"Unlink",fluff:"Revert and rollback"},default:[]},{name:"disabledSysopModules",label:"Turn off the selected admin-only modules",helptip:"Anything you select here will NOT be available for use, so act with care. Uncheck to reactivate.",adminOnly:!0,type:"set",setValues:{block:"Block",deprod:"DePROD",batchdelete:"D-batch",batchprotect:"P-batch",batchundelete:"Und-batch"},default:[]}]},hidden:{title:"Hidden",hidden:!0,preferences:[{name:"portletArea",type:"string"},{name:"portletId",type:"string"},{name:"portletName",type:"string"},{name:"portletType",type:"string"},{name:"portletNext",type:"string"},{name:"revertMaxRevisions",type:"integer",default:50},{name:"autolevelStaleDays",type:"integer",default:3},{name:"batchMax",type:"integer",adminOnly:!0,default:5e3},{name:"batchChunks",type:"integer",adminOnly:!0,default:50}]}},e.watchlistEnums={yes:"Add to watchlist (indefinitely)",no:"Don't add to watchlist",default:"Follow your site preferences","1 week":"Watch for 1 week","1 month":"Watch for 1 month","3 months":"Watch for 3 months","6 months":"Watch for 6 months"},e.commonSets={csdCriteria:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g5:"G5",g6:"G6",g7:"G7",g8:"G8",g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u1:"U1",u2:"U2",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f7:"F7",f8:"F8",f9:"F9",f10:"F10",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdCriteriaDisplayOrder:["db","g1","g2","g3","g4","g5","g6","g7","g8","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u1","u2","u3","u5","f1","f2","f3","f7","f8","f9","f10","c1","r2","r3","r4","p1","p2"],csdCriteriaNotification:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g6:'G6 ("copy-paste move" only)',g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f7:"F7",f9:"F9",f10:"F10",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdCriteriaNotificationDisplayOrder:["db","g1","g2","g3","g4","g6","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u3","u5","f1","f2","f3","f7","f9","f10","c1","r2","r3","r4","p1","p2"],csdAndDICriteria:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g5:"G5",g6:"G6",g7:"G7",g8:"G8",g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u1:"U1",u2:"U2",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdAndDICriteriaDisplayOrder:["db","g1","g2","g3","g4","g5","g6","g7","g8","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u1","u2","u3","u5","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","c1","r2","r3","r4","p1","p2"],namespacesNoSpecial:{0:"Article",1:"Talk (article)",2:"User",3:"User talk",4:"Wikipedia",5:"Wikipedia talk",6:"File",7:"File talk",8:"MediaWiki",9:"MediaWiki talk",10:"Template",11:"Template talk",12:"Help",13:"Help talk",14:"Category",15:"Category talk",100:"Portal",101:"Portal talk",108:"Book",109:"Book talk",118:"Draft",119:"Draft talk",710:"TimedText",711:"TimedText talk",828:"Module",829:"Module talk"}},e}(),G=function(){function e(){}return e.addRow=function(e,t,a){var i=document.createElement("tr"),n=document.createElement("td"),o=document.createElement("button");o.setAttribute("type","button"),o.addEventListener("click",(function(){$(i).remove()}),!1),o.textContent="Remove",n.appendChild(o),i.appendChild(n),n=document.createElement("td");var r=document.createElement("input");r.setAttribute("type","text"),r.className="twinkle-config-customlist-value",r.style.width="97%",t&&r.setAttribute("value",t),n.appendChild(r),i.appendChild(n),n=document.createElement("td"),(r=document.createElement("input")).setAttribute("type","text"),r.className="twinkle-config-customlist-label",r.style.width="98%",a&&r.setAttribute("value",a),n.appendChild(r),i.appendChild(n),e.appendChild(i)},e.display=function(t){var a=$(t.target),i=a.data("value"),n=a.data("pref"),o=new Morebits.simpleWindow(720,400);o.setTitle(n.label),o.setScriptName("Twinkle preferences");var r=document.createElement("div"),s=document.createElement("table");s.className="wikitable",s.style.margin="1.4em 1em",s.style.width="auto";var l=document.createElement("tbody"),d=document.createElement("tr"),c=document.createElement("th");c.style.width="5%",d.appendChild(c),(c=document.createElement("th")).style.width="35%",c.textContent=n.customListValueTitle?n.customListValueTitle:"Value",d.appendChild(c),(c=document.createElement("th")).style.width="60%",c.textContent=n.customListLabelTitle?n.customListLabelTitle:"Label",d.appendChild(c),l.appendChild(d);var u=!1;$.each(i,(function(t,a){u=!0,e.addRow(l,a.value,a.label)})),u||e.addRow(l);var p=document.createElement("tfoot");d=document.createElement("tr");var g=document.createElement("td");g.setAttribute("colspan","3");var f=document.createElement("button");f.style.minWidth="8em",f.setAttribute("type","button"),f.addEventListener("click",(function(){e.addRow(l)}),!1),f.textContent="Add",g.appendChild(f),d.appendChild(g),p.appendChild(d),s.appendChild(l),s.appendChild(p),r.appendChild(s);var m=document.createElement("button");m.setAttribute("type","submit"),m.addEventListener("click",(function(){e.save(a,l),o.close()}),!1),m.textContent="Save changes",r.appendChild(m),(m=document.createElement("button")).setAttribute("type","submit"),m.addEventListener("click",(function(){e.reset(a,l)}),!1),m.textContent="Reset",r.appendChild(m),(m=document.createElement("button")).setAttribute("type","submit"),m.addEventListener("click",(function(){o.close()}),!1),m.textContent="Cancel",r.appendChild(m),o.setContent(r),o.display()},e.reset=function(t,a){var i=$(t),n=i.data("pref"),o=i.data("value");j.resetPref(n),$(a).find("tr").slice(1).remove();var r=i.data("value");$.each(r,(function(t,i){e.addRow(a,i.value,i.label)})),i.data("value",o)},e.save=function(e,t){var a=[],i={};$(t).find('input[type="text"]').each((function(e,t){$(t).hasClass("twinkle-config-customlist-value")?i={value:t.value}:(i.label=t.value,(i.value||i.label)&&a.push(i))})),$(e).data("value",a)},e}();function z(e,t,a,i){null!==q("portletArea")&&function(e,t,a,i,n){var o=document.getElementById(e)||document.querySelector(e);if(!o)return null;var r,s=document.getElementById(t);if(s)return s.parentNode&&s.parentNode===o?s:null;n&&(r=document.getElementById(n));var l,d,c=mw.config.get("skin");("vector"!==c||"left-navigation"!==e&&"right-navigation"!==e)&&(i=null);switch(c){case"vector":"portal"!==e&&"left-navigation"!==e&&"right-navigation"!==e&&(e="mw-panel"),l="mw-portlet vector-menu vector-menu-"+("mw-panel"===e?"portal":"menu"===i?"dropdown vector-menu-dropdown-noicon":"tabs"),d="vector-menu-content";break;case"modern":"mw_portlets"!==e&&"mw_contentwrapper"!==e&&(e="mw_portlets"),l="portlet";break;case"timeless":l="mw-portlet",d="mw-portlet-body";break;default:e="column-one",l="portlet"}var u=document.createElement("nav");u.setAttribute("aria-labelledby",t+"-label"),u.className=l+" emptyPortlet",u.id=t,r&&r.parentNode===o?o.insertBefore(u,r):o.appendChild(u);var p=document.createElement("h3");p.id=t+"-label";var g=document.createElement("ul");if("vector"===c){if(g.className="vector-menu-content-list",-1!==l.indexOf("vector-menu-dropdown")){var f=document.createElement("input");f.className="vector-menu-checkbox",f.setAttribute("type","checkbox"),f.setAttribute("aria-labelledby",t+"-label"),u.appendChild(f);var m=document.createElement("span");m.appendChild(document.createTextNode(a)),p.appendChild(m);var h=document.createElement("a");h.href="#",$(h).click((function(e){e.preventDefault()})),p.appendChild(h)}}else p.appendChild(document.createTextNode(a));if(u.appendChild(p),d){var b=document.createElement("div");b.className=d,b.appendChild(g),u.appendChild(b)}else u.appendChild(g)}(q("portletArea"),q("portletId"),q("portletName"),q("portletType"),q("portletNext"));var n=mw.util.addPortletLink(q("portletId"),"string"==typeof e?e:"#",t,a,i);return $(".client-js .skin-vector #p-cactions").css("margin-right","initial"),"function"==typeof e&&$(n).click((function(t){e(),t.preventDefault()})),$.collapsibleTabs&&$.collapsibleTabs.handleResize(),n}var _=function(){function e(){}return e.userPreferences=function(){},e.prototype.addPreference=function(e){j.addPreference(this.moduleName,e)},e.prototype.addMenu=function(){var e=this;z((function(){return e.makeWindow()}),this.portletName,this.portletId||"twinkle-"+this.moduleName.toLowerCase(),this.portletTooltip)},e.prototype.makeWindow=function(){},e}();function Y(e){var t=e.userPreferences();t&&(j.addGroup(e.moduleName,g(g({},t),{module:e.moduleName})),B(t.preferences.map((function(e){return{name:e.name,value:e.default}})))),V.includes(e.moduleName)||(n[e.moduleName.toLowerCase()]=new e)}var V=[];var H=JSON.parse('{"@comment":"This file contains project-specific overrides for twinkle-core messages."}'),X=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.trustedBots=[],t.hiddenName="an unknown user",t}return p(t,e),t}(function(e){function t(){var t=e.call(this)||this;return t.moduleName="fluff",t.skipTalk=null,t.rollbackInPlace=null,t.flaggedRevsEnabled=!!mw.loader.moduleRegistry["ext.flaggedRevs.basic"],t.linkBuilder={spanTag:function(e,t){var a=document.createElement("span");return a.style.color=e,a.appendChild(document.createTextNode(t)),a},buildLink:function(e,a){var i=document.createElement("a");return i.appendChild(t.linkBuilder.spanTag("Black","[")),i.appendChild(t.linkBuilder.spanTag(e,a)),i.appendChild(t.linkBuilder.spanTag("Black","]")),i.href="#",i},rollbackLinks:function(e,a,i,n){void 0===a&&(a=!1),e=e||null;var o=a?"span":"div",r=document.createElement(o);(i=parseInt(i,10))?r.setAttribute("id","tw-revert"+i):r.setAttribute("id","tw-revert");var s=document.createElement("strong"),l=document.createElement("strong"),d=t.linkBuilder.buildLink("SteelBlue",I("link-rollback")),c=t.linkBuilder.buildLink("Red",I("link-vandalism"));$(d).click((function(){t.revert("norm",e,i,n),t.disableLinks(r)})),$(c).click((function(){t.revert("vand",e,i,n),t.disableLinks(r)})),l.appendChild(c),s.appendChild(d);var u=a?" ":" || ";if(!a){var p=document.createElement("strong"),g=t.linkBuilder.buildLink("DarkOliveGreen",I("link-goodfaith-rollback"));$(g).click((function(){t.revert("agf",e,i,n)})),p.appendChild(g),r.appendChild(p)}return r.appendChild(document.createTextNode(u)),r.appendChild(s),r.appendChild(document.createTextNode(u)),r.appendChild(l),r},restoreThisRevisionLink:function(e,a){void 0===a&&(a=!1),e="number"==typeof e?e:mw.config.get(e);var i=a?"span":"div",n=document.createElement(i);n.setAttribute("id","tw-revert-to-"+e),n.style.fontWeight="bold";var o=t.linkBuilder.buildLink("SaddleBrown",I("restore-revision"));return $(o).click((function(){t.revertToRevision(e)})),a&&n.appendChild(document.createTextNode(" ")),n.appendChild(o),n}},t.addLinks={contributions:function(){var e=!!$("#sp-contributions-footer-anon-range")[0];if(mw.config.exists("wgRelevantUserName")||e){var a=mw.config.get("wgRelevantUserName");if(-1!==q("showRollbackLinks").indexOf("contribs")||mw.config.get("wgUserName")!==a&&-1!==q("showRollbackLinks").indexOf("others")||mw.config.get("wgUserName")===a&&-1!==q("showRollbackLinks").indexOf("mine"))$("#mw-content-text").find("ul li:has(span.mw-uctop):has(.mw-changeslist-diff)").each((function(i,n){var o=$(n).find(".mw-contributions-title").text();e&&(a=$(n).find(".mw-userlink:not(.history-deleted)").text()),n.appendChild(t.linkBuilder.rollbackLinks(a,!0,n.dataset.mwRevid,o))}))}},recentchanges:function(){if(-1!==q("showRollbackLinks").indexOf("recent")){var e=$(".mw-changeslist .mw-changeslist-last.mw-changeslist-src-mw-edit");(e=e.not(".mw-rcfilters-ui-highlights-enhanced-toplevel").find(".mw-changeslist-line-inner, td.mw-enhanced-rc-nested")).each((function(e,a){var i=$(a).find(".mw-userlink:not(.history-deleted)").text(),n=$(a).find(".mw-changeslist-diff").attr("href"),o=mw.util.getParamValue("diff",n),r=a.dataset.targetPage;a.appendChild(t.linkBuilder.rollbackLinks(i,!0,o,r))}))}},history:function(){if(-1!==q("showRollbackLinks").indexOf("history")){var e=$("#pagehistory li").toArray();if(!$(".mw-firstlink").length)for(var a=e.shift(),i=$(a).find(".mw-userlink:not(.history-deleted)").text(),n=0;n<e.length;n++)if($(e[n]).find(".mw-userlink").text()!==i){a.appendChild(t.linkBuilder.rollbackLinks(i,!0));break}e.forEach((function(e){var a=e.querySelector(".mw-changeslist-date").href,i=parseInt(mw.util.getParamValue("oldid",a),10);isNaN(i)||e.appendChild(t.linkBuilder.restoreThisRevisionLink(i,!0))}))}},diff:function(){var e=function(e){var t=$("#mw-diff-"+e+"2 .mw-usertoollinks a").first();if(t.length){var a="vanarticle="+mw.util.rawurlencode(Morebits.pageNameNorm)+"&noautowarn=true";a+="&vanarticlerevid=",a+="otitle"===e?mw.config.get("wgDiffOldId"):mw.config.get("wgDiffNewId");var i=t.attr("href");-1===i.indexOf("?")?t.attr("href",i+"?"+a):t.attr("href",i+"&"+a)}};if(e("otitle"),mw.config.get("wgDiffOldId")&&mw.config.get("wgDiffOldId")!==mw.config.get("wgDiffNewId")){var a=document.getElementById("mw-diff-otitle1").parentNode;a.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgDiffOldId"),a.firstChild)}if(e("ntitle"),document.getElementById("differences-nextlink")){var i=document.getElementById("mw-diff-ntitle1").parentNode;i.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgDiffNewId"),i.firstChild)}else if(-1!==q("showRollbackLinks").indexOf("diff")&&mw.config.get("wgDiffOldId")&&(mw.config.get("wgDiffOldId")!==mw.config.get("wgDiffNewId")||document.getElementById("differences-prevlink"))){var n=$("#mw-diff-ntitle2").find(".mw-userlink")[0].textContent,o=document.getElementById("mw-diff-ntitle1").parentNode;o.insertBefore(t.linkBuilder.rollbackLinks(n),o.firstChild)}},oldid:function(){var e=document.getElementById("mw-revision-info").parentNode;e.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgRevisionId"),e.firstChild)}},t.callbacks={toRevision:function(e){var a=prompt(I("prompt-reason-restore"),"");if(null!==a){var i=t.formatSummary(I("restore-summary",e.getRevisionID()),e.getRevisionUser(),a);e.setChangeTags(n.changeTags),e.setEditSummary(i),-1!==q("watchRevertedPages").indexOf("torev")&&e.setWatchlist(q("watchRevertedExpiry")),-1!==q("markRevertedPagesAsMinor").indexOf("torev")&&e.setMinorEdit(!0),Morebits.wiki.actionCompleted.redirect=e.getPageName(),Morebits.wiki.actionCompleted.notice=I("reversion-complete"),e.revert()}else e.getStatusElement().error(I("user-aborted"))},main:function(e){var a=e.getResponse().query.pages[0];if(a.actions.edit){var i=e.statelem,o=e.params,r=parseInt(a.lastrevid,10),s=a.revisions;if(s.length<1)i.error(I("no-revisions"));else{var l=s[0],d=l.user;if(r<o.revid)Morebits.status.error("Error",I("bad-revid",r));else{var c=o.user||I("hidden-user"),u=1;if(o.revid!==r)if(Morebits.status.warn("Warning",I("revid-mismatch",r,o.revid)),d===o.user||mw.util.isIPv6Address(o.user)&&Morebits.ip.get64(d)===Morebits.ip.get64(o.user))switch(o.type){case"vand":d!==o.user?Morebits.status.info("Info",I("latest-rev-same-64",c)):Morebits.status.info("Info",I("latest-rev-same-user",c));break;case"agf":return void Morebits.status.warn("Warning",I("latest-rev-other-user-goodfaith",c));default:return void Morebits.status.warn("Notice",I("latest-rev-other-user",c))}else{if(!("vand"===o.type&&-1!==t.trustedBots.indexOf(l.user)&&s.length>1&&s[1].revid===o.revid))return void Morebits.status.error("Error",I("latest-rev-reverted",d));Morebits.status.info("Info",I("latest-rev-bot",d)),u=2}else o.user=d,c=o.user||I("hidden-user");if(-1!==t.trustedBots.indexOf(o.user))switch(o.type){case"vand":Morebits.status.info("Info",I("bot-revert",c)),u=2,o.user=s[1].user,o.userHidden=!!s[1].userhidden;break;case"agf":return void Morebits.status.warn("Notice",I("bot-revert-goodfaith",c));default:confirm(I("bot-revert-prompt"))?(Morebits.status.info("Info",I("bot-revert-previous",c)),u=2,o.user=s[1].user,o.userHidden=!!s[1].userhidden,c=o.user||I("hidden-user")):Morebits.status.warn("Notice",I("bot-revert-selected",c))}for(var p=!1,g=0,f=!1,m=u;m<s.length;++m)if(++g,s[m].user!==o.user){if(mw.util.isIPv6Address(s[m].user)&&Morebits.ip.get64(s[m].user)===Morebits.ip.get64(o.user)){f||(new Morebits.status("Note",I("ipv6-same-user")),f=!0);continue}p=m;break}if(p)if(g){var h,b,v=s[p],w=!1;if("vand"!==o.type&&g>1){if(!confirm(I("revert-multiple-prompt",c,g)))return void Morebits.status.info("Notice",I("stopping"));w=!0}switch(o.count=g,o.goodid=v.revid,o.gooduser=v.user,o.gooduserHidden=!!v.userhidden,i.status(I("revision-age",o.goodid,g,o.gooduserHidden?I("hidden-user"):o.gooduser)),o.type){case"agf":if(null===(b=prompt(I("summary-prompt"),"")))return void i.error(I("user-aborted"));w=!0,h=t.formatSummary(I("goodfaith-summary"),o.userHidden?null:o.user,b);break;case"vand":h=t.formatSummary(I("vandalism-summary",o.count,o.gooduserHidden?I("hidden-user"):o.gooduser),o.userHidden?null:o.user);break;default:if(q("offerReasonOnNormalRevert")){if(null===(b=prompt(I("summary-prompt"),"")))return void i.error(I("user-aborted"));w=!0}h=t.formatSummary(I("normal-summary",o.count),o.userHidden?null:o.user,b)}if(!(q("confirmOnFluff")||q("confirmOnMobileFluff")&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobile|Opera Mini/i.test(navigator.userAgent))||w||confirm(I("revert-confirm"))){t.skipTalk||-1===q("openTalkPage").indexOf(o.type)||o.userHidden||mw.config.get("wgUserName")===o.user||(o.notifyUser=!0,o.vantimestamp=l.timestamp),t.flaggedRevsEnabled&&(Morebits.userIsInGroup("reviewer")||Morebits.userIsSysop)&&a.flagged&&a.flagged.stable_revid>=o.goodid&&a.flagged.pending_since&&(o.reviewRevert=!0,o.csrftoken=e.getResponse().query.tokens.csrftoken);var y=new Morebits.wiki.page(o.pagename,I("saving-reverted"));y.setEditSummary(h),y.setChangeTags(n.changeTags),y.setOldID(o.goodid),y.setCallbackParameters(o),-1!==q("watchRevertedPages").indexOf(o.type)&&y.setWatchlist(q("watchRevertedExpiry")),-1!==q("markRevertedPagesAsMinor").indexOf(o.type)&&y.setMinorEdit(!0),t.rollbackInPlace||(Morebits.wiki.actionCompleted.redirect=o.pagename),Morebits.wiki.actionCompleted.notice=I("revert-complete"),y.revert(t.callbacks.complete)}else i.error(I("user-aborted"))}else Morebits.status.error("Error",I("no-edits-revert"));else i.error(I("no-previous-revision",c,q("revertMaxRevisions")))}}}else e.statelem.error(I("cant-edit-protected"))},complete:function(e){var t=e.getCallbackParameters();if(t.notifyUser&&!t.userHidden){Morebits.status.info("Info",I("opening-talk",t.user));var a={title:"User talk:"+t.user,action:"edit",preview:"yes",vanarticle:t.pagename.replace(/_/g," "),vanarticlerevid:t.revid,vantimestamp:t.vantimestamp,vanarticlegoodrevid:t.goodid,type:t.type,count:t.count};switch(q("userTalkPageMode")){case"tab":window.open(mw.util.getUrl("",a),"_blank");break;case"blank":window.open(mw.util.getUrl("",a),"_blank","location=no,toolbar=no,status=no,directories=no,scrollbars=yes,width=1200,height=800");break;default:window.open(mw.util.getUrl("",a),"twinklewarnwindow"===window.name?"_blank":"twinklewarnwindow","location=no,toolbar=no,status=no,directories=no,scrollbars=yes,width=1200,height=800")}}if(t.reviewRevert){var i={action:"review",revid:e.getSaveResponse().edit.newrevid,token:t.csrftoken,comment:I("pcreview-comment")+n.summaryAd};new Morebits.wiki.api(I("pcreview-accepting"),i).post()}}},mw.config.get("wgIsProbablyEditable")?mw.config.get("wgDiffNewId")||mw.config.get("wgDiffOldId")?mw.hook("wikipage.diff").add((function(){t.addLinks.diff()})):"view"===mw.config.get("wgAction")&&mw.config.get("wgRevisionId")&&mw.config.get("wgCurRevisionId")!==mw.config.get("wgRevisionId")?t.addLinks.oldid():"history"===mw.config.get("wgAction")&&mw.config.get("wgArticleId")&&t.addLinks.history():-1===mw.config.get("wgNamespaceNumber")&&(t.skipTalk=!q("openTalkPageOnAutoRevert"),t.rollbackInPlace=q("rollbackInPlace"),"Contributions"===mw.config.get("wgCanonicalSpecialPageName")?t.addLinks.contributions():"Recentchanges"!==mw.config.get("wgCanonicalSpecialPageName")&&"Recentchangeslinked"!==mw.config.get("wgCanonicalSpecialPageName")||mw.hook("wikipage.content").add((function(e){e.is("div")&&t.addLinks.recentchanges()}))),t}return p(t,e),t.prototype.disableLinks=function(e){$(e).children().each((function(e,t){t.innerHTML=t.textContent,$(t).css("font-weight","normal").css("color","darkgray")}))},t.prototype.revert=function(e,t,a,i){var n=this;mw.util.isIPv6Address(t)&&(t=Morebits.ip.sanitizeIPv6(t));var o=i||mw.config.get("wgPageName"),r=a||mw.config.get("wgCurRevisionId");if(this.rollbackInPlace){var s=document.createElement("span");mw.notify(s,{autoHide:!1,title:"Rollback on "+i,tag:"twinklefluff_"+a}),Morebits.status.init(s)}else Morebits.status.init(document.getElementById("mw-content-text")),$("#catlinks").remove();var l={type:e,user:t,userHidden:!t,pagename:o,revid:r},d={action:"query",prop:["info","revisions"].concat(this.flaggedRevsEnabled?"flagged":[]),titles:o,inprop:"watched",intestactions:"edit",rvlimit:q("revertMaxRevisions"),rvprop:["ids","timestamp","user"],curtimestamp:"",meta:"tokens",type:"csrf",format:"json"},c=new Morebits.wiki.api(I("fetching-data"),d);c.params=l,c.post().then((function(e){return n.callbacks.main(e)}))},t.prototype.revertToRevision=function(e){Morebits.status.init(document.getElementById("mw-content-text"));var t=new Morebits.wiki.page(mw.config.get("wgPageName"),I("saving-reverted"));t.setOldID(e),t.load(this.callbacks.toRevision)},t.prototype.formatSummary=function(e,t,a){var i=e;if(a&&(i+=": "+Morebits.string.toUpperCaseFirstChar(a)),/%USER%/.test(e))if(t){var n=unescape(encodeURIComponent(i.replace("%USER%",""))).length,o="[[Special:Contributions/"+t+"|"+t+"]]",r=unescape(encodeURIComponent(o)).length;if(n+r<=499){var s=" ([[User talk:"+t+"|talk]])";i=n+r+unescape(encodeURIComponent(s)).length<=499?Morebits.string.safeReplace(i,"%USER%",o+s):Morebits.string.safeReplace(i,"%USER%",o)}else i=Morebits.string.safeReplace(i,"%USER%",t)}else i=Morebits.string.safeReplace(i,"%USER%",I("hidden-user"));return i},t.moduleName="fluff",t}(_)),K=function(e){function t(t,a){var i=e.call(this,t,a)||this;if(n.changeTags.length)i.setChangeTags(n.changeTags);else{var o=i.setEditSummary.bind(i);i.setEditSummary=function(e){o(e+n.summaryAd)}}return["load","lookupCreation","save","append","prepend","newSection","deletePage","undeletePage","protect","stabilize"].forEach((function(e){var t=i[e].bind(i);i[e]=function(e,a){var i=this,n=$.Deferred();return t((function(t){e&&e.call(i,i),n.resolve(t instanceof Morebits.wiki.api?t:i)}),(function(e){if(a&&a.call(i,i),e instanceof Morebits.wiki.api){var t=new b(e.getErrorCode()+": "+e.getErrorText());t.code=e.getErrorCode(),t.info=e.getErrorText(),t.response=e.getResponse(),n.reject(t)}else n.reject(new Error(e))})),n}})),i}return p(t,e),t}(Morebits.wiki.page),J=function(e){function t(t,a){var i=e.call(this,t,a)||this;return i.setScriptName(n.scriptName),i}return p(t,e),t.prototype.setFooterLinks=function(e){var t=this;e&&T(e).forEach((function(e){t.addFooterLink(e[0],e[1])}))},t}(Morebits.simpleWindow),Z=function(e){function t(){var a=e.call(this)||this;if(a.moduleName="XFD",a.portletName="XFD",a.portletId="twinkle-xfd",a.windowTitle="Start a deletion discussion (XfD)",mw.config.get("wgNamespaceNumber")<0||!mw.config.get("wgArticleId")||6===mw.config.get("wgNamespaceNumber")&&document.getElementById("mw-sharedupload"))return a;for(var i=0,n=t.modeList;i<n.length;i++){var o=n[i];if(o.isDefaultChoice()){a.mode=new o;break}}return a.portletTooltip=a.getMenuTooltip(),a.addMenu(),a}return p(t,e),t.prototype.getMenuTooltip=function(){return this.mode?this.mode.getMenuTooltip():"Start a deletion discussion"},t.prototype.makeWindow=function(){var e=new J(700,400);e.setTitle(this.windowTitle),e.setFooterLinks(this.footerlinks),this.makeForm(e)},t.prototype.makeForm=function(e){var a=this;this.Window=e;var i=new Morebits.quickForm((function(){a.mode.evaluate()}));i.append({type:"select",name:"venue",label:I("xfd-venue-label"),tooltip:I("xfd-venue-tooltip"),event:this.onCategoryChange.bind(this),list:t.modeList.map((function(e){return{type:"option",label:e.venueLabel,selected:a.mode instanceof e,value:e.venueCode}}))}),i.append({type:"div",id:"wrong-venue-warn",style:"color: red; font-style: italic"}),i.append({type:"checkbox",list:[{label:I("notify-creator-label"),value:"notify",name:"notifycreator",tooltip:I("notify-creator-tooltip"),checked:!0}]}),this.fieldset=i.append({type:"field",label:"Work area",name:"work_area"});var n=document.createElement("a");$(n).click((function(){a.mode.preview(a.result)})),n.style.cursor="pointer",n.textContent="Preview",i.append({type:"div",id:"xfdpreview",label:[n]}),i.append({type:"div",id:"twinklexfd-previewbox",style:"display: none"}),i.append({type:"submit"}),this.result=i.render(),e.setContent(this.result),e.display(),this.result.previewer=new Morebits.wiki.preview(document.getElementById("twinklexfd-previewbox"));var o=document.createEvent("Event");return o.initEvent("change",!0,!0),this.result.venue.dispatchEvent(o),i},t.prototype.onCategoryChange=function(e){var a=e.target.value,i=e.target.form,n=t.modeList.filter((function(e){return e.venueCode===a}))[0];if(!n)throw new Error(I("bad-venue",a));this.mode=new n,this.mode.result=this.result,this.mode.Window=this.Window,$("#wrong-venue-warn").text(this.mode.getVenueWarning()||""),i.previewer.closePreview();var o=this.mode.generateFieldset().render();$(this.result).find("fieldset[name=work_area]").replaceWith(o),this.mode.postRender(o)},t.userPreferences=function(){return{title:"XfD (deletion discussions)",preferences:[{name:"logXfdNominations",label:I("pref-logxfdnominations-label"),helptip:I("pref-logxfdnominations-tooltip"),type:"boolean",default:!1},{name:"xfdLogPageName",label:I("pref-xfdlogpagename-label"),helptip:I("pref-xfdlogpagename-tooltip"),type:"string",default:"XfD log"},{name:"xfdWatchPage",label:I("pref-xfdwatchpage-label"),helptip:I("pref-xfdwatchpage-tooltip"),type:"enum",enumValues:j.watchlistEnums,default:"default"},{name:"xfdWatchDiscussion",label:I("pref-xfdwatchdiscussion-label"),helptip:I("pref-xfdwatchdiscussion-tooltip"),type:"enum",enumValues:j.watchlistEnums,default:"default"},{name:"xfdWatchList",label:I("pref-xfdwatchlist-label"),helptip:I("pref-xfdwatchlist-tooltip"),type:"enum",enumValues:j.watchlistEnums,default:"no"},{name:"xfdWatchUser",label:I("pref-xfdwatchuser-label"),helptip:I("pref-xfdwatchuser-tooltip"),type:"enum",enumValues:j.watchlistEnums,default:"default"}]}},t.moduleName="XFD",t}(_),Q=function(){function e(){}return e.isDefaultChoice=function(){return!1},e.prototype.getMenuTooltip=function(){return"Nominate page for deletion"},e.prototype.generateFieldset=function(){return this.fieldset=new Morebits.quickForm.element({type:"field",label:this.getFieldsetLabel(),name:"work_area"}),this.fieldset},e.prototype.appendReasonArea=function(){this.fieldset.append({type:"textarea",name:"reason",label:I("reason"),value:$(this.result).find("textarea").val()||"",tooltip:I("reason-tooltip")})},e.prototype.postRender=function(e){},e.prototype.getVenueWarning=function(){},e.prototype.preprocessParams=function(){},e.prototype.preview=function(e){this.params=Morebits.quickForm.getInputData(e),this.preprocessParams(),this.showPreview(e)},e.prototype.showPreview=function(e){var t=this.getDiscussionWikitext();e.previewer.beginRender(t,"WP:TW")},e.prototype.evaluate=function(){this.params=Morebits.quickForm.getInputData(this.result),this.preprocessParams(),this.validateInput()&&(Morebits.simpleWindow.setButtonsEnabled(!1),Morebits.status.init(this.result),this.tm=new Morebits.taskManager(this))},e.prototype.validateInput=function(){return!0},e.prototype.printReasonText=function(){Morebits.status.printUserText(this.params.reason,I("deletion-reason-here"))},e.prototype.redirectToDiscussion=function(){var e=this.params.discussionpage||this.params.logpage;Morebits.status.actionCompleted(I("nomination-complete-redirect")),setTimeout((function(){window.location.href=mw.util.getUrl(e)}),Morebits.wiki.actionCompleted.timeOut)},e.prototype.determineDiscussionPage=function(){var e=this,t=this.params;return new C(I("looking-old-nominations"),{action:"query",list:"allpages",apprefix:new mw.Title(this.discussionPagePrefix).getMain()+"/"+Morebits.pageNameNorm,apnamespace:4,apfilterredir:"nonredirects",aplimit:"max",format:"json"}).post().then((function(a){var i=a.getResponse().query.allpages;if(i.length<=0)t.numbering=t.number="";else{for(var n=0,o=new RegExp("^"+Morebits.string.escapeRegExp(e.discussionPagePrefix+"/"+Morebits.pageNameNorm)+"\\s*\\(\\s*(\\d+)(?:(?:th|nd|rd|st) nom(?:ination)?)?\\s*\\)\\s*$"),r=0;r<i.length;++r){var s=i[r].title;if(s!==e.discussionPagePrefix+"/"+Morebits.pageNameNorm){var l=o.exec(s);l&&(n=Math.max(n,Number(l[1])))}else n=Math.max(n,1)}t.number=function(e){switch(e){case 1:return"";case 2:return"2nd";case 3:return"3rd";default:return e+"th"}}(n+1),t.numbering=n>0?" ("+t.number+" nomination)":""}t.discussionpage=e.discussionPagePrefix+"/"+Morebits.pageNameNorm+t.numbering,a.getStatusElement().info("next in order is "+t.discussionpage)}))},e.prototype.autoEditRequest=function(e){var t=this.params,a=new mw.Title(e.getPageName()).getTalkPage().toText();if(a===e.getPageName())return e.getStatusElement().error(I("protected-no-editreq")),$.Deferred().reject();e.getStatusElement().warn(I("protected-editreq"));var i="{{subst:Xfd edit protected|page="+e.getPageName()+"|discussion="+t.discussionpage+"|tag=<no"+"wiki>"+t.tagText+"</no"+"wiki>}}",n=new K(a,I("posting-editreq"));return n.setNewSectionTitle(I("xfd-editreq-title",t.venue)),n.setNewSectionText(i),n.setCreateOption("recreate"),n.setWatchlist(q("xfdWatchPage")),n.setFollowRedirect(!0),n.newSection().catch((function(){return n.getStatusElement().warn(I("xfd-editreq-failed")),$.Deferred().reject()}))},e.prototype.fetchCreatorInfo=function(){var e=this,t=new K(Morebits.pageNameNorm,I("fetching-creator"));return t.setLookupNonRedirectCreator(this.params.lookupNonRedirectCreator),t.lookupCreation().then((function(){e.params.initialContrib=t.getCreator(),t.getStatusElement().info("Found "+t.getCreator())}))},e.prototype.notifyTalkPage=function(e,t){var a=this.params,i=mw.Title.newFromText(e,c),n=i.getNamespaceId(),o=i.getRelativeText(c);t=t||new Morebits.status(I("notifying-creator",o));var r=i.toText();if(3===n&&o===mw.config.get("wgUserName"))return a.initialContrib=null,t.warn(I("notify-self-skip",o)),$.Deferred().resolve();var s=new K(r,t);return s.setAppendText("\n\n"+this.getNotifyText()),s.setEditSummary(this.getNotifyEditSummary()),s.setCreateOption("recreate"),"RfD"===a.venue&&3!==n?s.setWatchlist(q("xfdWatchRelated")):s.setWatchlist(q("xfdWatchUser")),s.setFollowRedirect(!0,!1),s.append().catch((function(){a.initialContrib=null}))},e.prototype.getNotifyText=function(){return"{{subst:"+this.params.venue+" notice|1="+Morebits.pageNameNorm+"}} ~~~~"},e.prototype.getNotifyEditSummary=function(){return"Notification: [["+this.params.discussionpage+"|listing]] of [[:"+Morebits.pageNameNorm+"]] at [[WP:"+this.getFieldsetLabel()+"]]."},e.prototype.notifyCreator=function(){return this.params.notifycreator?this.notifyTalkPage(this.params.initialContrib):(this.params.intialContrib=null,$.Deferred().resolve())},e.prototype.addToLog=function(){var e=this.params;if(!q("logXfdNominations")||-1!==q("noLogOnXfdNomination").indexOf(e.venue.toLowerCase()))return $.Deferred().resolve();var t=new Morebits.userspaceLogger(q("xfdLogPageName"));return t.initialText="This is a log of all [[WP:XFD|deletion discussion]] nominations made by this user using [[WP:TW|Twinkle]]'s XfD module.\n\nIf you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and nominate this page for speedy deletion under [[WP:CSD#U1|CSD U1]]."+(Morebits.userIsSysop?"\n\nThis log does not track XfD-related deletions made using Twinkle.":""),t.changeTags=n.changeTags,t.log(this.getUserspaceLoggingText(),this.getUserspaceLoggingEditSummary())},e.prototype.getUserspaceLoggingEditSummary=function(){return"Logging "+this.params.venue+" nomination of [[:"+Morebits.pageNameNorm+"]]."},e.prototype.getUserspaceLoggingText1=function(){return"\n\t\t\t# [[:{{subst:FULLPAGENAME}}]]: {{subst:#ifeq:{{subst:NAMESPACENUMBER}}|6| ([{{fullurl:Special:Log|page={{urlencode:{{subst:FULLPAGENAME}}}}}} log])|}} nominated at [[WP:{{subst:uc:$1}}|$1]]{{subst:#if:$2|; notified {{user|1=$2}}|}}\n\t\t"},e.prototype.getUserspaceLoggingText=function(){var e=this.params,t=mw.config.get("wgNamespaceNumber")===l?" ([{{fullurl:Special:Log|page="+mw.util.wikiUrlencode(mw.config.get("wgPageName"))+"}} log])":"",a=e.discussionpage?"[["+e.discussionpage+"|nominated]]":"nominated",i="# [[:"+Morebits.pageNameNorm+"]]:"+t+" "+a+" at [[WP:"+e.venue+"|"+e.venue+"]]";return i+=this.getUserspaceLoggingExtraInfo(),e.initialContrib&&e.notifycreator&&(i+="; notified {{user|1="+e.initialContrib+"}}"),i+=" ~~~~~",e.reason&&(i+="\n#* '''Reason''': "+Morebits.string.formatReasonForLog(e.reason)),i},e.prototype.getUserspaceLoggingExtraInfo=function(){return""},e}();var ee;var te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.discussionPagePrefix="Wikipedia:Articles for deletion",t}return p(t,e),t.isDefaultChoice=function(){return 0===mw.config.get("wgNamespaceNumber")&&!Morebits.isPageRedirect()},t.prototype.getFieldsetLabel=function(){return"Articles for deletion"},t.prototype.getVenueWarning=function(){return 0!==mw.config.get("wgNamespaceNumber")?"AfD is generally appropriate only for articles.":mw.config.get("wgIsRedirect")?"Please use RfD for redirects.":void 0},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"div",label:"",style:"margin-bottom: 5px;"}),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude>",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't transclude. This option is not normally required."}]}),this.fieldset.append({type:"select",name:"xfdcat",label:"Choose what category this nomination belongs in:",list:[{type:"option",label:"Unknown",value:"?",selected:!0},{type:"option",label:"Media and music",value:"M"},{type:"option",label:"Organisation, corporation, or product",value:"O"},{type:"option",label:"Biographical",value:"B"},{type:"option",label:"Society topics",value:"S"},{type:"option",label:"Web or internet",value:"W"},{type:"option",label:"Games or sports",value:"G"},{type:"option",label:"Science and technology",value:"T"},{type:"option",label:"Fiction and the arts",value:"F"},{type:"option",label:"Places and transportation",value:"P"},{type:"option",label:"Indiscernible or unclassifiable topic",value:"I"},{type:"option",label:"Debate not yet sorted",value:"U"}]});var t=this.fieldset.append({type:"select",multiple:!0,name:"delsortCats",label:"Choose deletion sorting categories: ",tooltip:"Select a few categories that are specifically relevant to the subject of the article. Be as precise as possible; categories like People and USA should only be used when no other categories apply."});return $.each({People:["People","Academics and educators","Actors and filmmakers","Artists","Authors","Bands and musicians","Businesspeople","Politicians","Sportspeople","Women","Lists of people"],Arts:["Arts","Fictional elements","Science fiction and fantasy"],"Arts/Culinary":["Food and drink","Wine"],"Arts/Language":["Language","Academic journals","Bibliographies","Journalism","Literature","Logic","News media","Philosophy","Poetry"],"Arts/Performing":["Albums and songs","Dance","Film","Magic","Music","Radio","Television","Theatre","Video games"],"Arts/Visual arts":["Visual arts","Architecture","Fashion","Photography"],"Arts/Comics and animation":["Comics and animation","Anime and manga","Webcomics"],"Places of interest":["Museums and libraries","Shopping malls"],Topical:["Animal","Bilateral relations","Conservatism","Conspiracy theories","Crime","Disability","Discrimination","Entertainment","Ethnic groups","Events","Finance","Games","Health and fitness","History","Law","Military","Organizations","Paranormal","Piracy","Politics","Terrorism"],"Topical/Business":["Business","Advertising","Companies","Management","Products"],"Topical/Culture":["Beauty pageants","Fashion","Mythology","Popular culture","Sexuality and gender"],"Topical/Education":["Education","Fraternities and sororities","Schools"],"Topical/Religion":["Religion","Atheism","Bible","Buddhism","Christianity","Islam","Judaism","Hinduism","Paganism","Sikhism","Spirituality"],"Topical/Science":["Science","Archaeology","Astronomy","Behavioural science","Biology","Economics","Engineering","Environment","Geography","Mathematics","Medicine","Organisms","Psychiatry","Psychology","Social science"],"Topical/Sports":["Sports","American football","Baseball","Basketball","Bodybuilding","Boxing","Cricket","Cycling","Football","Golf","Handball","Horse racing","Ice hockey","Motorsport","Rugby union","Softball","Martial arts","Wrestling"],"Topical/Technology":["Technology","Aviation","Computing","Firearms","Internet","Software","Transportation","Websites"],"Wikipedia page type":["Disambiguations","Lists"],"Geographic/Africa":["Africa","Algeria","Democratic Republic of the Congo","Egypt","Ethiopia","Ghana","Kenya","Libya","Mauritius","Morocco","Nigeria","Somalia","South Africa","Zimbabwe"],"Geographic/Asia":["Asia","Afghanistan","Bangladesh","Brunei","Cambodia","China","Hong Kong","Indonesia","Japan","Korea","Laos","Malaysia","Maldives","Mongolia","Myanmar","Nepal","Pakistan","Philippines","Singapore","South Korea","Sri Lanka","Taiwan","Thailand","Vietnam"],"Geographic/Asia/Central Asia":["Central Asia","Kazakhstan","Kyrgyzstan","Tajikistan","Turkmenistan","Uzbekistan"],"Geographic/Asia/Middle East":["Middle East","Bahrain","Iran","Iraq","Israel","Jordan","Kuwait","Lebanon","Libya","Palestine","Qatar","Saudi Arabia","Syria","United Arab Emirates","Yemen"],"Geographic/Asia/India":["India","Kerala"],"Geographic/Europe":["Europe","Albania","Armenia","Austria","Azerbaijan","Belarus","Belgium","Bosnia and Herzegovina","Bulgaria","Croatia","Cyprus","Czech Republic","Denmark","Estonia","Finland","France","Georgia (country)","Germany","Greece","Hungary","Iceland","Ireland","Italy","Jersey","Kosovo","Latvia","Lithuania","Luxembourg","Malta","Moldova","Montenegro","Netherlands","North Macedonia","Norway","Poland","Portugal","Romania","Russia","Serbia","Slovakia","Slovenia","Spain","Sweden","Switzerland","Turkey","Ukraine","Yugoslavia"],"Geographic/Europe/United Kingdom":["United Kingdom","England","Northern Ireland","Scotland","Wales"],"Geographic/Oceania":["Oceania","Antarctica","Australia","New Zealand"],"Geographic/Americas/Canada":["Canada","Alberta","British Columbia","Manitoba","Nova Scotia","Ontario","Quebec"],"Geographic/Americas/Latin America":["Latin America","Caribbean","South America","Argentina","Barbados","Belize","Bolivia","Brazil","Chile","Colombia","Costa Rica","Cuba","Ecuador","El Salvador","Grenada","Guatemala","Haiti","Mexico","Nicaragua","Panama","Paraguay","Peru","Puerto Rico","Trinidad and Tobago","Uruguay","Venezuela"],"Geographic/Americas/USA":["United States of America","Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia (U.S. state)","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","Washington, D.C.","West Virginia","Wisconsin","Wyoming"],"Geographic/Unsorted":["Islands"]},(function(e,a){var i=t.append({type:"optgroup",label:e});a.forEach((function(e){i.append({type:"option",label:e,value:e})}))})),this.appendReasonArea(),this.fieldset},t.prototype.postRender=function(e){!function(e){if($(e).length)if(ee)$(e).html(ee);else{var t=new Morebits.wiki.preview($(e)[0]);t.beginRender("({{Find sources|"+Morebits.pageNameNorm+"}})","WP:AFD").then((function(){ee=t.previewbox.innerHTML,$(e).removeClass("morebits-previewbox")}))}}("#twinkle-xfd-findsources"),$(e).find("[name=delsortCats]").attr("data-placeholder","Select delsort pages").select2({width:"100%",matcher:Morebits.select2.matchers.optgroupFull,templateResult:Morebits.select2.highlightSearchMatches,language:{searching:Morebits.select2.queryInterceptor},templateSelection:function(e){return $("<a>").text(e.text).attr({href:mw.util.getUrl("Wikipedia:WikiProject_Deletion_sorting/"+e.text),target:"_blank"})}}),mw.util.addCSS(".select2-container--default.select2-container--focus .select2-selection--multiple { border: 1px solid #aaa; }.select2-results .select2-results__option { padding-top: 1px; padding-bottom: 1px; }.select2-results .select2-results__group { padding-top: 1px; padding-bottom: 1px; } .select2-container .select2-dropdown .select2-results { font-size: 13px; }.select2-container .selection .select2-selection__rendered { font-size: 13px; }.select2-selection__choice__remove { font-size: 130%; }")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.checkPage,[]),this.tm.add(this.determineDiscussionPage,[]),this.tm.add(this.createDiscussionPage,[this.checkPage,this.determineDiscussionPage],this.printReasonText),this.tm.add(this.tagPage,[this.checkPage,this.createDiscussionPage]),this.tm.add(this.addToList,[this.createDiscussionPage]),this.tm.add(this.addToDelsortLists,[this.createDiscussionPage]),this.tm.add(this.patrolPage,[this.checkPage]),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.createDiscussionPage,this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.preprocessParams=function(){this.params.lookupNonRedirectCreator=!0},t.prototype.checkPage=function(){var e=this,t=new K(mw.config.get("wgPageName"),"Adding deletion tag to article");return t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement();if(e.params.articleLoadTime=t.getLoadTime(),!t.exists())return i.error("It seems that the page doesn't exist; perhaps it has already been deleted"),$.Deferred().reject();var n=a.replace(/<!--.*AfD.*\n\{\{(?:Article for deletion\/dated|AfDM).*\}\}\n<!--.*(?:\n<!--.*)?AfD.*(?:\s*\n)?/g,"");if(a!==n){if(!confirm("An AfD tag was found on this article. Maybe someone beat you to it. \nClick OK to replace the current AfD tag (not recommended), or Cancel to abandon your nomination."))return i.error("Article already tagged with AfD tag, and you chose to abort"),window.location.reload(),$.Deferred().reject();t.setPageText(n)}return t}))},t.prototype.tagPage=function(e){var t=this.params;if(t.tagText=(t.noinclude?"<noinclude>{{":"{{")+(""===t.number?"subst:afd|help=off":"subst:afdx|"+t.number+"|help=off")+(t.noinclude?"}}</noinclude>\n":"}}\n"),e.canEdit()){var a=e.getPageText(),i=(a=a.replace(/\{\{\s*(dated prod|dated prod blp|Prod blp\/dated|Proposed deletion\/dated|prod2|Proposed deletion endorsed|Userspace draft)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/gi,"")).replace(/\{\{\s*(db(-\w*)?|delete|(?:hang|hold)[- ]?on)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/gi,"");return a!==i&&confirm("A speedy deletion tag was found on this page. Should it be removed?")&&(a=i),a=new Morebits.wikitext.page(a).insertAfterTemplates(t.tagText,"short description|hatnote|main|correct title|dablink|distinguish|for|further|selfref|year dab|similar names|highway detail hatnote|broader|about(?:-distinguish| other people)?|other\\s?(?:hurricane(?: use)?s|people|persons|places|ships|uses(?: of)?)|redirect(?:-(?:distinguish|synonym|multi))?|see\\s?(?:wiktionary|also(?: if exists)?)").getText(),e.setPageText(a),e.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),e.setWatchlist(q("xfdWatchPage")),e.setCreateOption("nocreate"),e.save()}return this.autoEditRequest(e)},t.prototype.getDiscussionWikitext=function(){var e=this.params;return y("subst:afd2",{text:Morebits.string.formatReasonText(e.reason,!0),pg:Morebits.pageNameNorm,cat:e.xfdcat})+e.delsortCats.map((function(e){return"\n{{subst:delsort|"+e+"|~~~~}}"})).join("")},t.prototype.createDiscussionPage=function(){var e=this,t=this.params,a=new K(t.discussionpage,"Creating article deletion discussion page");return a.load().then((function(){return a.setPageText(e.getDiscussionWikitext()),a.setEditSummary("Creating deletion discussion page for [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("createonly"),a.save()}))},t.prototype.addToList=function(){var e=this.params,t=new Morebits.date(e.articleLoadTime),a=new K("Wikipedia:Articles for deletion/Log/"+t.format("YYYY MMMM D","utc"),"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var t,i=a.getStatusElement(),n="{{subst:afd3|pg="+Morebits.pageNameNorm+e.numbering+"}}\n";if(a.exists()){var o=a.getPageText()+"\n";if((t=o.replace(/(<!-- Add new entries to the TOP of the following list -->\n+)/,"$1"+n))===o){var r=document.createElement("a");return r.setAttribute("href",mw.util.getUrl("Wikipedia:Twinkle/Fixing AFD")+"?action=purge"),r.appendChild(document.createTextNode("How to fix AFD")),i.error(["Could not find the target spot for the discussion. To fix this problem, please see ",r,"."]),$.Deferred().reject()}}else t="{{subst:AfD log}}\n"+n;return a.setPageText(t),a.setEditSummary("Adding [[:"+e.discussionpage+"]]."),a.setWatchlist(q("xfdWatchList")),a.setCreateOption("recreate"),a.save()}))},t.prototype.addToDelsortLists=function(){var e=this.params,t=e.delsortCats.map((function(t){var a=new K("Wikipedia:WikiProject Deletion sorting/"+t,"Adding to list of "+t+"-related deletion discussions");return a.setFollowRedirect(!0),a.load().then((function(){var t=e.discussionpage,i=a.getPageText().replace("directly below this line --\x3e","directly below this line --\x3e\n{{"+t+"}}");return a.setPageText(i),a.setEditSummary("Listing [[:"+t+"]]."),a.setCreateOption("nocreate"),a.save().catch((function(){}))}))}));return $.when.apply($,t)},t.prototype.patrolPage=function(){return q("markXfdPagesAsPatrolled")&&new K(Morebits.pageNameNorm).triage(),$.Deferred().resolve()},t.prototype.getNotifyText=function(){return y("subst:afd notice",{1:Morebits.pageNameNorm,order:this.params.numbering?"|order=&#32;"+this.params.numbering:""})+" ~~~~"},t.venueCode="AfD",t.venueLabel="AfD (Articles for deletion)",t}(Q),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getFieldsetLabel=function(){return"Templates for discussion"},t.prototype.getMenuTooltip=function(){return"Start a discussion for deleting or merging this template"},t.isDefaultChoice=function(){return-1!==[10,828].indexOf(mw.config.get("wgNamespaceNumber"))},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this);var t="Scribunto"===mw.config.get("wgPageContentModel")?"module":"template";return this.fieldset.append({type:"select",label:"Choose type of action wanted: ",name:"xfdcat",event:function(e){var a=e.target,i=a.form.tfdtarget;"TfM"!==a.value||i?($(Morebits.quickForm.getElementContainer(i)).remove(),i=null):(i=new Morebits.quickForm.element({name:"tfdtarget",type:"input",label:"Other "+t+" to be merged: ",tooltip:"Required. Should not include the "+Morebits.string.toUpperCaseFirstChar(t)+": namespace prefix.",required:!0}),a.parentNode.appendChild(i.render()))},list:[{type:"option",label:"Deletion",value:"TfD",selected:!0},{type:"option",label:"Merge",value:"TfM"}]}),this.fieldset.append({type:"select",name:"templatetype",label:"Deletion tag display style: ",tooltip:"Which <code>type=</code> parameter to pass to the TfD tag template.",list:"module"===t?[{type:"option",value:"module",label:"Module",selected:!0}]:[{type:"option",value:"standard",label:"Standard",selected:!0},{type:"option",value:"sidebar",label:"Sidebar/infobox",selected:!!$(".infobox").length},{type:"option",value:"inline",label:"Inline template",selected:!!$(".mw-parser-output > p .Inline-Template").length},{type:"option",value:"tiny",label:"Tiny inline"}]}),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude> (for substituted templates only)",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't get substituted along with the template.",disabled:"module"===t,checked:!!$(".box-Subst_only").length}]}),this.fieldset.append({type:"checkbox",list:[{label:"Notify users of the template",value:"devpages",name:"devpages",tooltip:"A notification template will be sent to Twinkle, AWB, and RedWarn if this is true.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.tfdtarget&&(this.params.tfdtarget=w(this.params.tfdtarget)),this.params.scribunto="Scribunto"===mw.config.get("wgPageContentModel"),"TfM"===this.params.xfdcat&&(this.params.otherTemplateName=(this.params.scribunto?"Module:":"Template:")+this.params.tfdtarget)},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.tagPage],this.printReasonText),this.tm.add(this.watchModule,[]),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyOtherCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyDevs,[this.addToList]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){return"TfM"===this.params.xfdcat?this.tagPagesForMerge():this.tagPageForDeletion()},t.prototype.setLogPageAndDiscussionPage=function(e){var t=new Morebits.date(e);this.params.logpage="Wikipedia:Templates for discussion/Log/"+t.format("YYYY MMMM D","utc"),this.params.discussionpage=this.params.logpage+"#"+Morebits.pageNameNorm},t.prototype.tagPageForDeletion=function(){var e=this,t=this.params,a=new K(Morebits.pageNameNorm+(t.scribunto?"/doc":""),"Tagging "+(t.scribunto?"module documentation":"template")+" with deletion tag");return a.setFollowRedirect(!0),a.load().then((function(){e.setLogPageAndDiscussionPage(a.getLoadTime());var i=a.getPageText();return t.tagText="{{subst:template for discussion|help=off"+("standard"!==t.templatetype?"|type="+t.templatetype:"")+"}}","sanitized-css"===a.getContentModel()?t.tagText="/* "+t.tagText+" */":(t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>"),t.tagText+="standard"===t.templatetype||"sidebar"===t.templatetype?"\n":""),a.canEdit()&&-1!==["wikitext","sanitized-css"].indexOf(a.getContentModel())?(a.setPageText(t.tagText+i),a.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),a.setWatchlist(q("xfdWatchPage")),t.scribunto&&a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.tagPagesForMerge=function(){var e=this,t=this.params,a=t.scribunto?"/doc":"",i=t.scribunto?"module documentation":"template",n=new K(""+Morebits.pageNameNorm+a,"Tagging "+i+" with merge tag");n.setFollowRedirect(!0);var o=n.load().then((function(){return e.setLogPageAndDiscussionPage(n.getLoadTime()),e.tagForMerge(n,e.params)})),r=new K(""+t.otherTemplateName+a,"Tagging other "+i+" with merge tag");r.setFollowRedirect(!0);var s=r.load().then((function(){return e.setLogPageAndDiscussionPage(n.getLoadTime()),e.tagForMerge(r,$.extend({},t,{otherTemplateName:Morebits.pageNameNorm}))}));return $.when(o,s)},t.prototype.tagForMerge=function(e,t){var a=e.getPageText();return t.tagText="{{subst:tfm|help=off|"+("standard"!==t.templatetype?"type="+t.templatetype+"|":"")+"1="+t.otherTemplateName.replace(/^(?:Template|Module):/,"")+"}}","sanitized-css"===e.getContentModel()?t.tagText="/* "+t.tagText+" */":(t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>"),t.tagText+="standard"===t.templatetype||"sidebar"===t.templatetype?"\n":""),e.canEdit()&&-1!==["wikitext","sanitized-css"].indexOf(e.getContentModel())?(e.setPageText(t.tagText+a),e.setEditSummary("Listed for merging with [[:"+t.otherTemplateName+"]]; see [[:"+t.discussionpage+"]]."),e.setWatchlist(q("xfdWatchPage")),t.scribunto&&e.setCreateOption("recreate"),e.save()):this.autoEditRequest(e)},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's log");return a.setFollowRedirect(!0),a.load().then((function(){var i,n=a.getStatusElement(),o=e.getDiscussionWikitext();if(a.exists()){var r=a.getPageText();if((i=r.replace("--\x3e","--\x3e\n"+o))===r)return n.error("failed to find target spot for the discussion"),$.Deferred().reject()}else i="{{subst:TfD log}}\n"+o;return a.setPageText(i),a.setEditSummary("Adding "+("TfD"===t.xfdcat?"deletion nomination":"merge listing")+" of [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.notifyOtherCreator=function(){var e=this;if(!this.params.otherTemplateName)return $.Deferred().resolve();var t=new K(this.params.otherTemplateName,"Finding other page creator");t.lookupCreation().then((function(){var a=t.getCreator();if(t.getStatusElement().info("Found "+a),a!==e.params.initialContrib)return e.notifyTalkPage(a)}))},t.prototype.notifyDevs=function(){var e=this;if(!this.params.devpages)return $.Deferred().resolve();var t=mw.config.get("wgCategories");return $.when.apply($,T({"Templates used by Twinkle":"Wikipedia talk:Twinkle","Templates used by AutoWikiBrowser":"Wikipedia talk:AutoWikiBrowser","Templates used by RedWarn":"Wikipedia talk:RedWarn"}).filter((function(e){var a=e[0];e[1];return t.includes(a)})).map((function(t){t[0];var a=t[1];return e.notifyTalkPage(a,new Morebits.status("Notifying "+a+" of template nomination"))})))},t.prototype.watchModule=function(){var e=this.params;if(!e.scribunto)return $.Deferred().resolve();var t=q("xfdWatchPage");if(!("no"!==t&&("default"!==t||!!parseInt(mw.user.options.get("watchdefault"),10))))return $.Deferred().resolve();var a={action:"watch",titles:[mw.config.get("wgPageName")],token:mw.user.tokens.get("watchToken"),watchlistexpiry:"default"!==t&&"yes"!==t&&t};return"TfM"===e.xfdcat&&a.titles.push(e.otherTemplateName),new C("Adding Module to watchlist",a).post()},t.prototype.getDiscussionWikitext=function(){return y("subst:"+this.params.xfdcat+"2",{text:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),module:this.params.scribunto?"Module:":"",2:this.params.tfdtarget})},t.prototype.getNotifyText=function(){var e="{{subst:tfd notice";return"TfM"===this.params.xfdcat&&(e="\n{{subst:Tfm notice|2="+this.params.tfdtarget),e+="|1="+Morebits.pageNameNorm+"}} ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";if("TfM"===e.xfdcat&&(t+=" (merge)",e.tfdtarget)){var a="Scribunto"===mw.config.get("wgPageContentModel")?"Module:":"Template:";t+="; Other "+a.toLowerCase()+" [[",/^:?(?:template|module):/i.test(e.tfdtarget)||(t+=a),t+=e.tfdtarget+"]]"}return t},t.venueCode="TfD",t.venueLabel="TfD (Templates for discussion)",t}(Q),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return 6===mw.config.get("wgNamespaceNumber")},t.prototype.getFieldsetLabel=function(){return"Files for discussion"},t.prototype.getMenuTooltip=function(){return"Start a discussion for deleting this file"},t.prototype.getVenueWarning=function(){if(6!==mw.config.get("wgNamespaceNumber"))return"FFD is selected but this page doesn't look like a file!"},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.appendReasonArea(),this.fieldset},t.prototype.preview=function(e){var t=this;this.params=Morebits.quickForm.getInputData(e),this.preprocessParams(),this.fetchCreatorInfo().then((function(){t.showPreview(e)}))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.fetchCreatorInfo,this.tagPage],this.printReasonText),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Adding deletion tag to file page");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText(),n=new Morebits.date(a.getLoadTime()).format("YYYY MMMM D","utc");return t.logpage="Wikipedia:Files for discussion/"+n,t.discussionpage=t.logpage+"#"+Morebits.pageNameNorm,t.tagText="{{ffd|log="+n+"|help=off}}\n",a.canEdit()?(i=i.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi,""),a.setPageText(t.tagText+i),a.setEditSummary("Listed for discussion at [[:"+t.discussionpage+"]]."),a.setWatchlist(q("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var t=a.getPageText();return a.exists()||(t="{{subst:FfD log}}"),a.setPageText(t+"\n\n"+e.getDiscussionWikitext()),a.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return y("subst:ffd2",{Reason:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),Uploader:this.params.initialContrib})},t.venueCode="FfD",t.venueLabel="FfD (Files for discussion)",t}(Q),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return 14===mw.config.get("wgNamespaceNumber")||10===mw.config.get("wgNamespaceNumber")&&/-stub$/.test(Morebits.pageNameNorm)},t.prototype.getFieldsetLabel=function(){return"Categories for discussion"},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getVenueWarning=function(){if(-1===[10,14].indexOf(mw.config.get("wgNamespaceNumber")))return"CfD is only for categories and stub templates."},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this);var t=14===mw.config.get("wgNamespaceNumber");return this.fieldset.append({type:"select",label:"Choose type of action wanted: ",name:"xfdcat",list:t?[{type:"option",label:"Deletion",value:"CfD",selected:!0},{type:"option",label:"Merge",value:"CfM"},{type:"option",label:"Renaming",value:"CfR"},{type:"option",label:"Split",value:"CfS"},{type:"option",label:"Convert into article",value:"CfC"}]:[{type:"option",label:"Stub Deletion",value:"SfD-t",selected:!0},{type:"option",label:"Stub Renaming",value:"SfR-t"}],event:function(e){var a=e.target.value,i=e.target.form.cfdtarget,n=e.target.form.cfdtarget2;i.disabled="CfD"===a||"SfD-t"===a,t?("CfS"===a?Morebits.quickForm.setElementLabel(i,"Target categories: "):"CfC"===a?Morebits.quickForm.setElementLabel(i,"Target article: "):Morebits.quickForm.setElementLabel(i,"Target category: "),"CfS"===a?n?(n.disabled=!1,$(n).show()):((n=document.createElement("input")).setAttribute("name","cfdtarget2"),n.setAttribute("type","text"),n.setAttribute("required","true"),i.parentNode.appendChild(n)):($(n).prop("disabled",!0),$(n).hide())):Morebits.quickForm.setElementLabel(i,"Target stub template: ")}}),this.fieldset.append({type:"input",name:"cfdtarget",label:"Target category: ",disabled:!0,required:!0,value:""}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.cfdtarget&&(this.params.cfdtarget=w(this.params.cfdtarget)),this.params.cfdtarget2&&(this.params.cfdtarget2=w(this.params.cfdtarget2));this.params.action={CfD:"deletion","SfD-t":"deletion",CfM:"merging",CfR:"renaming","SfR-t":"renaming",CfS:"splitting",CfC:"conversion"}[this.params.xfdcat],this.params.stub=14!==mw.config.get("wgNamespaceNumber")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.tagPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging category with "+t.action+" tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=new Morebits.date(a.getLoadTime());t.logpage="Wikipedia:Categories for discussion/Log/"+i.format("YYYY MMMM D","utc"),t.discussionpage=t.logpage+"#"+Morebits.pageNameNorm;var n=a.getPageText();t.tagText=y("subst:"+t.xfdcat,{1:t.cfdtarget,2:t.cfdtarget2})+"\n";var o=(t.stub?"Stub template":"Category")+" being considered for "+t.action+("CfC"===t.xfdcat?" to an article":"")+"; see [[:"+t.discussionpage+"]].";return a.canEdit()?(a.setPageText(t.tagText+n),a.setEditSummary(o),a.setWatchlist(q("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var i,n=a.getStatusElement(),o=e.getDiscussionWikitext();if(a.exists()){var r=a.getPageText();if((i=r.replace("below this line --\x3e","below this line --\x3e\n"+o))===r)return n.error("failed to find target spot for the discussion"),$.Deferred().reject()}else i="{{subst:CfD log}}\n"+o;return a.setPageText(i),a.setEditSummary("Adding "+t.action+" nomination of [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return y("subst:"+this.params.xfdcat+"2",{text:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),2:this.params.cfdtarget,3:this.params.cfdtarget2})},t.prototype.getNotifyText=function(){return y("subst:cfd notice",{action:this.params.action,1:Morebits.pageNameNorm,stub:10===mw.config.get("wgNamespaceNumber")?"yes":null})+" ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";if(t+=" ("+e.xfdcat+")",e.cfdtarget){var a="s"===e.xfdcat.charAt(0)?"Template:":":Category:";t+="; "+e.action+" to [["+a+e.cfdtarget+"]]","CfS"===e.xfdcat&&e.cfdtarget2&&(t+=", [["+a+e.cfdtarget2+"]]")}return t},t.venueCode="CfD",t.venueLabel="CfD (Categories for discussion)",t}(Q),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getFieldsetLabel=function(){return"Categories for speedy renaming"},t.prototype.getVenueWarning=function(){if(-1===[10,14].indexOf(mw.config.get("wgNamespaceNumber")))return"CfD is only for categories and stub templates."},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"select",label:"C2 sub-criterion: ",name:"xfdcat",tooltip:"See WP:CFDS for full explanations.",list:[{type:"option",label:"C2A: Typographic and spelling fixes",value:"C2A",selected:!0},{type:"option",label:"C2B: Naming conventions and disambiguation",value:"C2B"},{type:"option",label:"C2C: Consistency with names of similar categories",value:"C2C"},{type:"option",label:"C2D: Rename to match article name",value:"C2D"},{type:"option",label:"C2E: Author request",value:"C2E"},{type:"option",label:"C2F: One eponymous article",value:"C2F"}]}),this.fieldset.append({type:"input",name:"cfdstarget",label:"New name: ",required:!0}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){var e,t,a;this.params.cfdstarget&&(this.params.cfdstarget=(e=this.params.cfdstarget,t=14,(a=mw.Title.newFromUserInput(e,t))?a.toText():e))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[],this.printReasonText),this.tm.add(this.addToLog,[this.addToList]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging category with rename tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText();return t.tagText="{{subst:cfr-speedy|1="+t.cfdstarget.replace(/^:?Category:/,"")+"}}\n",a.canEdit()?(a.setPageText(t.tagText+i),a.setEditSummary("Listed for speedy renaming; see [[WP:CFDS|Categories for discussion/Speedy]]."),a.setWatchlist(q("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=new K("Wikipedia:Categories for discussion/Speedy","Adding discussion to the list");return t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=a.replace("BELOW THIS LINE --\x3e","BELOW THIS LINE --\x3e\n"+e.getDiscussionWikitext());return n===a?(i.error("failed to find target spot for the discussion"),$.Deferred().reject()):(t.setPageText(n),t.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),t.setWatchlist(q("xfdWatchDiscussion")),t.setCreateOption("recreate"),t.save())}))},t.prototype.getDiscussionWikitext=function(){var e=this.params;return"* [[:"+Morebits.pageNameNorm+"]] to [[:"+e.cfdstarget+"]]\xa0\u2013 "+e.xfdcat+(e.reason?": "+Morebits.string.formatReasonText(e.reason):".")+" ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return t+=" ("+e.xfdcat+")",e.cfdstarget&&e.cfdstarget.length>9&&(t+="; New name: [[:"+e.cfdstarget+"]]"),t},t.venueCode="CfDS",t.venueLabel="CfDS (Categories for speedy renaming)",t}(Q),re=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.discussionPagePrefix="Wikipedia:Miscellany for deletion",t}return p(t,e),t.isDefaultChoice=function(){return-1===[0,6,10,14,828].indexOf(mw.config.get("wgNamespaceNumber"))||0===Morebits.pageNameNorm.indexOf("Template:User ",0)},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getFieldsetLabel=function(){return"Miscellany for deletion"},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude>",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't transclude. Select this option for userboxes."}]}),2!==mw.config.get("wgNamespaceNumber")&&3!==mw.config.get("wgNamespaceNumber")||!mw.config.exists("wgRelevantUserName")||this.fieldset.append({type:"checkbox",list:[{label:"Notify owner of userspace (if they are not the page creator)",value:"notifyuserspace",name:"notifyuserspace",tooltip:"If the user in whose userspace this page is located is not the page creator (for example, the page is a rescued article stored as a userspace draft), notify the userspace owner as well.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.userspaceOwner=mw.config.get("wgRelevantUserName")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.determineDiscussionPage,[]),this.tm.add(this.tagPage,[this.determineDiscussionPage]),this.tm.add(this.addToList,[this.determineDiscussionPage]),this.tm.add(this.createDiscussionPage,[this.determineDiscussionPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyUserspaceOwner,[this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator,this.notifyUserspaceOwner]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging page with deletion tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText();return t.tagText="{{"+(""===t.number?"mfd":"mfdx|"+t.number)+"|help=off}}",-1!==["javascript","css","sanitized-css"].indexOf(mw.config.get("wgPageContentModel"))?t.tagText="/* "+t.tagText+" */\n":(t.tagText+="\n",t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>")),a.canEdit()&&-1!==["wikitext","javascript","css","sanitized-css"].indexOf(a.getContentModel())?(a.setPageText(t.tagText+i),a.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),a.setWatchlist(q("xfdWatchPage")),a.setCreateOption("nocreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.createDiscussionPage=function(){var e=this,t=this.params,a=new K(t.discussionpage,"Creating deletion discussion page");return a.load().then((function(){return a.setPageText(e.getDiscussionWikitext()),a.setEditSummary("Creating deletion discussion page for [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("createonly"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return y("subst:mfd2",{text:Morebits.string.formatReasonText(this.params.reason,!0),pg:Morebits.pageNameNorm})},t.prototype.addToList=function(){var e=this.params,t=new K("Wikipedia:Miscellany for deletion","Adding discussion to today's list");return t.setPageSection(2),t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=new Morebits.date(t.getLoadTime()),o=n.format("===MMMM D, YYYY===\n","utc"),r=new RegExp(n.format("(===[\\s]*MMMM[\\s]+D,[\\s]+YYYY[\\s]*===)","utc")),s="{{subst:mfd3|pg="+Morebits.pageNameNorm+e.numbering+"}}";return r.test(a)?(i.info("Found today's section, proceeding to add new entry"),a=a.replace(r,"$1\n"+s)):(i.info("No section for today found, proceeding to create one"),a=a.replace("===",o+s+"\n\n===")),t.setPageText(a),t.setEditSummary("Adding [[:"+e.discussionpage+"]]."),t.setWatchlist(q("xfdWatchList")),t.setCreateOption("recreate"),t.save()}))},t.prototype.notifyUserspaceOwner=function(){var e=this.params;return e.notifyuserspace&&e.userspaceOwner!==e.initialContrib?this.notifyTalkPage(e.userspaceOwner,new Morebits.status("Notifying owner of userspace ("+e.userspaceOwner+")")):$.Deferred().resolve()},t.prototype.getNotifyText=function(){var e="{{subst:mfd notice";return this.params.numbering&&(e+="|order=&#32;"+this.params.numbering),e+="|1="+Morebits.pageNameNorm+"}} ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.notifyuserspace&&e.userspaceOwner&&e.userspaceOwner!==e.initialContrib&&(t+="; notified {{user|1="+e.userspaceOwner+"}}"),t},t.venueCode="mfD",t.venueLabel="MfD (Miscellany for deletion)",t}(Q),se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return!!mw.config.get("wgIsRedirect")||!!document.getElementById("softredirect")},t.prototype.getFieldsetLabel=function(){return"Redirects for discussion"},t.prototype.getMenuTooltip=function(){return"Nominate redirect to be deleted or retargeted"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.rfdtarget&&(t+="; Target: [[:"+e.rfdtarget+"]]",e.relatedpage&&(t+=" (notified)")),t},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Notify target page if possible",value:"relatedpage",name:"relatedpage",tooltip:"A notification template will be placed on the talk page of this redirect's target if this is true.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preview=function(e){var t=this;this.params=Morebits.quickForm.getInputData(e),this.findTarget().then((function(){t.showPreview(e)}))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.findTarget,[]),this.tm.add(this.tagPage,[this.findTarget]),this.tm.add(this.addToList,[this.findTarget,this.tagPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.notifyTargetTalk,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.findTarget=function(){var e=this,t=!!document.getElementById("softredirect"),a={action:"query",curtimestamp:!0,format:"json",titles:!t&&mw.config.get("wgPageName"),redirects:!t};return t&&(this.params.rfdtarget=document.getElementById("softredirect").textContent.replace(/^:+/,"")),new C("Finding target of redirect",a).post().then((function(a){var i=a.getResponse();e.params.curtimestamp=i.curtimestamp;var n=new Morebits.date(e.params.curtimestamp);if(e.params.logpage="Wikipedia:Redirects for discussion/Log/"+n.format("YYYY MMMM D","utc"),e.params.discussionpage=e.params.logpage+"#"+Morebits.pageNameNorm,!t){var o=i.query.redirects&&i.query.redirects[0].to;if(!o){var r="No target found. this page does not appear to be a redirect, aborting";return"history"===mw.config.get("wgAction")&&(r+=". If this is a soft redirect, try again from the content page, not the page history."),a.getStatusElement().error(r),$.Deferred().reject()}e.params.rfdtarget=o,e.params.section=i.query.redirects[0].tofragment}}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Adding deletion tag to redirect");return a.setFollowRedirect(!1),a.load().then((function(){var i=a.getPageText();return t.tagText="{{subst:rfd|"+(10===mw.config.get("wgNamespaceNumber")?"showontransclusion=1|":"")+"content=\n",a.canEdit()?(a.setPageText(t.tagText+i+"\n}}"),a.setEditSummary("Listed for discussion at [[:"+t.discussionpage+"]]."),a.setWatchlist(q("xfdWatchPage")),a.setCreateOption("nocreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.getDiscussionWikitext=function(){var e=this.params;return y("subst:rfd2",{text:(e.reason?Morebits.string.formatReasonText(e.reason):"")+" ~~~~",redirect:Morebits.pageNameNorm,target:e.rfdtarget&&e.rfdtarget+(e.section?"#"+e.section:"")})},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's log");return a.setFollowRedirect(!0),a.load().then((function(){var t,i=a.getStatusElement(),n=e.getDiscussionWikitext();if(a.exists()){var o=a.getPageText();if((t=o.replace(/(<!-- Add new entries directly below this line\.? -->)/,"$1\n"+n))===o)return i.error("failed to find target spot for the discussion"),$.Deferred().reject()}else t="{{subst:RfD log}}"+n;return a.setPageText(t),a.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(q("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.notifyTargetTalk=function(){if(!this.params.relatedpage)return $.Deferred().resolve();var e=new mw.Title(this.params.rfdtarget).getTalkPage(),t=new Morebits.status("Notifying target talk page","doing");return this.params.rfdtarget===mw.config.get("wgPageName")?(t.warn("Circular redirect; skipping target page notification"),$.Deferred().resolve()):document.getElementById("softredirect")?(t.warn("Soft redirect; skipping target page notification"),$.Deferred().resolve()):3===e.getNamespaceId()&&e.getNameText()===this.params.initialContrib?(t.warn("Target is initial contributor; skipping target page notification"),$.Deferred().resolve()):3===e.getNamespaceId()&&e.getNameText()===mw.config.get("wgUserName")?(t.warn("You ("+mw.config.get("wgUserName")+") are the target; skipping target page notification"),$.Deferred().resolve()):this.notifyTalkPage(e.toText(),t)},t.venueCode="RfD",t.venueLabel="RfD (Redirects for discussion)",t}(Q),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getFieldsetLabel=function(){return"Requested moves"},t.prototype.getVenueWarning=function(){if(14===mw.config.get("wgNamespaceNumber"))return"Please use CfD or CfDS for category renames."},t.prototype.generateFieldset=function(){var t=this;return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Uncontroversial technical request",value:"rmtr",name:"rmtr",tooltip:"Use this option when you are unable to perform this uncontroversial move yourself because of a technical reason (e.g. a page already exists at the new title, or the page is protected)",checked:!1,event:function(e){t.result.newname.required=e.target.checked}}]}),this.fieldset.append({type:"input",name:"newname",label:"New title: ",tooltip:"Required for technical requests. Otherwise, if unsure of the appropriate title, you may leave it blank."}),this.appendReasonArea(),this.fieldset},t.prototype.getDiscussionWikitext=function(){var e=new mw.Title(Morebits.pageNameNorm).getSubjectPage().toText(),t=this.params;return(t.rmtr?"{{subst:RMassist|1="+e+"|2="+t.newname:"{{subst:Requested move|current1="+e+"|new1="+t.newname)+"|reason="+t.reason+"}}"},t.prototype.preprocessParams=function(){this.params.discussionpage=this.params.rmtr?"Wikipedia:Requested moves/Technical requests":new mw.Title(Morebits.pageNameNorm).getTalkPage().toText()},t.prototype.showPreview=function(e){var t=this.getDiscussionWikitext();e.previewer.beginRender(t,this.params.discussionpage)},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.addToList,[],this.printReasonText),this.tm.add(this.addToLog,[this.addToList]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.addToList=function(){return this.params.rmtr?this.listAtRMTR():this.listAtTalk()},t.prototype.listAtTalk=function(){var e=this.params,t=new K(e.discussionpage,"Adding entry on talk page");return t.setAppendText("\n\n"+this.getDiscussionWikitext()),t.setFollowRedirect(!0),t.setEditSummary("Proposing move"+(e.newname?" to [[:"+e.newname+"]]":"")),t.setCreateOption("recreate"),t.setWatchlist(q("xfdWatchDiscussion")),t.append()},t.prototype.listAtRMTR=function(){var e=this,t=new K(this.params.discussionpage,"Adding entry at WP:RM/TR");return t.setFollowRedirect(!0),t.setPageSection(2),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=a.replace(/---- and enter on a new line.* -->/,"$&\n"+e.getDiscussionWikitext());return a===n?(i.error("failed to find target spot for the entry"),$.Deferred().reject()):(t.setPageText(n),t.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),t.save())}))},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.rmtr&&(t+=" (technical)"),e.newname&&(t+="; New name: [[:"+e.newname+"]]"),t},t.venueCode="RM",t.venueLabel="RM (Requested moves)",t}(Q);Z.modeList=[te,se,ne,oe,ae,ie,re,le];var de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.footerlinks={"About deletion discussions":"WP:XFD","XfD prefs":"WP:TW/PREF#xfd","Twinkle help":"WP:TW/DOC#xfd","Give feedback":"WT:TW"},t}return p(t,e),t.userPreferences=function(){var t=e.userPreferences.call(this);return t.preferences=t.preferences.concat([{name:"noLogOnXfdNomination",label:"Do not create a userspace log entry when nominating at this venue",type:"set",setValues:{afd:"AfD",tfd:"TfD",ffd:"FfD",cfd:"CfD",cfds:"CfD/S",mfd:"MfD",rfd:"RfD",rm:"RM"},default:[]},{name:"xfdWatchRelated",label:"Add the redirect's target page to watchlist (when notifying)",helptip:"This only applies for RfD, when leaving a notification on the talk page of the target of the redirect",type:"enum",enumValues:j.watchlistEnums,default:"default"},{name:"markXfdPagesAsPatrolled",label:"Mark page as patrolled/reviewed when nominating for AFD (if possible)",type:"boolean",default:!0}]),t},t}(Z),ce=function(e){function t(){var t=e.call(this)||this;return mw.config.get("wgNamespaceNumber")<0||!mw.config.get("wgArticleId")?t:(z(mw.util.getUrl(mw.config.get("wgPageName"),{diff:"cur",oldid:"prev"}),I("diff-last"),"twinkle-lastdiff",I("diff-last-tooltip")),mw.util.getParamValue("diff")?(z((function(){return t.evaluate(!1)}),I("diff-since"),"tw-since",I("diff-since-tooltip")),z((function(){return t.evaluate(!0)}),I("diff-sincemine"),"tw-sincemine",I("diff-sincemine-tooltip")),z(mw.util.getUrl(mw.config.get("wgPageName"),{diff:"cur",oldid:/oldid=(.+)/.exec($("#mw-diff-ntitle1").find("strong a").first().attr("href"))[1]}),I("diff-current"),"tw-curdiff",I("diff-current-tooltip")),t):t)}return p(t,e),t.prototype.evaluate=function(e){var t;if(e)t=mw.config.get("wgUserName");else{var a=document.getElementById("mw-diff-ntitle2");if(!a)return;t=$(a).find("a").first().text()}Morebits.status.init(document.getElementById("mw-content-text"));var i=new C("Grabbing data of initial contributor",{prop:"revisions",action:"query",titles:mw.config.get("wgPageName"),rvlimit:1,rvprop:["ids","user"],rvstartid:mw.config.get("wgCurRevisionId")-1,rvuser:t,format:"json"});i.post().then((function(e){var a=e.getResponse().query.pages[0].revisions,i=a&&a[0].revid;i?window.location.href=mw.util.getUrl(mw.config.get("wgPageName"),{diff:mw.config.get("wgCurRevisionId"),oldid:i}):e.getStatusElement().error(I("diff-error",t))})),i.post()},t.moduleName="Diff",t}(_),ue=function(e){function t(){var t=e.call(this)||this;return t.portletName="CSD",t.portletId="twinkle-csd",t.portletTooltip=Morebits.userIsSysop?"Delete page according to WP:CSD":"Request speedy deletion according to WP:CSD",t.windowTitle="Choose criteria for speedy deletion",t.addMenu(),t}return p(t,e),t.prototype.makeWindow=function(){var e=this;this.dialog=new J(q("speedyWindowWidth"),q("speedyWindowHeight")),this.dialog.setTitle(this.windowTitle),this.dialog.setFooterLinks(this.footerlinks),this.hasCSD=!!$("#delete-reason").length,this.makeFlatObject();var t=new Morebits.quickForm((function(t){return e.evaluate(t)}),"radioClick"===q("speedySelectionStyle")?"change":null);if(this.form=t,Morebits.userIsSysop){t.append({type:"checkbox",list:[{label:"Tag page only, don't delete",value:"tag_only",name:"tag_only",tooltip:"If you just want to tag the page, instead of deleting it now",checked:!(this.hasCSD||q("deleteSysopDefaultToDelete")),event:function(t){var a=t.target.form,i=t.target.checked;a.deleteTalkPage&&(a.deleteTalkPage.checked=!i&&q("deleteTalkPageOnDelete")),a.deleteRedirects.checked=!i,a.delmultiple.checked=!1,a.notify.checked=i,a.warnusertalk.checked=!i&&!e.hasCSD,a.multiple.checked=!1,a.requestsalt.checked=!1,e.modeChanged(a),t.stopPropagation()}}]});var a=t.append({type:"div",name:"delete_options"});a.append({type:"header",label:"Delete-related options"}),mw.config.get("wgNamespaceNumber")%2!=0||2===mw.config.get("wgNamespaceNumber")&&!/\//.test(mw.config.get("wgTitle"))||a.append({type:"checkbox",list:[{label:"Also delete talk page",value:"deleteTalkPage",name:"deleteTalkPage",tooltip:"This option deletes the page's talk page in addition. If you choose the F8 (moved to Commons) criterion, this option is ignored and the talk page is *not* deleted.",checked:q("deleteTalkPageOnDelete"),event:function(e){return e.stopPropagation()}}]}),a.append({type:"checkbox",list:[{label:"Also delete all redirects",value:"deleteRedirects",name:"deleteRedirects",tooltip:"This option deletes all incoming redirects in addition. Avoid this option for procedural (e.g. move/merge) deletions.",checked:q("deleteRedirectsOnDelete"),event:function(e){return e.stopPropagation()}},{label:"Delete under multiple criteria",value:"delmultiple",name:"delmultiple",tooltip:"When selected, you can select several criteria that apply to the page. For example, G11 and A7 are a common combination for articles.",event:function(t){e.modeChanged(t.target.form),t.stopPropagation()}},{label:"Notify page creator of page deletion",value:"warnusertalk",name:"warnusertalk",tooltip:"A notification template will be placed on the talk page of the creator, IF you have a notification enabled in your Twinkle preferences for the criterion you choose AND this box is checked. The creator may be welcomed as well.",checked:!this.hasCSD,event:function(e){return e.stopPropagation()}}]})}var i=t.append({type:"div",name:"tag_options"});Morebits.userIsSysop&&i.append({type:"header",label:"Tag-related options"}),i.append({type:"checkbox",list:[{label:"Notify page creator if possible",value:"notify",name:"notify",tooltip:"A notification template will be placed on the talk page of the creator, IF you have a notification enabled in your Twinkle preferences for the criterion you choose AND this box is checked. The creator may be welcomed as well.",checked:!Morebits.userIsSysop||!(this.hasCSD||q("deleteSysopDefaultToDelete")),event:function(e){return e.stopPropagation()}},{label:"Tag for creation protection (salting) as well",value:"requestsalt",name:"requestsalt",tooltip:"When selected, the speedy deletion tag will be accompanied by a {{salt}} tag requesting that the deleting administrator apply creation protection. Only select if this page has been repeatedly recreated.",event:function(e){return e.stopPropagation()}},{label:"Tag with multiple criteria",value:"multiple",name:"multiple",tooltip:"When selected, you can select several criteria that apply to the page. For example, G11 and A7 are a common combination for articles.",event:function(t){e.modeChanged(t.target.form),t.stopPropagation()}}]}),t.append({type:"div",id:"prior-deletion-count",style:"font-style: italic"}),t.append({type:"div",name:"work_area",label:"Failed to initialize the CSD module. Please try again, or tell the Twinkle developers about the issue."}),"radioClick"!==q("speedySelectionStyle")&&t.append({type:"submit",className:"tw-speedy-submit"}),this.result=t.render(),this.dialog.setContent(this.result),this.dialog.display(),this.modeChanged(this.result),this.priorDeletionCount()},t.prototype.priorDeletionCount=function(){var e={action:"query",format:"json",list:"logevents",letype:"delete",leaction:"delete/delete",letitle:mw.config.get("wgPageName"),leprop:"",lelimit:5};new C("Checking for past deletions",e).post().then((function(e){var t=e.getResponse(),a=t.query.logevents.length;if(a){var i=a+" previous deletion";a>1&&(i+="s",t.continue&&(i="More than "+i),a>=3&&$("#prior-deletion-count").css("color","red"));var n=Morebits.htmlNode("a","(logs)");n.setAttribute("href",mw.util.getUrl("Special:Log",{page:mw.config.get("wgPageName")})),n.setAttribute("target","_blank"),$("#prior-deletion-count").text(i+" "),$("#prior-deletion-count").append(n)}}))},t.prototype.getMode=function(){var e=this.result;return this.mode={isSysop:!!e.tag_only&&!e.tag_only.checked,isMultiple:e.tag_only&&!e.tag_only.checked?e.delmultiple.checked:e.multiple.checked,isRadioClick:"radioClick"===q("speedySelectionStyle")}},t.prototype.modeChanged=function(e){var t=this;this.getMode(),$("[name=delete_options]").toggle(this.mode.isSysop),$("[name=tag_options]").toggle(!this.mode.isSysop),$("button.tw-speedy-submit").text(this.mode.isSysop?"Delete page":"Tag page");var a=new Morebits.quickForm.element({type:"div",name:"work_area"});if(this.mode.isMultiple&&this.mode.isRadioClick&&(a.append({type:"div",label:"When finished choosing criteria, click:"}),a.append({type:"button",name:"submit-multiple",label:this.mode.isSysop?"Delete page":"Tag page",event:function(e){t.evaluate(e),e.stopPropagation()}})),this.appendCriteriaLists(a),$(e).find("[name=work_area]").replaceWith(a.render()),this.mode.isSysop&&this.hasCSD){var i=$("input[name=csd][value=reason]")[0];if(i){"radioClick"!==q("speedySelectionStyle")&&i.click();var n=decodeURIComponent($("#delete-reason").text()).replace(/\+/g," ");$('input[name="csd.reason_1"]').val(n)}}},t.prototype.appendCriteriaLists=function(e){var t=this;this.namespace=mw.config.get("wgNamespaceNumber"),this.isRedirect=Morebits.isPageRedirect();var a=this.mode.isMultiple?"checkbox":"radio";this.criteriaLists.forEach((function(i){i.visible(t)&&(e.append({type:"header",label:i.label}),e.append({type:a,name:"csd",list:t.generateCsdList(i.list)}))}))},t.prototype.generateCsdList=function(e){var t=this,a=this.mode,i=function(e){$(e.target.form).find("input").prop("disabled",!0),$(e.target.form).children().css("color","gray"),$(e.target).parent().css("color","black").find("input").prop("disabled",!1),$(e.target).parent().find("input:text")[0].focus(),e.stopPropagation()},n=function(e){var i=a.isSysop?"evaluateSysop":"evaluateUser";t[i](e),e.stopPropagation()};return e.map((function(e){var o=$.extend({},e);if(a.isMultiple){if(o.hideWhenMultiple)return null;o.hideSubgroupWhenMultiple&&(o.subgroup=null)}else{if(o.hideWhenSingle)return null;o.hideSubgroupWhenSingle&&(o.subgroup=null)}if(a.isSysop){if(o.hideWhenSysop)return null;o.hideSubgroupWhenSysop&&(o.subgroup=null)}else{if(o.hideWhenUser)return null;o.hideSubgroupWhenUser&&(o.subgroup=null)}return Morebits.isPageRedirect()&&o.hideWhenRedirect||o.showInNamespaces&&o.showInNamespaces.indexOf(t.namespace)<0||o.hideInNamespaces&&o.hideInNamespaces.indexOf(t.namespace)>-1?null:(o.subgroup&&!a.isMultiple&&a.isRadioClick&&(o.subgroup=v(o.subgroup).concat({type:"button",name:"submit",label:a.isSysop?"Delete page":"Tag page",event:n}),o.event=i),o)})).filter((function(e){return e}))},t.prototype.makeFlatObject=function(){var e=this;this.flatObject={},this.criteriaLists.forEach((function(t){t.list.forEach((function(t){e.flatObject[t.value]=t}))}))},t.prototype.evaluate=function(e){var t=this;if("checkbox"!==e.target.type&&"text"!==e.target.type&&"select"!==e.target.type){if(this.params=Morebits.quickForm.getInputData(this.result),!this.params.csd||!this.params.csd.length)return alert("Please select a criterion!");this.preprocessParams();var a=this.validateInputs();if(a)return alert(a);Morebits.simpleWindow.setButtonsEnabled(!1),Morebits.status.init(this.result);var i=new Morebits.taskManager(this);i.add(this.fetchCreatorInfo,[]),this.mode.isSysop?(i.add(this.parseDeletionReason,[]),i.add(this.deletePage,[this.parseDeletionReason]),i.add(this.deleteTalk,[this.deletePage]),i.add(this.deleteRedirects,[this.deletePage]),i.add(this.noteToCreator,[this.deletePage,this.fetchCreatorInfo])):(i.add(this.checkPage,[]),i.add(this.tagPage,[this.checkPage]),i.add(this.patrolPage,[this.checkPage]),i.add(this.noteToCreator,[this.checkPage,this.fetchCreatorInfo]),i.add(this.addToLog,[this.noteToCreator])),i.execute().then((function(){Morebits.status.actionCompleted(t.mode.isSysop?"Deletion completed":"Tagging completed"),setTimeout((function(){window.location.href=mw.util.getUrl(Morebits.pageNameNorm)}),5e4)}))}},t.prototype.preprocessParams=function(){var e=this,t=this.params;t.csd=v(t.csd),t.normalizeds=t.csd.map((function(t){return e.flatObject[t].code})),this.getTemplateParameters(),this.getMode(),this.mode.isSysop?(t.promptForSummary=t.normalizeds.some((function(e){return-1!==q("promptForSpeedyDeletionSummary").indexOf(e)})),t.warnUser=t.warnusertalk&&t.normalizeds.some((function(e,a){return-1!==q("warnUserOnSpeedyDelete").indexOf(e)&&!("g6"===e&&"copypaste"!==t.values[a])}))):(t.notifyUser=t.notify&&t.normalizeds.some((function(e,a){return-1!==q("notifyUserOnSpeedyDeletionNomination").indexOf(e)&&!("g6"===e&&"copypaste"!==t.csd[a])})),t.redactContents=t.csd.some((function(t){return e.flatObject[t].redactContents}))),t.watch=t.normalizeds.some((function(e){return-1!==q("watchSpeedyPages").indexOf(e)&&q("watchSpeedyExpiry")})),t.welcomeuser=(t.notifyUser||t.warnUser)&&t.normalizeds.some((function(e){return-1!==q("welcomeUserOnSpeedyDeletionNotification").indexOf(e)})),this.preprocessParamInputs()},t.prototype.preprocessParamInputs=function(){},t.prototype.getTemplateParameters=function(){var e=this;this.params.templateParams=new Array(this.params.csd.length),this.params.csd.forEach((function(t,a){var i=e.flatObject[t],n={};v(i.subgroup).forEach((function(t){t.parameter&&e.params[t.name]&&(n[t.parameter]=e.params[t.name])})),e.params.templateParams[a]=n}))},t.prototype.getTaggingCode=function(){var e=this.params,t="";return e.normalizeds.length>1?(t="{{db-multiple",e.normalizeds.forEach((function(a,i){t+="|"+a.toUpperCase(),T(e.templateParams[i]).forEach((function(e){var a=e[0],i=e[1];parseInt(a,10)||(t+="|"+a+"="+i)}))})),t+="}}"):(t="{{db-"+e.csd[0],T(e.templateParams[0]).forEach((function(e){var a=e[0],i=e[1];t+="|"+a+"="+i})),e.notifyUser&&(t+="|help=off"),t+="}}"),t},t.prototype.getUserTalkParameters=function(){var e=this,t={};this.params.csd.forEach((function(a){v(e.flatObject[a].subgroup).forEach((function(a,i){a.utparam&&e.params[a.name]&&(t["key"+(i+1)]=a.utparam,t["value"+(i+1)]=e.params[a.name],t[a.utparam]=e.params[a.name])}))})),this.params.utparams=t},t.prototype.getUserNotificationText=function(){var e=this.params,t="";return e.normalizeds.length>1?(t="\n{{subst:db-"+(e.warnUser?"deleted":"notice")+"-multiple|1="+Morebits.pageNameNorm,e.normalizeds.forEach((function(e,a){t+="|"+(a+2)+"="+e.toUpperCase()}))):"db"===e.normalizeds[0]?t="\n{{subst:db-reason-"+(e.warnUser?"deleted":"notice")+"|1="+Morebits.pageNameNorm:(t="\n{{subst:db-csd-"+(e.warnUser?"deleted":"notice")+"-custom|1=","copypaste"===e.csd[0]?t+=e.templateParams[0].sourcepage:t+=Morebits.pageNameNorm,t+="|2="+e.csd[0]),this.getUserTalkParameters(),T(e.utparams).forEach((function(e){var a=e[0],i=e[1];t+="|"+a+"="+i})),t+=(e.welcomeuser?"":"|nowelcome=yes")+"}} ~~~~"},t.prototype.fetchCreatorInfo=function(){var e=this;if(!this.params.notifyUser&&!this.params.warnUser)return $.Deferred().resolve();var t=new K(Morebits.pageNameNorm,"Finding page creator");return t.lookupCreation().then((function(){e.params.initialContrib=t.getCreator(),t.getStatusElement().info("Found "+t.getCreator())}))},t.prototype.patrolPage=function(){return q("markSpeedyPagesAsPatrolled")&&new K(Morebits.pageNameNorm).triage(),$.Deferred().resolve()},t.prototype.checkPage=function(){var e=new K(mw.config.get("wgPageName"),"Tagging page");return e.setChangeTags(n.changeTags),e.load().then((function(){var t=e.getStatusElement();if(!e.exists())return t.error("It seems that the page doesn't exist; perhaps it has already been deleted"),$.Deferred().reject();var a=e.getPageText();t.status("Checking for tags on the page...");var i=/(?:\{\{\s*(db|delete|db-.*?|speedy deletion-.*?)(?:\s*\||\s*\}\}))/.exec(a);if(i&&!confirm("The page already has the CSD-related template {{"+i[1]+"}} on it. Do you want to add another CSD template?"))return $.Deferred().reject();var n=/\{\{((?:article for deletion|proposed deletion|prod blp|template for discussion)\/dated|[cfm]fd\b)/i.exec(a)||/#invoke:(RfD)/.exec(a);return n&&!confirm("The deletion-related template {{"+n[1]+"}} was found on the page. Do you still want to add a CSD template?")?$.Deferred().reject():e}))},t.prototype.tagPage=function(e){var t,a=this.params,i=e.getPageText(),o=this.getTaggingCode();if(-1!==a.normalizeds.indexOf("g13")&&(o=o.replace("$TIMESTAMP",e.getLastEditTime())),a.requestsalt&&(o="{{salt}}\n"+o),!e.canEdit()||-1===["wikitext","Scribunto","javascript","css","sanitized-css"].indexOf(e.getContentModel())){var r=new mw.Title(e.getPageName()).getTalkPage().toText();if(r===e.getPageName())return e.getStatusElement().error("Page protected and nowhere to add an edit request, aborting"),$.Deferred().reject();e.getStatusElement().warn("Unable to edit page, placing tag on talk page");var s=new K(r,"Automatically placing tag on talk page");return s.setNewSectionTitle(e.getPageName()+" nominated for CSD, request deletion"),s.setNewSectionText(o+"\n\nI was unable to tag "+e.getPageName()+" so please delete it. ~~~~"),s.setCreateOption("recreate"),s.setFollowRedirect(!0),s.setWatchlist(a.watch),s.setChangeTags(n.changeTags),s.newSection()}if(i=i.replace(/\{\{\s*([Uu]serspace draft)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/g,""),6===mw.config.get("wgNamespaceNumber")&&(i=i.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi,"")),10===mw.config.get("wgNamespaceNumber")&&(o="<noinclude>"+o+"</noinclude>"),"Scribunto"===mw.config.get("wgPageContentModel")){for(var l="";-1!==o.indexOf("]"+l+"]");)l+="=";o="require('Module:Module wikitext')._addText(["+l+"["+o+"]"+l+"]);"}else-1!==["javascript","css","sanitized-css"].indexOf(mw.config.get("wgPageContentModel"))&&(o="/* "+o+" */");"db"===a.normalizeds[0]?t='Requesting [[WP:CSD|speedy deletion]] with rationale "'+a.templateParams[0][1]+'".':t="Requesting speedy deletion ("+a.normalizeds.map((function(e){return"[[WP:CSD#"+e.toUpperCase()+"|CSD "+e.toUpperCase()+"]]"})).join(", ")+").";return i=a.redactContents?o:this.insertTagText(o,i),e.setPageText(i),e.setEditSummary(t),e.setWatchlist(a.watch),e.save()},t.prototype.insertTagText=function(e,t){return e+"\n"+t},t.prototype.noteToCreator=function(){var e=this.params,t=e.initialContrib;if(!t)return $.Deferred().resolve();if(t===mw.config.get("wgUserName")?(Morebits.status.warn("Note","You ("+t+") created this page; skipping user notification"),t=null):t===mw.config.get("wgTitle")&&3===mw.config.get("wgNamespaceNumber")?(Morebits.status.warn("Note","Notifying initial contributor: this user created their own user talk page; skipping notification"),t=null):"Cyberbot I"!==t&&"SoxBot"!==t||"f2"!==e.normalizeds[0]?this.hasCSD&&e.warnUser&&!confirm("The page is has a deletion-related tag, and thus the creator has likely been notified. Do you want to notify them for this deletion as well?")&&(Morebits.status.info("Notifying initial contributor","canceled by user; skipping notification."),t=null):(Morebits.status.warn("Note","Notifying initial contributor: page created procedurally by bot; skipping notification"),t=null),!t)return e.initialContrib=null,$.Deferred().resolve();var a=new K("User talk:"+t,"Notifying initial contributor ("+t+")"),i="Notification: speedy deletion"+(e.warnUser?"":" nomination");return e.redactContents?i+=" of an attack page.":i+=" of [[:"+Morebits.pageNameNorm+"]].",a.setAppendText(this.getUserNotificationText()),a.setEditSummary(i),a.setChangeTags(n.changeTags),a.setCreateOption("recreate"),a.setFollowRedirect(!0,!1),a.append()},t.prototype.parseWikitext=function(e){var t=new Morebits.status("Building deletion summary"),a=new C("Parsing deletion template",{action:"parse",prop:"text",pst:"true",text:e,contentmodel:"wikitext",title:mw.config.get("wgPageName"),disablelimitreport:!0,format:"json"});return a.setStatusElement(t),a.post().then((function(e){var a=decodeURIComponent($(e.getResponse().parse.text).find("#delete-reason").text()).replace(/\+/g," ");return a?t.info("complete"):t.warn("Unable to generate summary from deletion template"),a}))},t.prototype.parseDeletionReason=function(){var e=this.params;if(e.normalizeds.length||"db"!==e.normalizeds[0]){var t=this.getTaggingCode();return this.parseWikitext(t).then((function(t){e.promptForSummary&&(t=prompt("Enter the deletion summary to use, or press OK to accept the automatically generated one.",t)),e.deleteReason=t}))}return e.deleteReason=prompt("Enter the deletion summary to use, which will be entered into the deletion log:",""),$.Deferred().resolve()},t.prototype.deletePage=function(){var e=this.params,t=new K(mw.config.get("wgPageName"),"Deleting page");return null===e.deleteReason?(Morebits.status.error("Asking for reason","User cancelled"),$.Deferred().reject()):e.deleteReason&&e.deleteReason.trim()?(t.setEditSummary(e.deleteReason),t.setChangeTags(n.changeTags),t.setWatchlist(e.watch),t.deletePage().then((function(){t.getStatusElement().info("done")}))):(Morebits.status.error("Asking for reason","you didn't give one. I don't know... what with admins and their apathetic antics... I give up..."),$.Deferred().reject())},t.prototype.deleteTalk=function(){if(this.params.deleteTalkPage&&"new"!==document.getElementById("ca-talk").className){var e=new K(new mw.Title(Morebits.pageNameNorm).getTalkPage().toText(),"Deleting talk page");return e.setEditSummary('[[WP:CSD#G8|G8]]: Talk page of deleted page "'+Morebits.pageNameNorm+'"'),e.setChangeTags(n.changeTags),e.deletePage().then((function(){e.getStatusElement().info("done")}))}return $.Deferred().resolve()},t.prototype.deleteRedirects=function(){var e,t,a=this,i=$.Deferred();if(this.params.deleteRedirects){var o=new C("getting list of redirects...",{action:"query",titles:mw.config.get("wgPageName"),prop:"redirects",rdlimit:"max",format:"json"});o.setStatusElement(new Morebits.status("Deleting redirects")),o.post().then((function(e){var t=e.getResponse().query.pages[0].redirects||[],a=t.length,o=e.getStatusElement();if(a){o.status("0%");var r=0,s=function(e){var t=Math.round(100*++r/a)+"%";o.update(t),e.getStatusElement().unlink(),r>=a&&(o.info(t+" (completed)"),i.resolve(),Morebits.wiki.removeCheckpoint())};Morebits.wiki.addCheckpoint(),t.forEach((function(e){var t=e.title,a=new K(t,'Deleting redirect "'+t+'"');a.setEditSummary('[[WP:CSD#G8|G8]]: Redirect to deleted page "'+Morebits.pageNameNorm+'"'),a.setChangeTags(n.changeTags),a.deletePage().then(s)}))}else o.status("no redirects found")}))}else i.resolve();var r=6===mw.config.get("wgNamespaceNumber");return e=$("<a>",{href:"#",text:"click here to go to the Unlink tool",css:{fontSize:"130%",fontWeight:"bold"},click:function(){Morebits.wiki.actionCompleted.redirect=null,a.dialog.close(),n.unlink.makeWindow(r?"Removing usages of and/or links to deleted file "+Morebits.pageNameNorm:"Removing links to deleted page "+Morebits.pageNameNorm)}}),t=$("<span>",{text:r?"To orphan backlinks and remove instances of file usage":"To orphan backlinks",css:{fontSize:"130%",fontWeight:"bold"}}),Morebits.status.info(t[0],e[0]),i},t.prototype.addToLog=function(){var e=this,t=this.params;if(!(q("logSpeedyNominations")&&t.normalizeds.some((function(e){return-1===q("noLogOnSpeedyNomination").indexOf(e)}))))return $.Deferred().resolve();var a=new Morebits.userspaceLogger(q("speedyLogPageName"));a.initialText="This is a log of all [[WP:CSD|speedy deletion]] nominations made by this user using [[WP:TW|Twinkle]]'s CSD module.\n\nIf you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and nominate this page for speedy deletion under [[WP:CSD#U1|CSD U1]]."+(Morebits.userIsSysop?"\n\nThis log does not track outright speedy deletions made using Twinkle.":"");var i="",o=6===mw.config.get("wgNamespaceNumber")?" ([{{fullurl:Special:Log|page="+mw.util.wikiUrlencode(mw.config.get("wgPageName"))+"}} log])":"",r="Logging speedy deletion nomination",s="# [[:"+Morebits.pageNameNorm;(t.redactContents?(s+="|This]] attack page"+o+": ",r+=" of an attack page."):(s+="]]"+o+": ",r+=" of [[:"+Morebits.pageNameNorm+"]]."),t.normalizeds.length>1)?s+="multiple criteria ("+t.normalizeds.map((function(e){return"[[WP:CSD#"+e.toUpperCase()+"|"+e.toUpperCase()+"]]"})).join(", ")+")":"db"===t.normalizeds[0]?s+="{{tl|db-reason}}":s+="[[WP:CSD#"+t.normalizeds[0].toUpperCase()+"|CSD "+t.normalizeds[0].toUpperCase()+"]] ({{tl|db-"+t.csd[0]+"}})";return"db"===t.normalizeds[0]?i+=" {Custom rationale: "+t.templateParams[0][1]+"}":t.csd.forEach((function(a){var n=e.flatObject[a],o=n.code.toUpperCase();v(n.subgroup).forEach((function(e){var a=t[e.name];if(a&&e.parameter){if(e.log)a=Morebits.string.safeReplace(e.log,/\$1/g,a);else if(null===e.log)return;i+=" {"+o+" "+e.parameter+": "+a+"}"}}))})),t.requestsalt&&(s+="; requested creation protection ([[WP:SALT|salting]])"),i&&(s+="; additional information:"+i),t.initialContrib&&(s+="; notified {{user|1="+t.initialContrib+"}}"),s+=" ~~~~~\n",a.changeTags=n.changeTags,a.log(s,r)},t.prototype.validateInputs=function(){},t.prototype.userPreferences=function(){return{title:"CSD",preferences:[]}},t.moduleName="CSD",t}(_);if(window.Twinkle=n,$.extend(n,{registerModule:Y,msg:I,Page:K,Api:C}),void 0!==i&&(jQuery.Deferred.exceptionHook=function(e){throw e}),!Morebits.userIsInGroup("autoconfirmed")&&!Morebits.userIsInGroup("confirmed"))throw new Error("Twinkle: forbidden!");n.userAgent="Twinkle ("+mw.config.get("wgWikiID")+")",n.summaryAd=" ([[Project:TW|TW]])",n.changeTags="",n.messageOverrides=H,n.extraMwMessages=[],n.registeredModules=[X,ce,de,ue],o.permalinkSpecialPageName="Special:PermanentLink",o.botUsernameRegex=/bot\b/i,o.flaggedRevsNamespaces=[],o.redirectTagAliases=["#REDIRECT"],(-1!==mw.config.get("wgNamespaceNumber")||n.activeSpecialPages.includes(mw.config.get("wgCanonicalSpecialPageName")))&&window.top===window.self&&(function(){switch(mw.config.get("skin")){case"vector":B([{name:"portletArea",value:"right-navigation"},{name:"portletId",value:"p-twinkle"},{name:"portletName",value:"TW"},{name:"portletType",value:"menu"},{name:"portletNext",value:"p-search"}]);break;case"timeless":B([{name:"portletArea",value:"#page-tools .sidebar-inner"},{name:"portletId",value:"p-twinkle"},{name:"portletName",value:"Twinkle"},{name:"portletType",value:null},{name:"portletNext",value:"p-userpagetools"}]);break;default:B([{name:"portletArea",value:null},{name:"portletId",value:"p-cactions"},{name:"portletName",value:null},{name:"portletType",value:null},{name:"portletNext",value:null}])}}(),Morebits.l10n.redirectTagAliases=o.redirectTagAliases,"function"==typeof o.signatureTimestampFormat&&(Morebits.l10n.signatureTimestampFormat=o.signatureTimestampFormat),x=new mw.Api({parameters:{action:"query",format:"json",formatversion:"2",uselang:D,errorlang:D,errorsuselocal:!0,tags:n.changeTags},ajax:{headers:{"Api-User-Agent":n.userAgent}}}),n.preModuleInitHooks.push((function(){!function(){if(P=new(h())(D),T(E).forEach((function(e){var t=e[0],a=e[1];P.registerParserPlugin(t,a)})),Morebits.i18n.setParser({get:I}),M="qqx"===D)return Promise.resolve();P.load(S,"en");var e=A.concat(n.extraMwMessages);Promise.all([W(e,D),F(D)]).catch((function(e){mw.notify("Failed to load messages needed for Twinkle",{type:"error"})})).finally((function(){R(n.messageOverrides)}))}()}),(function(){return(e=mw.util.wikiScript("index")+"?title=",$.ajax({url:e+"User:"+encodeURIComponent(mw.config.get("wgUserName"))+"/twinkleoptions.js&action=raw&ctype=text/javascript&happy=yes",dataType:"text"}).then((function(e){if(""!==e){0===(e=e.replace(/(?:^(?:\/\/[^\n]*\n)*\n*|(?:\/\/[^\n]*(?:\n|$))*$)/g,"")).lastIndexOf("window.Twinkle.prefs = ",0)&&(e=e.replace(/(?:^window.Twinkle.prefs = |;\n*$)/g,""));try{var t=JSON.parse(e);t&&((L=t.twinkle||t.friendly?$.extend(t.twinkle,t.friendly):t).optionsVersion=L.optionsVersion||1)}catch(e){mw.notify("Could not parse your Twinkle preferences",{type:"error"})}}})).catch((function(){mw.notify("Could not load your Twinkle preferences",{type:"error"})}))).then((function(){return q("dialogLargeFont")&&mw.util.addCSS(".morebits-dialog-content, .morebits-dialog-footerlinks { font-size: 100% !important; } .morebits-dialog input, .morebits-dialog select, .morebits-dialog-content button { font-size: inherit !important; }"),V=V.concat(q("disabledModules"),q("disabledSysopModules")),Promise.all(n.preModuleInitHooksWithConfig.map((function(e){return e()})))}));var e})),Promise.all(n.preModuleInitHooks.map((function(e){return e()}))).then((function(){mw.hook("twinkle.preModuleInit").fire();for(var e=0,t=n.registeredModules;e<t.length;e++)Y(t[e]);"vector"===mw.config.get("skin")&&"menu"===q("portletType")&&0===$("#p-twinkle").length&&$("#p-cactions").css("margin-right","initial"),j.init()})))}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,a),o.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i=a(146)}();!function(){var e={795:function(e){function t(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}e.exports=function(){"use strict";var e=function(){function e(e){this.locale=e}var t=e.prototype;return t.convertPlural=function(t,a){var i=new RegExp("\\d+=","i");if(!a||0===a.length)return"";for(var n=0;n<a.length;n++){var o=a[n];if(i.test(o)){if(parseInt(o.slice(0,o.indexOf("=")),10)===t)return o.slice(o.indexOf("=")+1);a[n]=void 0}}a=a.filter((function(e){return!!e}));var r=e.pluralRules[this.locale];r||(r={one:"i = 1 and v = 0"});var s=this.getPluralForm(t,r);return a[s=Math.min(s,a.length-1)]},t.getPluralForm=function(e,t){for(var a=["zero","one","two","few","many","other"],i=0,n=mw.libs.pluralRuleParser,o=0;o<a.length;o++)if(t[a[o]]){if(n(t[a[o]],e))return i;i++}return i},t.convertNumber=function(e,t){var a=this.digitTransformTable(this.locale),i=String(e),n="";if(!a)return e;if(t){if(parseFloat(e,10)===e)return e;var o=[];for(var r in a)o[a[r]]=r;a=o}for(var s=0;s<i.length;s++)a[i[s]]?n+=a[i[s]]:n+=i[s];return t?parseFloat(n,10):n},t.convertGrammar=function(e,t){return e},t.gender=function(e,t){if(!t||0===t.length)return"";for(;t.length<2;)t.push(t[t.length-1]);return"male"===e?t[0]:"female"===e?t[1]:3===t.length?t[2]:t[0]},t.digitTransformTable=function(t){return!!e.digitTransforms[t]&&e.digitTransforms[t].split("")},e}();e.pluralRules={},e.digitTransforms={};var a={bs:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="s "+e;break;case"lokativ":e="o "+e}return e},a}(e),default:e,dsb:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e},a}(e),fi:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){var a=e.match(/[aou][^\xe4\xf6y]*$/i),i=e;switch(e.match(/wiki$/i)&&(a=!1),e.match(/[bcdfghjklmnpqrstvwxz]$/i)&&(e+="i"),t){case"genitive":e+="n";break;case"elative":e+=a?"sta":"st\xe4";break;case"partitive":e+=a?"a":"\xe4";break;case"illative":e+=e.slice(-1)+"n";break;case"inessive":e+=a?"ssa":"ss\xe4";break;default:e=i}return e},a}(e),ga:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){if("ainmlae"===t)switch(e){case"an Domhnach":e="D\xe9 Domhnaigh";break;case"an Luan":e="D\xe9 Luain";break;case"an Mh\xe1irt":e="D\xe9 Mh\xe1irt";break;case"an Ch\xe9adaoin":e="D\xe9 Ch\xe9adaoin";break;case"an D\xe9ardaoin":e="D\xe9ardaoin";break;case"an Aoine":e="D\xe9 hAoine";break;case"an Satharn":e="D\xe9 Sathairn"}return e},a}(e),he:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"prefixed":case"\u05ea\u05d7\u05d9\u05dc\u05d9\u05ea":"\u05d5"===e.slice(0,1)&&"\u05d5\u05d5"!==e.slice(0,2)&&(e="\u05d5"+e),"\u05d4"===e.slice(0,1)&&(e=e.slice(1)),(e.slice(0,1)<"\u05d0"||e.slice(0,1)>"\u05ea")&&(e="\u05be"+e)}return e},a}(e),hsb:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"instrumental":e="z "+e;break;case"lokatiw":e="wo "+e}return e},a}(e),hu:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"rol":e+="r\xf3l";break;case"ba":e+="ba";break;case"k":e+="k"}return e},a}(e),hy:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){return"genitive"===t&&("\u0561"===e.slice(-1)?e=e.slice(0,-1)+"\u0561\u0575\u056b":"\u0578"===e.slice(-1)?e=e.slice(0,-1)+"\u0578\u0575\u056b":"\u0563\u056b\u0580\u0584"===e.slice(-4)?e=e.slice(0,-4)+"\u0563\u0580\u0584\u056b":e+="\u056b"),e},a}(e),la:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"genitive":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"i")).replace(/ommunia$/i,"ommunium")).replace(/a$/i,"ae")).replace(/libri$/i,"librorum")).replace(/nuntii$/i,"nuntiorum")).replace(/tio$/i,"tionis")).replace(/ns$/i,"ntis")).replace(/as$/i,"atis")).replace(/es$/i,"ei");break;case"accusative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"um")).replace(/ommunia$/i,"am")).replace(/a$/i,"ommunia")).replace(/libri$/i,"libros")).replace(/nuntii$/i,"nuntios")).replace(/tio$/i,"tionem")).replace(/ns$/i,"ntem")).replace(/as$/i,"atem")).replace(/es$/i,"em");break;case"ablative":e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/u[ms]$/i,"o")).replace(/ommunia$/i,"ommunibus")).replace(/a$/i,"a")).replace(/libri$/i,"libris")).replace(/nuntii$/i,"nuntiis")).replace(/tio$/i,"tione")).replace(/ns$/i,"nte")).replace(/as$/i,"ate")).replace(/es$/i,"e")}return e},a}(e),os:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){var a,i,n,o;switch(a="\u043c\xe6",i="",n="",o="",e.match(/\u0442\xe6$/i)?(e=e.slice(0,-1),a="\xe6\u043c"):e.match(/[\u0430\xe6\u0435\u0451\u0438\u043e\u044b\u044d\u044e\u044f]$/i)?i="\u0439":e.match(/\u0443$/i)?e.slice(-2,-1).match(/[\u0430\xe6\u0435\u0451\u0438\u043e\u044b\u044d\u044e\u044f]$/i)||(i="\u0439"):e.match(/[\u0431\u0432\u0433\u0434\u0436\u0437\u0439\u043a\u043b\u043c\u043d\u043e\u043f\u0440\u0441\u0442\u0444\u0445\u0446\u0447\u0448\u0449\u044c\u044a]$/i)||(n="-"),t){case"genitive":o=n+i+"\u044b";break;case"dative":o=n+i+"\xe6\u043d";break;case"allative":o=n+a;break;case"ablative":o="\u0439"===i?n+i+"\xe6":n+i+"\xe6\u0439";break;case"superessive":o=n+i+"\u044b\u043b";break;case"equative":o=n+i+"\u0430\u0443";break;case"comitative":o=n+"\u0438\u043c\xe6"}return e+o},a}(e),ru:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){return"genitive"===t&&("\u044c"===e.slice(-1)?e=e.slice(0,-1)+"\u044f":"\u0438\u044f"===e.slice(-2)?e=e.slice(0,-2)+"\u0438\u0438":"\u043a\u0430"===e.slice(-2)?e=e.slice(0,-2)+"\u043a\u0438":"\u0442\u0438"===e.slice(-2)?e=e.slice(0,-2)+"\u0442\u0435\u0439":"\u0434\u044b"===e.slice(-2)?e=e.slice(0,-2)+"\u0434\u043e\u0432":"\u043d\u0438\u043a"===e.slice(-3)&&(e=e.slice(0,-3)+"\u043d\u0438\u043a\u0430")),e},a}(e),sl:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"mestnik":e="o "+e;break;case"orodnik":e="z "+e}return e},a}(e),uk:function(e){function a(){return e.apply(this,arguments)||this}return t(a,e),a.prototype.convertGrammar=function(e,t){switch(t){case"genitive":"\u044c"===e.slice(-1)?e=e.slice(0,-1)+"\u044f":"\u0456\u044f"===e.slice(-2)?e=e.slice(0,-2)+"\u0456\u0457":"\u043a\u0430"===e.slice(-2)?e=e.slice(0,-2)+"\u043a\u0438":"\u0442\u0438"===e.slice(-2)?e=e.slice(0,-2)+"\u0442\u0435\u0439":"\u0434\u044b"===e.slice(-2)?e=e.slice(0,-2)+"\u0434\u043e\u0432":"\u043d\u0438\u043a"===e.slice(-3)&&(e=e.slice(0,-3)+"\u043d\u0438\u043a\u0430");break;case"accusative":"\u0456\u044f"===e.slice(-2)&&(e=e.slice(0,-2)+"\u0456\u044e")}return e},a}(e)},i=new RegExp("(?:([A-Za-z\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u02bb-\u02c1\u02d0\u02d1\u02e0-\u02e4\u02ee\u0370-\u0373\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0482\u048a-\u052f\u0531-\u0556\u0559-\u055f\u0561-\u0587\u0589\u0903-\u0939\u093b\u093d-\u0940\u0949-\u094c\u094e-\u0950\u0958-\u0961\u0964-\u0980\u0982\u0983\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd-\u09c0\u09c7\u09c8\u09cb\u09cc\u09ce\u09d7\u09dc\u09dd\u09df-\u09e1\u09e6-\u09f1\u09f4-\u09fa\u0a03\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a3e-\u0a40\u0a59-\u0a5c\u0a5e\u0a66-\u0a6f\u0a72-\u0a74\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd-\u0ac0\u0ac9\u0acb\u0acc\u0ad0\u0ae0\u0ae1\u0ae6-\u0af0\u0af9\u0b02\u0b03\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b3e\u0b40\u0b47\u0b48\u0b4b\u0b4c\u0b57\u0b5c\u0b5d\u0b5f-\u0b61\u0b66-\u0b77\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe\u0bbf\u0bc1\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcc\u0bd0\u0bd7\u0be6-\u0bf2\u0c01-\u0c03\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c41-\u0c44\u0c58-\u0c5a\u0c60\u0c61\u0c66-\u0c6f\u0c7f\u0c82\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd-\u0cc4\u0cc6-\u0cc8\u0cca\u0ccb\u0cd5\u0cd6\u0cde\u0ce0\u0ce1\u0ce6-\u0cef\u0cf1\u0cf2\u0d02\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d-\u0d40\u0d46-\u0d48\u0d4a-\u0d4c\u0d4e\u0d57\u0d5f-\u0d61\u0d66-\u0d75\u0d79-\u0d7f\u0d82\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dcf-\u0dd1\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df4\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e4f-\u0e5b\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0ed0-\u0ed9\u0edc-\u0edf\u0f00-\u0f17\u0f1a-\u0f34\u0f36\u0f38\u0f3e-\u0f47\u0f49-\u0f6c\u0f7f\u0f85\u0f88-\u0f8c\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce-\u0fda\u1000-\u102c\u1031\u1038\u103b\u103c\u103f-\u1057\u105a-\u105d\u1061-\u1070\u1075-\u1081\u1083\u1084\u1087-\u108c\u108e-\u109c\u109e-\u10c5\u10c7\u10cd\u10d0-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1360-\u137c\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u167f\u1681-\u169a\u16a0-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1735\u1736\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17b6\u17be-\u17c5\u17c7\u17c8\u17d4-\u17da\u17dc\u17e0-\u17e9\u1810-\u1819\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1923-\u1926\u1929-\u192b\u1930\u1931\u1933-\u1938\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a16\u1a19\u1a1a\u1a1e-\u1a55\u1a57\u1a61\u1a63\u1a64\u1a6d-\u1a72\u1a80-\u1a89\u1a90-\u1a99\u1aa0-\u1aad\u1b04-\u1b33\u1b35\u1b3b\u1b3d-\u1b41\u1b43-\u1b4b\u1b50-\u1b6a\u1b74-\u1b7c\u1b82-\u1ba1\u1ba6\u1ba7\u1baa\u1bae-\u1be5\u1be7\u1bea-\u1bec\u1bee\u1bf2\u1bf3\u1bfc-\u1c2b\u1c34\u1c35\u1c3b-\u1c49\u1c4d-\u1c7f\u1cc0-\u1cc7\u1cd3\u1ce1\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u200e\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u214f\u2160-\u2188\u2336-\u237a\u2395\u249c-\u24e9\u26ac\u2800-\u28ff\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d70\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u302e\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u3190-\u31ba\u31f0-\u321c\u3220-\u324f\u3260-\u327b\u327f-\u32b0\u32c0-\u32cb\u32d0-\u32fe\u3300-\u3376\u337b-\u33dd\u33e0-\u33fe\u3400-\u4db5\u4e00-\u9fd5\ua000-\ua48c\ua4d0-\ua60c\ua610-\ua62b\ua640-\ua66e\ua680-\ua69d\ua6a0-\ua6ef\ua6f2-\ua6f7\ua722-\ua787\ua789-\ua7ad\ua7b0-\ua7b7\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua824\ua827\ua830-\ua837\ua840-\ua873\ua880-\ua8c3\ua8ce-\ua8d9\ua8f2-\ua8fd\ua900-\ua925\ua92e-\ua946\ua952\ua953\ua95f-\ua97c\ua983-\ua9b2\ua9b4\ua9b5\ua9ba\ua9bb\ua9bd-\ua9cd\ua9cf-\ua9d9\ua9de-\ua9e4\ua9e6-\ua9fe\uaa00-\uaa28\uaa2f\uaa30\uaa33\uaa34\uaa40-\uaa42\uaa44-\uaa4b\uaa4d\uaa50-\uaa59\uaa5c-\uaa7b\uaa7d-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaaeb\uaaee-\uaaf5\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab65\uab70-\uabe4\uabe6\uabe7\uabe9-\uabec\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\ue000-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b]|\ud800[\udc0d-\udc26]|\ud800[\udc28-\udc3a]|\ud800\udc3c|\ud800\udc3d|\ud800[\udc3f-\udc4d]|\ud800[\udc50-\udc5d]|\ud800[\udc80-\udcfa]|\ud800\udd00|\ud800\udd02|\ud800[\udd07-\udd33]|\ud800[\udd37-\udd3f]|\ud800[\uddd0-\uddfc]|\ud800[\ude80-\ude9c]|\ud800[\udea0-\uded0]|\ud800[\udf00-\udf23]|\ud800[\udf30-\udf4a]|\ud800[\udf50-\udf75]|\ud800[\udf80-\udf9d]|\ud800[\udf9f-\udfc3]|\ud800[\udfc8-\udfd5]|\ud801[\udc00-\udc9d]|\ud801[\udca0-\udca9]|\ud801[\udd00-\udd27]|\ud801[\udd30-\udd63]|\ud801\udd6f|\ud801[\ude00-\udf36]|\ud801[\udf40-\udf55]|\ud801[\udf60-\udf67]|\ud804\udc00|\ud804[\udc02-\udc37]|\ud804[\udc47-\udc4d]|\ud804[\udc66-\udc6f]|\ud804[\udc82-\udcb2]|\ud804\udcb7|\ud804\udcb8|\ud804[\udcbb-\udcc1]|\ud804[\udcd0-\udce8]|\ud804[\udcf0-\udcf9]|\ud804[\udd03-\udd26]|\ud804\udd2c|\ud804[\udd36-\udd43]|\ud804[\udd50-\udd72]|\ud804[\udd74-\udd76]|\ud804[\udd82-\uddb5]|\ud804[\uddbf-\uddc9]|\ud804\uddcd|\ud804[\uddd0-\udddf]|\ud804[\udde1-\uddf4]|\ud804[\ude00-\ude11]|\ud804[\ude13-\ude2e]|\ud804\ude32|\ud804\ude33|\ud804\ude35|\ud804[\ude38-\ude3d]|\ud804[\ude80-\ude86]|\ud804\ude88|\ud804[\ude8a-\ude8d]|\ud804[\ude8f-\ude9d]|\ud804[\ude9f-\udea9]|\ud804[\udeb0-\udede]|\ud804[\udee0-\udee2]|\ud804[\udef0-\udef9]|\ud804\udf02|\ud804\udf03|\ud804[\udf05-\udf0c]|\ud804\udf0f|\ud804\udf10|\ud804[\udf13-\udf28]|\ud804[\udf2a-\udf30]|\ud804\udf32|\ud804\udf33|\ud804[\udf35-\udf39]|\ud804[\udf3d-\udf3f]|\ud804[\udf41-\udf44]|\ud804\udf47|\ud804\udf48|\ud804[\udf4b-\udf4d]|\ud804\udf50|\ud804\udf57|\ud804[\udf5d-\udf63]|\ud805[\udc80-\udcb2]|\ud805\udcb9|\ud805[\udcbb-\udcbe]|\ud805\udcc1|\ud805[\udcc4-\udcc7]|\ud805[\udcd0-\udcd9]|\ud805[\udd80-\uddb1]|\ud805[\uddb8-\uddbb]|\ud805\uddbe|\ud805[\uddc1-\udddb]|\ud805[\ude00-\ude32]|\ud805\ude3b|\ud805\ude3c|\ud805\ude3e|\ud805[\ude41-\ude44]|\ud805[\ude50-\ude59]|\ud805[\ude80-\udeaa]|\ud805\udeac|\ud805\udeae|\ud805\udeaf|\ud805\udeb6|\ud805[\udec0-\udec9]|\ud805[\udf00-\udf19]|\ud805\udf20|\ud805\udf21|\ud805\udf26|\ud805[\udf30-\udf3f]|\ud806[\udca0-\udcf2]|\ud806\udcff|\ud806[\udec0-\udef8]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e]|\ud809[\udc70-\udc74]|\ud809[\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38]|\ud81a[\ude40-\ude5e]|\ud81a[\ude60-\ude69]|\ud81a\ude6e|\ud81a\ude6f|\ud81a[\uded0-\udeed]|\ud81a\udef5|\ud81a[\udf00-\udf2f]|\ud81a[\udf37-\udf45]|\ud81a[\udf50-\udf59]|\ud81a[\udf5b-\udf61]|\ud81a[\udf63-\udf77]|\ud81a[\udf7d-\udf8f]|\ud81b[\udf00-\udf44]|\ud81b[\udf50-\udf7e]|\ud81b[\udf93-\udf9f]|\ud82c\udc00|\ud82c\udc01|\ud82f[\udc00-\udc6a]|\ud82f[\udc70-\udc7c]|\ud82f[\udc80-\udc88]|\ud82f[\udc90-\udc99]|\ud82f\udc9c|\ud82f\udc9f|\ud834[\udc00-\udcf5]|\ud834[\udd00-\udd26]|\ud834[\udd29-\udd66]|\ud834[\udd6a-\udd72]|\ud834\udd83|\ud834\udd84|\ud834[\udd8c-\udda9]|\ud834[\uddae-\udde8]|\ud834[\udf60-\udf71]|\ud835[\udc00-\udc54]|\ud835[\udc56-\udc9c]|\ud835\udc9e|\ud835\udc9f|\ud835\udca2|\ud835\udca5|\ud835\udca6|\ud835[\udca9-\udcac]|\ud835[\udcae-\udcb9]|\ud835\udcbb|\ud835[\udcbd-\udcc3]|\ud835[\udcc5-\udd05]|\ud835[\udd07-\udd0a]|\ud835[\udd0d-\udd14]|\ud835[\udd16-\udd1c]|\ud835[\udd1e-\udd39]|\ud835[\udd3b-\udd3e]|\ud835[\udd40-\udd44]|\ud835\udd46|\ud835[\udd4a-\udd50]|\ud835[\udd52-\udea5]|\ud835[\udea8-\udeda]|\ud835[\udedc-\udf14]|\ud835[\udf16-\udf4e]|\ud835[\udf50-\udf88]|\ud835[\udf8a-\udfc2]|\ud835[\udfc4-\udfcb]|\ud836[\udc00-\uddff]|\ud836[\ude37-\ude3a]|\ud836[\ude6d-\ude74]|\ud836[\ude76-\ude83]|\ud836[\ude85-\ude8b]|\ud83c[\udd10-\udd2e]|\ud83c[\udd30-\udd69]|\ud83c[\udd70-\udd9a]|\ud83c[\udde6-\ude02]|\ud83c[\ude10-\ude3a]|\ud83c[\ude40-\ude48]|\ud83c\ude50|\ud83c\ude51|[\ud840-\ud868][\udc00-\udfff]|\ud869[\udc00-\uded6]|\ud869[\udf00-\udfff]|[\ud86a-\ud86c][\udc00-\udfff]|\ud86d[\udc00-\udf34]|\ud86d[\udf40-\udfff]|\ud86e[\udc00-\udc1d]|\ud86e[\udc20-\udfff]|[\ud86f-\ud872][\udc00-\udfff]|\ud873[\udc00-\udea1]|\ud87e[\udc00-\ude1d]|[\udb80-\udbbe][\udc00-\udfff]|\udbbf[\udc00-\udffd]|[\udbc0-\udbfe][\udc00-\udfff]|\udbff[\udc00-\udffd])|([\u0590\u05be\u05c0\u05c3\u05c6\u05c8-\u05ff\u07c0-\u07ea\u07f4\u07f5\u07fa-\u0815\u081a\u0824\u0828\u082e-\u0858\u085c-\u089f\u200f\ufb1d\ufb1f-\ufb28\ufb2a-\ufb4f\u0608\u060b\u060d\u061b-\u064a\u066d-\u066f\u0671-\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u0710\u0712-\u072f\u074b-\u07a5\u07b1-\u07bf\u08a0-\u08e2\ufb50-\ufd3d\ufd40-\ufdcf\ufdf0-\ufdfc\ufdfe\ufdff\ufe70-\ufefe]|\ud802[\udc00-\udd1e]|\ud802[\udd20-\ude00]|\ud802\ude04|\ud802[\ude07-\ude0b]|\ud802[\ude10-\ude37]|\ud802[\ude3b-\ude3e]|\ud802[\ude40-\udee4]|\ud802[\udee7-\udf38]|\ud802[\udf40-\udfff]|\ud803[\udc00-\ude5f]|\ud803[\ude7f-\udfff]|\ud83a[\udc00-\udccf]|\ud83a[\udcd7-\udfff]|\ud83b[\udc00-\uddff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\udf00-\udfff]|\ud83b[\ude00-\udeef]|\ud83b[\udef2-\udeff]))"),n=function(){function e(e){this.locale=e,this.language=new(a[e]||a.default)(e)}var t=e.prototype;return t.emit=function(e,t){var a,i,n,r=this;switch(typeof e){case"string":case"number":a=e;break;case"object":i=e.slice(1).map((function(e){return r.emit(e,t)})),a="function"==typeof this[n=e[0].toLowerCase()]?this[n](i,t):"{{"+new o(this.locale).simpleParse(e[0],t)+i.map((function(e){return"|"+e}))+"}}";break;case"undefined":a="";break;default:throw new Error("unexpected type in AST: "+typeof e)}return a},t.concat=function(e){var t="";return e.forEach((function(e){t+=e})),t},t.replace=function(e,t){var a=parseInt(e[0],10);return a<t.length?t[a]:"$"+(a+1)},t.plural=function(e){var t=parseFloat(this.language.convertNumber(e[0],10)),a=e.slice(1);return a.length?this.language.convertPlural(t,a):""},t.gender=function(e){var t=e[0],a=e.slice(1);return this.language.gender(t,a)},t.grammar=function(e){var t=e[0],a=e[1];return a&&t&&this.language.convertGrammar(a,t)},t.bidi=function(e){var t=function(e){var t=e.match(i);return t?void 0===t[2]?"ltr":"rtl":null}(e[0]);return"ltr"===t?"\u202a"+e[0]+"\u202c":"rtl"===t?"\u202b"+e[0]+"\u202c":e[0]},t.formatnum=function(e){var t=!!e[1]&&"R"===e[1],a=e[0];return"string"==typeof a||"number"==typeof a?this.language.convertNumber(a,t):a},e}(),o=function(){function e(e){this.locale=e,this.emitter=new n(this.locale)}var t=e.prototype;return t.parse=function(e,t){if(e.includes("{{")){var a=function(e){var t,a,i,n,o,r,s,l=0;function d(e){return function(){for(var t=0;t<e.length;t++){var a=e[t]();if(null!==a)return a}return null}}function c(e){for(var t=l,a=[],i=0;i<e.length;i++){var n=e[i]();if(null===n)return l=t,null;a.push(n)}return a}function u(e,t){return function(){for(var a=l,i=[],n=t();null!==n;)i.push(n),n=t();return i.length<e?(l=a,null):i}}function p(t){var a=t.length;return function(){var i=null;return e.slice(l,l+a)===t&&(i=t,l+=a),i}}function g(t){return function(){var a=e.slice(l).match(t);return null===a?null:(l+=a[0].length,a[0])}}var m,f,h=p("|"),b=p(":"),y=p("\\"),v=g(/^./),w=p("$"),k=g(/^\d+/),T=g(/^[^{}$\\]/),x=g(/^[^{}$\\|]/);function C(){var e=c([y,v]);return null===e?null:e[1]}function P(){var e=c([w,k]);return null===e?null:["REPLACE",parseInt(e[1],10)-1]}function N(){var e=c([h,u(0,r)]);if(null===e)return null;var t=e[1];return t.length>1?["CONCAT"].concat(t):t[0]}function A(){var e=c([n,b,P]);return null===e?null:[e[0],e[2]]}function M(){var e=c([n,b,r]);return null===e?null:[e[0],e[2]]}t=d([C,x]),a=d([C,T]),m=g(/^[ !"$&'()*,./0-9;=?@A-Z^_`a-z~\x80-\xFF+-]+/),f=function(e){return e.toString()},n=function(){var e=m();return null===e?null:f(e)},i=d([function(){var e=c([d([A,M]),u(0,N)]);return null===e?null:e[0].concat(e[1])},function(){var e=c([n,u(0,N)]);return null===e?null:[e[0]].concat(e[1])}]);var S=p("{{"),D=p("}}");function R(){var e=c([S,i,D]);return null===e?null:e[1]}if(o=d([R,P,function(){var e=u(1,a)();return null===e?null:e.join("")}]),r=d([R,P,function(){var e=u(1,t)();return null===e?null:e.join("")}]),s=function(){var e=u(0,o)();return null===e?null:["CONCAT"].concat(e)}(),null===s||l!==e.length)throw new Error("Parse error at position "+l.toString()+" in input: "+e);return s}(e);return this.emitter.emit(a,t)}return this.simpleParse(e,t)},t.simpleParse=function(e,t){return e.replace(/\$(\d+)/g,(function(e,a){var i=parseInt(a,10)-1;return void 0!==t[i]?t[i]:"$"+a}))},e}(),r=function(){function e(e){this.sourceMap=new Map}var t=e.prototype;return t.load=function(e,t){if("object"!=typeof e)throw new Error("Invalid message source. Must be an object");if(t){if(!/^[a-zA-Z0-9-]+$/.test(t))throw new Error("Invalid locale "+t);for(var a in e)if(0!==a.indexOf("@")){if("object"==typeof e[a])return this.load(e);if("string"!=typeof e[a])throw new Error("Invalid message for message "+a+" in "+t+" locale.");break}this.sourceMap.has(t)?this.sourceMap.set(t,Object.assign(this.sourceMap.get(t),e)):this.sourceMap.set(t,e)}else for(t in e)this.load(e[t],t)},t.getMessage=function(e,t){var a=this.sourceMap.get(t);return a?a[e]:null},t.hasLocale=function(e){return this.sourceMap.has(e)},e}();return function(){function t(e,t){var a=void 0===t?{}:t,i=a.finalFallback,n=void 0===i?"en":i,s=a.messages;this.locale=e,this.parser=new o(this.locale),this.messageStore=new r,s&&this.load(s,this.locale),this.fallbackLocales=[],this.finalFallback=n}var a=t.prototype;return a.load=function(e,t){return this.messageStore.load(e,t||this.locale)},a.i18n=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i<t;i++)a[i-1]=arguments[i];return this.parser.parse(this.getMessage(e),a)},a.setLocale=function(e){this.locale=e,this.parser=new o(this.locale)},a.getFallbackLocales=function(){return[].concat(this.fallbackLocales,[this.finalFallback])},a.setFallbackLocales=function(e){this.fallbackLocales=e},a.setPluralRules=function(t,a){e.pluralRules[t]=a},a.setDigitTransforms=function(t,a){e.digitTransforms[t]=a},a.getMessage=function(e){for(var t=this.locale,a=0,i=this.getFallbackLocales();t;){var n=t.split("-"),o=n.length;do{var r=n.slice(0,o).join("-"),s=this.messageStore.getMessage(e,r);if("string"==typeof s)return s;o--}while(o);t=i[a],a++}return e},a.registerParserPlugin=function(e,t){n.prototype[e]=t},t}()}()},12:function(e,t,a){"use strict";var n;!function(e){e.scriptName="Twinkle",e.userAgent="Twinkle ("+mw.config.get("wgWikiID")+")",e.changeTags="",e.summaryAd=" ("+e.scriptName+")",e.preModuleInitHooks=[],e.preModuleInitHooksWithConfig=[],e.registeredModules=[],e.activeSpecialPages=["Block","Contributions","Recentchanges","Recentchangeslinked"].concat(Morebits.userIsSysop?["DeletedContributions","Prefixindex"]:[]),e.messageOverrides={},e.extraMwMessages=[]}(n||(n={}));var o,r=mw.config.get("wgNamespaceIds"),s=r[""],l=(r.talk,r.special,r.file),d=(r.template,r.category,r.project),c=(r.user,r.user_talk);!function(e){e.botUsernameRegex=/bot\b/i,e.flaggedRevsNamespaces=[s,d],e.permalinkSpecialPageName="Special:PermanentLink",e.redirectTagAliases=["#REDIRECT"],e.signatureTimestampFormat=null}(o||(o={}));var u=function(e,t){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])},u(e,t)};function p(e,t){function a(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}var g=function(){return g=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var n in t=arguments[a])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},g.apply(this,arguments)};Object.create;function m(){for(var e=0,t=0,a=arguments.length;t<a;t++)e+=arguments[t].length;var i=Array(e),n=0;for(t=0;t<a;t++)for(var o=arguments[t],r=0,s=o.length;r<s;r++,n++)i[n]=o[r];return i}Object.create;var f=a(795),h=a.n(f),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(Error);function y(e){return e?Array.isArray(e)?e:[e]:[]}function v(e){var t=mw.Title.newFromUserInput(e);return t?t.getNameText():e}function w(e,t){return"{{"+e+T(t).filter((function(e){e[0];return!!e[1]})).map((function(e){return"|"+e[0]+"="+e[1]})).join("")+"}}"}function k(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function T(e){return Object.entries?Object.entries(e):Object.keys(e).map((function(t){return[t,e[t]]}))}var x,C=function(e){function t(t,a,i){return a=$.extend({action:"query",format:"json",formatversion:"2",uselang:D,errorlang:D,errorsuselocal:!0,tags:n.changeTags},a),e.call(this,t,a,null,i,null)||this}return p(t,e),t.prototype.post=function(t){return t||(t={}),t.headers||(t.headers={}),t.headers["Api-User-Agent"]=n.userAgent,e.prototype.post.call(this,t)},t}(Morebits.wiki.api);var P,N,A,M=["colon-separator","semicolon-separator","word-separator","comma-separator","and","parentheses","percent","blanknamespace","protectlogpage","stable-logpage","duration-hours","duration-days","duration-weeks","duration-years","protect-expiry-indefinite","group-autoconfirmed","group-sysop","protectexpiry","restriction-edit","restriction-move","restriction-create","restriction-level-autoconfirmed","restriction-level-sysop","block-expiry","blocklogpage","period-am","period-pm","january","jan","february","feb","march","mar","april","apr","may_long","may","june","jun","july","jul","august","aug","september","sep","october","oct","november","nov","december","dec","sunday","sun","monday","mon","tuesday","tue","wednesday","wed","thursday","thu","friday","fri","saturday","sat","sunday","sun"],S=JSON.parse('{"@metadata":{"authors":["SD0001"]},"tooltip-mark":"?","relative-today":"[Today at] h:mm A","relative-prevday":"[Yesterday at] h:mm A","relative-nextday":"[Tomorrow at] h:mm A","relative-thisweek":"dddd [at] h:mm A","relative-pastweek":"[Last] dddd [at] h:mm A","relative-other":"YYYY-MM-DD","done":"Done","api-error":"$1 \\"$2\\" occurred while contacting the API.","invalid-token-retrying":"Invalid token. Getting a new token and retrying...","getting-token":"Retrieving token...","opening-page":"Opening page \\"$1\\"","retrieving-page":"Retrieving page...","protected-edit-warning":"You are about to make an edit to the fully protected page \\"$1\\" (protection expiring {{date:$1|relative|utc}} (UTC)).\\n\\nClick OK to proceed with the edit, or Cancel to skip this edit.","protected-indef-edit-warning":"You are about to make an edit to the fully protected page \\"$1\\" (protected indefinitely).\\n\\nClick OK to proceed with the edit, or Cancel to skip this edit.","protected-aborted":"Edit to fully protected page was aborted.","saving-page":"Saving page...","getting-creator":"Retrieving page creation information","token-fetch-fail":"Failed to retrieve edit token.","invalid-title":"The page title is invalid: $1","cross-redirect-abort":"$1 is a cross-namespace redirect to $2, aborted","redirected":"Redirected from $1 to $2","redirect-resolution-fail":"Could not resolve redirects for: $1","api-error-unknown":"Unknown error received from API while saving page","editconflict-purging":"Edit conflict detected, purging server cache","editconflict-retrying":"Edit conflict detected, reapplying edit","save-failed-retrying":"Save failed, retrying in $1 seconds ...","moving-page":"moving page...","batch-starting":"Performing batch operation","batch-no-pages":"no pages specified","batch-done-page":"completed ([[$1]])","batch-progress":"Done ($1/$2 actions completed successfully)","submit":"Submit Query","bullet-separator":" \u2022&#32;","revert-mismatch":"The retrieved revision does not match the requested revision.","revert-curid-fail":"Failed to retrieve current revision ID.","revert-user-fail":"Failed to retrieve user who made the revision.","revert-summary":"Restored revision $1 by $2","hidden-user":"an unknown user","querying-user":"Querying user \\"$1\\"","fetching-userinfo":"Retrieving user information...","failed-timestamp":"Failed to retrieve current timestamp.","failed-token":"Failed to retrieve token.","failed-userinfo":"Failed to retrieve user info for $1.","already-blocked-indef":"$1 is already blocked (indefinitely; by $2), would you like to override the block?","already-blocked":"$1 is already blocked (until {{date:$2|relative}}; by $3), would you like to override the block?","reblock-aborted":"Reblock aborted","invalid-block-expiry":"You must provide a valid block expiration.","ip-indef-confirm":"$1 is an IP address, do you really want to block it indefinitely? \\n\\nClick OK to proceed with the block, or Cancel to abort.","ip-indef-aborted":"Indefinite block of IP address was aborted.","admin-block-confirm":"$1 is an administrator, are you sure you want to block them? \\n\\nClick OK to proceed with the block, or Cancel to abort.","admin-block-aborted":"Block of administrator was aborted.","partial-usertalk":"Partial blocks cannot prevent talk page access unless also restricting {{ns:3}} namespace.","blocking":"blocking user...","not-blocked":"User is not blocked.","indirect-block":"User is not directly blocked, but rather $1 is.","unblocking":"unblocking user...","notify-fail-iprange":"Cannot notify IP ranges","notify-self-skip":"You ($1) created this page; skipping user notification","notify-fail-noexist":"Cannot notify the user because the user does not exist.","notify-fail-template":"User talk page transcludes {{$1}}, aborting notification","notify-fail-optout":"User has opted out of this notification, aborting","notify-fail-bot":"User is a bot, aborting notification","notify-fail-blocked":"User is indefinitely blocked, aborting notification","notifying-user":"Notifying $1","watching-user":"Watching user page...","info":"Info","note":"Note","error":"Error","link-rollback":"rollback","link-vandalism":"vandalism","link-goodfaith-rollback":"rollback (AGF)","restore-revision":"restore this version","fetching-data":"Grabbing data of earlier revisions","saving-reverted":"Saving reverted contents","prompt-reason-restore":"Please specify a reason for the revert: ","reversion-complete":"Reversion completed","cant-edit-protected":"Unable to edit the page, it\'s probably protected.","no-revisions":"We have less than one additional revision, thus impossible to revert.","bad-revid":"The most recent revision ID received from the server, <strong>$1</strong>, is less than the ID of the displayed revision. This could indicate that the current revision has been deleted, the server is lagging, or that bad data has been received. Stopping revert.","revid-mismatch":"Latest revision <strong>$1</strong> doesn\'t equal our revision <strong>$2</strong>","latest-rev-same-user":"Latest revision was also made by <strong>$1</strong>. As we assume vandalism, we will proceed to revert.","latest-rev-same-64":"Latest revision was made by <strong>$1</strong>, which is on the same /64 subnet. As we assume vandalism, we will proceed to revert.","latest-rev-other-user-goodfaith":"Latest revision was made by <strong>$1</strong>. As we assume good faith, we will stop the revert, as the problem might have been fixed.","latest-rev-other-user":"Latest revision was made by <strong>$1</strong>, but we will stop the revert.","latest-rev-bot":"Latest revision was made by <strong>$1</strong>, a trusted bot, and the revision before was made by our vandal, so we will proceed with the revert.","latest-rev-reverted":"Latest revision was made by <strong>$1</strong>, so it might have already been reverted, we will stop the revert.","bot-revert":"Vandalism revert was chosen on <strong>$1</strong>. As this is a trusted bot, we assume you wanted to revert vandalism made by the previous user instead.","bot-revert-goodfaith":"Good faith revert was chosen on <strong>$1</strong>. This is a trusted bot and thus AGF rollback will not proceed.","bot-revert-prompt":"Normal revert was chosen, but the most recent edit was made by a trusted bot ($1). Do you want to revert the revision before instead?","bot-revert-previous":"Normal revert was chosen on <strong>$1</strong>. This is a trusted bot, and per confirmation, we\'ll revert the previous revision instead.","bot-revert-selected":"Normal revert was chosen on <strong>$1</strong>. This is a trusted bot, but per confirmation, revert on selected revision will proceed.","ipv6-same-user":"Treating consecutive IPv6 addresses in the same /64 as the same user","no-previous-revision":"No previous revision found. Perhaps <strong>$1</strong> is the only contributor, or they have made more than {{formatnum:$2}} edits in a row.","no-edits-revert":"As it is not possible to revert zero revisions, we will stop this revert. It could be that the edit has already been reverted, but the revision ID was still the same.","revert-multiple-prompt":"$1 has made {{formatnum:$2}} edits in a row. Are you sure you want to revert them all?","stopping":"Stopping revert.","revision-age":" revision <strong>$1</strong> that was made <strong>{{formatnum:$2}}</strong> revisions ago by $3","summary-prompt":"An optional comment for the edit summary: ","user-aborted":"Aborted by user.","restore-summary":"Restored revision $1 by %USER%","goodfaith-summary":"Reverted good faith edits by %USER%","vandalism-summary":"Reverted {{formatnum:$1}} {{plural:$1|edit|edits}} by %USER% to last revision by $2","normal-summary":"Reverted {{formatnum:$1}} {{plural:$1|edit|edits}} by %USER%","revert-confirm":"Reverting page: are you sure?","revert-complete":"Reversion completed","opening-talk":"Opening user talk page edit form for user <strong>$1</strong>","pcreview-comment":"Automatically reviewing reversion","pcreview-accepting":"Automatically accepting your changes","diff-last":"Last","diff-last-tooltip":"Show most recent diff","diff-since":"Since","diff-since-tooltip":"Show difference between last diff and the revision made by previous user","diff-sincemine":"Since mine","diff-sincemine-tooltip":"Show difference between last diff and my last revision","diff-current":"Current","diff-current-tooltip":"Show difference to current revision","diff-error":"no suitable earlier revision found, or $1 is the only contributor. Aborting.","reason":"Reason:","reason-tooltip":"You can use wikimarkup in your reason. Twinkle will automatically sign your post.","loading":"Loading...","select-all":"Select All","deselect-all":"Deselect All","fetching-list":"Grabbing list of pages","option-delete":"Delete pages","option-talks":"Delete associated talk pages (except user talk pages)","option-redirects":"Delete redirects to deleted pages","option-subpages":"Delete subpages of deleted pages","option-subpage-talks":"Delete talk pages of deleted subpages","option-subpage-redirects":"Delete redirects to deleted subpages","option-subpage-unlink":"Unlink backlinks to each deleted subpage (in Main and Portal namespaces only)","option-unlink":"Unlink backlinks to each page (in Main and Portal namespaces only)","option-unlink-file":"Remove usages of each file (in all namespaces)","pages-label":"Pages to delete","complete":"Batch deletion is now complete","confirm-protected":"You are about to delete {{formatnum:$1}} fully protected page(s). Are you sure?","dbatch-give-reason":"You need to give a reason, you cabal crony!","dbatch-no-pages":"nothing to delete, aborting","deleting":"Deleting pages","starting":"Initiating requested tasks","deleting-page":"Deleting page $1","deleting-subpages":"Deleting subpages","deleting-subpage":"Deleting subpage $1","fetching-backlinks":"Grabbing backlinks","fetching-filelinks":"Grabbing file links","fetching-redirects":"Grabbing redirects","check-talk":"Checking whether talk page exists","deleting-redirects":"Deleting redirects to $1","delete-redirect-summary":"Redirect to deleted page \\"$1\\"","deleting-talk":"Deleting talk page of page $1","delete-talk-summary":"Talk page of deleted page \\"$1\\"","unlink-page":"Unlinking backlinks to $1","unlink-on":"Unlinking on $1","unlink-summary":"Removing link(s) to deleted page $1","unlink-img-on":"Removing file usages on $1","img-comment":"Commented out because image was deleted","unlink-img-summary":"Removing instance of file $1 that has been deleted because \\"$2\\"","undbatch-restore-talks":"Restore talk pages of undeleted pages if they existed","undbatch-pages-label":"Pages to undelete","undbatch-complete":"Batch undeletion is now complete","undbatch-confirm-protected":"You are about to undelete {{formatnum:$1}} fully create protected page(s). Are you sure?","undbatch-no-pages":"nothing to undelete, aborting","undeleting":"Undeleting pages","undeleting-page":"Undeleting page $1","check-talk-deleted":"Checking talk page for deleted revisions","undeleting-talk-status":"Undeleting talk page of $1","undeleting-talk-summary":"Undeleting talk page of \\"$1\\"","create-protected-indef":"(fully create protected indefinitely)","create-protected":"(fully create protected, expires $1 (UTC))","unlink-title":"Unlinking backlinks","unlink-title-file":"Unlinking backlinks and file usages","unlink-intro":"This tool allows you to unlink all incoming links (\\"backlinks\\") that point to this page. For instance, <code>[[$1|link text]]</code> would become <code>link text</code> and <code>[[$1]]</code> would become <code>$1</code>. Use it with caution.","unlink-intro-file":"This tool allows you to unlink all incoming links (\\"backlinks\\") that point to this page and/or hide all inclusions of this file by wrapping them in &lt;!-- --&gt; comment markup. For instance, <code>[[:$1|link text]]</code> would become <code>link text</code> and <code>[[$1]]</code> would become <code>&lt;!-- [[$1]] --&gt;</code>. Use it with caution.","unlink-give-reason":"You must specify a reason for unlinking.","unlink-select-one":"You must select at least one item to unlink.","unlink-status-links-files":"Unlinking backlinks and instances of file usage","unlink-status-links":"Unlinking backlinks","unlink-status-files":"Unlinking instances of file usage","unlink-in":"Unlinking in page \\"$1\\"","no-file-usage":"No instances of file usage found.","file-usage":"File usage","first-n-files":"First {{formatnum:$1}} file usages shown.","backlinks":"Backlinks","no-backlinks":"No backlinks found.","first-n-links":"First {{formatnum:$1}} backlinks shown.","change-twpref":"You can change this with your Twinkle preferences, linked at the bottom of this Twinkle window","selected-namespaces":"Selected namespaces: {{list:$1}}","commented-out":"Commented out","no-links-files-found":"Didn\'t find any backlinks or file usages on the page.","no-links-found":"Didn\'t find any backlinks on the page.","no-files-found":"Didn\'t find any file usages on the page.","summary-links-files":"Commenting out use(s) of file / Removing link(s) to \\"$1\\"","summary-links":"Removing link(s) to \\"$1\\"","summary-files":"Commenting out use(s) of file to \\"$1\\"","protect-action-type":"Type of action","protect-protect-label":"Protect page","protect-protect-tooltip":"Apply actual protection to the page.","protect-tag-label":"Tag page with protection template","protect-tag-tooltip":"If the protecting admin forgot to apply a protection template, or you have just protected the page without tagging, you can use this to apply the appropriate protection tag.","protect-request-label":"Request page protection","protect-request-tooltip":"If you want to request protection via WP:RPP.","protect-request-sysop-tooltip":"If you want to request protection via WP:RPP instead of doing the protection by yourself.","preset":"Preset","choose-preset":"Choose a preset:","prev-protections":"Previous protections","past-protected":"This page has been protected in the past","sysops-contacted":"Have you attempted to contact the protecting admins ({{list:$1}}) first?","unprotected-time":"unprotected {{date:$1|relative|utc}}","expired-time":"expired {{date:$1|relative|utc}}","expires-time":"expires {{date:$1|relative|utc}}","reset-time":"reset {{date:$1|relative|utc}}","duration-months":"$1 {{plural:$1|month|months}}","protect-options":"Protection options","protect-edit-modify":"Modify edit protection","protect-edit-modify-tooltip":"If this is turned off, the edit protection level, and expiry time, will be left as is.","protect-edit-label":"Edit protection:","protect-move-modify":"Modify move protection","protect-move-modify-tooltip":"If this is turned off, the move protection level, and expiry time, will be left as is.","protect-move-label":"Move protection:","protect-stable-modify":"Modify pending changes protection","protect-stable-modify-tooltip":"If this is turned off, the pending changes level, and expiry time, will be left as is.","protect-stable-label":"Pending changes:","protect-create-label":"Create protection:","protect-reason":"Reason (for protection log):","protect-current-label":"Current protection level","protect-current-none":"<b>no protection</b>","protect-current":"<b>$1: $2</b>","protect-current-cascading":"<b>$1: $2 (cascading)</b>","protect-current-stable":"<b>Pending changes: $1</b>","protect-cascade-from":"<b>Cascading protection</b> from [[$1]]","by-sysop":"by [[{{ns:3}}:$1|$1]]","duration-label":"Duration:","protect-notes-label":"Notes:","note-requested-label":"$1 request","note-requested-tooltip":"Add a note to the protection log that this was requested at $1","note-requested":"requested at $1","request-revid-label":"$1 revision ID","request-revid-tooltip":"Optional revision ID of the $1 page where protection was requested.","protect-select-tag":"Choose protection template:","protect-tag-small-label":"Iconify","protect-tag-small-tooltip":"Will use the |small=yes feature of the template, and only render it as a keylock","protect-tag-noinclude-label":"Wrap protection template with &lt;noinclude&gt;","protect-tag-noinclude-tooltip":"Will wrap the protection template in &lt;noinclude&gt; tags, so that it won\'t transclude","protect-request-preset-label":"Type of protection","protect-request-type-label":"Type and reason:","temporary":"Temporary","custom-expiry-prompt":"Enter a custom expiry time. \\nYou can use relative times, like \\"1 minute\\" or \\"19 days\\", or absolute timestamps, \\"yyyymmddhhmm\\" (e.g. \\"200602011405\\" is Feb 1, 2006, at 14:05 UTC).","all-users":"All","custom-expiry-label":"Custom...","protect-request-exists":"There is already a protection request for this page at [[$1]], aborting.","protect-tag-adding":"Applying protection template","protect-tag-none-status":"nothing to do","protect-tag-exists-prompt":"{{$1}} was found on the page. \\nClick OK to remove it, or click Cancel to leave it there.","protect-tag-removing":"Removing protection template","protect-tag-abort":"Redirect category shell present","nothing-to-do":"nothing to do","block-window-title":"Block or issue block template to $1","block-self-warn":"You are about to block yourself! Are you sure you want to proceed?","block-action":"Block user","block-action-tooltip":"Block the relevant user with the given options. If partial block is unchecked, this will be a sitewide block.","block-partial":"Partial block","block-partial-tooltip":"Enable partial blocks and partial block templates.","block-tag":"Add block template to user talk page","block-tag-tooltip":"Add block template to user talk page","block-64-field-label":"Convert to /64 rangeblock","block-64-help":"It\'s usually fine, if not better, to block the /64 range ([[Special:Contributions/$1|$1]]).","block-64-label":"Block the /64 instead","block-64-template":"Any template issued will go to the original IP: $1","block-tag-options":"Template options","block-block-options":"Block options","block-expiry-indefinite":"indefinite","unblock-label":"Unblock this user","block-custom-expiry":"Custom expiry","block-custom-expiry-tooltip":"You can use relative times, like \\"1 minute\\" or \\"19 days\\", or absolute timestamps, \\"yyyymmddhhmm\\" (e.g. \\"200602011405\\" is Feb 1, 2006, at 14:05 UTC).","fetching-userinfo-error":"Error fetching user info","block-prior-label":"Prior block settings","block-pages-label":"Specific pages to block from editing","block-pages-tooltip":"10 page max.","block-namespaces-label":"Namespace blocks","block-namespaces-tooltip":"Block from editing these namespaces.","block-nocreate-label":"Block account creation","block-noemail-label":"Block user from sending email","block-disabletalk-label":"Prevent this user from editing their own talk page while blocked","block-partial-disabletalk-tooltip":"If issuing a partial block, this MUST remain unchecked unless you are also preventing them from editing User talk space","block-auto-label":"Autoblock any IP addresses used (hardblock)","block-hard-label":"Block logged-in users from using this IP address (hardblock)","block-watch-label":"Watch user and user talk pages","block-reason-label":"Reason (for block log):","block-reason-tooltip":"Consider adding helpful details to the default message.","block-see-label":"See also:","block-see-tooltip":"Insert a \\"see also\\" message to indicate whether the filter log or deleted contributions played a role in the decision to block.","block-see-filter":"Filter log","block-see-deleted":"Deleted contribs","block-tag-template":"Choose talk page template:","block-linked-label":"Linked page","block-linked-tooltip":"A page can be linked within the notice, perhaps if it was the primary target of disruption. Leave empty for no page to be linked.","block-partial-area-label":"Area blocked from","block-partial-area-tooltip":"Optional explanation of the pages or namespaces the user was blocked from editing.","block-tag-expiry":"Period of blocking:","block-tag-expiry-tooltip":"The period the blocking is due for, for example 24 hours, 2 weeks, indefinite etc...","block-tag-reason-label":"You have been blocked for ...","block-tag-reason-tooltip":"An optional reason, to replace the default generic reason. Only available for the generic block templates.","block-tag-noexpiry-label":"Do not include expiry in template","block-tag-noexpiry-tooltip":"Instead of including the duration, make the block template read \\"You have been blocked temporarily...\\"","block-tag-notalk-label":"Talk page access disabled","block-tag-notalk-tooltip":"Make the block template state that the user\'s talk page access has been removed","block-tag-noemail-label":"User blocked from sending email","block-tag-noemail-tooltip":"If the area is not provided, make the block template state that the user\'s email access has been removed","block-tag-nocreate-label":"User blocked from creating accounts","block-tag-nocreate-tooltip":"If the area is not provided, make the block template state that the user\'s ability to create accounts has been removed","select2-badsearch":"Incomplete or invalid search term","block-namespaces-placeholder":"Select namespaces to block user from","block-pages-placeholder":"Select pages to block user from","block-current-partial":"$1 is partially blocked","block-current":"$1 is blocked sitewide","block-current-range":"$1 is blocked sitewide as a rangeblock","block-current-in-range":"$1 is blocked sitewide within a /$2 rangeblock ($3)","block-current-partial-range":"$1 is partially blocked as a rangeblock","block-current-partial-in-range":"$1 is partially blocked within a /$2 rangeblock ($3)","block-expiry-date":"expires {{date:$1|relative|utc}}","block-current-change":"This form will change the existing block.","block-current-add":"This form will add an additional block.","unblocked-ago":"unblocked {{date:$1|relative|utc}}","block-expired":"$1, expired {{date:$2|relative|utc}}","block-log-current":"Previous blocks","block-log-past":"This user has been blocked in the past","block-partial-blank":"No pages or namespaces were selected, nor were email or account creation restrictions applied; please select at least one option to apply a partial block!","block-warn-noexpiry":"Please provide an expiry!","block-warn-indef-ip":"Can\'t indefinitely block an IP address!","block-warn-noreason":"Please provide a reason for the block!","block-doing":"Executing block","block-warn-partial-usertalk":"Partial blocks cannot prevent talk page access unless also restricting them from editing User talk space!","block-conflict":"The block status of $1 has changed. Last block log entry:","block-conflict-block":"Blocked by $1 with comment \\"$2\\". Expiring {{date:$3|relative|utc}}. Do you want to override with your settings?","block-conflict-unblock":"Unblocked by $1 with comment \\"$2\\". ({{date:$3|relative|utc}}.) Do you want to override with your settings?","block-noop":"Please give Twinkle something to do!","block-complete":"Actions complete, loading user talk page in a few seconds","block-tagging-status":"User talk page modification","block-blank-talk":"Blanking talk page per preferences and creating a new talk page section for this month","block-new-section":"Will create a new talk page section for this month, as none was found","search-tags":"Filter tag list:","summary-added":"Added {{list:$1}} {{plural:$2|tag|tags}}","summary-removed":"Removed {{list:$1}} {{plural:$2|tag|tags}}","summary-added-removed":"Added {{list:$1}}; and removed {{list:$2}} {{plural:$3|tag|tags}}","status-added":"Added $1 {{plural:$1|tag|tags}}","status-removed":"Removed $1 {{plural:$1|tag|tags}}","status-added-removed":"Added $1 {{plural:$1|tag|tags}}; Removed $2 {{plural:$2|tag|tags}}","untag-from-read":"For removal of existing tags, please open Tag menu from the current version of article","tags-present-header":"Tags already present","mark-patrolled":"Mark the page as patrolled/reviewed","tag-complete":"Tagging complete, reloading $1 in a few seconds","select-one":"You must select at least one tag!","getting-redirects":"Getting template redirects","cant-reposition":"Failed to find {{$1}} on the page... skip repositioning","cant-remove":"Failed to find {{$1}} on the page... cannot remove","untagging":"Untagging","removing":"Already present tags: removing de-selected tags","resolved-redirect":"Resolved template redirect {{$1}} to {{$2}}","tagging-status":"Tagging $1","tag-fetching-redirects":"Getting redirects for {{list:$1}}","xfd-venue-label":"Deletion discussion venue:","xfd-venue-tooltip":"When activated, a default choice is made, based on what namespace you are in. This default should be the most appropriate.","notify-creator-label":"Notify page creator if possible","notify-creator-tooltip":"A notification template will be placed on the creator\'s talk page if this is true.","deletion-reason-here":"Your deletion rationale is provided below, which you can copy and paste into a new XFD dialog if you wish to try again:","looking-old-nominations":"Looking for prior nominations of this page","bad-venue":"Unrecognised venue: $1","nomination-complete-redirect":"Nomination complete, now redirecting to the discussion page","protected-no-editreq":"Page protected and nowhere to add an edit request, aborting","protected-editreq":"Page protected, requesting edit","posting-editreq":"Automatically posting edit request on talk page","xfd-editreq-title":"Edit request to complete $1 nomination","xfd-editreq-failed":"Unable to add edit request, the talk page may be protected","fetching-creator":"Finding page creator","notifying-creator":"Notifying initial contributor ($1)","pref-logxfdnominations-label":"Keep a log in userspace of all pages you nominate for a deletion discussion (XfD)","pref-logxfdnominations-tooltip":"The userspace log offers a good way to keep track of all pages you nominate for XfD using Twinkle.","pref-xfdlogpagename-label":"Keep the deletion discussion userspace log at this user subpage","pref-xfdlogpagename-tooltip":"Enter a subpage name in this box. You will find your XfD log at User:<i>username</i>/<i>subpage name</i>. Only works if you turn on the XfD userspace log.","pref-xfdwatchpage-label":"Add the nominated page to watchlist","pref-xfdwatchdiscussion-label":"Add the deletion discussion page to watchlist","pref-xfdwatchlist-label":"Add the daily log or list page to the watchlist","pref-xfdwatchlist-tooltip":"This only applies for venues where the discussion takes place on a newly-created page which is transcluded on to a log or list page.","pref-xfdwatchuser-label":"Add user talk page of initial contributor to watchlist (when notifying)"}'),D=(N="uselang",mw.util.getParamValue(N)||mw.config.get("wgContentLanguage")),R={date:function(e){var t="function"==typeof e[0].getTime?new Morebits.date(e[0].getTime()):new Morebits.date(e[0]),a=e[1],i="utc"===e[2]?"utc":void 0;return"relative"===a?t.calendar(i):t.format(a,i)},int:function(e){var t=e[0],a=e.slice(1);return W.apply(void 0,m([t],a))},ns:function(e){var t=String(e[0]).trim();return/^\d+$/.test(t)||(t=String(mw.config.get("wgNamespaceIds")[t.replace(/ /g,"_").toLowerCase()])),(t=mw.config.get("wgFormattedNamespaces")[t])||""},ucfirst:function(e){return Morebits.string.toUpperCaseFirstChar(e[0])},lcfirst:function(e){return Morebits.string.toLowerCaseFirstChar(e[0])},list:function(e){for(var t=e[0],a="",i=0;i<t.length;i++)a+=t[i],t.length-2===i?a+=W("and")+W("word-separator"):t.length-1!==i&&(a+=W("comma-separator"));return a},sysop:function(e){return Morebits.userIsSysop?e[1]:e[2]}};function E(e){P.load(e,D)}function W(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(!P)throw new Error("Can't emit messages before initMessaging() has run!");return A?"("+e+")":P.i18n.apply(P,m([e],t))}var I;function F(e,t){for(var a=[],i=0;i<e.length;i+=50)a.push(x.getMessages(e.slice(i,i+50),{amlang:t,maxage:31536e3,smaxage:31536e3,uselang:"content"}).then((function(e){E(e)})));return Promise.all(a)}function L(e){if("en"===e)return Promise.resolve();var t="tw-i18n-"+e,a=mw.storage.getObject(t);return a&&new Morebits.date(a["@timestamp"]).add(2,"days").isAfter(new Date)?(U(a),Promise.resolve()):$.get("https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/gadgets/TwinkleCore/+/i18n/build-i18n/"+e+".json?format=text").then((function(e){var a=JSON.parse(decodeURIComponent(window.atob(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")));a["@timestamp"]=(new Date).toISOString(),mw.storage.setObject(t,a),U(a)}),(function(e){mw.log.warn("[twinkle]: no messages loaded from gerrit.",e)}))}function U(e){P.setFallbackLocales(e["@fallbacks"]),delete e["@fallbacks"],delete e["@timestamp"];for(var t=0,a=T(e);t<a.length;t++){var i=a[t],n=i[0],o=i[1];o["@pluralrules"]&&P.setPluralRules(n,o["@pluralrules"]),o["@digittransforms"]&&P.setDigitTransforms(n,o["@digittransforms"])}P.load(e)}var O={optionsVersion:2,userTalkPageMode:"tab",dialogLargeFont:!1,disabledModules:[],disabledSysopModules:[],portletArea:null,portletId:null,portletName:null,portletType:null,portletNext:null,autolevelStaleDays:3,revertMaxRevisions:50,batchMax:5e3,batchChunks:50,summaryAd:" ([[WP:TW|TW]])",deletionSummaryAd:" ([[WP:TW|TW]])",protectionSummaryAd:" ([[WP:TW|TW]])",logXfdNominations:!1,xfdLogPageName:"XfD log",noLogOnXfdNomination:[],xfdWatchDiscussion:"default",xfdWatchList:"no",xfdWatchPage:"default",xfdWatchUser:"default",xfdWatchRelated:"default",markXfdPagesAsPatrolled:!0,autoMenuAfterRollback:!1,openTalkPage:["agf","norm","vand"],openTalkPageOnAutoRevert:!1,rollbackInPlace:!1,markRevertedPagesAsMinor:["vand"],watchRevertedPages:["agf","norm","vand","torev"],watchRevertedExpiry:"1 month",offerReasonOnNormalRevert:!0,confirmOnFluff:!1,confirmOnMobileFluff:!0,showRollbackLinks:["diff","others"],speedySelectionStyle:"buttonClick",watchSpeedyPages:["g3","g5","g10","g11","g12"],watchSpeedyExpiry:"1 month",markSpeedyPagesAsPatrolled:!1,defaultWarningGroup:"1",combinedSingletMenus:!1,showSharedIPNotice:!0,watchWarnings:"1 month",oldSelect:!1,customWarningList:[],spiWatchReport:"yes",topWelcomes:!1,watchWelcomes:"3 months",insertUsername:!0,quickWelcomeMode:"norm",quickWelcomeTemplate:"welcome",customWelcomeList:[],customWelcomeSignature:!0,markSharedIPAsMinor:!0,markTalkbackAsMinor:!0,insertTalkbackSignature:!0,talkbackHeading:"New message from "+mw.config.get("wgUserName"),mailHeading:"You've got mail!"};function j(e){e.forEach((function(e){O[e.name]=e.value}))}function B(e){return"object"==typeof I&&void 0!==I[e]?I[e]:"object"==typeof window.TwinkleConfig&&void 0!==window.TwinkleConfig[e]?window.TwinkleConfig[e]:"object"==typeof window.FriendlyConfig&&void 0!==window.FriendlyConfig[e]?window.FriendlyConfig[e]:O[e]}var G=function(){function e(){}return e.addGroup=function(t,a){e.sections[t]=a},e.addPreference=function(t,a){e.sections[t].preferences.push(a)},e.init=function(){if(mw.config.get("wgNamespaceNumber")===mw.config.get("wgNamespaceIds").project&&"Twinkle/Preferences"===mw.config.get("wgTitle")&&"view"===mw.config.get("wgAction")){if(!document.getElementById("twinkle-config"))return;document.getElementById("twinkle-config-titlebar").style.backgroundImage="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAkCAMAAAB%2FqqA%2BAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAEhQTFRFr73ZobTPusjdsMHZp7nVwtDhzNbnwM3fu8jdq7vUt8nbxtDkw9DhpbfSvMrfssPZqLvVztbno7bRrr7W1d%2Fs1N7qydXk0NjpkW7Q%2BgAAADVJREFUeNoMwgESQCAAAMGLkEIi%2FP%2BnbnbpdB59app5Vdg0sXAoMZCpGoFbK6ciuy6FX4ABAEyoAef0BXOXAAAAAElFTkSuQmCC)";var t=document.getElementById("twinkle-config-content");if(t.textContent="",window.TwinkleConfig||window.FriendlyConfig){var a=document.createElement("p");a.innerHTML='<table class="plainlinks ombox ombox-content"><tr><td class="mbox-image"><img alt="" src="https://upload.wikimedia.org/wikipedia/commons/3/38/Imbox_content.png" /></td><td class="mbox-text"><p><big><b>Before modifying your settings here,</b> you must remove your old Twinkle and Friendly settings from your personal skin JavaScript.</big></p><p>To do this, you can <a href="'+mw.util.getUrl("User:"+mw.config.get("wgUserName")+"/"+mw.config.get("skin")+".js",{action:"edit"})+'" target="_blank"><b>edit your personal skin javascript file</b></a> or <a href="'+mw.util.getUrl("User:"+mw.config.get("wgUserName")+"/common.js",{action:"edit"})+'" target="_blank"><b>your common.js file</b></a>, removing all lines of code that refer to <code>TwinkleConfig</code> and <code>FriendlyConfig</code>.</p></td></tr></table>',t.appendChild(a)}var i=document.createElement("div");i.className="toc",i.style.marginLeft="0.4em";var n=document.createElement("div");n.id="toctitle";var o=document.createElement("h2");o.textContent="Contents ",n.appendChild(o);var r=document.createElement("span");r.className="toctoggle",r.appendChild(document.createTextNode("["));var s=document.createElement("a");s.className="internal",s.setAttribute("href","#tw-tocshowhide"),s.textContent="hide",r.appendChild(s),r.appendChild(document.createTextNode("]")),n.appendChild(r),i.appendChild(n);var l=document.createElement("ul");s.addEventListener("click",(function(){var e=$(l);e.toggle(),e.find(":visible").length?s.textContent="hide":s.textContent="show"}),!1),i.appendChild(l),t.appendChild(i);var d=document.createElement("form");d.setAttribute("action","javascript:void(0)"),d.addEventListener("submit",e.save,!0),t.appendChild(d);var c=document.createElement("table");c.style.width="100%",d.appendChild(c),k(e.sections).forEach((function(t){if(t.hidden||t.adminOnly&&!Morebits.userIsSysop)return!0;var a=document.createElement("li");a.className="toclevel-1";var i=document.createElement("a");i.setAttribute("href","#"+t.module),i.appendChild(document.createTextNode(t.title)),a.appendChild(i),l.appendChild(a);var n=document.createElement("tr"),o=document.createElement("td");o.setAttribute("colspan","3");var r=document.createElement("h4");r.style.borderBottom="1px solid gray",r.style.marginTop="0.2em",r.id=t.module,r.appendChild(document.createTextNode(t.title)),o.appendChild(r),n.appendChild(o),c.appendChild(n);var s=1;return t.preferences.forEach((function(t){if(t.adminOnly&&!Morebits.userIsSysop)return!0;(n=document.createElement("tr")).style.marginBottom="0.2em",s++%2==0&&(n.style.backgroundColor="rgba(128, 128, 128, 0.1)"),o=document.createElement("td");var a,i,r=B(t.name);switch(t.type){case"boolean":o.setAttribute("colspan","2"),a=document.createElement("label"),(i=document.createElement("input")).setAttribute("type","checkbox"),i.setAttribute("id",t.name),i.setAttribute("name",t.name),!0===r&&i.setAttribute("checked","checked"),a.appendChild(i),a.appendChild(document.createTextNode(" "+t.label)),o.appendChild(a);break;case"string":case"integer":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em",(i=document.createElement("input")).setAttribute("type","text"),i.setAttribute("id",t.name),i.setAttribute("name",t.name),"integer"===t.type&&(i.setAttribute("size",6),i.setAttribute("type","number"),i.setAttribute("step","1")),r&&i.setAttribute("value",r),o.appendChild(i);break;case"enum":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em",(i=document.createElement("select")).setAttribute("id",t.name),i.setAttribute("name",t.name),$.each(t.enumValues,(function(e,t){var a=document.createElement("option");a.setAttribute("value",e),(r===e||"boolean"==typeof r&&(r&&"yes"===e||!r&&"no"===e))&&a.setAttribute("selected","selected"),a.appendChild(document.createTextNode(t)),i.appendChild(a)})),o.appendChild(i);break;case"set":o.setAttribute("colspan","2"),(a=document.createElement("label")).appendChild(document.createTextNode(t.label+":")),o.appendChild(a);var l=document.createElement("div");l.style.paddingLeft="1em";var d=function(e,a){var i=document.createElement("label");i.style.marginRight="0.7em",i.style.display="inline-block";var n=document.createElement("input");n.setAttribute("type","checkbox"),n.setAttribute("id",t.name+"_"+e),n.setAttribute("name",t.name+"_"+e),r&&-1!==r.indexOf(e)&&n.setAttribute("checked","checked"),"unlinkNamespaces"===t.name&&r&&-1!==r.indexOf(parseInt(e,10))&&n.setAttribute("checked","checked"),i.appendChild(n),i.appendChild(document.createTextNode(a)),l.appendChild(i)};t.setDisplayOrder?$.each(t.setDisplayOrder,(function(e,a){d(a,t.setValues[a])})):$.each(t.setValues,d),o.appendChild(l);break;case"customList":o.style.textAlign="right",o.style.paddingRight="0.5em",(a=document.createElement("label")).setAttribute("for",t.name),a.appendChild(document.createTextNode(t.label+":")),o.appendChild(a),n.appendChild(o),(o=document.createElement("td")).style.paddingRight="1em";var u=document.createElement("button");u.setAttribute("id",t.name),u.setAttribute("name",t.name),u.setAttribute("type","button"),u.addEventListener("click",q.display,!1),$(u).data({value:r,pref:t}),u.appendChild(document.createTextNode("Edit items")),o.appendChild(u);break;default:alert("twinkleconfig: unknown data type for preference "+t.name)}if(n.appendChild(o),(o=document.createElement("td")).style.fontSize="90%",o.style.color="gray",t.helptip&&(o.innerHTML=t.helptip.replace(/{{(.+?)}}/g,'{{<a href="'+mw.util.getUrl("Template:")+'$1" target="_blank">$1</a>}}')),"customList"!==t.type){var p=document.createElement("a");p.setAttribute("href","#tw-reset"),p.setAttribute("id","twinkle-config-reset-"+t.name),p.addEventListener("click",e.resetPrefLink,!1),p.style.cssFloat="right",p.style.margin="0 0.6em",p.appendChild(document.createTextNode("Reset")),o.appendChild(p)}return n.appendChild(o),c.appendChild(n),!0})),!0}));var u=document.createElement("div");u.setAttribute("id","twinkle-config-buttonpane"),u.style.backgroundColor="#BCCADF",u.style.padding="0.5em";var p=document.createElement("button");p.setAttribute("id","twinkle-config-submit"),p.setAttribute("type","submit"),p.appendChild(document.createTextNode("Save changes")),u.appendChild(p);var g=document.createElement("span");g.className="plainlinks",g.style.marginLeft="2.4em",g.style.fontSize="90%";var m=document.createElement("a");if(m.setAttribute("href","#tw-reset-all"),m.setAttribute("id","twinkle-config-resetall"),m.addEventListener("click",e.resetAllPrefs,!1),m.appendChild(document.createTextNode("Restore defaults")),g.appendChild(m),u.appendChild(g),d.appendChild(u),window.location.hash){var f=window.location.hash;window.location.hash="",window.location.hash=f}}else if(mw.config.get("wgNamespaceNumber")===mw.config.get("wgNamespaceIds").user&&0===mw.config.get("wgTitle").indexOf(mw.config.get("wgUserName"))&&".js"===mw.config.get("wgPageName").slice(-3)){var h=document.createElement("div");h.setAttribute("id","twinkle-config-headerbox");var b,y=mw.config.get("wgPageName").slice(mw.config.get("wgPageName").lastIndexOf("/")+1,mw.config.get("wgPageName").lastIndexOf(".js"));"twinkleoptions"===y?(h.setAttribute("class","config-twopt-box"),mw.config.get("wgArticleId")>0?h.appendChild(document.createTextNode("This page contains your Twinkle preferences. You can change them using the ")):h.appendChild(document.createTextNode("You can customize Twinkle to suit your preferences by using the ")),(b=document.createElement("a")).setAttribute("href",mw.util.getUrl(mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").project]+":Twinkle/Preferences")),b.appendChild(document.createTextNode("Twinkle preferences panel")),h.appendChild(b),h.appendChild(document.createTextNode(", or by editing this page.")),$(h).insertAfter($("#contentSub"))):-1!==["monobook","vector","cologneblue","modern","timeless","minerva","common"].indexOf(y)&&(h.setAttribute("class","config-userskin-box"),h.appendChild(document.createTextNode("If you want to set Twinkle preferences, you can use the ")),(b=document.createElement("a")).setAttribute("href",mw.util.getUrl(mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").project]+":Twinkle/Preferences")),b.appendChild(document.createTextNode("Twinkle preferences panel")),h.appendChild(b),h.appendChild(document.createTextNode(".")),$(h).insertAfter($("#contentSub")))}},e.resetPrefLink=function(t){var a=t.target.id.substring(21);return k(e.sections).forEach((function(t){if(t.hidden||t.adminOnly&&!Morebits.userIsSysop)return!0;var i=!1;return t.preferences.forEach((function(t){return t.name!==a||(e.resetPref(t),i=!0,!1)})),!i&&void 0})),!1},e.resetPref=function(e){switch(e.type){case"boolean":document.getElementById(e.name).checked=O[e.name];break;case"string":case"integer":case"enum":document.getElementById(e.name).value=O[e.name];break;case"set":$.each(e.setValues,(function(t){var a=document.getElementById(e.name+"_"+t);a&&(a.checked=-1!==O[e.name].indexOf(t))}));break;case"customList":$(document.getElementById(e.name)).data("value",O[e.name]);break;default:alert("twinkleconfig: unknown data type for preference "+e.name)}},e.resetAllPrefs=function(){return k(e.sections).forEach((function(t){return t.hidden||t.adminOnly&&!Morebits.userIsSysop||t.preferences.forEach((function(t){t.adminOnly&&!Morebits.userIsSysop||e.resetPref(t)})),!0})),!1},e.save=function(t){Morebits.status.init(document.getElementById("twinkle-config-content"));var a=mw.config.get("wgFormattedNamespaces")[mw.config.get("wgNamespaceIds").user]+":"+mw.config.get("wgUserName")+"/twinkleoptions.js",i=new Morebits.wiki.page(a,"Saving preferences to "+a);return i.setCallbackParameters(t.target),i.load(e.writePrefs),!1},e.writePrefs=function(t){var a=t.getCallbackParameters(),i={optionsVersion:2.1};k(e.sections).forEach((function(e){e.adminOnly&&!Morebits.userIsSysop||e.preferences.forEach((function(t){var n;if(!t.adminOnly||Morebits.userIsSysop)if(e.hidden)I&&(n=I[t.name]);else switch(t.type){case"boolean":n=a[t.name].checked;break;case"string":case"enum":n=a[t.name].value;break;case"integer":n=parseInt(a[t.name].value,10),isNaN(n)&&(Morebits.status.warn("Saving","The value you specified for "+t.name+" ("+a[t.name].value+") was invalid. The save will continue, but the invalid data value will be skipped."),n=null);break;case"set":n=[],t.setDisplayOrder?$.each(t.setDisplayOrder,(function(e,i){a[t.name+"_"+i].checked&&n.push(i)})):$.each(t.setValues,(function(e){a[t.name+"_"+e].checked&&n.push(e)}));break;case"customList":n=$(a[t.name]).data("value");break;default:alert("twinkleconfig: unknown data type for preference "+t.name)}void 0===n||function(e,t){if(Array.isArray(e)){if(e.length!==t.length)return!1;for(var a=e.sort(),i=t.sort(),n=0;a[n];++n){if("object"==typeof a[n]&&(a[n].label!==i[n].label||a[n].value!==i[n].value))return!1;if(a[n].toString()!==i[n].toString())return!1}return!0}return e===t}(n,O[t.name])||(i[t.name]=n)}))}));var o="// twinkleoptions.js: personal Twinkle preferences file\n//\n// NOTE: The easiest way to change your Twinkle preferences is by using the\n// Twinkle preferences panel, at [["+Morebits.pageNameNorm+']].\n//\n// This file is AUTOMATICALLY GENERATED. Any changes you make (aside from\n// changing the configuration parameters in a valid-JavaScript way) will be\n// overwritten the next time you click "save" in the Twinkle preferences\n// panel. If modifying this file, make sure to use correct JavaScript.\n// <no"+"wiki>\n\nwindow.Twinkle.prefs = ';o+=JSON.stringify(i,null,2),o+=";\n\n// </no"+"wiki>\n// End of twinkleoptions.js\n",t.setPageText(o),t.setEditSummary("Saving Twinkle preferences: automatic edit from [[:"+Morebits.pageNameNorm+"]]"),t.setChangeTags(n.changeTags),t.setCreateOption("recreate"),t.save(e.saveSuccess)},e.saveSuccess=function(e){e.getStatusElement().info("successful");var t=document.createElement("div");t.className="successbox",t.style.fontSize="100%",t.style.marginTop="2em",t.innerHTML='<p><b>Your Twinkle preferences have been saved.</b></p><p>To see the changes, you will need to <b>clear your browser cache entirely</b> (see <a href="'+mw.util.getUrl("WP:BYPASS")+'" title="WP:BYPASS">WP:BYPASS</a> for instructions).</p>',Morebits.status.root.appendChild(t);var a=document.createElement("br");a.style.clear="both",Morebits.status.root.appendChild(a)},e.sections={general:{title:"General",module:"general",preferences:[{name:"userTalkPageMode",label:"When opening a user talk page, open it",type:"enum",enumValues:{window:"In a window, replacing other user talks",tab:"In a new tab",blank:"In a totally new window"},default:"tab"},{name:"dialogLargeFont",label:"Use larger text in Twinkle dialogs",type:"boolean",default:!1},{name:"disabledModules",label:"Turn off the selected Twinkle modules",helptip:"Anything you select here will NOT be available for use, so act with care. Uncheck to reactivate.",type:"set",setValues:{arv:"ARV",warn:"Warn",welcome:"Welcome",shared:"Shared IP",talkback:"Talkback",speedy:"CSD",prod:"PROD",xfd:"XfD",image:"Image (DI)",protect:"Protect (RPP)",tag:"Tag",diff:"Diff",unlink:"Unlink",fluff:"Revert and rollback"},default:[]},{name:"disabledSysopModules",label:"Turn off the selected admin-only modules",helptip:"Anything you select here will NOT be available for use, so act with care. Uncheck to reactivate.",adminOnly:!0,type:"set",setValues:{block:"Block",deprod:"DePROD",batchdelete:"D-batch",batchprotect:"P-batch",batchundelete:"Und-batch"},default:[]}]},hidden:{title:"Hidden",hidden:!0,preferences:[{name:"portletArea",type:"string"},{name:"portletId",type:"string"},{name:"portletName",type:"string"},{name:"portletType",type:"string"},{name:"portletNext",type:"string"},{name:"revertMaxRevisions",type:"integer",default:50},{name:"autolevelStaleDays",type:"integer",default:3},{name:"batchMax",type:"integer",adminOnly:!0,default:5e3},{name:"batchChunks",type:"integer",adminOnly:!0,default:50}]}},e.watchlistEnums={yes:"Add to watchlist (indefinitely)",no:"Don't add to watchlist",default:"Follow your site preferences","1 week":"Watch for 1 week","1 month":"Watch for 1 month","3 months":"Watch for 3 months","6 months":"Watch for 6 months"},e.commonSets={csdCriteria:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g5:"G5",g6:"G6",g7:"G7",g8:"G8",g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u1:"U1",u2:"U2",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f7:"F7",f8:"F8",f9:"F9",f10:"F10",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdCriteriaDisplayOrder:["db","g1","g2","g3","g4","g5","g6","g7","g8","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u1","u2","u3","u5","f1","f2","f3","f7","f8","f9","f10","c1","r2","r3","r4","p1","p2"],csdCriteriaNotification:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g6:'G6 ("copy-paste move" only)',g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f7:"F7",f9:"F9",f10:"F10",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdCriteriaNotificationDisplayOrder:["db","g1","g2","g3","g4","g6","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u3","u5","f1","f2","f3","f7","f9","f10","c1","r2","r3","r4","p1","p2"],csdAndDICriteria:{db:"Custom rationale ({{db}})",g1:"G1",g2:"G2",g3:"G3",g4:"G4",g5:"G5",g6:"G6",g7:"G7",g8:"G8",g10:"G10",g11:"G11",g12:"G12",g13:"G13",g14:"G14",a1:"A1",a2:"A2",a3:"A3",a5:"A5",a7:"A7",a9:"A9",a10:"A10",a11:"A11",u1:"U1",u2:"U2",u3:"U3",u5:"U5",f1:"F1",f2:"F2",f3:"F3",f4:"F4",f5:"F5",f6:"F6",f7:"F7",f8:"F8",f9:"F9",f10:"F10",f11:"F11",c1:"C1",r2:"R2",r3:"R3",r4:"R4",p1:"P1",p2:"P2"},csdAndDICriteriaDisplayOrder:["db","g1","g2","g3","g4","g5","g6","g7","g8","g10","g11","g12","g13","g14","a1","a2","a3","a5","a7","a9","a10","a11","u1","u2","u3","u5","f1","f2","f3","f4","f5","f6","f7","f8","f9","f10","f11","c1","r2","r3","r4","p1","p2"],namespacesNoSpecial:{0:"Article",1:"Talk (article)",2:"User",3:"User talk",4:"Wikipedia",5:"Wikipedia talk",6:"File",7:"File talk",8:"MediaWiki",9:"MediaWiki talk",10:"Template",11:"Template talk",12:"Help",13:"Help talk",14:"Category",15:"Category talk",100:"Portal",101:"Portal talk",108:"Book",109:"Book talk",118:"Draft",119:"Draft talk",710:"TimedText",711:"TimedText talk",828:"Module",829:"Module talk"}},e}(),q=function(){function e(){}return e.addRow=function(e,t,a){var i=document.createElement("tr"),n=document.createElement("td"),o=document.createElement("button");o.setAttribute("type","button"),o.addEventListener("click",(function(){$(i).remove()}),!1),o.textContent="Remove",n.appendChild(o),i.appendChild(n),n=document.createElement("td");var r=document.createElement("input");r.setAttribute("type","text"),r.className="twinkle-config-customlist-value",r.style.width="97%",t&&r.setAttribute("value",t),n.appendChild(r),i.appendChild(n),n=document.createElement("td"),(r=document.createElement("input")).setAttribute("type","text"),r.className="twinkle-config-customlist-label",r.style.width="98%",a&&r.setAttribute("value",a),n.appendChild(r),i.appendChild(n),e.appendChild(i)},e.display=function(t){var a=$(t.target),i=a.data("value"),n=a.data("pref"),o=new Morebits.simpleWindow(720,400);o.setTitle(n.label),o.setScriptName("Twinkle preferences");var r=document.createElement("div"),s=document.createElement("table");s.className="wikitable",s.style.margin="1.4em 1em",s.style.width="auto";var l=document.createElement("tbody"),d=document.createElement("tr"),c=document.createElement("th");c.style.width="5%",d.appendChild(c),(c=document.createElement("th")).style.width="35%",c.textContent=n.customListValueTitle?n.customListValueTitle:"Value",d.appendChild(c),(c=document.createElement("th")).style.width="60%",c.textContent=n.customListLabelTitle?n.customListLabelTitle:"Label",d.appendChild(c),l.appendChild(d);var u=!1;$.each(i,(function(t,a){u=!0,e.addRow(l,a.value,a.label)})),u||e.addRow(l);var p=document.createElement("tfoot");d=document.createElement("tr");var g=document.createElement("td");g.setAttribute("colspan","3");var m=document.createElement("button");m.style.minWidth="8em",m.setAttribute("type","button"),m.addEventListener("click",(function(){e.addRow(l)}),!1),m.textContent="Add",g.appendChild(m),d.appendChild(g),p.appendChild(d),s.appendChild(l),s.appendChild(p),r.appendChild(s);var f=document.createElement("button");f.setAttribute("type","submit"),f.addEventListener("click",(function(){e.save(a,l),o.close()}),!1),f.textContent="Save changes",r.appendChild(f),(f=document.createElement("button")).setAttribute("type","submit"),f.addEventListener("click",(function(){e.reset(a,l)}),!1),f.textContent="Reset",r.appendChild(f),(f=document.createElement("button")).setAttribute("type","submit"),f.addEventListener("click",(function(){o.close()}),!1),f.textContent="Cancel",r.appendChild(f),o.setContent(r),o.display()},e.reset=function(t,a){var i=$(t),n=i.data("pref"),o=i.data("value");G.resetPref(n),$(a).find("tr").slice(1).remove();var r=i.data("value");$.each(r,(function(t,i){e.addRow(a,i.value,i.label)})),i.data("value",o)},e.save=function(e,t){var a=[],i={};$(t).find('input[type="text"]').each((function(e,t){$(t).hasClass("twinkle-config-customlist-value")?i={value:t.value}:(i.label=t.value,(i.value||i.label)&&a.push(i))})),$(e).data("value",a)},e}();function _(e,t,a,i){null!==B("portletArea")&&function(e,t,a,i,n){var o=document.getElementById(e)||document.querySelector(e);if(!o)return null;var r,s=document.getElementById(t);if(s)return s.parentNode&&s.parentNode===o?s:null;n&&(r=document.getElementById(n));var l,d,c=mw.config.get("skin");("vector"!==c||"left-navigation"!==e&&"right-navigation"!==e)&&(i=null);switch(c){case"vector":"portal"!==e&&"left-navigation"!==e&&"right-navigation"!==e&&(e="mw-panel"),l="mw-portlet vector-menu vector-menu-"+("mw-panel"===e?"portal":"menu"===i?"dropdown vector-menu-dropdown-noicon":"tabs"),d="vector-menu-content";break;case"modern":"mw_portlets"!==e&&"mw_contentwrapper"!==e&&(e="mw_portlets"),l="portlet";break;case"timeless":l="mw-portlet",d="mw-portlet-body";break;default:e="column-one",l="portlet"}var u=document.createElement("nav");u.setAttribute("aria-labelledby",t+"-label"),u.className=l+" emptyPortlet",u.id=t,r&&r.parentNode===o?o.insertBefore(u,r):o.appendChild(u);var p=document.createElement("h3");p.id=t+"-label";var g=document.createElement("ul");if("vector"===c){if(g.className="vector-menu-content-list",-1!==l.indexOf("vector-menu-dropdown")){var m=document.createElement("input");m.className="vector-menu-checkbox",m.setAttribute("type","checkbox"),m.setAttribute("aria-labelledby",t+"-label"),u.appendChild(m);var f=document.createElement("span");f.appendChild(document.createTextNode(a)),p.appendChild(f);var h=document.createElement("a");h.href="#",$(h).click((function(e){e.preventDefault()})),p.appendChild(h)}}else p.appendChild(document.createTextNode(a));if(u.appendChild(p),d){var b=document.createElement("div");b.className=d,b.appendChild(g),u.appendChild(b)}else u.appendChild(g)}(B("portletArea"),B("portletId"),B("portletName"),B("portletType"),B("portletNext"));var n=mw.util.addPortletLink(B("portletId"),"string"==typeof e?e:"#",t,a,i);return $(".client-js .skin-vector #p-cactions").css("margin-right","initial"),"function"==typeof e&&$(n).click((function(t){e(),t.preventDefault()})),$.collapsibleTabs&&$.collapsibleTabs.handleResize(),n}var z=function(){function e(){}return e.userPreferences=function(){},e.prototype.addPreference=function(e){G.addPreference(this.moduleName,e)},e.prototype.addMenu=function(){var e=this;_((function(){return e.makeWindow()}),this.portletName,this.portletId||"twinkle-"+this.moduleName.toLowerCase(),this.portletTooltip)},e.prototype.makeWindow=function(){},e}();function Y(e){var t=e.userPreferences();t&&(G.addGroup(e.moduleName,g(g({},t),{module:e.moduleName})),j(t.preferences.map((function(e){return{name:e.name,value:e.default}})))),H.includes(e.moduleName)||(n[e.moduleName.toLowerCase()]=new e)}var H=[];var V=JSON.parse('{"@comment":"This file contains project-specific overrides for twinkle-core messages."}'),X=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.trustedBots=[],t.hiddenName="an unknown user",t}return p(t,e),t}(function(e){function t(){var t=e.call(this)||this;return t.moduleName="fluff",t.skipTalk=null,t.rollbackInPlace=null,t.flaggedRevsEnabled=!!mw.loader.moduleRegistry["ext.flaggedRevs.basic"],t.linkBuilder={spanTag:function(e,t){var a=document.createElement("span");return a.style.color=e,a.appendChild(document.createTextNode(t)),a},buildLink:function(e,a){var i=document.createElement("a");return i.appendChild(t.linkBuilder.spanTag("Black","[")),i.appendChild(t.linkBuilder.spanTag(e,a)),i.appendChild(t.linkBuilder.spanTag("Black","]")),i.href="#",i},rollbackLinks:function(e,a,i,n){void 0===a&&(a=!1),e=e||null;var o=a?"span":"div",r=document.createElement(o);(i=parseInt(i,10))?r.setAttribute("id","tw-revert"+i):r.setAttribute("id","tw-revert");var s=document.createElement("strong"),l=document.createElement("strong"),d=t.linkBuilder.buildLink("SteelBlue",W("link-rollback")),c=t.linkBuilder.buildLink("Red",W("link-vandalism"));$(d).click((function(){t.revert("norm",e,i,n),t.disableLinks(r)})),$(c).click((function(){t.revert("vand",e,i,n),t.disableLinks(r)})),l.appendChild(c),s.appendChild(d);var u=a?" ":" || ";if(!a){var p=document.createElement("strong"),g=t.linkBuilder.buildLink("DarkOliveGreen",W("link-goodfaith-rollback"));$(g).click((function(){t.revert("agf",e,i,n)})),p.appendChild(g),r.appendChild(p)}return r.appendChild(document.createTextNode(u)),r.appendChild(s),r.appendChild(document.createTextNode(u)),r.appendChild(l),r},restoreThisRevisionLink:function(e,a){void 0===a&&(a=!1),e="number"==typeof e?e:mw.config.get(e);var i=a?"span":"div",n=document.createElement(i);n.setAttribute("id","tw-revert-to-"+e),n.style.fontWeight="bold";var o=t.linkBuilder.buildLink("SaddleBrown",W("restore-revision"));return $(o).click((function(){t.revertToRevision(e)})),a&&n.appendChild(document.createTextNode(" ")),n.appendChild(o),n}},t.addLinks={contributions:function(){var e=!!$("#sp-contributions-footer-anon-range")[0];if(mw.config.exists("wgRelevantUserName")||e){var a=mw.config.get("wgRelevantUserName");if(-1!==B("showRollbackLinks").indexOf("contribs")||mw.config.get("wgUserName")!==a&&-1!==B("showRollbackLinks").indexOf("others")||mw.config.get("wgUserName")===a&&-1!==B("showRollbackLinks").indexOf("mine"))$("#mw-content-text").find("ul li:has(span.mw-uctop):has(.mw-changeslist-diff)").each((function(i,n){var o=$(n).find(".mw-contributions-title").text();e&&(a=$(n).find(".mw-userlink:not(.history-deleted)").text()),n.appendChild(t.linkBuilder.rollbackLinks(a,!0,n.dataset.mwRevid,o))}))}},recentchanges:function(){if(-1!==B("showRollbackLinks").indexOf("recent")){var e=$(".mw-changeslist .mw-changeslist-last.mw-changeslist-src-mw-edit");(e=e.not(".mw-rcfilters-ui-highlights-enhanced-toplevel").find(".mw-changeslist-line-inner, td.mw-enhanced-rc-nested")).each((function(e,a){var i=$(a).find(".mw-userlink:not(.history-deleted)").text(),n=$(a).find(".mw-changeslist-diff").attr("href"),o=mw.util.getParamValue("diff",n),r=a.dataset.targetPage;a.appendChild(t.linkBuilder.rollbackLinks(i,!0,o,r))}))}},history:function(){if(-1!==B("showRollbackLinks").indexOf("history")){var e=$("#pagehistory li").toArray();if(!$(".mw-firstlink").length)for(var a=e.shift(),i=$(a).find(".mw-userlink:not(.history-deleted)").text(),n=0;n<e.length;n++)if($(e[n]).find(".mw-userlink").text()!==i){a.appendChild(t.linkBuilder.rollbackLinks(i,!0));break}e.forEach((function(e){var a=e.querySelector(".mw-changeslist-date").href,i=parseInt(mw.util.getParamValue("oldid",a),10);isNaN(i)||e.appendChild(t.linkBuilder.restoreThisRevisionLink(i,!0))}))}},diff:function(){var e=function(e){var t=$("#mw-diff-"+e+"2 .mw-usertoollinks a").first();if(t.length){var a="vanarticle="+mw.util.rawurlencode(Morebits.pageNameNorm)+"&noautowarn=true";a+="&vanarticlerevid=",a+="otitle"===e?mw.config.get("wgDiffOldId"):mw.config.get("wgDiffNewId");var i=t.attr("href");-1===i.indexOf("?")?t.attr("href",i+"?"+a):t.attr("href",i+"&"+a)}};if(e("otitle"),mw.config.get("wgDiffOldId")&&mw.config.get("wgDiffOldId")!==mw.config.get("wgDiffNewId")){var a=document.getElementById("mw-diff-otitle1").parentNode;a.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgDiffOldId"),a.firstChild)}if(e("ntitle"),document.getElementById("differences-nextlink")){var i=document.getElementById("mw-diff-ntitle1").parentNode;i.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgDiffNewId"),i.firstChild)}else if(-1!==B("showRollbackLinks").indexOf("diff")&&mw.config.get("wgDiffOldId")&&(mw.config.get("wgDiffOldId")!==mw.config.get("wgDiffNewId")||document.getElementById("differences-prevlink"))){var n=$("#mw-diff-ntitle2").find(".mw-userlink")[0].textContent,o=document.getElementById("mw-diff-ntitle1").parentNode;o.insertBefore(t.linkBuilder.rollbackLinks(n),o.firstChild)}},oldid:function(){var e=document.getElementById("mw-revision-info").parentNode;e.insertBefore(t.linkBuilder.restoreThisRevisionLink("wgRevisionId"),e.firstChild)}},t.callbacks={toRevision:function(e){var a=prompt(W("prompt-reason-restore"),"");if(null!==a){var i=t.formatSummary(W("restore-summary",e.getRevisionID()),e.getRevisionUser(),a);e.setChangeTags(n.changeTags),e.setEditSummary(i),-1!==B("watchRevertedPages").indexOf("torev")&&e.setWatchlist(B("watchRevertedExpiry")),-1!==B("markRevertedPagesAsMinor").indexOf("torev")&&e.setMinorEdit(!0),Morebits.wiki.actionCompleted.redirect=e.getPageName(),Morebits.wiki.actionCompleted.notice=W("reversion-complete"),e.revert()}else e.getStatusElement().error(W("user-aborted"))},main:function(e){var a=e.getResponse().query.pages[0];if(a.actions.edit){var i=e.statelem,o=e.params,r=parseInt(a.lastrevid,10),s=a.revisions;if(s.length<1)i.error(W("no-revisions"));else{var l=s[0],d=l.user;if(r<o.revid)Morebits.status.error("Error",W("bad-revid",r));else{var c=o.user||W("hidden-user"),u=1;if(o.revid!==r)if(Morebits.status.warn("Warning",W("revid-mismatch",r,o.revid)),d===o.user||mw.util.isIPv6Address(o.user)&&Morebits.ip.get64(d)===Morebits.ip.get64(o.user))switch(o.type){case"vand":d!==o.user?Morebits.status.info("Info",W("latest-rev-same-64",c)):Morebits.status.info("Info",W("latest-rev-same-user",c));break;case"agf":return void Morebits.status.warn("Warning",W("latest-rev-other-user-goodfaith",c));default:return void Morebits.status.warn("Notice",W("latest-rev-other-user",c))}else{if(!("vand"===o.type&&-1!==t.trustedBots.indexOf(l.user)&&s.length>1&&s[1].revid===o.revid))return void Morebits.status.error("Error",W("latest-rev-reverted",d));Morebits.status.info("Info",W("latest-rev-bot",d)),u=2}else o.user=d,c=o.user||W("hidden-user");if(-1!==t.trustedBots.indexOf(o.user))switch(o.type){case"vand":Morebits.status.info("Info",W("bot-revert",c)),u=2,o.user=s[1].user,o.userHidden=!!s[1].userhidden;break;case"agf":return void Morebits.status.warn("Notice",W("bot-revert-goodfaith",c));default:confirm(W("bot-revert-prompt"))?(Morebits.status.info("Info",W("bot-revert-previous",c)),u=2,o.user=s[1].user,o.userHidden=!!s[1].userhidden,c=o.user||W("hidden-user")):Morebits.status.warn("Notice",W("bot-revert-selected",c))}for(var p=!1,g=0,m=!1,f=u;f<s.length;++f)if(++g,s[f].user!==o.user){if(mw.util.isIPv6Address(s[f].user)&&Morebits.ip.get64(s[f].user)===Morebits.ip.get64(o.user)){m||(new Morebits.status("Note",W("ipv6-same-user")),m=!0);continue}p=f;break}if(p)if(g){var h,b,y=s[p],v=!1;if("vand"!==o.type&&g>1){if(!confirm(W("revert-multiple-prompt",c,g)))return void Morebits.status.info("Notice",W("stopping"));v=!0}switch(o.count=g,o.goodid=y.revid,o.gooduser=y.user,o.gooduserHidden=!!y.userhidden,i.status(W("revision-age",o.goodid,g,o.gooduserHidden?W("hidden-user"):o.gooduser)),o.type){case"agf":if(null===(b=prompt(W("summary-prompt"),"")))return void i.error(W("user-aborted"));v=!0,h=t.formatSummary(W("goodfaith-summary"),o.userHidden?null:o.user,b);break;case"vand":h=t.formatSummary(W("vandalism-summary",o.count,o.gooduserHidden?W("hidden-user"):o.gooduser),o.userHidden?null:o.user);break;default:if(B("offerReasonOnNormalRevert")){if(null===(b=prompt(W("summary-prompt"),"")))return void i.error(W("user-aborted"));v=!0}h=t.formatSummary(W("normal-summary",o.count),o.userHidden?null:o.user,b)}if(!(B("confirmOnFluff")||B("confirmOnMobileFluff")&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|Mobile|Opera Mini/i.test(navigator.userAgent))||v||confirm(W("revert-confirm"))){t.skipTalk||-1===B("openTalkPage").indexOf(o.type)||o.userHidden||mw.config.get("wgUserName")===o.user||(o.notifyUser=!0,o.vantimestamp=l.timestamp),t.flaggedRevsEnabled&&(Morebits.userIsInGroup("reviewer")||Morebits.userIsSysop)&&a.flagged&&a.flagged.stable_revid>=o.goodid&&a.flagged.pending_since&&(o.reviewRevert=!0,o.csrftoken=e.getResponse().query.tokens.csrftoken);var w=new Morebits.wiki.page(o.pagename,W("saving-reverted"));w.setEditSummary(h),w.setChangeTags(n.changeTags),w.setOldID(o.goodid),w.setCallbackParameters(o),-1!==B("watchRevertedPages").indexOf(o.type)&&w.setWatchlist(B("watchRevertedExpiry")),-1!==B("markRevertedPagesAsMinor").indexOf(o.type)&&w.setMinorEdit(!0),t.rollbackInPlace||(Morebits.wiki.actionCompleted.redirect=o.pagename),Morebits.wiki.actionCompleted.notice=W("revert-complete"),w.revert(t.callbacks.complete)}else i.error(W("user-aborted"))}else Morebits.status.error("Error",W("no-edits-revert"));else i.error(W("no-previous-revision",c,B("revertMaxRevisions")))}}}else e.statelem.error(W("cant-edit-protected"))},complete:function(e){var t=e.getCallbackParameters();if(t.notifyUser&&!t.userHidden){Morebits.status.info("Info",W("opening-talk",t.user));var a={title:"User talk:"+t.user,action:"edit",preview:"yes",vanarticle:t.pagename.replace(/_/g," "),vanarticlerevid:t.revid,vantimestamp:t.vantimestamp,vanarticlegoodrevid:t.goodid,type:t.type,count:t.count};switch(B("userTalkPageMode")){case"tab":window.open(mw.util.getUrl("",a),"_blank");break;case"blank":window.open(mw.util.getUrl("",a),"_blank","location=no,toolbar=no,status=no,directories=no,scrollbars=yes,width=1200,height=800");break;default:window.open(mw.util.getUrl("",a),"twinklewarnwindow"===window.name?"_blank":"twinklewarnwindow","location=no,toolbar=no,status=no,directories=no,scrollbars=yes,width=1200,height=800")}}if(t.reviewRevert){var i={action:"review",revid:e.getSaveResponse().edit.newrevid,token:t.csrftoken,comment:W("pcreview-comment")+n.summaryAd};new Morebits.wiki.api(W("pcreview-accepting"),i).post()}}},mw.config.get("wgIsProbablyEditable")?mw.config.get("wgDiffNewId")||mw.config.get("wgDiffOldId")?mw.hook("wikipage.diff").add((function(){t.addLinks.diff()})):"view"===mw.config.get("wgAction")&&mw.config.get("wgRevisionId")&&mw.config.get("wgCurRevisionId")!==mw.config.get("wgRevisionId")?t.addLinks.oldid():"history"===mw.config.get("wgAction")&&mw.config.get("wgArticleId")&&t.addLinks.history():-1===mw.config.get("wgNamespaceNumber")&&(t.skipTalk=!B("openTalkPageOnAutoRevert"),t.rollbackInPlace=B("rollbackInPlace"),"Contributions"===mw.config.get("wgCanonicalSpecialPageName")?t.addLinks.contributions():"Recentchanges"!==mw.config.get("wgCanonicalSpecialPageName")&&"Recentchangeslinked"!==mw.config.get("wgCanonicalSpecialPageName")||mw.hook("wikipage.content").add((function(e){e.is("div")&&t.addLinks.recentchanges()}))),t}return p(t,e),t.prototype.disableLinks=function(e){$(e).children().each((function(e,t){t.innerHTML=t.textContent,$(t).css("font-weight","normal").css("color","darkgray")}))},t.prototype.revert=function(e,t,a,i){var n=this;mw.util.isIPv6Address(t)&&(t=Morebits.ip.sanitizeIPv6(t));var o=i||mw.config.get("wgPageName"),r=a||mw.config.get("wgCurRevisionId");if(this.rollbackInPlace){var s=document.createElement("span");mw.notify(s,{autoHide:!1,title:"Rollback on "+i,tag:"twinklefluff_"+a}),Morebits.status.init(s)}else Morebits.status.init(document.getElementById("mw-content-text")),$("#catlinks").remove();var l={type:e,user:t,userHidden:!t,pagename:o,revid:r},d={action:"query",prop:["info","revisions"].concat(this.flaggedRevsEnabled?"flagged":[]),titles:o,inprop:"watched",intestactions:"edit",rvlimit:B("revertMaxRevisions"),rvprop:["ids","timestamp","user"],curtimestamp:"",meta:"tokens",type:"csrf",format:"json"},c=new Morebits.wiki.api(W("fetching-data"),d);c.params=l,c.post().then((function(e){return n.callbacks.main(e)}))},t.prototype.revertToRevision=function(e){Morebits.status.init(document.getElementById("mw-content-text"));var t=new Morebits.wiki.page(mw.config.get("wgPageName"),W("saving-reverted"));t.setOldID(e),t.load(this.callbacks.toRevision)},t.prototype.formatSummary=function(e,t,a){var i=e;if(a&&(i+=": "+Morebits.string.toUpperCaseFirstChar(a)),/%USER%/.test(e))if(t){var n=unescape(encodeURIComponent(i.replace("%USER%",""))).length,o="[[Special:Contributions/"+t+"|"+t+"]]",r=unescape(encodeURIComponent(o)).length;if(n+r<=499){var s=" ([[User talk:"+t+"|talk]])";i=n+r+unescape(encodeURIComponent(s)).length<=499?Morebits.string.safeReplace(i,"%USER%",o+s):Morebits.string.safeReplace(i,"%USER%",o)}else i=Morebits.string.safeReplace(i,"%USER%",t)}else i=Morebits.string.safeReplace(i,"%USER%",W("hidden-user"));return i},t.moduleName="fluff",t}(z)),K=function(e){function t(t,a){var i=e.call(this,t,a)||this;if(n.changeTags.length)i.setChangeTags(n.changeTags);else{var o=i.setEditSummary.bind(i);i.setEditSummary=function(e){o(e+n.summaryAd)}}return["load","lookupCreation","save","append","prepend","newSection","deletePage","undeletePage","protect","stabilize"].forEach((function(e){var t=i[e].bind(i);i[e]=function(e,a){var i=this,n=$.Deferred();return t((function(t){e&&e.call(i,i),n.resolve(t instanceof Morebits.wiki.api?t:i)}),(function(e){if(a&&a.call(i,i),e instanceof Morebits.wiki.api){var t=new b(e.getErrorCode()+": "+e.getErrorText());t.code=e.getErrorCode(),t.info=e.getErrorText(),t.response=e.getResponse(),n.reject(t)}else n.reject(new Error(e))})),n}})),i}return p(t,e),t}(Morebits.wiki.page),J=function(e){function t(t,a){var i=e.call(this,t,a)||this;return i.setScriptName(n.scriptName),i}return p(t,e),t.prototype.setFooterLinks=function(e){var t=this;e&&T(e).forEach((function(e){t.addFooterLink(e[0],e[1])}))},t}(Morebits.simpleWindow),Z=function(e){function t(){var a=e.call(this)||this;if(a.moduleName="XFD",a.portletName="XFD",a.portletId="twinkle-xfd",a.windowTitle="Start a deletion discussion (XfD)",mw.config.get("wgNamespaceNumber")<0||!mw.config.get("wgArticleId")||6===mw.config.get("wgNamespaceNumber")&&document.getElementById("mw-sharedupload"))return a;for(var i=0,n=t.modeList;i<n.length;i++){var o=n[i];if(o.isDefaultChoice()){a.mode=new o;break}}return a.portletTooltip=a.getMenuTooltip(),a.addMenu(),a}return p(t,e),t.prototype.getMenuTooltip=function(){return this.mode?this.mode.getMenuTooltip():"Start a deletion discussion"},t.prototype.makeWindow=function(){var e=new J(700,400);e.setTitle(this.windowTitle),e.setFooterLinks(this.footerlinks),this.makeForm(e)},t.prototype.makeForm=function(e){var a=this;this.Window=e;var i=new Morebits.quickForm((function(){a.mode.evaluate()}));i.append({type:"select",name:"venue",label:W("xfd-venue-label"),tooltip:W("xfd-venue-tooltip"),event:this.onCategoryChange.bind(this),list:t.modeList.map((function(e){return{type:"option",label:e.venueLabel,selected:a.mode instanceof e,value:e.venueCode}}))}),i.append({type:"div",id:"wrong-venue-warn",style:"color: red; font-style: italic"}),i.append({type:"checkbox",list:[{label:W("notify-creator-label"),value:"notify",name:"notifycreator",tooltip:W("notify-creator-tooltip"),checked:!0}]}),this.fieldset=i.append({type:"field",label:"Work area",name:"work_area"});var n=document.createElement("a");$(n).click((function(){a.mode.preview(a.result)})),n.style.cursor="pointer",n.textContent="Preview",i.append({type:"div",id:"xfdpreview",label:[n]}),i.append({type:"div",id:"twinklexfd-previewbox",style:"display: none"}),i.append({type:"submit"}),this.result=i.render(),e.setContent(this.result),e.display(),this.result.previewer=new Morebits.wiki.preview(document.getElementById("twinklexfd-previewbox"));var o=document.createEvent("Event");return o.initEvent("change",!0,!0),this.result.venue.dispatchEvent(o),i},t.prototype.onCategoryChange=function(e){var a=e.target.value,i=e.target.form,n=t.modeList.filter((function(e){return e.venueCode===a}))[0];if(!n)throw new Error(W("bad-venue",a));this.mode=new n,this.mode.result=this.result,this.mode.Window=this.Window,$("#wrong-venue-warn").text(this.mode.getVenueWarning()||""),i.previewer.closePreview();var o=this.mode.generateFieldset().render();$(this.result).find("fieldset[name=work_area]").replaceWith(o),this.mode.postRender(o)},t.userPreferences=function(){return{title:"XfD (deletion discussions)",preferences:[{name:"logXfdNominations",label:W("pref-logxfdnominations-label"),helptip:W("pref-logxfdnominations-tooltip"),type:"boolean",default:!1},{name:"xfdLogPageName",label:W("pref-xfdlogpagename-label"),helptip:W("pref-xfdlogpagename-tooltip"),type:"string",default:"XfD log"},{name:"xfdWatchPage",label:W("pref-xfdwatchpage-label"),helptip:W("pref-xfdwatchpage-tooltip"),type:"enum",enumValues:G.watchlistEnums,default:"default"},{name:"xfdWatchDiscussion",label:W("pref-xfdwatchdiscussion-label"),helptip:W("pref-xfdwatchdiscussion-tooltip"),type:"enum",enumValues:G.watchlistEnums,default:"default"},{name:"xfdWatchList",label:W("pref-xfdwatchlist-label"),helptip:W("pref-xfdwatchlist-tooltip"),type:"enum",enumValues:G.watchlistEnums,default:"no"},{name:"xfdWatchUser",label:W("pref-xfdwatchuser-label"),helptip:W("pref-xfdwatchuser-tooltip"),type:"enum",enumValues:G.watchlistEnums,default:"default"}]}},t.moduleName="XFD",t}(z),Q=function(){function e(){}return e.isDefaultChoice=function(){return!1},e.prototype.getMenuTooltip=function(){return"Nominate page for deletion"},e.prototype.generateFieldset=function(){return this.fieldset=new Morebits.quickForm.element({type:"field",label:this.getFieldsetLabel(),name:"work_area"}),this.fieldset},e.prototype.appendReasonArea=function(){this.fieldset.append({type:"textarea",name:"reason",label:W("reason"),value:$(this.result).find("textarea").val()||"",tooltip:W("reason-tooltip")})},e.prototype.postRender=function(e){},e.prototype.getVenueWarning=function(){},e.prototype.preprocessParams=function(){},e.prototype.preview=function(e){this.params=Morebits.quickForm.getInputData(e),this.preprocessParams(),this.showPreview(e)},e.prototype.showPreview=function(e){var t=this.getDiscussionWikitext();e.previewer.beginRender(t,"WP:TW")},e.prototype.evaluate=function(){this.params=Morebits.quickForm.getInputData(this.result),this.preprocessParams(),this.validateInput()&&(Morebits.simpleWindow.setButtonsEnabled(!1),Morebits.status.init(this.result),this.tm=new Morebits.taskManager(this))},e.prototype.validateInput=function(){return!0},e.prototype.printReasonText=function(){Morebits.status.printUserText(this.params.reason,W("deletion-reason-here"))},e.prototype.redirectToDiscussion=function(){var e=this.params.discussionpage||this.params.logpage;Morebits.status.actionCompleted(W("nomination-complete-redirect")),setTimeout((function(){window.location.href=mw.util.getUrl(e)}),Morebits.wiki.actionCompleted.timeOut)},e.prototype.determineDiscussionPage=function(){var e=this,t=this.params;return new C(W("looking-old-nominations"),{action:"query",list:"allpages",apprefix:new mw.Title(this.discussionPagePrefix).getMain()+"/"+Morebits.pageNameNorm,apnamespace:4,apfilterredir:"nonredirects",aplimit:"max",format:"json"}).post().then((function(a){var i=a.getResponse().query.allpages;if(i.length<=0)t.numbering=t.number="";else{for(var n=0,o=new RegExp("^"+Morebits.string.escapeRegExp(e.discussionPagePrefix+"/"+Morebits.pageNameNorm)+"\\s*\\(\\s*(\\d+)(?:(?:th|nd|rd|st) nom(?:ination)?)?\\s*\\)\\s*$"),r=0;r<i.length;++r){var s=i[r].title;if(s!==e.discussionPagePrefix+"/"+Morebits.pageNameNorm){var l=o.exec(s);l&&(n=Math.max(n,Number(l[1])))}else n=Math.max(n,1)}t.number=function(e){switch(e){case 1:return"";case 2:return"2nd";case 3:return"3rd";default:return e+"th"}}(n+1),t.numbering=n>0?" ("+t.number+" nomination)":""}t.discussionpage=e.discussionPagePrefix+"/"+Morebits.pageNameNorm+t.numbering,a.getStatusElement().info("next in order is "+t.discussionpage)}))},e.prototype.autoEditRequest=function(e){var t=this.params,a=new mw.Title(e.getPageName()).getTalkPage().toText();if(a===e.getPageName())return e.getStatusElement().error(W("protected-no-editreq")),$.Deferred().reject();e.getStatusElement().warn(W("protected-editreq"));var i="{{subst:Xfd edit protected|page="+e.getPageName()+"|discussion="+t.discussionpage+"|tag=<no"+"wiki>"+t.tagText+"</no"+"wiki>}}",n=new K(a,W("posting-editreq"));return n.setNewSectionTitle(W("xfd-editreq-title",t.venue)),n.setNewSectionText(i),n.setCreateOption("recreate"),n.setWatchlist(B("xfdWatchPage")),n.setFollowRedirect(!0),n.newSection().catch((function(){return n.getStatusElement().warn(W("xfd-editreq-failed")),$.Deferred().reject()}))},e.prototype.fetchCreatorInfo=function(){var e=this,t=new K(Morebits.pageNameNorm,W("fetching-creator"));return t.setLookupNonRedirectCreator(this.params.lookupNonRedirectCreator),t.lookupCreation().then((function(){e.params.initialContrib=t.getCreator(),t.getStatusElement().info("Found "+t.getCreator())}))},e.prototype.notifyTalkPage=function(e,t){var a=this.params,i=mw.Title.newFromText(e,c),n=i.getNamespaceId(),o=i.getRelativeText(c);t=t||new Morebits.status(W("notifying-creator",o));var r=i.toText();if(3===n&&o===mw.config.get("wgUserName"))return a.initialContrib=null,t.warn(W("notify-self-skip",o)),$.Deferred().resolve();var s=new K(r,t);return s.setAppendText("\n\n"+this.getNotifyText()),s.setEditSummary(this.getNotifyEditSummary()),s.setCreateOption("recreate"),"RfD"===a.venue&&3!==n?s.setWatchlist(B("xfdWatchRelated")):s.setWatchlist(B("xfdWatchUser")),s.setFollowRedirect(!0,!1),s.append().catch((function(){a.initialContrib=null}))},e.prototype.getNotifyText=function(){return"{{subst:"+this.params.venue+" notice|1="+Morebits.pageNameNorm+"}} ~~~~"},e.prototype.getNotifyEditSummary=function(){return"Notification: [["+this.params.discussionpage+"|listing]] of [[:"+Morebits.pageNameNorm+"]] at [[WP:"+this.getFieldsetLabel()+"]]."},e.prototype.notifyCreator=function(){return this.params.notifycreator?this.notifyTalkPage(this.params.initialContrib):(this.params.intialContrib=null,$.Deferred().resolve())},e.prototype.addToLog=function(){var e=this.params;if(!B("logXfdNominations")||-1!==B("noLogOnXfdNomination").indexOf(e.venue.toLowerCase()))return $.Deferred().resolve();var t=new Morebits.userspaceLogger(B("xfdLogPageName"));return t.initialText="This is a log of all [[WP:XFD|deletion discussion]] nominations made by this user using [[WP:TW|Twinkle]]'s XfD module.\n\nIf you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and nominate this page for speedy deletion under [[WP:CSD#U1|CSD U1]]."+(Morebits.userIsSysop?"\n\nThis log does not track XfD-related deletions made using Twinkle.":""),t.changeTags=n.changeTags,t.log(this.getUserspaceLoggingText(),this.getUserspaceLoggingEditSummary())},e.prototype.getUserspaceLoggingEditSummary=function(){return"Logging "+this.params.venue+" nomination of [[:"+Morebits.pageNameNorm+"]]."},e.prototype.getUserspaceLoggingText1=function(){return"\n\t\t\t# [[:{{subst:FULLPAGENAME}}]]: {{subst:#ifeq:{{subst:NAMESPACENUMBER}}|6| ([{{fullurl:Special:Log|page={{urlencode:{{subst:FULLPAGENAME}}}}}} log])|}} nominated at [[WP:{{subst:uc:$1}}|$1]]{{subst:#if:$2|; notified {{user|1=$2}}|}}\n\t\t"},e.prototype.getUserspaceLoggingText=function(){var e=this.params,t=mw.config.get("wgNamespaceNumber")===l?" ([{{fullurl:Special:Log|page="+mw.util.wikiUrlencode(mw.config.get("wgPageName"))+"}} log])":"",a=e.discussionpage?"[["+e.discussionpage+"|nominated]]":"nominated",i="# [[:"+Morebits.pageNameNorm+"]]:"+t+" "+a+" at [[WP:"+e.venue+"|"+e.venue+"]]";return i+=this.getUserspaceLoggingExtraInfo(),e.initialContrib&&e.notifycreator&&(i+="; notified {{user|1="+e.initialContrib+"}}"),i+=" ~~~~~",e.reason&&(i+="\n#* '''Reason''': "+Morebits.string.formatReasonForLog(e.reason)),i},e.prototype.getUserspaceLoggingExtraInfo=function(){return""},e}();var ee,te="short description|hatnote|main|correct title|dablink|distinguish|for|further|selfref|year dab|similar names|highway detail hatnote|broader|about(?:-distinguish| other people)?|other\\s?(?:hurricane(?: use)?s|people|persons|places|ships|uses(?: of)?)|redirect(?:-(?:distinguish|synonym|multi))?|see\\s?(?:wiktionary|also(?: if exists)?)";var ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.discussionPagePrefix="Wikipedia:Articles for deletion",t}return p(t,e),t.isDefaultChoice=function(){return 0===mw.config.get("wgNamespaceNumber")&&!Morebits.isPageRedirect()},t.prototype.getFieldsetLabel=function(){return"Articles for deletion"},t.prototype.getVenueWarning=function(){return 0!==mw.config.get("wgNamespaceNumber")?"AfD is generally appropriate only for articles.":mw.config.get("wgIsRedirect")?"Please use RfD for redirects.":void 0},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"div",label:"",style:"margin-bottom: 5px;"}),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude>",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't transclude. This option is not normally required."}]}),this.fieldset.append({type:"select",name:"xfdcat",label:"Choose what category this nomination belongs in:",list:[{type:"option",label:"Unknown",value:"?",selected:!0},{type:"option",label:"Media and music",value:"M"},{type:"option",label:"Organisation, corporation, or product",value:"O"},{type:"option",label:"Biographical",value:"B"},{type:"option",label:"Society topics",value:"S"},{type:"option",label:"Web or internet",value:"W"},{type:"option",label:"Games or sports",value:"G"},{type:"option",label:"Science and technology",value:"T"},{type:"option",label:"Fiction and the arts",value:"F"},{type:"option",label:"Places and transportation",value:"P"},{type:"option",label:"Indiscernible or unclassifiable topic",value:"I"},{type:"option",label:"Debate not yet sorted",value:"U"}]});var t=this.fieldset.append({type:"select",multiple:!0,name:"delsortCats",label:"Choose deletion sorting categories: ",tooltip:"Select a few categories that are specifically relevant to the subject of the article. Be as precise as possible; categories like People and USA should only be used when no other categories apply."});return $.each({People:["People","Academics and educators","Actors and filmmakers","Artists","Authors","Bands and musicians","Businesspeople","Politicians","Sportspeople","Women","Lists of people"],Arts:["Arts","Fictional elements","Science fiction and fantasy"],"Arts/Culinary":["Food and drink","Wine"],"Arts/Language":["Language","Academic journals","Bibliographies","Journalism","Literature","Logic","News media","Philosophy","Poetry"],"Arts/Performing":["Albums and songs","Dance","Film","Magic","Music","Radio","Television","Theatre","Video games"],"Arts/Visual arts":["Visual arts","Architecture","Fashion","Photography"],"Arts/Comics and animation":["Comics and animation","Anime and manga","Webcomics"],"Places of interest":["Museums and libraries","Shopping malls"],Topical:["Animal","Bilateral relations","Conservatism","Conspiracy theories","Crime","Disability","Discrimination","Entertainment","Ethnic groups","Events","Finance","Games","Health and fitness","History","Law","Military","Organizations","Paranormal","Piracy","Politics","Terrorism"],"Topical/Business":["Business","Advertising","Companies","Management","Products"],"Topical/Culture":["Beauty pageants","Fashion","Mythology","Popular culture","Sexuality and gender"],"Topical/Education":["Education","Fraternities and sororities","Schools"],"Topical/Religion":["Religion","Atheism","Bible","Buddhism","Christianity","Islam","Judaism","Hinduism","Paganism","Sikhism","Spirituality"],"Topical/Science":["Science","Archaeology","Astronomy","Behavioural science","Biology","Economics","Engineering","Environment","Geography","Mathematics","Medicine","Organisms","Psychiatry","Psychology","Social science"],"Topical/Sports":["Sports","American football","Baseball","Basketball","Bodybuilding","Boxing","Cricket","Cycling","Football","Golf","Handball","Horse racing","Ice hockey","Motorsport","Rugby union","Softball","Martial arts","Wrestling"],"Topical/Technology":["Technology","Aviation","Computing","Firearms","Internet","Software","Transportation","Websites"],"Wikipedia page type":["Disambiguations","Lists"],"Geographic/Africa":["Africa","Algeria","Democratic Republic of the Congo","Egypt","Ethiopia","Ghana","Kenya","Libya","Mauritius","Morocco","Nigeria","Somalia","South Africa","Zimbabwe"],"Geographic/Asia":["Asia","Afghanistan","Bangladesh","Brunei","Cambodia","China","Hong Kong","Indonesia","Japan","Korea","Laos","Malaysia","Maldives","Mongolia","Myanmar","Nepal","Pakistan","Philippines","Singapore","South Korea","Sri Lanka","Taiwan","Thailand","Vietnam"],"Geographic/Asia/Central Asia":["Central Asia","Kazakhstan","Kyrgyzstan","Tajikistan","Turkmenistan","Uzbekistan"],"Geographic/Asia/Middle East":["Middle East","Bahrain","Iran","Iraq","Israel","Jordan","Kuwait","Lebanon","Libya","Palestine","Qatar","Saudi Arabia","Syria","United Arab Emirates","Yemen"],"Geographic/Asia/India":["India","Kerala"],"Geographic/Europe":["Europe","Albania","Armenia","Austria","Azerbaijan","Belarus","Belgium","Bosnia and Herzegovina","Bulgaria","Croatia","Cyprus","Czech Republic","Denmark","Estonia","Finland","France","Georgia (country)","Germany","Greece","Hungary","Iceland","Ireland","Italy","Jersey","Kosovo","Latvia","Lithuania","Luxembourg","Malta","Moldova","Montenegro","Netherlands","North Macedonia","Norway","Poland","Portugal","Romania","Russia","Serbia","Slovakia","Slovenia","Spain","Sweden","Switzerland","Turkey","Ukraine","Yugoslavia"],"Geographic/Europe/United Kingdom":["United Kingdom","England","Northern Ireland","Scotland","Wales"],"Geographic/Oceania":["Oceania","Antarctica","Australia","New Zealand"],"Geographic/Americas/Canada":["Canada","Alberta","British Columbia","Manitoba","Nova Scotia","Ontario","Quebec"],"Geographic/Americas/Latin America":["Latin America","Caribbean","South America","Argentina","Barbados","Belize","Bolivia","Brazil","Chile","Colombia","Costa Rica","Cuba","Ecuador","El Salvador","Grenada","Guatemala","Haiti","Mexico","Nicaragua","Panama","Paraguay","Peru","Puerto Rico","Trinidad and Tobago","Uruguay","Venezuela"],"Geographic/Americas/USA":["United States of America","Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia (U.S. state)","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","Washington, D.C.","West Virginia","Wisconsin","Wyoming"],"Geographic/Unsorted":["Islands"]},(function(e,a){var i=t.append({type:"optgroup",label:e});a.forEach((function(e){i.append({type:"option",label:e,value:e})}))})),this.appendReasonArea(),this.fieldset},t.prototype.postRender=function(e){!function(e){if($(e).length)if(ee)$(e).html(ee);else{var t=new Morebits.wiki.preview($(e)[0]);t.beginRender("({{Find sources|"+Morebits.pageNameNorm+"}})","WP:AFD").then((function(){ee=t.previewbox.innerHTML,$(e).removeClass("morebits-previewbox")}))}}("#twinkle-xfd-findsources"),$(e).find("[name=delsortCats]").attr("data-placeholder","Select delsort pages").select2({width:"100%",matcher:Morebits.select2.matchers.optgroupFull,templateResult:Morebits.select2.highlightSearchMatches,language:{searching:Morebits.select2.queryInterceptor},templateSelection:function(e){return $("<a>").text(e.text).attr({href:mw.util.getUrl("Wikipedia:WikiProject_Deletion_sorting/"+e.text),target:"_blank"})}}),mw.util.addCSS(".select2-container--default.select2-container--focus .select2-selection--multiple { border: 1px solid #aaa; }.select2-results .select2-results__option { padding-top: 1px; padding-bottom: 1px; }.select2-results .select2-results__group { padding-top: 1px; padding-bottom: 1px; } .select2-container .select2-dropdown .select2-results { font-size: 13px; }.select2-container .selection .select2-selection__rendered { font-size: 13px; }.select2-selection__choice__remove { font-size: 130%; }")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.checkPage,[]),this.tm.add(this.determineDiscussionPage,[]),this.tm.add(this.createDiscussionPage,[this.checkPage,this.determineDiscussionPage],this.printReasonText),this.tm.add(this.tagPage,[this.checkPage,this.createDiscussionPage]),this.tm.add(this.addToList,[this.createDiscussionPage]),this.tm.add(this.addToDelsortLists,[this.createDiscussionPage]),this.tm.add(this.patrolPage,[this.checkPage]),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.createDiscussionPage,this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.preprocessParams=function(){this.params.lookupNonRedirectCreator=!0},t.prototype.checkPage=function(){var e=this,t=new K(mw.config.get("wgPageName"),"Adding deletion tag to article");return t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement();if(e.params.articleLoadTime=t.getLoadTime(),!t.exists())return i.error("It seems that the page doesn't exist; perhaps it has already been deleted"),$.Deferred().reject();var n=a.replace(/<!--.*AfD.*\n\{\{(?:Article for deletion\/dated|AfDM).*\}\}\n<!--.*(?:\n<!--.*)?AfD.*(?:\s*\n)?/g,"");if(a!==n){if(!confirm("An AfD tag was found on this article. Maybe someone beat you to it. \nClick OK to replace the current AfD tag (not recommended), or Cancel to abandon your nomination."))return i.error("Article already tagged with AfD tag, and you chose to abort"),window.location.reload(),$.Deferred().reject();t.setPageText(n)}return t}))},t.prototype.tagPage=function(e){var t=this.params;if(t.tagText=(t.noinclude?"<noinclude>{{":"{{")+(""===t.number?"subst:afd|help=off":"subst:afdx|"+t.number+"|help=off")+(t.noinclude?"}}</noinclude>\n":"}}\n"),e.canEdit()){var a=e.getPageText(),i=(a=a.replace(/\{\{\s*(dated prod|dated prod blp|Prod blp\/dated|Proposed deletion\/dated|prod2|Proposed deletion endorsed|Userspace draft)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/gi,"")).replace(/\{\{\s*(db(-\w*)?|delete|(?:hang|hold)[- ]?on)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/gi,"");return a!==i&&confirm("A speedy deletion tag was found on this page. Should it be removed?")&&(a=i),a=new Morebits.wikitext.page(a).insertAfterTemplates(t.tagText,te).getText(),e.setPageText(a),e.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),e.setWatchlist(B("xfdWatchPage")),e.setCreateOption("nocreate"),e.save()}return this.autoEditRequest(e)},t.prototype.getDiscussionWikitext=function(){var e=this.params;return w("subst:afd2",{text:Morebits.string.formatReasonText(e.reason,!0),pg:Morebits.pageNameNorm,cat:e.xfdcat})+e.delsortCats.map((function(e){return"\n{{subst:delsort|"+e+"|~~~~}}"})).join("")},t.prototype.createDiscussionPage=function(){var e=this,t=this.params,a=new K(t.discussionpage,"Creating article deletion discussion page");return a.load().then((function(){return a.setPageText(e.getDiscussionWikitext()),a.setEditSummary("Creating deletion discussion page for [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("createonly"),a.save()}))},t.prototype.addToList=function(){var e=this.params,t=new Morebits.date(e.articleLoadTime),a=new K("Wikipedia:Articles for deletion/Log/"+t.format("YYYY MMMM D","utc"),"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var t,i=a.getStatusElement(),n="{{subst:afd3|pg="+Morebits.pageNameNorm+e.numbering+"}}\n";if(a.exists()){var o=a.getPageText()+"\n";if((t=o.replace(/(<!-- Add new entries to the TOP of the following list -->\n+)/,"$1"+n))===o){var r=document.createElement("a");return r.setAttribute("href",mw.util.getUrl("Wikipedia:Twinkle/Fixing AFD")+"?action=purge"),r.appendChild(document.createTextNode("How to fix AFD")),i.error(["Could not find the target spot for the discussion. To fix this problem, please see ",r,"."]),$.Deferred().reject()}}else t="{{subst:AfD log}}\n"+n;return a.setPageText(t),a.setEditSummary("Adding [[:"+e.discussionpage+"]]."),a.setWatchlist(B("xfdWatchList")),a.setCreateOption("recreate"),a.save()}))},t.prototype.addToDelsortLists=function(){var e=this.params,t=e.delsortCats.map((function(t){var a=new K("Wikipedia:WikiProject Deletion sorting/"+t,"Adding to list of "+t+"-related deletion discussions");return a.setFollowRedirect(!0),a.load().then((function(){var t=e.discussionpage,i=a.getPageText().replace("directly below this line --\x3e","directly below this line --\x3e\n{{"+t+"}}");return a.setPageText(i),a.setEditSummary("Listing [[:"+t+"]]."),a.setCreateOption("nocreate"),a.save().catch((function(){}))}))}));return $.when.apply($,t)},t.prototype.patrolPage=function(){return B("markXfdPagesAsPatrolled")&&new K(Morebits.pageNameNorm).triage(),$.Deferred().resolve()},t.prototype.getNotifyText=function(){return w("subst:afd notice",{1:Morebits.pageNameNorm,order:this.params.numbering?"|order=&#32;"+this.params.numbering:""})+" ~~~~"},t.venueCode="AfD",t.venueLabel="AfD (Articles for deletion)",t}(Q),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getFieldsetLabel=function(){return"Templates for discussion"},t.prototype.getMenuTooltip=function(){return"Start a discussion for deleting or merging this template"},t.isDefaultChoice=function(){return-1!==[10,828].indexOf(mw.config.get("wgNamespaceNumber"))},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this);var t="Scribunto"===mw.config.get("wgPageContentModel")?"module":"template";return this.fieldset.append({type:"select",label:"Choose type of action wanted: ",name:"xfdcat",event:function(e){var a=e.target,i=a.form.tfdtarget;"TfM"!==a.value||i?($(Morebits.quickForm.getElementContainer(i)).remove(),i=null):(i=new Morebits.quickForm.element({name:"tfdtarget",type:"input",label:"Other "+t+" to be merged: ",tooltip:"Required. Should not include the "+Morebits.string.toUpperCaseFirstChar(t)+": namespace prefix.",required:!0}),a.parentNode.appendChild(i.render()))},list:[{type:"option",label:"Deletion",value:"TfD",selected:!0},{type:"option",label:"Merge",value:"TfM"}]}),this.fieldset.append({type:"select",name:"templatetype",label:"Deletion tag display style: ",tooltip:"Which <code>type=</code> parameter to pass to the TfD tag template.",list:"module"===t?[{type:"option",value:"module",label:"Module",selected:!0}]:[{type:"option",value:"standard",label:"Standard",selected:!0},{type:"option",value:"sidebar",label:"Sidebar/infobox",selected:!!$(".infobox").length},{type:"option",value:"inline",label:"Inline template",selected:!!$(".mw-parser-output > p .Inline-Template").length},{type:"option",value:"tiny",label:"Tiny inline"}]}),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude> (for substituted templates only)",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't get substituted along with the template.",disabled:"module"===t,checked:!!$(".box-Subst_only").length}]}),this.fieldset.append({type:"checkbox",list:[{label:"Notify users of the template",value:"devpages",name:"devpages",tooltip:"A notification template will be sent to Twinkle, AWB, and RedWarn if this is true.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.tfdtarget&&(this.params.tfdtarget=v(this.params.tfdtarget)),this.params.scribunto="Scribunto"===mw.config.get("wgPageContentModel"),"TfM"===this.params.xfdcat&&(this.params.otherTemplateName=(this.params.scribunto?"Module:":"Template:")+this.params.tfdtarget)},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.tagPage],this.printReasonText),this.tm.add(this.watchModule,[]),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyOtherCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyDevs,[this.addToList]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){return"TfM"===this.params.xfdcat?this.tagPagesForMerge():this.tagPageForDeletion()},t.prototype.setLogPageAndDiscussionPage=function(e){var t=new Morebits.date(e);this.params.logpage="Wikipedia:Templates for discussion/Log/"+t.format("YYYY MMMM D","utc"),this.params.discussionpage=this.params.logpage+"#"+Morebits.pageNameNorm},t.prototype.tagPageForDeletion=function(){var e=this,t=this.params,a=new K(Morebits.pageNameNorm+(t.scribunto?"/doc":""),"Tagging "+(t.scribunto?"module documentation":"template")+" with deletion tag");return a.setFollowRedirect(!0),a.load().then((function(){e.setLogPageAndDiscussionPage(a.getLoadTime());var i=a.getPageText();return t.tagText="{{subst:template for discussion|help=off"+("standard"!==t.templatetype?"|type="+t.templatetype:"")+"}}","sanitized-css"===a.getContentModel()?t.tagText="/* "+t.tagText+" */":(t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>"),t.tagText+="standard"===t.templatetype||"sidebar"===t.templatetype?"\n":""),a.canEdit()&&-1!==["wikitext","sanitized-css"].indexOf(a.getContentModel())?(a.setPageText(t.tagText+i),a.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),a.setWatchlist(B("xfdWatchPage")),t.scribunto&&a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.tagPagesForMerge=function(){var e=this,t=this.params,a=t.scribunto?"/doc":"",i=t.scribunto?"module documentation":"template",n=new K(""+Morebits.pageNameNorm+a,"Tagging "+i+" with merge tag");n.setFollowRedirect(!0);var o=n.load().then((function(){return e.setLogPageAndDiscussionPage(n.getLoadTime()),e.tagForMerge(n,e.params)})),r=new K(""+t.otherTemplateName+a,"Tagging other "+i+" with merge tag");r.setFollowRedirect(!0);var s=r.load().then((function(){return e.setLogPageAndDiscussionPage(n.getLoadTime()),e.tagForMerge(r,$.extend({},t,{otherTemplateName:Morebits.pageNameNorm}))}));return $.when(o,s)},t.prototype.tagForMerge=function(e,t){var a=e.getPageText();return t.tagText="{{subst:tfm|help=off|"+("standard"!==t.templatetype?"type="+t.templatetype+"|":"")+"1="+t.otherTemplateName.replace(/^(?:Template|Module):/,"")+"}}","sanitized-css"===e.getContentModel()?t.tagText="/* "+t.tagText+" */":(t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>"),t.tagText+="standard"===t.templatetype||"sidebar"===t.templatetype?"\n":""),e.canEdit()&&-1!==["wikitext","sanitized-css"].indexOf(e.getContentModel())?(e.setPageText(t.tagText+a),e.setEditSummary("Listed for merging with [[:"+t.otherTemplateName+"]]; see [[:"+t.discussionpage+"]]."),e.setWatchlist(B("xfdWatchPage")),t.scribunto&&e.setCreateOption("recreate"),e.save()):this.autoEditRequest(e)},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's log");return a.setFollowRedirect(!0),a.load().then((function(){var i,n=a.getStatusElement(),o=e.getDiscussionWikitext();if(a.exists()){var r=a.getPageText();if((i=r.replace("--\x3e","--\x3e\n"+o))===r)return n.error("failed to find target spot for the discussion"),$.Deferred().reject()}else i="{{subst:TfD log}}\n"+o;return a.setPageText(i),a.setEditSummary("Adding "+("TfD"===t.xfdcat?"deletion nomination":"merge listing")+" of [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.notifyOtherCreator=function(){var e=this;if(!this.params.otherTemplateName)return $.Deferred().resolve();var t=new K(this.params.otherTemplateName,"Finding other page creator");t.lookupCreation().then((function(){var a=t.getCreator();if(t.getStatusElement().info("Found "+a),a!==e.params.initialContrib)return e.notifyTalkPage(a)}))},t.prototype.notifyDevs=function(){var e=this;if(!this.params.devpages)return $.Deferred().resolve();var t=mw.config.get("wgCategories");return $.when.apply($,T({"Templates used by Twinkle":"Wikipedia talk:Twinkle","Templates used by AutoWikiBrowser":"Wikipedia talk:AutoWikiBrowser","Templates used by RedWarn":"Wikipedia talk:RedWarn"}).filter((function(e){var a=e[0];e[1];return t.includes(a)})).map((function(t){t[0];var a=t[1];return e.notifyTalkPage(a,new Morebits.status("Notifying "+a+" of template nomination"))})))},t.prototype.watchModule=function(){var e=this.params;if(!e.scribunto)return $.Deferred().resolve();var t=B("xfdWatchPage");if(!("no"!==t&&("default"!==t||!!parseInt(mw.user.options.get("watchdefault"),10))))return $.Deferred().resolve();var a={action:"watch",titles:[mw.config.get("wgPageName")],token:mw.user.tokens.get("watchToken"),watchlistexpiry:"default"!==t&&"yes"!==t&&t};return"TfM"===e.xfdcat&&a.titles.push(e.otherTemplateName),new C("Adding Module to watchlist",a).post()},t.prototype.getDiscussionWikitext=function(){return w("subst:"+this.params.xfdcat+"2",{text:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),module:this.params.scribunto?"Module:":"",2:this.params.tfdtarget})},t.prototype.getNotifyText=function(){var e="{{subst:tfd notice";return"TfM"===this.params.xfdcat&&(e="\n{{subst:Tfm notice|2="+this.params.tfdtarget),e+="|1="+Morebits.pageNameNorm+"}} ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";if("TfM"===e.xfdcat&&(t+=" (merge)",e.tfdtarget)){var a="Scribunto"===mw.config.get("wgPageContentModel")?"Module:":"Template:";t+="; Other "+a.toLowerCase()+" [[",/^:?(?:template|module):/i.test(e.tfdtarget)||(t+=a),t+=e.tfdtarget+"]]"}return t},t.venueCode="TfD",t.venueLabel="TfD (Templates for discussion)",t}(Q),ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return 6===mw.config.get("wgNamespaceNumber")},t.prototype.getFieldsetLabel=function(){return"Files for discussion"},t.prototype.getMenuTooltip=function(){return"Start a discussion for deleting this file"},t.prototype.getVenueWarning=function(){if(6!==mw.config.get("wgNamespaceNumber"))return"FFD is selected but this page doesn't look like a file!"},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.appendReasonArea(),this.fieldset},t.prototype.preview=function(e){var t=this;this.params=Morebits.quickForm.getInputData(e),this.preprocessParams(),this.fetchCreatorInfo().then((function(){t.showPreview(e)}))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.fetchCreatorInfo,this.tagPage],this.printReasonText),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Adding deletion tag to file page");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText(),n=new Morebits.date(a.getLoadTime()).format("YYYY MMMM D","utc");return t.logpage="Wikipedia:Files for discussion/"+n,t.discussionpage=t.logpage+"#"+Morebits.pageNameNorm,t.tagText="{{ffd|log="+n+"|help=off}}\n",a.canEdit()?(i=i.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi,""),a.setPageText(t.tagText+i),a.setEditSummary("Listed for discussion at [[:"+t.discussionpage+"]]."),a.setWatchlist(B("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var t=a.getPageText();return a.exists()||(t="{{subst:FfD log}}"),a.setPageText(t+"\n\n"+e.getDiscussionWikitext()),a.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return w("subst:ffd2",{Reason:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),Uploader:this.params.initialContrib})},t.venueCode="FfD",t.venueLabel="FfD (Files for discussion)",t}(Q),oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return 14===mw.config.get("wgNamespaceNumber")||10===mw.config.get("wgNamespaceNumber")&&/-stub$/.test(Morebits.pageNameNorm)},t.prototype.getFieldsetLabel=function(){return"Categories for discussion"},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getVenueWarning=function(){if(-1===[10,14].indexOf(mw.config.get("wgNamespaceNumber")))return"CfD is only for categories and stub templates."},t.prototype.generateFieldset=function(){this.fieldset=e.prototype.generateFieldset.call(this);var t=14===mw.config.get("wgNamespaceNumber");return this.fieldset.append({type:"select",label:"Choose type of action wanted: ",name:"xfdcat",list:t?[{type:"option",label:"Deletion",value:"CfD",selected:!0},{type:"option",label:"Merge",value:"CfM"},{type:"option",label:"Renaming",value:"CfR"},{type:"option",label:"Split",value:"CfS"},{type:"option",label:"Convert into article",value:"CfC"}]:[{type:"option",label:"Stub Deletion",value:"SfD-t",selected:!0},{type:"option",label:"Stub Renaming",value:"SfR-t"}],event:function(e){var a=e.target.value,i=e.target.form.cfdtarget,n=e.target.form.cfdtarget2;i.disabled="CfD"===a||"SfD-t"===a,t?("CfS"===a?Morebits.quickForm.setElementLabel(i,"Target categories: "):"CfC"===a?Morebits.quickForm.setElementLabel(i,"Target article: "):Morebits.quickForm.setElementLabel(i,"Target category: "),"CfS"===a?n?(n.disabled=!1,$(n).show()):((n=document.createElement("input")).setAttribute("name","cfdtarget2"),n.setAttribute("type","text"),n.setAttribute("required","true"),i.parentNode.appendChild(n)):($(n).prop("disabled",!0),$(n).hide())):Morebits.quickForm.setElementLabel(i,"Target stub template: ")}}),this.fieldset.append({type:"input",name:"cfdtarget",label:"Target category: ",disabled:!0,required:!0,value:""}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.cfdtarget&&(this.params.cfdtarget=v(this.params.cfdtarget)),this.params.cfdtarget2&&(this.params.cfdtarget2=v(this.params.cfdtarget2));this.params.action={CfD:"deletion","SfD-t":"deletion",CfM:"merging",CfR:"renaming","SfR-t":"renaming",CfS:"splitting",CfC:"conversion"}[this.params.xfdcat],this.params.stub=14!==mw.config.get("wgNamespaceNumber")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[this.tagPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging category with "+t.action+" tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=new Morebits.date(a.getLoadTime());t.logpage="Wikipedia:Categories for discussion/Log/"+i.format("YYYY MMMM D","utc"),t.discussionpage=t.logpage+"#"+Morebits.pageNameNorm;var n=a.getPageText();t.tagText=w("subst:"+t.xfdcat,{1:t.cfdtarget,2:t.cfdtarget2})+"\n";var o=(t.stub?"Stub template":"Category")+" being considered for "+t.action+("CfC"===t.xfdcat?" to an article":"")+"; see [[:"+t.discussionpage+"]].";return a.canEdit()?(a.setPageText(t.tagText+n),a.setEditSummary(o),a.setWatchlist(B("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's list");return a.setFollowRedirect(!0),a.load().then((function(){var i,n=a.getStatusElement(),o=e.getDiscussionWikitext();if(a.exists()){var r=a.getPageText();if((i=r.replace("below this line --\x3e","below this line --\x3e\n"+o))===r)return n.error("failed to find target spot for the discussion"),$.Deferred().reject()}else i="{{subst:CfD log}}\n"+o;return a.setPageText(i),a.setEditSummary("Adding "+t.action+" nomination of [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return w("subst:"+this.params.xfdcat+"2",{text:Morebits.string.formatReasonText(this.params.reason,!0),1:mw.config.get("wgTitle"),2:this.params.cfdtarget,3:this.params.cfdtarget2})},t.prototype.getNotifyText=function(){return w("subst:cfd notice",{action:this.params.action,1:Morebits.pageNameNorm,stub:10===mw.config.get("wgNamespaceNumber")?"yes":null})+" ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";if(t+=" ("+e.xfdcat+")",e.cfdtarget){var a="s"===e.xfdcat.charAt(0)?"Template:":":Category:";t+="; "+e.action+" to [["+a+e.cfdtarget+"]]","CfS"===e.xfdcat&&e.cfdtarget2&&(t+=", [["+a+e.cfdtarget2+"]]")}return t},t.venueCode="CfD",t.venueLabel="CfD (Categories for discussion)",t}(Q),re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getFieldsetLabel=function(){return"Categories for speedy renaming"},t.prototype.getVenueWarning=function(){if(-1===[10,14].indexOf(mw.config.get("wgNamespaceNumber")))return"CfD is only for categories and stub templates."},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"select",label:"C2 sub-criterion: ",name:"xfdcat",tooltip:"See WP:CFDS for full explanations.",list:[{type:"option",label:"C2A: Typographic and spelling fixes",value:"C2A",selected:!0},{type:"option",label:"C2B: Naming conventions and disambiguation",value:"C2B"},{type:"option",label:"C2C: Consistency with names of similar categories",value:"C2C"},{type:"option",label:"C2D: Rename to match article name",value:"C2D"},{type:"option",label:"C2E: Author request",value:"C2E"},{type:"option",label:"C2F: One eponymous article",value:"C2F"}]}),this.fieldset.append({type:"input",name:"cfdstarget",label:"New name: ",required:!0}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){var e,t,a;this.params.cfdstarget&&(this.params.cfdstarget=(e=this.params.cfdstarget,t=14,(a=mw.Title.newFromUserInput(e,t))?a.toText():e))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.tagPage,[]),this.tm.add(this.addToList,[],this.printReasonText),this.tm.add(this.addToLog,[this.addToList]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging category with rename tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText();return t.tagText="{{subst:cfr-speedy|1="+t.cfdstarget.replace(/^:?Category:/,"")+"}}\n",a.canEdit()?(a.setPageText(t.tagText+i),a.setEditSummary("Listed for speedy renaming; see [[WP:CFDS|Categories for discussion/Speedy]]."),a.setWatchlist(B("xfdWatchPage")),a.setCreateOption("recreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.addToList=function(){var e=this,t=new K("Wikipedia:Categories for discussion/Speedy","Adding discussion to the list");return t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=a.replace("BELOW THIS LINE --\x3e","BELOW THIS LINE --\x3e\n"+e.getDiscussionWikitext());return n===a?(i.error("failed to find target spot for the discussion"),$.Deferred().reject()):(t.setPageText(n),t.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),t.setWatchlist(B("xfdWatchDiscussion")),t.setCreateOption("recreate"),t.save())}))},t.prototype.getDiscussionWikitext=function(){var e=this.params;return"* [[:"+Morebits.pageNameNorm+"]] to [[:"+e.cfdstarget+"]]\xa0\u2013 "+e.xfdcat+(e.reason?": "+Morebits.string.formatReasonText(e.reason):".")+" ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return t+=" ("+e.xfdcat+")",e.cfdstarget&&e.cfdstarget.length>9&&(t+="; New name: [[:"+e.cfdstarget+"]]"),t},t.venueCode="CfDS",t.venueLabel="CfDS (Categories for speedy renaming)",t}(Q),se=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.discussionPagePrefix="Wikipedia:Miscellany for deletion",t}return p(t,e),t.isDefaultChoice=function(){return-1===[0,6,10,14,828].indexOf(mw.config.get("wgNamespaceNumber"))||0===Morebits.pageNameNorm.indexOf("Template:User ",0)},t.prototype.getMenuTooltip=function(){return"Nominate article for deletion or move"},t.prototype.getFieldsetLabel=function(){return"Miscellany for deletion"},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Wrap deletion tag with <noinclude>",value:"noinclude",name:"noinclude",tooltip:"Will wrap the deletion tag in &lt;noinclude&gt; tags, so that it won't transclude. Select this option for userboxes."}]}),2!==mw.config.get("wgNamespaceNumber")&&3!==mw.config.get("wgNamespaceNumber")||!mw.config.exists("wgRelevantUserName")||this.fieldset.append({type:"checkbox",list:[{label:"Notify owner of userspace (if they are not the page creator)",value:"notifyuserspace",name:"notifyuserspace",tooltip:"If the user in whose userspace this page is located is not the page creator (for example, the page is a rescued article stored as a userspace draft), notify the userspace owner as well.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preprocessParams=function(){this.params.userspaceOwner=mw.config.get("wgRelevantUserName")},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.determineDiscussionPage,[]),this.tm.add(this.tagPage,[this.determineDiscussionPage]),this.tm.add(this.addToList,[this.determineDiscussionPage]),this.tm.add(this.createDiscussionPage,[this.determineDiscussionPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo]),this.tm.add(this.notifyUserspaceOwner,[this.fetchCreatorInfo]),this.tm.add(this.addToLog,[this.notifyCreator,this.notifyUserspaceOwner]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Tagging page with deletion tag");return a.setFollowRedirect(!0),a.load().then((function(){var i=a.getPageText();return t.tagText="{{"+(""===t.number?"mfd":"mfdx|"+t.number)+"|help=off}}",-1!==["javascript","css","sanitized-css"].indexOf(mw.config.get("wgPageContentModel"))?t.tagText="/* "+t.tagText+" */\n":(t.tagText+="\n",t.noinclude&&(t.tagText="<noinclude>"+t.tagText+"</noinclude>")),a.canEdit()&&-1!==["wikitext","javascript","css","sanitized-css"].indexOf(a.getContentModel())?(a.setPageText(t.tagText+i),a.setEditSummary("Nominated for deletion; see [[:"+t.discussionpage+"]]."),a.setWatchlist(B("xfdWatchPage")),a.setCreateOption("nocreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.createDiscussionPage=function(){var e=this,t=this.params,a=new K(t.discussionpage,"Creating deletion discussion page");return a.load().then((function(){return a.setPageText(e.getDiscussionWikitext()),a.setEditSummary("Creating deletion discussion page for [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("createonly"),a.save()}))},t.prototype.getDiscussionWikitext=function(){return w("subst:mfd2",{text:Morebits.string.formatReasonText(this.params.reason,!0),pg:Morebits.pageNameNorm})},t.prototype.addToList=function(){var e=this.params,t=new K("Wikipedia:Miscellany for deletion","Adding discussion to today's list");return t.setPageSection(2),t.setFollowRedirect(!0),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=new Morebits.date(t.getLoadTime()),o=n.format("===MMMM D, YYYY===\n","utc"),r=new RegExp(n.format("(===[\\s]*MMMM[\\s]+D,[\\s]+YYYY[\\s]*===)","utc")),s="{{subst:mfd3|pg="+Morebits.pageNameNorm+e.numbering+"}}";return r.test(a)?(i.info("Found today's section, proceeding to add new entry"),a=a.replace(r,"$1\n"+s)):(i.info("No section for today found, proceeding to create one"),a=a.replace("===",o+s+"\n\n===")),t.setPageText(a),t.setEditSummary("Adding [[:"+e.discussionpage+"]]."),t.setWatchlist(B("xfdWatchList")),t.setCreateOption("recreate"),t.save()}))},t.prototype.notifyUserspaceOwner=function(){var e=this.params;return e.notifyuserspace&&e.userspaceOwner!==e.initialContrib?this.notifyTalkPage(e.userspaceOwner,new Morebits.status("Notifying owner of userspace ("+e.userspaceOwner+")")):$.Deferred().resolve()},t.prototype.getNotifyText=function(){var e="{{subst:mfd notice";return this.params.numbering&&(e+="|order=&#32;"+this.params.numbering),e+="|1="+Morebits.pageNameNorm+"}} ~~~~"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.notifyuserspace&&e.userspaceOwner&&e.userspaceOwner!==e.initialContrib&&(t+="; notified {{user|1="+e.userspaceOwner+"}}"),t},t.venueCode="mfD",t.venueLabel="MfD (Miscellany for deletion)",t}(Q),le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.isDefaultChoice=function(){return!!mw.config.get("wgIsRedirect")||!!document.getElementById("softredirect")},t.prototype.getFieldsetLabel=function(){return"Redirects for discussion"},t.prototype.getMenuTooltip=function(){return"Nominate redirect to be deleted or retargeted"},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.rfdtarget&&(t+="; Target: [[:"+e.rfdtarget+"]]",e.relatedpage&&(t+=" (notified)")),t},t.prototype.generateFieldset=function(){return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Notify target page if possible",value:"relatedpage",name:"relatedpage",tooltip:"A notification template will be placed on the talk page of this redirect's target if this is true.",checked:!0}]}),this.appendReasonArea(),this.fieldset},t.prototype.preview=function(e){var t=this;this.params=Morebits.quickForm.getInputData(e),this.findTarget().then((function(){t.showPreview(e)}))},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.findTarget,[]),this.tm.add(this.tagPage,[this.findTarget]),this.tm.add(this.addToList,[this.findTarget,this.tagPage],this.printReasonText),this.tm.add(this.fetchCreatorInfo,[]),this.tm.add(this.notifyCreator,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.notifyTargetTalk,[this.fetchCreatorInfo,this.tagPage]),this.tm.add(this.addToLog,[this.notifyCreator]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.findTarget=function(){var e=this,t=!!document.getElementById("softredirect"),a={action:"query",curtimestamp:!0,format:"json",titles:!t&&mw.config.get("wgPageName"),redirects:!t};return t&&(this.params.rfdtarget=document.getElementById("softredirect").textContent.replace(/^:+/,"")),new C("Finding target of redirect",a).post().then((function(a){var i=a.getResponse();e.params.curtimestamp=i.curtimestamp;var n=new Morebits.date(e.params.curtimestamp);if(e.params.logpage="Wikipedia:Redirects for discussion/Log/"+n.format("YYYY MMMM D","utc"),e.params.discussionpage=e.params.logpage+"#"+Morebits.pageNameNorm,!t){var o=i.query.redirects&&i.query.redirects[0].to;if(!o){var r="No target found. this page does not appear to be a redirect, aborting";return"history"===mw.config.get("wgAction")&&(r+=". If this is a soft redirect, try again from the content page, not the page history."),a.getStatusElement().error(r),$.Deferred().reject()}e.params.rfdtarget=o,e.params.section=i.query.redirects[0].tofragment}}))},t.prototype.tagPage=function(){var e=this,t=this.params,a=new K(mw.config.get("wgPageName"),"Adding deletion tag to redirect");return a.setFollowRedirect(!1),a.load().then((function(){var i=a.getPageText();return t.tagText="{{subst:rfd|"+(10===mw.config.get("wgNamespaceNumber")?"showontransclusion=1|":"")+"content=\n",a.canEdit()?(a.setPageText(t.tagText+i+"\n}}"),a.setEditSummary("Listed for discussion at [[:"+t.discussionpage+"]]."),a.setWatchlist(B("xfdWatchPage")),a.setCreateOption("nocreate"),a.save()):e.autoEditRequest(a)}))},t.prototype.getDiscussionWikitext=function(){var e=this.params;return w("subst:rfd2",{text:(e.reason?Morebits.string.formatReasonText(e.reason):"")+" ~~~~",redirect:Morebits.pageNameNorm,target:e.rfdtarget&&e.rfdtarget+(e.section?"#"+e.section:"")})},t.prototype.addToList=function(){var e=this,t=this.params,a=new K(t.logpage,"Adding discussion to today's log");return a.setFollowRedirect(!0),a.load().then((function(){var t,i=a.getStatusElement(),n=e.getDiscussionWikitext();if(a.exists()){var o=a.getPageText();if((t=o.replace(/(<!-- Add new entries directly below this line\.? -->)/,"$1\n"+n))===o)return i.error("failed to find target spot for the discussion"),$.Deferred().reject()}else t="{{subst:RfD log}}"+n;return a.setPageText(t),a.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),a.setWatchlist(B("xfdWatchDiscussion")),a.setCreateOption("recreate"),a.save()}))},t.prototype.notifyTargetTalk=function(){if(!this.params.relatedpage)return $.Deferred().resolve();var e=new mw.Title(this.params.rfdtarget).getTalkPage(),t=new Morebits.status("Notifying target talk page","doing");return this.params.rfdtarget===mw.config.get("wgPageName")?(t.warn("Circular redirect; skipping target page notification"),$.Deferred().resolve()):document.getElementById("softredirect")?(t.warn("Soft redirect; skipping target page notification"),$.Deferred().resolve()):3===e.getNamespaceId()&&e.getNameText()===this.params.initialContrib?(t.warn("Target is initial contributor; skipping target page notification"),$.Deferred().resolve()):3===e.getNamespaceId()&&e.getNameText()===mw.config.get("wgUserName")?(t.warn("You ("+mw.config.get("wgUserName")+") are the target; skipping target page notification"),$.Deferred().resolve()):this.notifyTalkPage(e.toText(),t)},t.venueCode="RfD",t.venueLabel="RfD (Redirects for discussion)",t}(Q),de=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getFieldsetLabel=function(){return"Requested moves"},t.prototype.getVenueWarning=function(){if(14===mw.config.get("wgNamespaceNumber"))return"Please use CfD or CfDS for category renames."},t.prototype.generateFieldset=function(){var t=this;return this.fieldset=e.prototype.generateFieldset.call(this),this.fieldset.append({type:"checkbox",list:[{label:"Uncontroversial technical request",value:"rmtr",name:"rmtr",tooltip:"Use this option when you are unable to perform this uncontroversial move yourself because of a technical reason (e.g. a page already exists at the new title, or the page is protected)",checked:!1,event:function(e){t.result.newname.required=e.target.checked}}]}),this.fieldset.append({type:"input",name:"newname",label:"New title: ",tooltip:"Required for technical requests. Otherwise, if unsure of the appropriate title, you may leave it blank."}),this.appendReasonArea(),this.fieldset},t.prototype.getDiscussionWikitext=function(){var e=new mw.Title(Morebits.pageNameNorm).getSubjectPage().toText(),t=this.params;return(t.rmtr?"{{subst:RMassist|1="+e+"|2="+t.newname:"{{subst:Requested move|current1="+e+"|new1="+t.newname)+"|reason="+t.reason+"}}"},t.prototype.preprocessParams=function(){this.params.discussionpage=this.params.rmtr?"Wikipedia:Requested moves/Technical requests":new mw.Title(Morebits.pageNameNorm).getTalkPage().toText()},t.prototype.showPreview=function(e){var t=this.getDiscussionWikitext();e.previewer.beginRender(t,this.params.discussionpage)},t.prototype.evaluate=function(){var t=this;e.prototype.evaluate.call(this),this.tm.add(this.addToList,[],this.printReasonText),this.tm.add(this.addToLog,[this.addToList]),this.tm.execute().then((function(){return t.redirectToDiscussion()}))},t.prototype.addToList=function(){return this.params.rmtr?this.listAtRMTR():this.listAtTalk()},t.prototype.listAtTalk=function(){var e=this.params,t=new K(e.discussionpage,"Adding entry on talk page");return t.setAppendText("\n\n"+this.getDiscussionWikitext()),t.setFollowRedirect(!0),t.setEditSummary("Proposing move"+(e.newname?" to [[:"+e.newname+"]]":"")),t.setCreateOption("recreate"),t.setWatchlist(B("xfdWatchDiscussion")),t.append()},t.prototype.listAtRMTR=function(){var e=this,t=new K(this.params.discussionpage,"Adding entry at WP:RM/TR");return t.setFollowRedirect(!0),t.setPageSection(2),t.load().then((function(){var a=t.getPageText(),i=t.getStatusElement(),n=a.replace(/---- and enter on a new line.* -->/,"$&\n"+e.getDiscussionWikitext());return a===n?(i.error("failed to find target spot for the entry"),$.Deferred().reject()):(t.setPageText(n),t.setEditSummary("Adding [[:"+Morebits.pageNameNorm+"]]."),t.save())}))},t.prototype.getUserspaceLoggingExtraInfo=function(){var e=this.params,t="";return e.rmtr&&(t+=" (technical)"),e.newname&&(t+="; New name: [[:"+e.newname+"]]"),t},t.venueCode="RM",t.venueLabel="RM (Requested moves)",t}(Q);Z.modeList=[ae,le,oe,re,ie,ne,se,de];var ce=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.footerlinks={"About deletion discussions":"WP:XFD","XfD prefs":"WP:TW/PREF#xfd","Twinkle help":"WP:TW/DOC#xfd","Give feedback":"WT:TW"},t}return p(t,e),t.userPreferences=function(){var t=e.userPreferences.call(this);return t.preferences=t.preferences.concat([{name:"noLogOnXfdNomination",label:"Do not create a userspace log entry when nominating at this venue",type:"set",setValues:{afd:"AfD",tfd:"TfD",ffd:"FfD",cfd:"CfD",cfds:"CfD/S",mfd:"MfD",rfd:"RfD",rm:"RM"},default:[]},{name:"xfdWatchRelated",label:"Add the redirect's target page to watchlist (when notifying)",helptip:"This only applies for RfD, when leaving a notification on the talk page of the target of the redirect",type:"enum",enumValues:G.watchlistEnums,default:"default"},{name:"markXfdPagesAsPatrolled",label:"Mark page as patrolled/reviewed when nominating for AFD (if possible)",type:"boolean",default:!0}]),t},t}(Z),ue=function(e){function t(){var t=e.call(this)||this;return t.portletName="CSD",t.portletId="twinkle-csd",t.portletTooltip=Morebits.userIsSysop?"Delete page according to WP:CSD":"Request speedy deletion according to WP:CSD",t.windowTitle="Choose criteria for speedy deletion",t.addMenu(),t}return p(t,e),t.prototype.makeWindow=function(){var e=this;this.dialog=new J(B("speedyWindowWidth"),B("speedyWindowHeight")),this.dialog.setTitle(this.windowTitle),this.dialog.setFooterLinks(this.footerlinks),this.hasCSD=!!$("#delete-reason").length,this.makeFlatObject();var t=new Morebits.quickForm((function(t){return e.evaluate(t)}),"radioClick"===B("speedySelectionStyle")?"change":null);if(this.form=t,Morebits.userIsSysop){t.append({type:"checkbox",list:[{label:"Tag page only, don't delete",value:"tag_only",name:"tag_only",tooltip:"If you just want to tag the page, instead of deleting it now",checked:!(this.hasCSD||B("deleteSysopDefaultToDelete")),event:function(t){var a=t.target.form,i=t.target.checked;a.deleteTalkPage&&(a.deleteTalkPage.checked=!i&&B("deleteTalkPageOnDelete")),a.deleteRedirects.checked=!i,a.delmultiple.checked=!1,a.notify.checked=i,a.warnusertalk.checked=!i&&!e.hasCSD,a.multiple.checked=!1,a.requestsalt.checked=!1,e.modeChanged(a),t.stopPropagation()}}]});var a=t.append({type:"div",name:"delete_options"});a.append({type:"header",label:"Delete-related options"}),mw.config.get("wgNamespaceNumber")%2!=0||2===mw.config.get("wgNamespaceNumber")&&!/\//.test(mw.config.get("wgTitle"))||a.append({type:"checkbox",list:[{label:"Also delete talk page",value:"deleteTalkPage",name:"deleteTalkPage",tooltip:"This option deletes the page's talk page in addition. If you choose the F8 (moved to Commons) criterion, this option is ignored and the talk page is *not* deleted.",checked:B("deleteTalkPageOnDelete"),event:function(e){return e.stopPropagation()}}]}),a.append({type:"checkbox",list:[{label:"Also delete all redirects",value:"deleteRedirects",name:"deleteRedirects",tooltip:"This option deletes all incoming redirects in addition. Avoid this option for procedural (e.g. move/merge) deletions.",checked:B("deleteRedirectsOnDelete"),event:function(e){return e.stopPropagation()}},{label:"Delete under multiple criteria",value:"delmultiple",name:"delmultiple",tooltip:"When selected, you can select several criteria that apply to the page. For example, G11 and A7 are a common combination for articles.",event:function(t){e.modeChanged(t.target.form),t.stopPropagation()}},{label:"Notify page creator of page deletion",value:"warnusertalk",name:"warnusertalk",tooltip:"A notification template will be placed on the talk page of the creator, IF you have a notification enabled in your Twinkle preferences for the criterion you choose AND this box is checked. The creator may be welcomed as well.",checked:!this.hasCSD,event:function(e){return e.stopPropagation()}}]})}var i=t.append({type:"div",name:"tag_options"});Morebits.userIsSysop&&i.append({type:"header",label:"Tag-related options"}),i.append({type:"checkbox",list:[{label:"Notify page creator if possible",value:"notify",name:"notify",tooltip:"A notification template will be placed on the talk page of the creator, IF you have a notification enabled in your Twinkle preferences for the criterion you choose AND this box is checked. The creator may be welcomed as well.",checked:!Morebits.userIsSysop||!(this.hasCSD||B("deleteSysopDefaultToDelete")),event:function(e){return e.stopPropagation()}},{label:"Tag for creation protection (salting) as well",value:"requestsalt",name:"requestsalt",tooltip:"When selected, the speedy deletion tag will be accompanied by a {{salt}} tag requesting that the deleting administrator apply creation protection. Only select if this page has been repeatedly recreated.",event:function(e){return e.stopPropagation()}},{label:"Tag with multiple criteria",value:"multiple",name:"multiple",tooltip:"When selected, you can select several criteria that apply to the page. For example, G11 and A7 are a common combination for articles.",event:function(t){e.modeChanged(t.target.form),t.stopPropagation()}}]}),t.append({type:"div",id:"prior-deletion-count",style:"font-style: italic"}),t.append({type:"div",name:"work_area",label:"Failed to initialize the CSD module. Please try again, or tell the Twinkle developers about the issue."}),"radioClick"!==B("speedySelectionStyle")&&t.append({type:"submit",className:"tw-speedy-submit"}),this.result=t.render(),this.dialog.setContent(this.result),this.dialog.display(),this.modeChanged(this.result),this.priorDeletionCount()},t.prototype.priorDeletionCount=function(){var e={action:"query",format:"json",list:"logevents",letype:"delete",leaction:"delete/delete",letitle:mw.config.get("wgPageName"),leprop:"",lelimit:5};new C("Checking for past deletions",e).post().then((function(e){var t=e.getResponse(),a=t.query.logevents.length;if(a){var i=a+" previous deletion";a>1&&(i+="s",t.continue&&(i="More than "+i),a>=3&&$("#prior-deletion-count").css("color","red"));var n=Morebits.htmlNode("a","(logs)");n.setAttribute("href",mw.util.getUrl("Special:Log",{page:mw.config.get("wgPageName")})),n.setAttribute("target","_blank"),$("#prior-deletion-count").text(i+" "),$("#prior-deletion-count").append(n)}}))},t.prototype.getMode=function(){var e=this.result;return this.mode={isSysop:!!e.tag_only&&!e.tag_only.checked,isMultiple:e.tag_only&&!e.tag_only.checked?e.delmultiple.checked:e.multiple.checked,isRadioClick:"radioClick"===B("speedySelectionStyle")}},t.prototype.modeChanged=function(e){var t=this;this.getMode(),$("[name=delete_options]").toggle(this.mode.isSysop),$("[name=tag_options]").toggle(!this.mode.isSysop),$("button.tw-speedy-submit").text(this.mode.isSysop?"Delete page":"Tag page");var a=new Morebits.quickForm.element({type:"div",name:"work_area"});if(this.mode.isMultiple&&this.mode.isRadioClick&&(a.append({type:"div",label:"When finished choosing criteria, click:"}),a.append({type:"button",name:"submit-multiple",label:this.mode.isSysop?"Delete page":"Tag page",event:function(e){t.evaluate(e),e.stopPropagation()}})),this.appendCriteriaLists(a),$(e).find("[name=work_area]").replaceWith(a.render()),this.mode.isSysop&&this.hasCSD){var i=$("input[name=csd][value=reason]")[0];if(i){"radioClick"!==B("speedySelectionStyle")&&i.click();var n=decodeURIComponent($("#delete-reason").text()).replace(/\+/g," ");$('input[name="csd.reason_1"]').val(n)}}},t.prototype.appendCriteriaLists=function(e){var t=this;this.namespace=mw.config.get("wgNamespaceNumber"),this.isRedirect=Morebits.isPageRedirect();var a=this.mode.isMultiple?"checkbox":"radio";this.criteriaLists.forEach((function(i){i.visible(t)&&(e.append({type:"header",label:i.label}),e.append({type:a,name:"csd",list:t.generateCsdList(i.list)}))}))},t.prototype.generateCsdList=function(e){var t=this,a=this.mode,i=function(e){$(e.target.form).find("input").prop("disabled",!0),$(e.target.form).children().css("color","gray"),$(e.target).parent().css("color","black").find("input").prop("disabled",!1),$(e.target).parent().find("input:text")[0].focus(),e.stopPropagation()},n=function(e){var i=a.isSysop?"evaluateSysop":"evaluateUser";t[i](e),e.stopPropagation()};return e.map((function(e){var o=$.extend({},e);if(a.isMultiple){if(o.hideWhenMultiple)return null;o.hideSubgroupWhenMultiple&&(o.subgroup=null)}else{if(o.hideWhenSingle)return null;o.hideSubgroupWhenSingle&&(o.subgroup=null)}if(a.isSysop){if(o.hideWhenSysop)return null;o.hideSubgroupWhenSysop&&(o.subgroup=null)}else{if(o.hideWhenUser)return null;o.hideSubgroupWhenUser&&(o.subgroup=null)}return Morebits.isPageRedirect()&&o.hideWhenRedirect||o.showInNamespaces&&o.showInNamespaces.indexOf(t.namespace)<0||o.hideInNamespaces&&o.hideInNamespaces.indexOf(t.namespace)>-1?null:(o.subgroup&&!a.isMultiple&&a.isRadioClick&&(o.subgroup=y(o.subgroup).concat({type:"button",name:"submit",label:a.isSysop?"Delete page":"Tag page",event:n}),o.event=i),o)})).filter((function(e){return e}))},t.prototype.makeFlatObject=function(){var e=this;this.flatObject={},this.criteriaLists.forEach((function(t){t.list.forEach((function(t){e.flatObject[t.value]=t}))}))},t.prototype.evaluate=function(e){var t=this;if("checkbox"!==e.target.type&&"text"!==e.target.type&&"select"!==e.target.type){if(this.params=Morebits.quickForm.getInputData(this.result),!this.params.csd||!this.params.csd.length)return alert("Please select a criterion!");this.preprocessParams();var a=this.validateInputs();if(a)return alert(a);Morebits.simpleWindow.setButtonsEnabled(!1),Morebits.status.init(this.result);var i=new Morebits.taskManager(this);i.add(this.fetchCreatorInfo,[]),this.mode.isSysop?(i.add(this.parseDeletionReason,[]),i.add(this.deletePage,[this.parseDeletionReason]),i.add(this.deleteTalk,[this.deletePage]),i.add(this.deleteRedirects,[this.deletePage]),i.add(this.noteToCreator,[this.deletePage,this.fetchCreatorInfo])):(i.add(this.checkPage,[]),i.add(this.tagPage,[this.checkPage]),i.add(this.patrolPage,[this.checkPage]),i.add(this.noteToCreator,[this.checkPage,this.fetchCreatorInfo]),i.add(this.addToLog,[this.noteToCreator])),i.execute().then((function(){Morebits.status.actionCompleted(t.mode.isSysop?"Deletion completed":"Tagging completed"),setTimeout((function(){window.location.href=mw.util.getUrl(Morebits.pageNameNorm)}),5e4)}))}},t.prototype.preprocessParams=function(){var e=this,t=this.params;t.csd=y(t.csd),t.normalizeds=t.csd.map((function(t){return e.flatObject[t].code})),this.getTemplateParameters(),this.getMode(),this.mode.isSysop?(t.promptForSummary=t.normalizeds.some((function(e){return-1!==B("promptForSpeedyDeletionSummary").indexOf(e)})),t.warnUser=t.warnusertalk&&t.normalizeds.some((function(e,a){return-1!==B("warnUserOnSpeedyDelete").indexOf(e)&&!("g6"===e&&"copypaste"!==t.values[a])}))):(t.notifyUser=t.notify&&t.normalizeds.some((function(e,a){return-1!==B("notifyUserOnSpeedyDeletionNomination").indexOf(e)&&!("g6"===e&&"copypaste"!==t.csd[a])})),t.redactContents=t.csd.some((function(t){return e.flatObject[t].redactContents}))),t.watch=t.normalizeds.some((function(e){return-1!==B("watchSpeedyPages").indexOf(e)&&B("watchSpeedyExpiry")})),t.welcomeuser=(t.notifyUser||t.warnUser)&&t.normalizeds.some((function(e){return-1!==B("welcomeUserOnSpeedyDeletionNotification").indexOf(e)})),this.preprocessParamInputs()},t.prototype.preprocessParamInputs=function(){},t.prototype.getTemplateParameters=function(){var e=this;this.params.templateParams=new Array(this.params.csd.length),this.params.csd.forEach((function(t,a){var i=e.flatObject[t],n={};y(i.subgroup).forEach((function(t){t.parameter&&e.params[t.name]&&(n[t.parameter]=e.params[t.name])})),e.params.templateParams[a]=n}))},t.prototype.getTaggingCode=function(){var e=this.params,t="";return e.normalizeds.length>1?(t="{{db-multiple",e.normalizeds.forEach((function(a,i){t+="|"+a.toUpperCase(),T(e.templateParams[i]).forEach((function(e){var a=e[0],i=e[1];parseInt(a,10)||(t+="|"+a+"="+i)}))})),t+="}}"):(t="{{db-"+e.csd[0],T(e.templateParams[0]).forEach((function(e){var a=e[0],i=e[1];t+="|"+a+"="+i})),e.notifyUser&&(t+="|help=off"),t+="}}"),t},t.prototype.getUserTalkParameters=function(){var e=this,t={};this.params.csd.forEach((function(a){y(e.flatObject[a].subgroup).forEach((function(a,i){a.utparam&&e.params[a.name]&&(t["key"+(i+1)]=a.utparam,t["value"+(i+1)]=e.params[a.name],t[a.utparam]=e.params[a.name])}))})),this.params.utparams=t},t.prototype.getUserNotificationText=function(){var e=this.params,t="";return e.normalizeds.length>1?(t="\n{{subst:db-"+(e.warnUser?"deleted":"notice")+"-multiple|1="+Morebits.pageNameNorm,e.normalizeds.forEach((function(e,a){t+="|"+(a+2)+"="+e.toUpperCase()}))):"db"===e.normalizeds[0]?t="\n{{subst:db-reason-"+(e.warnUser?"deleted":"notice")+"|1="+Morebits.pageNameNorm:(t="\n{{subst:db-csd-"+(e.warnUser?"deleted":"notice")+"-custom|1=","copypaste"===e.csd[0]?t+=e.templateParams[0].sourcepage:t+=Morebits.pageNameNorm,t+="|2="+e.csd[0]),this.getUserTalkParameters(),T(e.utparams).forEach((function(e){var a=e[0],i=e[1];t+="|"+a+"="+i})),t+=(e.welcomeuser?"":"|nowelcome=yes")+"}} ~~~~"},t.prototype.fetchCreatorInfo=function(){var e=this;if(!this.params.notifyUser&&!this.params.warnUser)return $.Deferred().resolve();var t=new K(Morebits.pageNameNorm,"Finding page creator");return t.lookupCreation().then((function(){e.params.initialContrib=t.getCreator(),t.getStatusElement().info("Found "+t.getCreator())}))},t.prototype.patrolPage=function(){return B("markSpeedyPagesAsPatrolled")&&new K(Morebits.pageNameNorm).triage(),$.Deferred().resolve()},t.prototype.checkPage=function(){var e=new K(mw.config.get("wgPageName"),"Tagging page");return e.setChangeTags(n.changeTags),e.load().then((function(){var t=e.getStatusElement();if(!e.exists())return t.error("It seems that the page doesn't exist; perhaps it has already been deleted"),$.Deferred().reject();var a=e.getPageText();t.status("Checking for tags on the page...");var i=/(?:\{\{\s*(db|delete|db-.*?|speedy deletion-.*?)(?:\s*\||\s*\}\}))/.exec(a);if(i&&!confirm("The page already has the CSD-related template {{"+i[1]+"}} on it. Do you want to add another CSD template?"))return $.Deferred().reject();var n=/\{\{((?:article for deletion|proposed deletion|prod blp|template for discussion)\/dated|[cfm]fd\b)/i.exec(a)||/#invoke:(RfD)/.exec(a);return n&&!confirm("The deletion-related template {{"+n[1]+"}} was found on the page. Do you still want to add a CSD template?")?$.Deferred().reject():e}))},t.prototype.tagPage=function(e){var t,a=this.params,i=e.getPageText(),o=this.getTaggingCode();if(-1!==a.normalizeds.indexOf("g13")&&(o=o.replace("$TIMESTAMP",e.getLastEditTime())),a.requestsalt&&(o="{{salt}}\n"+o),!e.canEdit()||-1===["wikitext","Scribunto","javascript","css","sanitized-css"].indexOf(e.getContentModel())){var r=new mw.Title(e.getPageName()).getTalkPage().toText();if(r===e.getPageName())return e.getStatusElement().error("Page protected and nowhere to add an edit request, aborting"),$.Deferred().reject();e.getStatusElement().warn("Unable to edit page, placing tag on talk page");var s=new K(r,"Automatically placing tag on talk page");return s.setNewSectionTitle(e.getPageName()+" nominated for CSD, request deletion"),s.setNewSectionText(o+"\n\nI was unable to tag "+e.getPageName()+" so please delete it. ~~~~"),s.setCreateOption("recreate"),s.setFollowRedirect(!0),s.setWatchlist(a.watch),s.setChangeTags(n.changeTags),s.newSection()}if(i=i.replace(/\{\{\s*([Uu]serspace draft)\s*(\|(?:\{\{[^{}]*\}\}|[^{}])*)?\}\}\s*/g,""),6===mw.config.get("wgNamespaceNumber")&&(i=i.replace(/\{\{(mtc|(copy |move )?to ?commons|move to wikimedia commons|copy to wikimedia commons)[^}]*\}\}/gi,"")),10===mw.config.get("wgNamespaceNumber")&&(o="<noinclude>"+o+"</noinclude>"),"Scribunto"===mw.config.get("wgPageContentModel")){for(var l="";-1!==o.indexOf("]"+l+"]");)l+="=";o="require('Module:Module wikitext')._addText(["+l+"["+o+"]"+l+"]);"}else-1!==["javascript","css","sanitized-css"].indexOf(mw.config.get("wgPageContentModel"))&&(o="/* "+o+" */");"db"===a.normalizeds[0]?t='Requesting [[WP:CSD|speedy deletion]] with rationale "'+a.templateParams[0][1]+'".':t="Requesting speedy deletion ("+a.normalizeds.map((function(e){return"[[WP:CSD#"+e.toUpperCase()+"|CSD "+e.toUpperCase()+"]]"})).join(", ")+").";return i=a.redactContents?o:this.insertTagText(o,i),e.setPageText(i),e.setEditSummary(t),e.setWatchlist(a.watch),e.save()},t.prototype.insertTagText=function(e,t){return e+"\n"+t},t.prototype.noteToCreator=function(){var e=this.params,t=e.initialContrib;if(!t)return $.Deferred().resolve();if(t===mw.config.get("wgUserName")?(Morebits.status.warn("Note","You ("+t+") created this page; skipping user notification"),t=null):t===mw.config.get("wgTitle")&&3===mw.config.get("wgNamespaceNumber")?(Morebits.status.warn("Note","Notifying initial contributor: this user created their own user talk page; skipping notification"),t=null):"Cyberbot I"!==t&&"SoxBot"!==t||"f2"!==e.normalizeds[0]?this.hasCSD&&e.warnUser&&!confirm("The page is has a deletion-related tag, and thus the creator has likely been notified. Do you want to notify them for this deletion as well?")&&(Morebits.status.info("Notifying initial contributor","canceled by user; skipping notification."),t=null):(Morebits.status.warn("Note","Notifying initial contributor: page created procedurally by bot; skipping notification"),t=null),!t)return e.initialContrib=null,$.Deferred().resolve();var a=new K("User talk:"+t,"Notifying initial contributor ("+t+")"),i="Notification: speedy deletion"+(e.warnUser?"":" nomination");return e.redactContents?i+=" of an attack page.":i+=" of [[:"+Morebits.pageNameNorm+"]].",a.setAppendText(this.getUserNotificationText()),a.setEditSummary(i),a.setChangeTags(n.changeTags),a.setCreateOption("recreate"),a.setFollowRedirect(!0,!1),a.append()},t.prototype.parseWikitext=function(e){var t=new Morebits.status("Building deletion summary"),a=new C("Parsing deletion template",{action:"parse",prop:"text",pst:"true",text:e,contentmodel:"wikitext",title:mw.config.get("wgPageName"),disablelimitreport:!0,format:"json"});return a.setStatusElement(t),a.post().then((function(e){var a=decodeURIComponent($(e.getResponse().parse.text).find("#delete-reason").text()).replace(/\+/g," ");return a?t.info("complete"):t.warn("Unable to generate summary from deletion template"),a}))},t.prototype.parseDeletionReason=function(){var e=this.params;if(e.normalizeds.length||"db"!==e.normalizeds[0]){var t=this.getTaggingCode();return this.parseWikitext(t).then((function(t){e.promptForSummary&&(t=prompt("Enter the deletion summary to use, or press OK to accept the automatically generated one.",t)),e.deleteReason=t}))}return e.deleteReason=prompt("Enter the deletion summary to use, which will be entered into the deletion log:",""),$.Deferred().resolve()},t.prototype.deletePage=function(){var e=this.params,t=new K(mw.config.get("wgPageName"),"Deleting page");return null===e.deleteReason?(Morebits.status.error("Asking for reason","User cancelled"),$.Deferred().reject()):e.deleteReason&&e.deleteReason.trim()?(t.setEditSummary(e.deleteReason),t.setChangeTags(n.changeTags),t.setWatchlist(e.watch),t.deletePage().then((function(){t.getStatusElement().info("done")}))):(Morebits.status.error("Asking for reason","you didn't give one. I don't know... what with admins and their apathetic antics... I give up..."),$.Deferred().reject())},t.prototype.deleteTalk=function(){if(this.params.deleteTalkPage&&"new"!==document.getElementById("ca-talk").className){var e=new K(new mw.Title(Morebits.pageNameNorm).getTalkPage().toText(),"Deleting talk page");return e.setEditSummary('[[WP:CSD#G8|G8]]: Talk page of deleted page "'+Morebits.pageNameNorm+'"'),e.setChangeTags(n.changeTags),e.deletePage().then((function(){e.getStatusElement().info("done")}))}return $.Deferred().resolve()},t.prototype.deleteRedirects=function(){var e,t,a=this,i=$.Deferred();if(this.params.deleteRedirects){var o=new C("getting list of redirects...",{action:"query",titles:mw.config.get("wgPageName"),prop:"redirects",rdlimit:"max",format:"json"});o.setStatusElement(new Morebits.status("Deleting redirects")),o.post().then((function(e){var t=e.getResponse().query.pages[0].redirects||[],a=t.length,o=e.getStatusElement();if(a){o.status("0%");var r=0,s=function(e){var t=Math.round(100*++r/a)+"%";o.update(t),e.getStatusElement().unlink(),r>=a&&(o.info(t+" (completed)"),i.resolve(),Morebits.wiki.removeCheckpoint())};Morebits.wiki.addCheckpoint(),t.forEach((function(e){var t=e.title,a=new K(t,'Deleting redirect "'+t+'"');a.setEditSummary('[[WP:CSD#G8|G8]]: Redirect to deleted page "'+Morebits.pageNameNorm+'"'),a.setChangeTags(n.changeTags),a.deletePage().then(s)}))}else o.status("no redirects found")}))}else i.resolve();var r=6===mw.config.get("wgNamespaceNumber");return e=$("<a>",{href:"#",text:"click here to go to the Unlink tool",css:{fontSize:"130%",fontWeight:"bold"},click:function(){Morebits.wiki.actionCompleted.redirect=null,a.dialog.close(),n.unlink.makeWindow(r?"Removing usages of and/or links to deleted file "+Morebits.pageNameNorm:"Removing links to deleted page "+Morebits.pageNameNorm)}}),t=$("<span>",{text:r?"To orphan backlinks and remove instances of file usage":"To orphan backlinks",css:{fontSize:"130%",fontWeight:"bold"}}),Morebits.status.info(t[0],e[0]),i},t.prototype.addToLog=function(){var e=this,t=this.params;if(!(B("logSpeedyNominations")&&t.normalizeds.some((function(e){return-1===B("noLogOnSpeedyNomination").indexOf(e)}))))return $.Deferred().resolve();var a=new Morebits.userspaceLogger(B("speedyLogPageName"));a.initialText="This is a log of all [[WP:CSD|speedy deletion]] nominations made by this user using [[WP:TW|Twinkle]]'s CSD module.\n\nIf you no longer wish to keep this log, you can turn it off using the [[Wikipedia:Twinkle/Preferences|preferences panel]], and nominate this page for speedy deletion under [[WP:CSD#U1|CSD U1]]."+(Morebits.userIsSysop?"\n\nThis log does not track outright speedy deletions made using Twinkle.":"");var i="",o=6===mw.config.get("wgNamespaceNumber")?" ([{{fullurl:Special:Log|page="+mw.util.wikiUrlencode(mw.config.get("wgPageName"))+"}} log])":"",r="Logging speedy deletion nomination",s="# [[:"+Morebits.pageNameNorm;(t.redactContents?(s+="|This]] attack page"+o+": ",r+=" of an attack page."):(s+="]]"+o+": ",r+=" of [[:"+Morebits.pageNameNorm+"]]."),t.normalizeds.length>1)?s+="multiple criteria ("+t.normalizeds.map((function(e){return"[[WP:CSD#"+e.toUpperCase()+"|"+e.toUpperCase()+"]]"})).join(", ")+")":"db"===t.normalizeds[0]?s+="{{tl|db-reason}}":s+="[[WP:CSD#"+t.normalizeds[0].toUpperCase()+"|CSD "+t.normalizeds[0].toUpperCase()+"]] ({{tl|db-"+t.csd[0]+"}})";return"db"===t.normalizeds[0]?i+=" {Custom rationale: "+t.templateParams[0][1]+"}":t.csd.forEach((function(a){var n=e.flatObject[a],o=n.code.toUpperCase();y(n.subgroup).forEach((function(e){var a=t[e.name];if(a&&e.parameter){if(e.log)a=Morebits.string.safeReplace(e.log,/\$1/g,a);else if(null===e.log)return;i+=" {"+o+" "+e.parameter+": "+a+"}"}}))})),t.requestsalt&&(s+="; requested creation protection ([[WP:SALT|salting]])"),i&&(s+="; additional information:"+i),t.initialContrib&&(s+="; notified {{user|1="+t.initialContrib+"}}"),s+=" ~~~~~\n",a.changeTags=n.changeTags,a.log(s,r)},t.prototype.validateInputs=function(){},t.prototype.userPreferences=function(){return{title:"CSD",preferences:[]}},t.moduleName="CSD",t}(z),pe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.footerlinks={"Speedy deletion policy":"WP:CSD","CSD prefs":"WP:TW/PREF#speedy","Twinkle help":"WP:TW/DOC#speedy"},t.criteriaLists=[{label:"Custom rationale",visible:function(e){return!e.mode.isMultiple},list:[{label:"Custom rationale"+(Morebits.userIsSysop?" (custom deletion reason)":" using {{db}} template"),value:"reason",code:"db",tooltip:'{{db}} is short for "delete because". At least one of the other deletion criteria must still apply to the page, and you must make mention of this in your rationale. This is not a "catch-all" for when you can\'t find any criteria that fit.',subgroup:{name:"reason_1",parameter:"1",utparam:"2",type:"input",label:"Rationale: ",size:60},hideWhenMultiple:!0}]},{label:"Talk pages",visible:function(e){return e.namespace%2==1&&3!==e.namespace},list:[{label:"G8: Talk pages with no corresponding subject page",value:"talk",code:"g8",tooltip:"This excludes any page that is useful to the project - in particular, user talk pages, talk page archives, and talk pages for files that exist on Wikimedia Commons."}]},{label:"Files",visible:function(e){return!e.isRedirect&&[6,7].includes(e.namespace)},list:[{label:"F1: Redundant file",value:"redundantimage",code:"f1",tooltip:"Any file that is a redundant copy, in the same file format and same or lower resolution, of something else on Wikipedia. Likewise, other media that is a redundant copy, in the same format and of the same or lower quality. This does not apply to files duplicated on Wikimedia Commons, because of licence issues; these should be tagged with {{subst:ncd|Image:newname.ext}} or {{subst:ncd}} instead",subgroup:{name:"redundantimage_filename",parameter:"filename",log:"[[:$1]]",type:"input",label:"File this is redundant to: ",tooltip:'The "File:" prefix can be left off.'}},{label:"F2: Corrupt, missing, or empty file",value:"noimage",code:"f2",tooltip:"Before deleting this type of file, verify that the MediaWiki engine cannot read it by previewing a resized thumbnail of it. This also includes empty (i.e., no content) file description pages for Commons files"},{label:"F2: Unneeded file description page for a file on Commons",value:"fpcfail",code:"f2",tooltip:"An image, hosted on Commons, but with tags or information on its English Wikipedia description page that are no longer needed. (For example, a failed featured picture candidate.)",hideWhenMultiple:!0},{label:"F3: Improper license",value:"noncom",code:"f3",tooltip:'Files licensed as "for non-commercial use only", "non-derivative use" or "used with permission" that were uploaded on or after 2005-05-19, except where they have been shown to comply with the limited standards for the use of non-free content. This includes files licensed under a "Non-commercial Creative Commons License". Such files uploaded before 2005-05-19 may also be speedily deleted if they are not used in any articles'},{label:"F4: Lack of licensing information",value:"unksource",code:"f4",tooltip:'Files in category "Files with unknown source", "Files with unknown copyright status", or "Files with no copyright tag" that have been tagged with a template that places them in the category for more than seven days, regardless of when uploaded. Note, users sometimes specify their source in the upload summary, so be sure to check the circumstances of the file.',hideWhenUser:!0},{label:"F5: Unused non-free copyrighted file",value:"f5",code:"f5",tooltip:'Files that are not under a free license or in the public domain that are not used in any article, whose only use is in a deleted article, and that are very unlikely to be used on any other article. Reasonable exceptions may be made for files uploaded for an upcoming article. For other unused non-free files, use the "Orphaned fair use" option in Twinkle\'s DI tab.',hideWhenUser:!0},{label:"F6: Missing fair-use rationale",value:"norat",code:"f6",tooltip:'Any file without a fair use rationale may be deleted seven days after it is uploaded. Boilerplate fair use templates do not constitute a fair use rationale. Files uploaded before 2006-05-04 should not be deleted immediately; instead, the uploader should be notified that a fair-use rationale is needed. Files uploaded after 2006-05-04 can be tagged using the "No fair use rationale" option in Twinkle\'s DI module. Such files can be found in the dated subcategories of Category:Files with no fair use rationale.',hideWhenUser:!0},{label:"F7: Clearly invalid fair-use tag",value:"badfairuse1",code:"f7",tooltip:"This is only for files with a clearly invalid fair-use tag, such as a {{Non-free logo}} tag on a photograph of a mascot. For cases that require a waiting period (replaceable images or otherwise disputed rationales), use the options on Twinkle's DI tab.",subgroup:{name:"badfairuse_rationale",parameter:"rationale",type:"input",label:"Optional explanation: ",size:60}},{label:"F7: Fair-use media from a commercial image agency which is not the subject of sourced commentary",value:"badfairuse2",code:"f7",tooltip:"Non-free images or media from a commercial source (e.g., Associated Press, Getty), where the file itself is not the subject of sourced commentary, are considered an invalid claim of fair use and fail the strict requirements of WP:NFCC.",subgroup:{name:"badfairuse_rationale",parameter:"rationale",type:"input",label:"Optional explanation: ",size:60},hideWhenMultiple:!0},{label:"F8: File available as an identical or higher-resolution copy on Wikimedia Commons",value:"commons",code:"f8",tooltip:"Provided the following conditions are met: 1: The file format of both images is the same. 2: The file's license and source status is beyond reasonable doubt, and the license is undoubtedly accepted at Commons. 3: All information on the file description page is present on the Commons file description page. That includes the complete upload history with links to the uploader's local user pages. 4: The file is not protected, and the file description page does not contain a request not to move it to Commons. 5: If the file is available on Commons under a different name than locally, all local references to the file must be updated to point to the title used at Commons. 6: For {{c-uploaded}} files: They may be speedily deleted as soon as they are off the Main Page",subgroup:{name:"commons_filename",parameter:"filename",log:"[[commons:$1]]",type:"input",label:"Filename on Commons: ",value:Morebits.pageNameNorm,tooltip:'This can be left blank if the file has the same name on Commons as here. The "File:" prefix is optional.'},hideWhenMultiple:!0},{label:"F9: Unambiguous copyright infringement",value:"imgcopyvio",code:"f9",tooltip:"The file was copied from a website or other source that does not have a license compatible with Wikipedia, and the uploader neither claims fair use nor makes a credible assertion of permission of free use. Sources that do not have a license compatible with Wikipedia include stock photo libraries such as Getty Images or Corbis. Non-blatant copyright infringements should be discussed at Wikipedia:Files for deletion",subgroup:[{name:"imgcopyvio_url",parameter:"url",utparam:"url",type:"input",label:'URL of the copyvio, including the "http://". If the copyvio is of a non-internet source and you cannot provide a URL, you must use the deletion rationale box. ',size:60},{name:"imgcopyvio_rationale",parameter:"rationale",type:"input",label:"Deletion rationale for non-internet copyvios: ",size:60}]},{label:"F10: Useless non-media file",value:"badfiletype",code:"f10",tooltip:"Files uploaded that are neither image, sound, nor video files (e.g. .doc, .pdf, or .xls files) which are not used in any article and have no foreseeable encyclopedic use"},{label:"F11: No evidence of permission",value:"nopermission",code:"f11",tooltip:"If an uploader has specified a license and has named a third party as the source/copyright holder without providing evidence that this third party has in fact agreed, the item may be deleted seven days after notification of the uploader",hideWhenUser:!0},{label:"G8: File description page with no corresponding file",value:"imagepage",code:"g8",tooltip:"This is only for use when the file doesn't exist at all. Corrupt files, and local description pages for files on Commons, should use F2; implausible redirects should use R3; and broken Commons redirects should use R4."}]},{label:"Articles",visible:function(e){return!e.isRedirect&&[0,1].includes(e.namespace)},list:[{label:"A1: No context. Articles lacking sufficient context to identify the subject of the article.",value:"nocontext",code:"a1",tooltip:'Example: "He is a funny man with a red car. He makes people laugh." This applies only to very short articles. Context is different from content, treated in A3, below.'},{label:"A2: Foreign language articles that exist on another Wikimedia project",value:"foreign",code:"a2",tooltip:"If the article in question does not exist on another project, the template {{notenglish}} should be used instead. All articles in a non-English language that do not meet this criteria (and do not meet any other criteria for speedy deletion) should be listed at Pages Needing Translation (PNT) for review and possible translation",subgroup:{name:"foreign_source",parameter:"source",utparam:"source",log:"[[:$1]]",type:"input",label:"Interwiki link to the article on the foreign-language wiki: ",tooltip:"For example, fr:Bonjour"}},{label:"A3: No content whatsoever",value:"nocontent",code:"a3",tooltip:'Any article consisting only of links elsewhere (including hyperlinks, category tags and "see also" sections), a rephrasing of the title, and/or attempts to correspond with the person or group named by its title. This does not include disambiguation pages'},{label:"A5: Transwikied articles",value:"transwiki",code:"a5",tooltip:"Any article that has been discussed at Articles for Deletion (et al), where the outcome was to transwiki, and where the transwikification has been properly performed and the author information recorded. Alternately, any article that consists of only a dictionary definition, where the transwikification has been properly performed and the author information recorded",subgroup:{name:"transwiki_location",parameter:"location",utparam:"location",type:"input",label:"Link to where the page has been transwikied: ",tooltip:"For example, https://en.wiktionary.org/wiki/twinkle or [[wikt:twinkle]]"}},{label:"A7: No indication of importance (people, groups, companies, web content, individual animals, or organized events)",value:"a7",code:"a7",tooltip:"An article about a real person, group of people, band, club, company, web content, individual animal, tour, or party that does not assert the importance or significance of its subject. If controversial, or if a previous AfD has resulted in the article being kept, the article should be nominated for AfD instead",hideWhenSingle:!0},{label:"A7: No indication of importance (person)",value:"person",code:"a7",tooltip:"An article about a real person that does not assert the importance or significance of its subject. If controversial, or if there has been a previous AfD that resulted in the article being kept, the article should be nominated for AfD instead",hideWhenMultiple:!0},{label:"A7: No indication of importance (musician(s) or band)",value:"band",code:"a7",tooltip:"Article about a band, singer, musician, or musical ensemble that does not assert the importance or significance of the subject",hideWhenMultiple:!0},{label:"A7: No indication of importance (club, society or group)",value:"club",code:"a7",tooltip:"Article about a club, society or group that does not assert the importance or significance of the subject",hideWhenMultiple:!0},{label:"A7: No indication of importance (company or organization)",value:"corp",code:"a7",tooltip:"Article about a company or organization that does not assert the importance or significance of the subject",hideWhenMultiple:!0},{label:"A7: No indication of importance (website or web content)",value:"web",code:"a7",tooltip:"Article about a web site, blog, online forum, webcomic, podcast, or similar web content that does not assert the importance or significance of its subject",hideWhenMultiple:!0},{label:"A7: No indication of importance (individual animal)",value:"animal",code:"a7",tooltip:"Article about an individual animal (e.g. pet) that does not assert the importance or significance of its subject",hideWhenMultiple:!0},{label:"A7: No indication of importance (organized event)",value:"event",code:"a7",tooltip:"Article about an organized event (tour, function, meeting, party, etc.) that does not assert the importance or significance of its subject",hideWhenMultiple:!0},{label:"A9: Unremarkable musical recording where artist's article doesn't exist",value:"a9",code:"a9",tooltip:"An article about a musical recording which does not indicate why its subject is important or significant, and where the artist's article has never existed or has been deleted"},{label:"A10: Recently created article that duplicates an existing topic",value:"a10",code:"a10",tooltip:"A recently created article with no relevant page history that does not aim to expand upon, detail or improve information within any existing article(s) on the subject, and where the title is not a plausible redirect. This does not include content forks, split pages or any article that aims at expanding or detailing an existing one.",subgroup:{name:"a10_article",parameter:"article",utparam:"article",log:"[[:$1]]",type:"input",label:"Article that is duplicated: "}},{label:"A11: Obviously made up by creator, and no claim of significance",value:"madeup",code:"a11",tooltip:"An article which plainly indicates that the subject was invented/coined/discovered by the article's creator or someone they know personally, and does not credibly indicate why its subject is important or significant"}]},{label:"Categories",visible:function(e){return!e.isRedirect&&[14,15].includes(e.namespace)},list:[{label:"C1: Empty categories",value:"catempty",code:"c1",tooltip:"Categories that have been unpopulated for at least seven days. This does not apply to categories being discussed at WP:CFD, disambiguation categories, and certain other exceptions. If the category isn't relatively new, it possibly contained articles earlier, and deeper investigation is needed"},{label:"G8: Categories populated by a deleted or retargeted template",value:"templatecat",code:"g8",tooltip:"This is for situations where a category is effectively empty, because the template(s) that formerly placed pages in that category are now deleted. This excludes categories that are still in use.",subgroup:{name:"templatecat_rationale",parameter:"rationale",type:"input",label:"Optional explanation: ",size:60}},{label:"G8: Redirects to non-existent targets",value:"redirnone",code:"g8",tooltip:"This excludes any page that is useful to the project, and in particular: deletion discussions that are not logged elsewhere, user and user talk pages, talk page archives, plausible redirects that can be changed to valid targets, and file pages or talk pages for files that exist on Wikimedia Commons.",hideWhenMultiple:!0}]},{label:"User pages",visible:function(e){return[2,3].includes(e.namespace)},list:[{label:"U1: User request",value:"userreq",code:"u1",tooltip:"Personal subpages, upon request by their user. In some rare cases there may be administrative need to retain the page. Also, sometimes, main user pages may be deleted as well. See Wikipedia:User page for full instructions and guidelines",subgroup:3===mw.config.get("wgNamespaceNumber")&&-1===mw.config.get("wgTitle").indexOf("/")?{name:"userreq_rationale",parameter:"rationale",type:"input",label:"A mandatory rationale to explain why this user talk page should be deleted: ",tooltip:"User talk pages are deleted only in highly exceptional circumstances. See WP:DELTALK.",size:60}:null,hideSubgroupWhenMultiple:!0},{label:"U2: Nonexistent user",value:"nouser",code:"u2",tooltip:"User pages of users that do not exist (Check Special:Listusers)"},{label:"U3: Non-free galleries",value:"gallery",code:"u3",tooltip:'Galleries in the userspace which consist mostly of "fair use" or non-free files. Wikipedia\'s non-free content policy forbids users from displaying non-free files, even ones they have uploaded themselves, in userspace. It is acceptable to have free files, GFDL-files, Creative Commons and similar licenses along with public domain material, but not "fair use" files',hideWhenRedirect:!0},{label:"U5: Blatant WP:NOTWEBHOST violations",value:"notwebhost",code:"u5",tooltip:"Pages in userspace consisting of writings, information, discussions, and/or activities not closely related to Wikipedia's goals, where the owner has made few or no edits outside of userspace, with the exception of plausible drafts and pages adhering to WP:UPYES.",hideWhenRedirect:!0},{label:"G11: Promotional user page under a promotional user name",value:"spamuser",code:"g11",tooltip:"A promotional user page, with a username that promotes or implies affiliation with the thing being promoted. Note that simply having a page on a company or product in one's userspace does not qualify it for deletion. If a user page is spammy but the username is not, then consider tagging with regular G11 instead.",hideWhenMultiple:!0,hideWhenRedirect:!0},{label:"G13: AfC draft submission or a blank draft, stale by over 6 months",value:"afc",code:"g13",tooltip:"Any rejected or unsubmitted AfC draft submission or a blank draft, that has not been edited in over 6 months (excluding bot edits).",hideWhenMultiple:!0,hideWhenRedirect:!0,subgroup:{type:"hidden",name:"g13timestamp",parameter:"ts",value:"$TIMESTAMP"}}]},{label:"Portals",visible:function(e){return!e.isRedirect&&[100,101].includes(e.namespace)},list:[{label:"P1: Portal that would be subject to speedy deletion if it were an article",value:"p1",code:"p1",tooltip:"You must specify a single article criterion that applies in this case (A1, A3, A7, or A10).",subgroup:{name:"p1_criterion",parameter:"criterion",utparam:"criterion",log:"[[WP:CSD#:$1]]",type:"input",label:"Article criterion that would apply: "}},{label:"P2: Underpopulated portal (fewer than three non-stub articles)",value:"emptyportal",code:"p2",tooltip:"Any Portal based on a topic for which there is not a non-stub header article, and at least three non-stub articles detailing subject matter that would be appropriate to discuss under the title of that Portal"}]},{label:"General criteria",visible:function(){return!0},list:[{label:"G1: Patent nonsense. Pages consisting purely of incoherent text or gibberish with no meaningful content or history.",value:"nonsense",code:"g1",tooltip:"This does not include poor writing, partisan screeds, obscene remarks, vandalism, fictional material, material not in English, poorly translated material, implausible theories, or hoaxes. In short, if you can understand it, G1 does not apply.",hideInNamespaces:[2]},{label:"G2: Test page",value:"test",code:"g2",tooltip:"A page created to test editing or other Wikipedia functions. Pages in the User namespace are not included, nor are valid but unused or duplicate templates (although criterion T3 may apply).",hideInNamespaces:[2]},{label:"G3: Pure vandalism",value:"vandalism",code:"g3",tooltip:"Plain pure vandalism (including redirects left behind from pagemove vandalism)"},{label:"G3: Blatant hoax",value:"hoax",code:"g3",tooltip:"Blatant and obvious hoax, to the point of vandalism",hideWhenMultiple:!0},{label:"G4: Recreation of material deleted via a deletion discussion",value:"repost",code:"g4",tooltip:'A copy, by any title, of a page that was deleted via an XfD process or Deletion review, provided that the copy is substantially identical to the deleted version. This clause does not apply to content that has been "userfied", to content undeleted as a result of Deletion review, or if the prior deletions were proposed or speedy deletions, although in this last case, other speedy deletion criteria may still apply',subgroup:{name:"repost_xfd",parameter:"xfd",utparam:"xfd",log:"[[:$1]]",type:"input",label:"Page where the deletion discussion took place: ",tooltip:'Must start with "Wikipedia:"',size:60}},{label:"G5: Created by a banned or blocked user",value:"banned",code:"g5",tooltip:"Pages created by banned or blocked users in violation of their ban or block, and which have no substantial edits by others",subgroup:{name:"banned_user",parameter:"user",log:"[[:User:$1]]",type:"input",label:"Username of banned user (if available): ",tooltip:'Should not start with "User:"'}},{label:"G6: Move",value:"move",code:"g6",tooltip:"Making way for an uncontroversial move like reversing a redirect",subgroup:[{name:"move_page",parameter:"page",log:"[[:$1]]",type:"input",label:"Page to be moved here: "},{name:"move_reason",parameter:"reason",type:"input",label:"Reason: ",size:60}],hideWhenMultiple:!0},{label:"G6: XfD",value:"xfd",code:"g6",tooltip:'A deletion discussion (at AfD, FfD, RfD, TfD, CfD, or MfD) was closed as "delete", but the page wasn\'t actually deleted.',subgroup:{name:"xfd_fullvotepage",parameter:"fullvotepage",log:"[[:$1]]",type:"input",label:"Page where the deletion discussion was held: ",tooltip:'Must start with "Wikipedia:"',size:40},hideWhenMultiple:!0},{label:"G6: Copy-and-paste page move",value:"copypaste",code:"g6",tooltip:"This only applies for a copy-and-paste page move of another page that needs to be temporarily deleted to make room for a clean page move.",subgroup:[{name:"copypaste_sourcepage",parameter:"sourcepage",log:"[[:$1]]",type:"input",label:"Original page that was copy-pasted here: "},{name:"copypaste_topage",type:"hidden",value:Morebits.pageNameNorm,utparam:"to"}],hideWhenMultiple:!0},{label:"G6: Housekeeping and non-controversial cleanup",value:"g6",code:"g6",tooltip:"Other routine maintenance tasks",subgroup:{name:"g6_rationale",parameter:"rationale",type:"input",label:"Rationale: ",size:60}},{label:"G7: Author requests deletion, or author blanked",value:"author",code:"g7",tooltip:"Any page for which deletion is requested by the original author in good faith, provided the page's only substantial content was added by its author. If the author blanks the page, this can also be taken as a deletion request.",subgroup:{name:"author_rationale",parameter:"rationale",type:"input",label:"Optional explanation: ",tooltip:"Perhaps linking to where the author requested this deletion.",size:60},hideSubgroupWhenSysop:!0},{label:"G8: Pages dependent on a non-existent or deleted page",value:"g8",code:"g8",tooltip:"such as talk pages with no corresponding subject page; subpages with no parent page; file pages without a corresponding file; redirects to non-existent targets; or categories populated by deleted or retargeted templates. This excludes any page that is useful to the project, and in particular: deletion discussions that are not logged elsewhere, user and user talk pages, talk page archives, plausible redirects that can be changed to valid targets, and file pages or talk pages for files that exist on Wikimedia Commons.",subgroup:{name:"g8_rationale",parameter:"rationale",type:"input",label:"Optional explanation: ",size:60},hideSubgroupWhenSysop:!0},{label:"G8: Subpages with no parent page",value:"subpage",code:"g8",tooltip:"This excludes any page that is useful to the project, and in particular: deletion discussions that are not logged elsewhere, user and user talk pages, talk page archives, plausible redirects that can be changed to valid targets, and file pages or talk pages for files that exist on Wikimedia Commons.",hideWhenMultiple:!0,hideInNamespaces:[0,6,8]},{label:"G10: Attack page",value:"attack",redactContents:!0,code:"g10",tooltip:'Pages that serve no purpose but to disparage or threaten their subject or some other entity (e.g., "John Q. Doe is an imbecile"). This includes a biography of a living person that is negative in tone and unsourced, where there is no NPOV version in the history to revert to. Administrators deleting such pages should not quote the content of the page in the deletion summary!',subgroup:{type:"hidden",name:"attackBlanked",parameter:"blanked",value:"yes"}},{label:"G10: Wholly negative, unsourced BLP",value:"negublp",redactContents:!0,code:"g10",tooltip:"A biography of a living person that is entirely negative in tone and unsourced, where there is no neutral version in the history to revert to.",hideWhenMultiple:!0},{label:"G11: Unambiguous advertising or promotion",value:"spam",code:"g11",tooltip:"Pages which exclusively promote a company, product, group, service, or person and which would need to be fundamentally rewritten in order to become encyclopedic. Note that an article about a company or a product which describes its subject from a neutral point of view does not qualify for this criterion; an article that is blatant advertising should have inappropriate content as well"},{label:"G12: Unambiguous copyright infringement",value:"copyvio",code:"g12",tooltip:"Either: (1) Material was copied from another website that does not have a license compatible with Wikipedia, or is photography from a stock photo seller (such as Getty Images or Corbis) or other commercial content provider; (2) There is no non-infringing content in the page history worth saving; or (3) The infringement was introduced at once by a single person rather than created organically on wiki and then copied by another website such as one of the many Wikipedia mirrors",subgroup:[{name:"copyvio_url",parameter:"url",utparam:"url",type:"input",label:"URL (if available): ",tooltip:'If the material was copied from an online source, put the URL here, including the "http://" or "https://" protocol.',size:60},{name:"copyvio_url2",parameter:"url2",utparam:"url2",type:"input",label:"Additional URL: ",tooltip:'Optional. Should begin with "http://" or "https://"',size:60},{name:"copyvio_url3",parameter:"url3",utparam:"url3",type:"input",label:"Additional URL: ",tooltip:'Optional. Should begin with "http://" or "https://"',size:60}]},{label:"G13: Page in draft namespace or userspace AfC submission, stale by over 6 months",value:"afc",code:"g13",tooltip:"Any rejected or unsubmitted AfC submission in userspace or any non-redirect page in draft namespace, that has not been edited for more than 6 months. Blank drafts in either namespace are also included.",hideWhenRedirect:!0,showInNamespaces:[2,118]},{label:"G14: Unnecessary disambiguation page",value:"disambig",code:"g14",tooltip:'This only applies for orphaned disambiguation pages which either: (1) disambiguate only one existing Wikipedia page and whose title ends in "(disambiguation)" (i.e., there is a primary topic); or (2) disambiguate no (zero) existing Wikipedia pages, regardless of its title. It also applies to orphan "Foo (disambiguation)" redirects that target pages that are not disambiguation or similar disambiguation-like pages (such as set index articles or lists)'}]},{label:"Redirects",visible:function(e){return e.isRedirect},list:[{label:"R2: Redirect from mainspace to any other namespace except the Category:, Template:, Wikipedia:, Help: and Portal: namespaces",value:"rediruser",code:"r2",tooltip:"This does not include the pseudo-namespace shortcuts. If this was the result of a page move, consider waiting a day or two before deleting the redirect",showInNamespaces:[0]},{label:"R3: Recently created redirect from an implausible typo or misnomer",value:"redirtypo",code:"r3",tooltip:"However, redirects from common misspellings or misnomers are generally useful, as are redirects in other languages"},{label:"R4: File namespace redirect with a name that matches a Commons page",value:"redircom",code:"r4",tooltip:"The redirect should have no incoming links (unless the links are cleary intended for the file or redirect at Commons).",showInNamespaces:[6]},{label:"G6: Redirect to malplaced disambiguation page",value:"movedab",code:"g6",tooltip:"This only applies for redirects to disambiguation pages ending in (disambiguation) where a primary topic does not exist.",hideWhenMultiple:!0},{label:"G8: Redirects to non-existent targets",value:"redirnone",code:"g8",tooltip:"This excludes any page that is useful to the project, and in particular: deletion discussions that are not logged elsewhere, user and user talk pages, talk page archives, plausible redirects that can be changed to valid targets, and file pages or talk pages for files that exist on Wikimedia Commons.",hideWhenMultiple:!0}]}],t}return p(t,e),t.prototype.preprocessParamInputs=function(){var e=this.params;e.banned_user&&(e.banned_user=e.banned_user.replace(/^\s*User:/i,"")),e.redundantimage_filename&&(e.redundantimage_filename=new mw.Title(e.redundantimage_filename,6).toText()),e.commons_filename&&e.commons_filename!==Morebits.pageNameNorm&&(e.commons_filename=new mw.Title(e.commons_filename,6).toText())},t.prototype.validateInputs=function(){var e=this.params,t=new Set(e.csd);return!t.has("userreq")||3!==mw.config.get("wgNamespaceNumber")||/\//.test(mw.config.get("wgTitle"))||e.userreq_rationale?t.has("repost")&&e.repost_xfd&&!/^(?:wp|wikipedia):/i.test(e.repost_xfd)?'CSD G4: The deletion discussion page name, if provided, must start with "Wikipedia:".':t.has("xfd")&&e.xfd_fullvotepage&&!/^(?:wp|wikipedia):/i.test(e.xfd_fullvotepage)?'CSD G6 (XFD): The deletion discussion page name, if provided, must start with "Wikipedia:".':!t.has("imgcopyvio")||e.imgcopyvio_url||e.imgcopyvio_rationale?void 0:"CSD F9: You must enter a url or reason (or both) when nominating a file under F9.":"CSD U1: Please specify a rationale when nominating user talk pages."},t.prototype.insertTagText=function(e,t){return new Morebits.wikitext.page(t).insertAfterTemplates(e+"\n",te).getText()},t}(ue),ge=function(e){function t(){var t=e.call(this)||this;return mw.config.get("wgNamespaceNumber")<0||!mw.config.get("wgArticleId")?t:(_(mw.util.getUrl(mw.config.get("wgPageName"),{diff:"cur",oldid:"prev"}),W("diff-last"),"twinkle-lastdiff",W("diff-last-tooltip")),mw.util.getParamValue("diff")?(_((function(){return t.evaluate(!1)}),W("diff-since"),"tw-since",W("diff-since-tooltip")),_((function(){return t.evaluate(!0)}),W("diff-sincemine"),"tw-sincemine",W("diff-sincemine-tooltip")),_(mw.util.getUrl(mw.config.get("wgPageName"),{diff:"cur",oldid:/oldid=(.+)/.exec($("#mw-diff-ntitle1").find("strong a").first().attr("href"))[1]}),W("diff-current"),"tw-curdiff",W("diff-current-tooltip")),t):t)}return p(t,e),t.prototype.evaluate=function(e){var t;if(e)t=mw.config.get("wgUserName");else{var a=document.getElementById("mw-diff-ntitle2");if(!a)return;t=$(a).find("a").first().text()}Morebits.status.init(document.getElementById("mw-content-text"));var i=new C("Grabbing data of initial contributor",{prop:"revisions",action:"query",titles:mw.config.get("wgPageName"),rvlimit:1,rvprop:["ids","user"],rvstartid:mw.config.get("wgCurRevisionId")-1,rvuser:t,format:"json"});i.post().then((function(e){var a=e.getResponse().query.pages[0].revisions,i=a&&a[0].revid;i?window.location.href=mw.util.getUrl(mw.config.get("wgPageName"),{diff:mw.config.get("wgCurRevisionId"),oldid:i}):e.getStatusElement().error(W("diff-error",t))})),i.post()},t.moduleName="Diff",t}(z);if(window.Twinkle=n,$.extend(n,{registerModule:Y,msg:W,Page:K,Api:C}),void 0!==i&&(jQuery.Deferred.exceptionHook=function(e){throw e}),!Morebits.userIsInGroup("autoconfirmed")&&!Morebits.userIsInGroup("confirmed"))throw new Error("Twinkle: forbidden!");n.userAgent="Twinkle ("+mw.config.get("wgWikiID")+")",n.summaryAd=" ([[Project:TW|TW]])",n.changeTags="",n.messageOverrides=V,n.extraMwMessages=[],n.registeredModules=[X,ge,ce,pe],o.permalinkSpecialPageName="Special:PermanentLink",o.botUsernameRegex=/bot\b/i,o.flaggedRevsNamespaces=[],o.redirectTagAliases=["#REDIRECT"],(-1!==mw.config.get("wgNamespaceNumber")||n.activeSpecialPages.includes(mw.config.get("wgCanonicalSpecialPageName")))&&window.top===window.self&&(function(){switch(mw.config.get("skin")){case"vector":j([{name:"portletArea",value:"right-navigation"},{name:"portletId",value:"p-twinkle"},{name:"portletName",value:"TW"},{name:"portletType",value:"menu"},{name:"portletNext",value:"p-search"}]);break;case"timeless":j([{name:"portletArea",value:"#page-tools .sidebar-inner"},{name:"portletId",value:"p-twinkle"},{name:"portletName",value:"Twinkle"},{name:"portletType",value:null},{name:"portletNext",value:"p-userpagetools"}]);break;default:j([{name:"portletArea",value:null},{name:"portletId",value:"p-cactions"},{name:"portletName",value:null},{name:"portletType",value:null},{name:"portletNext",value:null}])}}(),Morebits.l10n.redirectTagAliases=o.redirectTagAliases,"function"==typeof o.signatureTimestampFormat&&(Morebits.l10n.signatureTimestampFormat=o.signatureTimestampFormat),x=new mw.Api({parameters:{action:"query",format:"json",formatversion:"2",uselang:D,errorlang:D,errorsuselocal:!0,tags:n.changeTags},ajax:{headers:{"Api-User-Agent":n.userAgent}}}),n.preModuleInitHooks.push((function(){!function(){if(P=new(h())(D),T(R).forEach((function(e){var t=e[0],a=e[1];P.registerParserPlugin(t,a)})),Morebits.i18n.setParser({get:W}),A="qqx"===D)return Promise.resolve();P.load(S,"en");var e=M.concat(n.extraMwMessages);Promise.all([F(e,D),L(D)]).catch((function(e){mw.notify("Failed to load messages needed for Twinkle",{type:"error"})})).finally((function(){E(n.messageOverrides)}))}()}),(function(){return(e=mw.util.wikiScript("index")+"?title=",$.ajax({url:e+"User:"+encodeURIComponent(mw.config.get("wgUserName"))+"/twinkleoptions.js&action=raw&ctype=text/javascript&happy=yes",dataType:"text"}).then((function(e){if(""!==e){0===(e=e.replace(/(?:^(?:\/\/[^\n]*\n)*\n*|(?:\/\/[^\n]*(?:\n|$))*$)/g,"")).lastIndexOf("window.Twinkle.prefs = ",0)&&(e=e.replace(/(?:^window.Twinkle.prefs = |;\n*$)/g,""));try{var t=JSON.parse(e);t&&((I=t.twinkle||t.friendly?$.extend(t.twinkle,t.friendly):t).optionsVersion=I.optionsVersion||1)}catch(e){mw.notify("Could not parse your Twinkle preferences",{type:"error"})}}})).catch((function(){mw.notify("Could not load your Twinkle preferences",{type:"error"})}))).then((function(){return B("dialogLargeFont")&&mw.util.addCSS(".morebits-dialog-content, .morebits-dialog-footerlinks { font-size: 100% !important; } .morebits-dialog input, .morebits-dialog select, .morebits-dialog-content button { font-size: inherit !important; }"),H=H.concat(B("disabledModules"),B("disabledSysopModules")),Promise.all(n.preModuleInitHooksWithConfig.map((function(e){return e()})))}));var e})),Promise.all(n.preModuleInitHooks.map((function(e){return e()}))).then((function(){mw.hook("twinkle.preModuleInit").fire();for(var e=0,t=n.registeredModules;e<t.length;e++)Y(t[e]);"vector"===mw.config.get("skin")&&"menu"===B("portletType")&&0===$("#p-twinkle").length&&$("#p-cactions").css("margin-right","initial"),G.init()})))}},t={};function a(i){var n=t[i];if(void 0!==n)return n.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,a),o.exports}a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var i=a(12)}();
/* </nowiki> */
"https://te.wikipedia.org/wiki/వాడుకరి:Veeven/twinkle/twinkle.js" నుండి వెలికితీశారు