From c0793688359f974a569de630ac7aab3b0ef84518 Mon Sep 17 00:00:00 2001 From: MusikAnimal Date: Tue, 20 Jul 2021 17:40:54 -0400 Subject: [PATCH] Add missing projects to site map --- javascripts/shared/site_map.js | 5 +++++ .../{application-8571ef50d5.js => application-4a57c9bef8.js} | 4 ++-- public_html/langviews/rev-manifest.json | 2 +- .../{application-e88e31de17.js => application-7526a52d2c.js} | 4 ++-- public_html/massviews/rev-manifest.json | 2 +- .../{application-66f2212ffc.js => application-7eff10c2eb.js} | 4 ++-- public_html/mediaviews/rev-manifest.json | 2 +- .../{application-56505f4d2d.js => application-479260353a.js} | 4 ++-- public_html/metaviews/rev-manifest.json | 2 +- .../{application-0bfca1c018.js => application-2a143002fc.js} | 3 ++- public_html/pageviews/rev-manifest.json | 2 +- .../{application-fa62488fdf.js => application-3eb41a5f33.js} | 4 ++-- public_html/redirectviews/rev-manifest.json | 2 +- .../{application-1f97e9f355.js => application-edc24cb051.js} | 4 ++-- public_html/siteviews/rev-manifest.json | 2 +- .../{application-115245c162.js => application-8cdfc9de7b.js} | 4 ++-- public_html/topviews/rev-manifest.json | 2 +- .../{application-4b087ed598.js => application-6ce53afbe2.js} | 4 ++-- public_html/userviews/rev-manifest.json | 2 +- site_map.json | 5 +++++ 20 files changed, 37 insertions(+), 26 deletions(-) rename public_html/langviews/{application-8571ef50d5.js => application-4a57c9bef8.js} (94%) rename public_html/massviews/{application-e88e31de17.js => application-7526a52d2c.js} (94%) rename public_html/mediaviews/{application-66f2212ffc.js => application-7eff10c2eb.js} (95%) rename public_html/metaviews/{application-56505f4d2d.js => application-479260353a.js} (96%) rename public_html/pageviews/{application-0bfca1c018.js => application-2a143002fc.js} (95%) rename public_html/redirectviews/{application-fa62488fdf.js => application-3eb41a5f33.js} (94%) rename public_html/siteviews/{application-1f97e9f355.js => application-edc24cb051.js} (92%) rename public_html/topviews/{application-115245c162.js => application-8cdfc9de7b.js} (86%) rename public_html/userviews/{application-4b087ed598.js => application-6ce53afbe2.js} (91%) diff --git a/javascripts/shared/site_map.js b/javascripts/shared/site_map.js index 041bd6e0..abc14332 100644 --- a/javascripts/shared/site_map.js +++ b/javascripts/shared/site_map.js @@ -68,6 +68,7 @@ const siteMap = { 'azwikisource': 'az.wikisource.org', 'azwiktionary': 'az.wiktionary.org', 'banwiki': 'ban.wikipedia.org', + 'banwikisource': 'ban.wikisource.org', 'barwiki': 'bar.wikipedia.org', 'bat_smgwiki': 'bat-smg.wikipedia.org', 'bawiki': 'ba.wikipedia.org', @@ -168,6 +169,7 @@ const siteMap = { 'cywikiquote': 'cy.wikiquote.org', 'cywikisource': 'cy.wikisource.org', 'cywiktionary': 'cy.wiktionary.org', + 'dagwiki': 'dag.wikipedia.org', 'dawiki': 'da.wikipedia.org', 'dawikibooks': 'da.wikibooks.org', 'dawikiquote': 'da.wikiquote.org', @@ -493,6 +495,7 @@ const siteMap = { 'lvwiki': 'lv.wikipedia.org', 'lvwikibooks': 'lv.wikibooks.org', 'lvwiktionary': 'lv.wiktionary.org', + 'madwiki': 'mad.wikipedia.org', 'maiwiki': 'mai.wikipedia.org', 'maiwikimedia': 'mai.wikimedia.org', 'map_bmswiki': 'map-bms.wikipedia.org', @@ -567,6 +570,7 @@ const siteMap = { 'newwiki': 'new.wikipedia.org', 'ngwiki': 'ng.wikipedia.org', 'ngwikimedia': 'ng.wikimedia.org', + 'niawiki': 'nia.wikipedia.org', 'niawiktionary': 'nia.wiktionary.org', 'nlwiki': 'nl.wikipedia.org', 'nlwikibooks': 'nl.wikibooks.org', @@ -701,6 +705,7 @@ const siteMap = { 'sewikimedia': 'se.wikimedia.org', 'sgwiki': 'sg.wikipedia.org', 'sgwiktionary': 'sg.wiktionary.org', + 'shiwiki': 'shi.wikipedia.org', 'shwiki': 'sh.wikipedia.org', 'shwiktionary': 'sh.wiktionary.org', 'shnwiktionary': 'shn.wiktionary.org', diff --git a/public_html/langviews/application-8571ef50d5.js b/public_html/langviews/application-4a57c9bef8.js similarity index 94% rename from public_html/langviews/application-8571ef50d5.js rename to public_html/langviews/application-4a57c9bef8.js index 446d7b28..5785f4ee 100644 --- a/public_html/langviews/application-8571ef50d5.js +++ b/public_html/langviews/application-4a57c9bef8.js @@ -12,5 +12,5 @@ o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=a.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=a.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=o.length;u>c;++c)i.fillText(o[c],t.x,t.y),t.y+=r+s,c+1===o.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var o=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=a.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=a.fontString(o,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=o+r};a.each(e.beforeBody,d);var h=s.length>1;u=h?o+2:0,a.each(s,function(r,s){a.each(r.before,d),a.each(r.lines,function(r){h&&(i.fillStyle=a.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,o,o),i.strokeStyle=a.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,o,o),i.fillStyle=a.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=c),d(r)}),a.each(r.after,d)}),u=0,a.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var o=e.footer;if(o.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=a.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=a.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),a.each(o,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=a.color(e.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),a.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,o),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,o),this.drawBody(n,e,t,o),this.drawFooter(n,e,t,o)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;s>o;)o+=2*Math.PI;var c=o>=s&&l>=o,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,a=n._view,o=a.spanGaps,r=a.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&a.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,a=i.isHorizontal();return n.xLabels&&a||n.yLabels&&!a?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=a.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(a.isHorizontal()){var l=a.width-(a.paddingLeft+a.paddingRight),c=l/o,u=c*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(u+=c/2),a.left+Math.round(u)}var d=a.height-(a.paddingTop+a.paddingBottom),h=d/o,f=h*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(f+=h/2),a.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),o=a/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=o/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=i.chart,o=a.data,r=o.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(o,r){var s=a.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;a.isDatasetVisible(r)&&t(s)&&e.each(o.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>a?u[e]+=a:c[e]+=a)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),a=e.min(n),o=e.max(n);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(r,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,a=n.options.ticks;if(n.isHorizontal())i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.height/(2*o)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,a=n.paddingLeft,o=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+a)):(i=n.height-(n.paddingTop+o),e=n.bottom-o-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,o=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),r=(i?t-e.left-n:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+o,r=n),t.x-oD?t.x+a>w&&(w=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,M=360*C/(2*Math.PI)%360;c.textAlign=0===M||180===M?"center":180>M?"left":"right",c.textBaseline=90===M||270===M?"middle":M>270||90>M?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,f=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,f.steps[p]);break}break}if(!1===f.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=v),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=k.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","badges","lang"],view:["list","chart"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value), !e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.page=this.$sourceInput.val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"page",t)}},{key:"getBadgeMarkup",value:function(t){if(!this.config.badges[t])return"";var e=this.config.badges[t].image,i=$.i18n(this.config.badges[t].name);return""+i+""}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=Object.keys(t.outputData.badges).map(function(e){return""+t.getBadgeMarkup(e)+" × "+t.outputData.badges[e]+""}).join(", ");$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n("num-languages",e.length)+"\n "+$.i18n("unique-titles",t.outputData.titles.length)+"\n "+i+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+""),$("#output_list").html(""),e.forEach(function(e,i){var n="";e.badges&&(n=e.badges.map(t.getBadgeMarkup.bind(t)).join()),$("#output_list").append("\n "+(i+1)+"\n "+e.lang+"\n "+t.getPageLink(e.label,e.lang+"."+t.baseProject+".org")+"\n "+n+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"lang":return t.lang;case"title":return t.label;case"badges":return t.badges.sort().join("");case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),a=Object.keys(t),o=$.Deferred(),r=[],s=0,l={},c=a.length,u=[],d=[],h=function a(h){var f=t[h],p=encodeURIComponent(f.title),g="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f.lang+"."+e.baseProject+"/"+e.$platformSelector.val()+"/"+e.$agentSelector.val()+"/"+p+"/daily/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat),m=$.ajax({url:g,dataType:"json"});r.push(m),m.done(function(t){d.push({badges:f.badges,dbName:h,lang:f.lang,title:f.title,url:f.url,items:t.items})}).fail(function(t){var i=t.responseJSON&&t.responseJSON.title?t.responseJSON.title:$.i18n("unknown"),n="Error in Cassandra table storage backend"===i,o=e.getPageLink(f.title,f.lang+"."+e.baseProject+".org");if(n){if(l[h]?l[h]++:l[h]=1,l[h]<3)return c++,e.rateLimit(a,e.config.apiThrottle,e)(h);u.push(o)}else e.writeMessage(o+": "+$.i18n("api-error","Pageviews API")+" - "+i);404!==t.status&&(e.hadFailure=!0)}).always(function(){e.updateProgressBar(++s,c),s===c&&(u.length&&e.writeMessage($.i18n("api-error-timeout","
    "+u.map(function(t){return"
  • "+t+"
  • "}).join("")+"
")),o.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return a.forEach(function(t,e){f(t)}),o}},{key:"getInterwikiData",value:function(t,e){var i=this,n=$.Deferred(),a="https://www.wikidata.org/w/api.php?action=wbgetentities&sites="+t+"&titles="+encodeURIComponent(e)+"&props=sitelinks/urls|datatype&format=json&callback=?";return $.getJSON(a).done(function(t){if(t.error)return n.reject($.i18n("api-error","Wikidata")+": "+t.error.info);if(t.entities[-1])return n.reject(""+e.descore().escape()+" - "+$.i18n("api-error-no-data"));var a=Object.keys(t.entities)[0],o=t.entities[a].sitelinks,r={},s=new RegExp("^https://[\\w-]+\\."+i.baseProject+"\\.org");return Object.keys(o).forEach(function(t){var e=o[t].site.replace(/-/g,"_");s.test(o[t].url)&&u[e]&&(o[t].lang=u[e].replace(/\.wiki.*$/,""),r[t]=o[t])}),n.resolve(r)}),n}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.$projectInput.val(e.project),this.$platformSelector.val(e.platform),this.$agentSelector.val(e.agent),this.validateDateRange(e),$(".site-notice .alert-danger").length&&delete e.page,["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.page?this.getPageInfo([e.page]).done(function(e){var i=Object.keys(e)[0];if(e[i].missing)return t.setState("initial"),t.writeMessage(t.getPageLink(i)+": "+$.i18n("api-error-no-data"));t.$sourceInput.val(i),t.processInput()}).fail(function(){t.writeMessage($.i18n("api-error-unknown","Info"))}):this.$sourceInput.focus()}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),this.$sourceInput.val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"processInput",value:function(){var t=this;this.patchUsage();var e=this.$sourceInput.val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html(t.$dateRangeSelector.val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);var n=Object.keys(u).find(function(e){return u[e]===t.$projectInput.val()});$(".progress-counter").text($.i18n("fetching-data","Wikidata")),this.getInterwikiData(n,e).done(function(n){t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var a=t.getPageLink(e,t.project);setTimeout(function(){t.buildMotherDataset(e,a,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),this.$sourceInput.typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){return t.query.prefixsearch.map(function(t){return t.title})}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this,!0)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t=this,e="data:text/csv;charset=utf-8,Language,Title,Badges,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(i){var n='"'+i.label.descore().replace(/"/g,'""')+'"',a='"'+i.badges.map(function(e){return t.config.badges[e].name.replace(/"/g,'""')})+'"';e+=[i.lang,n,a].concat(i.data).join(",")+"\n"}),this.downloadData(e,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return this.$sourceInput.data("typeahead")}}]),e}(mix(d).with(h,f));$(function(){new p})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),a=t.getSortProperty(i,t.sort);return na?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var a=t.chart,o=i(a.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=a.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,a){o.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[a]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.n(i.data[a]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);this.$logarithmicCheckbox.prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=this.$chart[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".another-query").on("click",function(){t.setState("initial"),t.pushParams(!0)}),$(".view-btn").on("click",function(e){document.activeElement.blur(),t.view=e.currentTarget.dataset.value,t.toggleView(t.view)}),$("#pv_form").on("submit",function(e){e.preventDefault(),t.processInput()})}},{key:"$sourceInput",get:function(){return this.cachedElement("#source-input")}}]),e}(t)};e.exports=l},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?o(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var o=this.$dateRangeSelector.remove();$(".date-selector").append(o)}this.$dateRangeSelector.daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){ -return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org", -nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org", +napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/langviews/rev-manifest.json b/public_html/langviews/rev-manifest.json index fbeda210..2135961f 100644 --- a/public_html/langviews/rev-manifest.json +++ b/public_html/langviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-96ec762647.css", - "application.js": "application-8571ef50d5.js" + "application.js": "application-4a57c9bef8.js" } \ No newline at end of file diff --git a/public_html/massviews/application-e88e31de17.js b/public_html/massviews/application-7526a52d2c.js similarity index 94% rename from public_html/massviews/application-e88e31de17.js rename to public_html/massviews/application-7526a52d2c.js index 3d8bbb17..81cc0784 100644 --- a/public_html/massviews/application-e88e31de17.js +++ b/public_html/massviews/application-7526a52d2c.js @@ -12,5 +12,5 @@ o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=a.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=a.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=o.length;u>c;++c)i.fillText(o[c],t.x,t.y),t.y+=r+s,c+1===o.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var o=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=a.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=a.fontString(o,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=o+r};a.each(e.beforeBody,d);var h=s.length>1;u=h?o+2:0,a.each(s,function(r,s){a.each(r.before,d),a.each(r.lines,function(r){h&&(i.fillStyle=a.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,o,o),i.strokeStyle=a.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,o,o),i.fillStyle=a.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=c),d(r)}),a.each(r.after,d)}),u=0,a.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var o=e.footer;if(o.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=a.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=a.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),a.each(o,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=a.color(e.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),a.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,o),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,o),this.drawBody(n,e,t,o),this.drawFooter(n,e,t,o)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;s>o;)o+=2*Math.PI;var c=o>=s&&l>=o,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,a=n._view,o=a.spanGaps,r=a.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&a.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,a=i.isHorizontal();return n.xLabels&&a||n.yLabels&&!a?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=a.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(a.isHorizontal()){var l=a.width-(a.paddingLeft+a.paddingRight),c=l/o,u=c*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(u+=c/2),a.left+Math.round(u)}var d=a.height-(a.paddingTop+a.paddingBottom),h=d/o,f=h*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(f+=h/2),a.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),o=a/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=o/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=i.chart,o=a.data,r=o.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(o,r){var s=a.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;a.isDatasetVisible(r)&&t(s)&&e.each(o.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>a?u[e]+=a:c[e]+=a)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),a=e.min(n),o=e.max(n);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(r,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,a=n.options.ticks;if(n.isHorizontal())i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.height/(2*o)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,a=n.paddingLeft,o=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+a)):(i=n.height-(n.paddingTop+o),e=n.bottom-o-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,o=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),r=(i?t-e.left-n:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),w=e.min([this.height/2-g-5,this.width/2]),y=this.width,b=0;for(this.ctx.font=v,n=0;ny&&(y=t.x+o,r=n),t.x-oD?t.x+a>y&&(y=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;w--){if(r.display){var y=t.getPointPosition(w,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(y.x,y.y),c.stroke(),c.closePath()}var b=t.getPointPosition(w,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(w)+Math.PI/2,S=360*C/(2*Math.PI)%360;c.textAlign=0===S||180===S?"center":180>S?"left":"right",c.textBaseline=90===S||270===S?"middle":S>270||90>S?"bottom":"top",c.fillText(D[w]?D[w]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,f=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,f.steps[p]);break}break}if(!1===f.maxStep||Math.ceil(n.scaleSizeInUnits/d)w?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):w>=0&&(n.lastTick=v),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var y=1;y<=n.scaleSizeInUnits;++y){var b=k.clone().add(y,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;y%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},sources:{category:{placeholder:"https://en.wikipedia.org/wiki/Category:Hip_hop_groups_from_New_York_City",descriptionParams:function(){return[""+$.i18n("category").toLowerCase()+""]},type:"text"},wikilinks:{placeholder:"https://en.wikipedia.org/wiki/Book:New_York_City",descriptionParams:function(){return["https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Wikilinks"]},type:"text"},pagepile:{placeholder:"12345",descriptionParams:function(){return["PagePile"]},type:"number"},subpages:{placeholder:"https://en.wikipedia.org/wiki/User:Example",descriptionParams:function(){return[""+$.i18n("subpages").toLowerCase()+""]},type:"text"},transclusions:{placeholder:"https://en.wikipedia.org/wiki/Template:Infobox_Olympic_games",descriptionParams:function(){return["https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Transclusion"]},type:"text"},quarry:{placeholder:"12345",descriptionParams:function(){return["Quarry"]},type:"number"},hashtag:{placeholder:"#editathon",descriptionParams:function(){return[""+$.i18n("hashtag-credits","Wikimedia hashtag search"),""+$.i18n("hashtag").toLowerCase()+""]},type:"string"},"external-link":{placeholder:"*.nycgo.com",descriptionParams:function(){ return[""+$.i18n("external-link").toLowerCase()+""]},type:"string"},search:{placeholder:'insource:"UNESCO Science Report"',descriptionParams:function(){return["CirrusSearch"]},type:"string"}},formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["source","subjectpage","subcategories","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","original"],source:["pagepile","wikilinks","category","subpages","transclusions","quarry","hashtag","external-link","search"],view:["list","chart"],subjectpage:["0","1"],subcategories:["0","1"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e"),this.$sourceInput.prop("type",this.config.sources[i].type).prop("placeholder",this.config.sources[i].placeholder).val(""),$(".source-description").html((e=$).i18n.apply(e,["massviews-"+i+"-description"].concat(n(this.config.sources[i].descriptionParams())))),"category"===i?$(".category-options").show():$(".category-options").hide(),["quarry","external-link","search"].includes(i)?($(".massviews-source-input").addClass("project-enabled"),$(".project-input").prop("disabled",!1)):($(".massviews-source-input").removeClass("project-enabled"),$(".project-input").prop("disabled",!0)),this.$sourceInput.focus()}},{key:"getParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={platform:this.$platformSelector.val(),agent:this.$agentSelector.val(),source:$("#source_button").data("value")};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),"category"===e.source?(e.subjectpage=$(".category-subject-toggle--input").is(":checked")?"1":"0",e.subcategories=$(".subcategories-toggle--input").is(":checked")?"1":"0"):["quarry","external-link","search"].includes(e.source)&&(e.project=$(".project-input").val()),t?e.target=this.$sourceInput.val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"target",t)}},{key:"renderData",value:function(){var t=this;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=$("#source_button").data("value"),n=void 0;if(["wikilinks","subpages","transclusions"].includes(i)){var a=e.length-("subpages"===i?1:0);n=$.i18n("num-"+i,t.formatNumber(a),a)}else n=$.i18n("num-pages",t.formatNumber(e.length),e.length);$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n(n,e.length)+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+""),$("#output_list").html(""),e.forEach(function(e,i){$("#output_list").append("\n "+(i+1)+"\n "+t.getPageLink(e.label,e.project)+'\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+" / "+$.i18n("day")+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"original":return t.index;case"title":return t.label;case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t,e){var i=this,n=this.daterangepicker.startDate.startOf("day"),a=this.daterangepicker.endDate.startOf("day"),o=$.Deferred(),r=0,l={},c=t.length,u=[],d=[],h=function t(h){var f=void 0;if(e)f=e;else{var p=i.getWikiPageFromURL(h),g=s(p,2);f=g[0],h=g[1]}var m=encodeURIComponent(h),k="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f+"/"+i.$platformSelector.val()+"/"+i.$agentSelector.val()+"/"+m+"/daily/"+n.format(i.config.timestampFormat)+"/"+a.format(i.config.timestampFormat);$.ajax({url:k,dataType:"json"}).done(function(t){d.push({title:h,project:f,items:t.items})}).fail(function(e){if(404===e.status)return void d.push({title:h,project:f,items:[]});var n=e.responseJSON&&e.responseJSON.title?e.responseJSON.title:$.i18n("unknown"),a="Error in Cassandra table storage backend"===n;if(a&&(l[h]?l[h]++:l[h]=1,l[h]<3))return c++,i.rateLimit(t,100,i)(h);a?u.push(h):i.writeMessage(i.getPageLink(h,f)+": "+$.i18n("api-error","Pageviews API")+" - "+n),i.hadFailure=!0}).always(function(){i.updateProgressBar(++r,c),r===c&&(u.length&&i.writeMessage($.i18n("api-error-timeout","
    "+u.map(function(t){return"
  • "+i.getPageLink(t,f)+"
  • "}).join("")+"
")),o.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return t.forEach(function(t){return f(t)}),o}},{key:"buildMotherDataset",value:function(t,e,i){var n=this;this.outputData={link:e,listData:[]};var a=moment(this.daterangepicker.startDate),o=moment(this.daterangepicker.endDate),r=this.numDaysInRange(),l=new Array(r).fill(0),c=[];i.forEach(function(t,e){var i=n.fillInZeros(t.items,a,o),u=s(i,2),d=u[0];u[1].forEach(function(t){c.includes(t)||c.push(t)});var h=d.map(function(t){return t.views}),f=h.reduce(function(t,e){return(t||0)+(e||0)});n.outputData.listData.push({data:h,label:t.title,project:t.project,sum:f,average:f/r,index:e}),l=l.map(function(t,e){return t+d[e].views})});var u=l.reduce(function(t,e){return(t||0)+(e||0)});if(Object.assign(this.outputData,{datasets:[{label:t,data:l,sum:u,average:u/r}],datesWithoutData:c,sum:u,average:u/r}),c.length){var d=c.map(function(t){return moment(t).format(n.dateFormat)});this.writeMessage($.i18n("api-incomplete-data",d.sort().join(" · "),d.length))}return this.hadFailure||simpleStorage.set(this.getCacheKey(),this.outputData,{TTL:6e5}),this.outputData}},{key:"getPileURL",value:function(t){return"http://pagepile.toolforge.org/api.php?action=get_data&id="+t}},{key:"getPileLink",value:function(t){return"Page Pile "+t+""}},{key:"getPagePile",value:function(t){var e=this,i=$.Deferred(),n="https://pagepile.toolforge.org/api.php?id="+t+"&action=get_data&format=json&metadata=1&limit="+this.config.apiLimit;return $.ajax({url:n,dataType:"jsonp"}).done(function(n){var a=Object.keys(n.pages);return n.pages_total>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",e.getPileLink(t),e.formatNumber(n.pages_total),e.config.apiLimit,n.pages_total)),a=a.slice(0,e.config.apiLimit)),i.resolve({id:n.id,wiki:n.wiki,pages:a})}).fail(function(n){return i.reject(e.getPileLink(t)+": "+$.i18n("api-error-no-data"))}),i}},{key:"getWikiPageFromURL",value:function(t){var e=void 0;return e=t.includes("?")?t.match(/\/\/(.*?)\/w\/.*\?(?:.*\b)?title=(.*?)(?:&|$)/):t.match(/\/\/(.*?)\/wiki\/(.*?)(?:\?|$)/),e?[e[1].replace(/^www\./,""),e[2]]:[null,null]}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.validateDateRange(e),this.updateSourceInput($(".source-option[data-value="+e.source+"]")[0]),e.target&&this.$sourceInput.val(decodeURIComponent(e.target).descore()),$(".site-notice .alert-danger").length?delete e.target:e.overflow&&"pagepile"===e.source&&e.target&&this.toastInfo($.i18n("massviews-redirect",$.i18n("title"),10,this.getPileLink(e.target))),this.$platformSelector.val(e.platform),this.$agentSelector.val(e.agent),["sort","direction","view","source","subjectpage"].forEach(function(i){t[i]=e[i]}),["quarry","external-link","search"].includes(e.source)&&e.project&&$(".project-input").val(e.project),"1"===e.subjectpage&&$(".category-subject-toggle--input").prop("checked",!0),"1"===e.subcategories&&$(".subcategories-toggle--input").prop("checked",!0),e.target&&this.processInput()}},{key:"setState",value:function(t,e){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.updateProgressBar(0),this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),this.$sourceInput.val("").focus(),"function"==typeof e&&e.call(this);break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"apiErrorReset",value:function(t,e){var i=this;this.setState("initial",function(){var n=void 0;n=e?$.i18n("api-error",t)+": "+e:""+$.i18n("api-error-unknown",t),i.writeMessage(n)})}},{key:"processPagePile",value:function(t){var e=this,i=this.$sourceInput.val();$(".progress-counter").text($.i18n("fetching-data","Page Pile API")),this.getPagePile(i).done(function(n){if(!n.pages.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",e.getPileLink(i)))});var a=d[n.wiki];"en.wikipedia.org"===a&&(n.pages=n.pages.map(function(t){return t.replace(/^Project:Wikipedia:/,"Wikipedia:")})),e.getPageViewsData(n.pages,a).done(function(i){var o="Page Pile #"+n.id;$(".output-params").html("\n "+e.$dateRangeSelector.val()+'\n —\n \n '+a.replace(/.org$/,"").escape()+"\n \n "),t(o,e.getPileLink(n.id),i)})}).fail(function(t){e.setState("initial"),"string"==typeof t?e.writeMessage(t):e.writeMessage($.i18n("api-error-unknown","Page Pile"))})}},{key:"processCategory",value:function(t,e,i){var n=this,a=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Category API"));var o="/massviews/api.php?project="+t+"&category="+e.replace(/^.*?:/,"")+"&limit="+this.config.apiLimit;$(".subcategories-toggle--input").is(":checked")&&(o+="&recursive=1"),$.getJSON(o).done(function(o){if(!o.length)return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});o.length>=n.config.apiLimit&&(n.writeMessage($.i18n("massviews-oversized-set-unknown",a,n.config.apiLimit)),o=o.slice(0,n.config.apiLimit));var r=$(".category-subject-toggle--input").is(":checked"),s=n.mapCategoryPageNames(o,n.getSiteInfo(t).namespaces,r);n.getPageViewsData(s,t).done(function(t){i(e,a,t)})}).fail(function(t){n.setState("initial"),n.writeMessage($.i18n("api-error-unknown",a))})}},{key:"processHashtag",value:function(t){var e=this,i=this.$sourceInput.val().replace(/^#/,""),n='#'+i.escape()+"";$(".progress-counter").text($.i18n("fetching-data","Hashtag API")),$.get("https://hashtags.wmflabs.org/csv/?query="+i).done(function(a){for(var o=new RegExp('(\\,|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\,\\r\\n]*))',"gi"),r=[[]],s=void 0;s=o.exec(a);){var l=s[1];l.length&&","!==l&&r.push([]);var c=void 0;c=s[2]?s[2].replace(new RegExp('""',"g"),'"'):s[3],r[r.length-1].push(c)}if(1!==r[r.length-1].length||r[r.length-1][0]||(r=r.slice(0,-1)),1===r.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",n))});e.getPageURLsFromHashtagCSV(r).done(function(a){var o=a.length;o>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",n,e.formatNumber(o),e.config.apiLimit,o)),a=a.slice(0,e.config.apiLimit)),e.getPageViewsData(a).done(function(e){t(i,n,e)})}).fail(function(){return e.apiErrorReset("Siteinfo API")})}).fail(function(){return e.apiErrorReset("Hashtag API")})}},{key:"getPageURLsFromHashtagCSV",value:function(t){var e=this,i=$.Deferred(),n=t[0].indexOf("spaced_title"),a=t[0].indexOf("rc_namespace"),o=t[0].indexOf("diff_url"),r=[];return t.slice(1).forEach(function(s){var l=s[o].match(/https:\/\/(.*?\.org)\//)[1];e.fetchSiteInfo(l).done(function(){var o=e.getSiteInfo(l).namespaces[s[a]]["*"];r.push("https://"+l+"/wiki/"+(o?o+":":"")+s[n]),r.length===t.length-1&&i.resolve(r.unique())}).fail(function(){i.reject()})}),i}},{key:"processSubpages",value:function(t,e,i){var n,a=this,o=e.descore(),r=0,s=o;for(var l in this.getSiteInfo(t).namespaces)if("0"!==l){var c=this.getSiteInfo(t).namespaces[l]["*"]+":";o.startsWith(c)&&(r=this.getSiteInfo(t).namespaces[l].id,s=e.substring(c.length))}var u=r%2==0?r+1:r-1,d=[];$(".progress-counter").text($.i18n("fetching-data","Allpages API")),[r,u].forEach(function(e){var i={list:"allpages",aplimit:500,apnamespace:e,apprefix:s+"/"};d.push(a.massApi(i,t,"apcontinue","allpages"))});var h=this.getPageLink(e,t);(n=$).when.apply(n,d).done(function(n,o){var r=[n,o].filter(function(t){return!!t.error});if(r.length)return a.setState("initial",function(){r.forEach(function(t){a.writeMessage($.i18n("api-error","Allpages API")+": "+t.error.info.escape())})}),!1;var s=n.allpages.concat(o.allpages),l=s.length;if(0===l)return a.setState("initial",function(){a.writeMessage($.i18n("api-error-no-data"))});l>a.config.apiLimit&&(a.writeMessage($.i18n("massviews-oversized-set",h,a.formatNumber(l),a.config.apiLimit,l)),s=s.slice(0,a.config.apiLimit));var c=[e].concat(s.map(function(t){return t.title}));a.getPageViewsData(c,t).done(function(t){i(e,h,t)})}).fail(function(t){a.setState("initial"),t&&"string"==typeof t.error?a.writeMessage($.i18n("api-error",h+": "+t.error)):a.writeMessage($.i18n("api-error-unknown",h))})}},{key:"processTemplate",value:function(t,e,i){var n=this,a={prop:"transcludedin",tilimit:500,titles:e},o=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Transclusion API")),this.massApi(a,t,"ticontinue",function(t){return t.pages[0].transcludedin}).done(function(a){if(a.error)return n.apiErrorReset("Transclusion API",a.error.info);if(!a.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=a.pages.map(function(t){return t.title});a.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",o,n.config.apiLimit)),n.getPageViewsData(r,t).done(function(t){i(e,o,t)})}).fail(function(t){n.setState("initial"),t&&"string"==typeof t.error?n.writeMessage($.i18n("api-error",o+": "+t.error)):n.writeMessage($.i18n("api-error-unknown",o))})}},{key:"processWikiPage",value:function(t,e,i){var n=this,a={pllimit:500,prop:"links",titles:e},o=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Links API")),this.massApi(a,t,"plcontinue",function(t){return t.pages[0].links}).done(function(a){if(a.error)return n.apiErrorReset("Links API",a.error.info);if(!a.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=a.pages.map(function(t){return t.title});if(!r.length)return n.setState("initial",function(){n.writeMessage($.i18n("massviews-empty-set",o))});a.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",o,n.config.apiLimit)),n.getPageViewsData(r,t).done(function(t){i(e,o,t)})}).fail(function(t){var e=t&&"string"==typeof t.error?t.error:null;n.apiErrorReset("Links API",e)})}},{key:"processQuarry",value:function(t){var e=this,i=$(".project-input").val(),n=this.$sourceInput.val();if(this.validateProject(i)){var a="https://quarry.wmflabs.org/query/"+n+"/result/latest/0/json",o="Quarry "+n+"";$(".progress-counter").text($.i18n("fetching-data","Quarry API")),$.getJSON(a).done(function(a){var r=a.headers.indexOf("page_title");if(-1===r)return e.setState("initial"),e.writeMessage($.i18n("invalid-quarry-dataset","page_title"));var s=a.rows.map(function(t){return t[r]});s.length>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",o,e.formatNumber(s.length),e.config.apiLimit,s.length)),s=s.slice(0,e.config.apiLimit)),e.getPageViewsData(s,i).done(function(e){t(n,o,e)})}).fail(function(t){return e.setState("initial"),e.writeMessage($.i18n("api-error-unknown","Quarry API"),!0)})}}},{key:"processExternalLink",value:function(t){var e=this,i=$(".project-input").val();if(this.validateProject(i)){var n=/^(?:\/\/|(ftps?|git|gopher|https?|ircs?|mms|nntp|redis|sftp|ssh|svn|telnet|worldwind):\/\/|(bitcoin|geo|magnet|mailto|news|sips?|sms|tel|urn|xmpp):)/,a=this.$sourceInput.val(),o=(n.exec(a)||[,])[1]||"http",r=a.replace(n,""),s={list:"exturlusage",eulimit:500,eunamespace:0,euprotocol:o,euquery:r},l=""+a+"";$(".progress-counter").text($.i18n("fetching-data","External link API")),this.massApi(s,i,"eucontinue","exturlusage").done(function(n){if(n.error)return e.apiErrorReset("External link API",n.error.info);if(!n.exturlusage[0])return e.setState("initial",function(){e.writeMessage($.i18n("api-error-no-data"))});var o=n.exturlusage.map(function(t){return t.title}).unique();if(!o.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",l))});n.continue&&e.writeMessage($.i18n("massviews-oversized-set-unknown",l,e.config.apiLimit)),e.getPageViewsData(o,i).done(function(e){t(a,l,e)})}).fail(function(t){e.setState("initial"),t&&"string"==typeof t.error?e.writeMessage($.i18n("api-error",l+": "+t.error)):e.writeMessage($.i18n("api-error-unknown",l))})}}},{key:"processSearch",value:function(t){var e=this,i=$(".project-input").val();if(this.validateProject(i)){var n=this.$sourceInput.val(),a={list:"search",srlimit:500,srnamespace:0,srinfo:"",srprop:"",srsearch:n},o=n.length>50?n.slice(0,35)+"…":n,r=""+o+"";$(".progress-counter").text($.i18n("fetching-data","Search API")),this.massApi(a,i,"sroffset","search").done(function(n){if(n.error)return e.apiErrorReset("Search API",n.error.info);if(!n.search.length)return e.setState("initial",function(){e.writeMessage($.i18n("api-error-no-data"))});var a=n.search.map(function(t){return t.title}).unique();if(!a.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",r))});n.continue&&e.writeMessage($.i18n("massviews-oversized-set-unknown",r,e.config.apiLimit)),e.getPageViewsData(a,i).done(function(e){t(o,r,e)})}).fail(function(t){e.setState("initial"),t&&"string"==typeof t.error?e.writeMessage($.i18n("api-error",r+": "+t.error)):e.writeMessage($.i18n("api-error-unknown",r))})}}},{key:"validateProject",value:function(t){return!!t&&(t=t.replace(/^www\./,""),!!h.includes(t)||(this.setState("initial"),this.writeMessage($.i18n("invalid-project",""+t.escape()+""),!0),!1))}},{key:"mapCategoryPageNames",value:function(t,e,i){var n=[];return t.forEach(function(t){var a=parseInt(t.ns,10),o=void 0;o=a%2==1&&i?e[a-1]["*"]||"":e[t.ns]["*"],n.push(o+(""===o?"":":")+t.title)}),n}},{key:"processInput",value:function(){var t=this;this.patchUsage(),this.setState("processing");var e=function(){$(".output-title").html(t.outputData.link),$(".output-params").html(t.$dateRangeSelector.val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),e()},500);var i=function(i,n,a){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset")),setTimeout(function(){t.buildMotherDataset(i,n,a),e()},250)},n=$("#source_button").data("value");switch(n){case"pagepile":return this.processPagePile(i);case"quarry":return this.processQuarry(i);case"hashtag":return this.processHashtag(i);case"external-link":return this.processExternalLink(i);case"search":return this.processSearch(i)}var a=this.getWikiPageFromURL(this.$sourceInput.val()),o=s(a,2),r=o[0],l=o[1];if(!r||!l)return this.setState("initial",function(){t.writeMessage($.i18n("invalid-"+("category"===n?"category":"page")+"-url"))});if(this.validateProject(r))switch(l=decodeURIComponent(l).replace(/\/$/,""),n){case"category":this.fetchSiteInfo(r).then(function(){t.processCategory(r,l,i)});break;case"subpages":this.fetchSiteInfo(r).then(function(){return t.processSubpages(r,l,i)});break;case"wikilinks":this.processWikiPage(r,l,i);break;case"transclusions":this.processTemplate(r,l,i)}}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}}]),e}(mix(f).with(p,g));$(function(){new m})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),a=t.getSortProperty(i,t.sort);return na?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var a=t.chart,o=i(a.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=a.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,a){o.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[a]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.n(i.data[a]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);this.$logarithmicCheckbox.prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=this.$chart[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".another-query").on("click",function(){t.setState("initial"),t.pushParams(!0)}),$(".view-btn").on("click",function(e){document.activeElement.blur(),t.view=e.currentTarget.dataset.value,t.toggleView(t.view)}),$("#pv_form").on("submit",function(e){e.preventDefault(),t.processInput()})}},{key:"$sourceInput",get:function(){return this.cachedElement("#source-input")}}]),e}(t)};e.exports=l},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?o(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo", -value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var o=this.$dateRangeSelector.remove();$(".date-selector").append(o)}this.$dateRangeSelector.daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org", -chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var o=this.$dateRangeSelector.remove();$(".date-selector").append(o)}this.$dateRangeSelector.daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org", +chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/massviews/rev-manifest.json b/public_html/massviews/rev-manifest.json index e2126ee7..4a6eb03a 100644 --- a/public_html/massviews/rev-manifest.json +++ b/public_html/massviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-10fb92fc10.css", - "application.js": "application-e88e31de17.js" + "application.js": "application-7526a52d2c.js" } \ No newline at end of file diff --git a/public_html/mediaviews/application-66f2212ffc.js b/public_html/mediaviews/application-7eff10c2eb.js similarity index 95% rename from public_html/mediaviews/application-66f2212ffc.js rename to public_html/mediaviews/application-7eff10c2eb.js index 306d5ea6..4908b318 100644 --- a/public_html/mediaviews/application-66f2212ffc.js +++ b/public_html/mediaviews/application-7eff10c2eb.js @@ -15,5 +15,5 @@ a.backgroundColor=n.backgroundColor?n.backgroundColor:e.getValueAtIndexOrDefault var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),o=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),a=o/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=a/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)s=a(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==o.min?o.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==o.max?o.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),y=e.fontString(g,m,v),k=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=y,n=0;nw&&(w=t.x+a,r=n),t.x-aD?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;k--){if(r.display){var w=t.getPointPosition(k,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(k,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=y,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(k)+Math.PI/2,_=360*C/(2*Math.PI)%360;c.textAlign=0===_||180===_?"center":180>_?"left":"right",c.textBaseline=90===_||270===_?"middle":_>270||90>_?"bottom":"top",c.fillText(D[k]?D[k]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+o*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)k?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):k>=0&&(n.lastTick=y),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t10&&(e.files=e.files.slice(0,10)),this.setInitialChartType(e.files.length),this.getFileInfo(e.files.unique()).then(function(e){var i=Object.keys(e.entities);if(!i.length)return t.resetView(!1,!1);t.setSelect2Defaults(t.underscorePageNames(i))})}},{key:"getFileInfo",value:function(t){var e=this,i=$.Deferred(),n=Object.keys(this.entityInfo.entities);if(t=t.filter(function(t){return!n.includes(t.descore())}),!t.length)return i.resolve({});try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent("File:"+t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=imageinfo&iiprop=mediatype|size|timestamp|url&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).done(function(n){n.query.normalized&&n.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var o=e.entityInfo.entities||{};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}var i=n.query.pages.find(function(e){return e.title===t});if(i.missing)return void e.writeMessage(e.getFileLink(t)+": "+$.i18n("api-error-no-data"));i=i.imageinfo&&i.imageinfo[0]?i.imageinfo[0]:{},o[t.replace(/^File:/,"").descore()]=Object.assign({title:t,path:decodeURIComponent((i.url||"").replace("https://upload.wikimedia.org",""))},i)}),e.entityInfo={entities:o},i.resolve(e.entityInfo)}).fail(function(){i.resolve({})}),i}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val(),referer:$("#referer-select").val()};if(this.specialRange&&t)e.range=this.specialRange.range;else{var i=this.getDates(!0),n=r(i,2);e.start=n[0],e.end=n[1]}return this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"files")}},{key:"setupSelect2",value:function(){var t={ajax:{url:"https://"+this.project+".org/w/api.php",dataType:"jsonp",delay:200,jsonpCallback:"fileSuggestionCallback",data:function(t){return{action:"query",list:"allimages",format:"json",aifrom:t.term||"",aiprop:""}},processResults:function(t){var e=t?t.query:{},i=[];if(!e)return{results:i};if(e.allimages.length){i=e.allimages.map(function(t){return t.name}).map(function(t){return{id:t.score(),text:t}})}return{results:i}},cache:!0},placeholder:$.i18n("article-placeholder"),maximumSelectionLength:10,minimumInputLength:1};l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupSelect2",this).call(this,t)}},{key:"setupListeners",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$("#referer-select, #agent-select").on("change",this.processInput.bind(this))}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1] ;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),this.$outputList.html(""),$(".single-entity-stats").html(""),$(".single-entity-legend").html(""),$(".file-selector").removeClass("disabled")}},{key:"processInput",value:function(t,e){var i=this,n=this.beforeProcessInput(t);n&&(e?(this.removeEntity(e),this.updateChart()):this.getFileInfo(n).then(function(){i.getRequestCounts(n).done(function(t){i.updateChart(t)})}))}},{key:"getMvApiUrl",value:function(t,e,i){var n=$("#date-type-select").val()||"daily",o=this.$agentSelector.val()||this.config.defaults.agent;return"https://wikimedia.org/api/rest_v1/metrics/mediarequests/per-file/"+$("#referer-select").val()+"/"+o+"/"+encodeURIComponent(t)+"/"+n+"/"+e.format(this.config.timestampFormat)+"/"+i.format(this.config.timestampFormat)}},{key:"getRequestCounts",value:function(t){var e=this,i=$.Deferred(),n=t.length,o=[],a=0,r=this.daterangepicker.startDate.startOf("day"),s=this.daterangepicker.endDate.startOf("day"),l={entities:t,labels:[],datasets:new Array(n),errors:[],fatalErrors:[],promises:[]},c=function(t,c){var u=e.getMvApiUrl(e.entityInfo.entities[t.descore()].path,r,s),d=$.ajax({url:u,dataType:"json"});l.promises.push(d),d.done(function(i){try{var n=l.entities.indexOf(t);l.datasets[n]=i.items,i.items&&!l.labels.length&&(l.labels=i.items.map(function(t){return moment(t.date,e.config.timestampFormat).format(e.dateFormat)}))}catch(t){return l.fatalErrors.push(t)}}).fail(function(i){var n=l.entities.indexOf(t);l.entities.splice(n,1),l.datasets.splice(n,1);var o=e.getFileLink(t);l.errors.push(o+": "+$.i18n("api-error","Media requests API")+" - "+i.responseJSON.title)}).always(function(){++a===n&&(i.resolve(l),o.length&&e.writeMessage($.i18n("api-error-timeout","
    "+o.map(function(t){return"
  • "+e.getFileLink(t)+"
  • "}).join("")+"
")))})};return t.forEach(function(t,e){return c(t)}),i}},{key:"updateTable",value:function(){var t=this,e=this.beforeUpdateTable();if(e){e.forEach(function(e,i){t.$outputList.append(t.config.templates.tableRow(t,e))});var i=e.reduce(function(t,e){return t+e.sum},0),n={label:$.i18n("num-files",this.formatNumber(e.length),e.length),sum:i,average:Math.round(i/e[0].data.filter(function(t){return null!==t}).length)};["duration","size"].forEach(function(t){n[t]=e.reduce(function(e,i){return e+i[t]},0)}),this.$outputList.append(this.config.templates.tableRow(this,n,!0)),$(".table-view--duration").toggle(e.some(function(t){return!!t.duration})),$(".table-view").show()}}},{key:"getSortProperty",value:function(t,e){return"file"===e?t.title:"requests"===e?t.sum:"date"===e?moment(this.formatTimestamp(t.timestamp),this.dateFormat).unix():"type"===e?t.mediatype:Number(t[e])}},{key:"getFileLink",value:function(t){return l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getPageLink",this).call(this,this.addNamespace(t),this.project,t.replace(/^File:/,""))}},{key:"formatTimestamp",value:function(t){return moment(t.substring(0,10),"YYYY-MM-DD").format(this.dateFormat)}},{key:"stripNamespace",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=t.replace(/^File:/,""),e?"File:"+t:t}},{key:"addNamespace",value:function(t){return this.stripNamespace(t,!0)}},{key:"showSingleEntityLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-entity-stats").html("\n "+this.getFileLink(this.addNamespace(t.label))+"\n ·\n \n "+this.$dateRangeSelector.val()+"\n \n ·\n "+$.i18n("num-requests",this.formatNumber(t.sum),t.sum)+"\n \n "),$(".single-entity-legend").html(this.config.templates.chartLegend(this))}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.focusSelect2())}}]),e}(mix(u).with(d));$(function(){new h})},{"../shared/chart_helpers":4,"../shared/pv":7,"./config":1}],3:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e=function(e){var i,o=(arguments.length>1&&void 0!==arguments[1]&&arguments[1],n({},$.i18n("requests"),(i={},n(i,$.i18n("requests"),t.formatNumber(e.sum)),n(i,$.i18n($("#date-type-select").val()+"-average"),t.formatNumber(e.average)),i))),a=$.i18n("statistics");if(o[a]={},e.duration){var r=Math.round(e.duration);o[a][$.i18n("duration")]=$.i18n("num-seconds",r,t.formatNumber(r))}e.size&&(o[a][$.i18n("size")]=$.i18n("num-bytes",t.formatNumber(e.size),e.size)),e.timestamp&&(o[a][$.i18n("date")]=t.formatTimestamp(e.timestamp)),e.mediatype&&(o[a][$.i18n("file-type")]=e.mediatype.toLowerCase());var s="";for(var l in o){s+="
\n
"+l+"

\n
";for(var c in o[l]){var u=o[l][c];u&&(s+='\n
\n '+c+":\n \n "+u+"\n \n
")}s+="
"}return s};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o=t.outputData.reduce(function(t,e){return t+e.size},0);return e({sum:i,average:Math.round(i/t.outputData[0].data.filter(function(t){return null!==t}).length),duration:t.outputData.reduce(function(t,e){return t+e.duration},0),size:o,sizeAvg:Math.round(o/t.numDaysInRange())},!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td";return $(".sort-link--sum .col-heading").text($.i18n("requests")),"\n \n <"+n+" class='table-view--color-col'>\n \n \n <"+n+" class='table-view--file'>"+(i?e.label:t.getFileLink("File:"+e.label))+"\n <"+n+" class='table-view--requests'>"+t.formatNumber(e.sum)+"\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+"\n <"+n+" class='table-view--duration'>"+(e.duration?t.formatNumber(Math.round(e.duration)):"–")+"\n <"+n+" class='table-view--size'>"+t.formatNumber(e.size)+"\n <"+n+" class='table-view--date'>"+(i?"":t.formatTimestamp(e.timestamp))+"\n <"+n+" class='table-view--file-type'>"+(i?"":e.mediatype)+"\n \n "}};e.exports=o},{}],4:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,o=void 0,a=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return o=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[o],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(a),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===a&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},o=n(t,e),a=l(o,2);t=a[0],e=a[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),o=e[0],a=e[1];i.daterangepicker.startDate=moment(o).startOf("month"),i.daterangepicker.setEndDate(moment(a).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var o=t.chart,a=i(o.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=o.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,o){a.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[o]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;a.fillText(e.n(i.data[o]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),a(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?a(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+e+i>t;){var a=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();a.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(a),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",a=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,o))t?e.push(r.format(this.dateFormat)):e.push(r.format(a));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var o=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var o='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var a=this.getProjectLang(e);o+=" lang="+a+' dir="'+(this.config.rtlLangs.includes(a)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})}(),a}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var a=this.$dateRangeSelector.remove();$(".date-selector").append(a)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":5,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:a,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[a,a],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(a)?moment().startOf("week"):a],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:a;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY", -"uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org", -xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +"uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org", +wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/mediaviews/rev-manifest.json b/public_html/mediaviews/rev-manifest.json index 043df385..a7cd6632 100644 --- a/public_html/mediaviews/rev-manifest.json +++ b/public_html/mediaviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-c762eea75f.css", - "application.js": "application-66f2212ffc.js" + "application.js": "application-7eff10c2eb.js" } \ No newline at end of file diff --git a/public_html/metaviews/application-56505f4d2d.js b/public_html/metaviews/application-479260353a.js similarity index 96% rename from public_html/metaviews/application-56505f4d2d.js rename to public_html/metaviews/application-479260353a.js index 4f804fad..29d07a3d 100644 --- a/public_html/metaviews/application-56505f4d2d.js +++ b/public_html/metaviews/application-479260353a.js @@ -13,5 +13,5 @@ t.plugins.notify("beforeDatasetsDraw",[n,o]),e.each(n.data.datasets,function(t,e ;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=i,o.margins=e.extend({left:0,right:0,top:0,bottom:0},n),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,o=t.defaults.global,r=i.options.ticks,a=e.getValueOrDefault(r.fontSize,o.defaultFontSize),s=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),l=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),c=e.fontString(a,s,l);n.font=c;var u,d=n.measureText(i.ticks[0]).width,h=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=h/2+3,i.paddingLeft=d/2+3,i.longestTextCache||(i.longestTextCache={});for(var p,f,g=e.longestText(n,c,i.ticks,i.longestTextCache),m=g,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>v&&i.labelRotationi.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,f*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=p*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,r=t.defaults.global,a=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(a.fontSize,r.defaultFontSize),h=e.getValueOrDefault(a.fontStyle,r.defaultFontStyle),p=e.getValueOrDefault(a.fontFamily,r.defaultFontFamily),f=e.fontString(d,h,p),g=e.getValueOrDefault(s.fontSize,r.defaultFontSize),m=o.gridLines.tickMarkLength;if(n.width=u?i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:c&&l.drawTicks?m:0,n.height=u?c&&l.drawTicks?m:0:i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),a.display&&c){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),k=e.numberOfLabelLines(i.ticks),y=.5*d;if(u){i.longestLabelWidth=v;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*k+y*k;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var _=i.maxWidth-n.width;a.mirror?v=0:v+=i.options.ticks.padding,_>v?n.width+=v:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||void 0===t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=o*t+i.paddingLeft;e&&(r+=o/2);var a=i.left+Math.round(r);return a+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var r,a,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,p=c.autoSkip,f=n.isHorizontal();c.maxTicksLimit&&(a=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),v=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),k=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=e.fontString(m,v,k),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),_=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),S=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),M=e.fontString(C,_,S),Y=e.toRadians(n.labelRotation),T=Math.cos(Y),A=n.longestLabelWidth*T;s.fillStyle=g;var $=[];if(f){if(r=!1,h&&(A/=2),(A+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(r=1+Math.floor((A+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!r||n.ticks.length/(r||1)>a;)r||(r=1),r+=1;p||(r=!1)}var I="right"===o.position?n.left:n.right-w,P="right"===o.position?n.left+w:n.right,O="bottom"===o.position?n.top:n.bottom-w,E="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var s=n.ticks.length===a+1;if((!(r>1&&a%r>0||a%r==0&&a+r>=n.ticks.length)||s)&&void 0!==t&&null!==t){var l,d;a===(void 0!==n.zeroLineIndex?n.zeroLineIndex:0)?(l=u.zeroLineWidth,d=u.zeroLineColor):(l=e.getValueAtIndexOrDefault(u.lineWidth,a),d=e.getValueAtIndexOrDefault(u.color,a));var p,g,m,v,k,y,D,C,_,S,M="middle",T="middle";if(f){h||(T="top"===o.position?"bottom":"top"),M=h?"right":"center";var A=n.getPixelForTick(a)+e.aliasPixel(l);_=n.getPixelForTick(a,u.offsetGridLines)+c.labelOffset,S=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,p=m=k=D=A,g=O,v=E,y=i.top,C=i.bottom}else{"left"===o.position?c.mirror?(_=n.right+c.padding,M="left"):(_=n.right-c.padding,M="right"):c.mirror?(_=n.left-c.padding,M="right"):(_=n.left+c.padding,M="left");var L=n.getPixelForTick(a);L+=e.aliasPixel(l),S=n.getPixelForTick(a,u.offsetGridLines),p=I,m=P,k=i.left,D=i.right,g=v=y=C=L}$.push({tx1:p,ty1:g,tx2:m,ty2:v,x1:k,y1:y,x2:D,y2:C,labelX:_,labelY:S,glWidth:l,glColor:d,glBorderDash:b,glBorderDashOffset:x,rotation:-1*Y,label:t,textBaseline:T,textAlign:M})}}}),e.each($,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var r=t[e];if(r&&r.hasValue()){var a=r.tooltipPosition();n.push(a.x),o.push(a.y)}}var s=0,l=0;for(e=0;e0){var r=t[0];r.xLabel?i=r.xLabel:o>0&&r.indexe;++e)f.push(n(c[e]));s.itemSort&&(f=f.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(f,function(t){h.push(s.callbacks.labelColor.call(a,t,d))}),o.extend(l,{title:a.getTitle(f,u),beforeBody:a.getBeforeBody(f,u),body:a.getBody(f,u),afterBody:a.getAfterBody(f,u),footer:a.getFooter(f,u),x:Math.round(p.x),y:Math.round(p.y),caretPadding:o.getValueOrDefault(p.padding,2),labelColors:h});var g=a.getTooltipSize(l);a.determineAlignment(g),o.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&s.custom&&s.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,r=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=r*c,i.height+=r?(r-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var r,a,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(r=function(t){return u>=t},a=function(t){return t>u}):(r=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},r(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,r=t.cornerRadius,a=t.xAlign,s=t.yAlign,l=n+o,c=r+o;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===s?i.y+=l:i.y-="bottom"===s?e.height+l:e.height/2,"center"===s?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=c:"right"===a&&(i.x+=c),i},drawCaret:function(t,e,i){var n,r,a,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,p=u.cornerRadius,f=u.xAlign,g=u.yAlign,m=t.x,v=t.y,k=e.width,y=e.height;"center"===g?("left"===f?(n=m,r=n-h,a=n):(n=m+k,r=n+h,a=n),l=v+y/2,s=l-h,c=l+h):("left"===f?(n=m+p,r=n+h,a=r+h):"right"===f?(n=m+k-p,r=n-h,a=r-h):(r=m+k/2,n=r-h,a=r+h),"top"===g?(s=v,l=s-h,c=s):(s=v+y,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(r,l),d.lineTo(a,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var r=e.title;if(r.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(a,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=r.length;u>c;++c)i.fillText(r[c],t.x,t.y),t.y+=a+s,c+1===r.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var r=e.bodyFontSize,a=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(r,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=r+a};o.each(e.beforeBody,d);var h=s.length>1;u=h?r+2:0,o.each(s,function(a,s){o.each(a.before,d),o.each(a.lines,function(a){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,r,r),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,r,r),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,r-2,r-2),i.fillStyle=c),d(a)}),o.each(a.after,d)}),u=0,o.each(e.afterBody,d),t.y-=a},drawFooter:function(t,e,i,n){var r=e.footer;if(r.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=o.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(r,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=o.color(e.backgroundColor);t.fillStyle=a.alpha(r*a.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,r),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,r),this.drawBody(n,e,t,r),this.drawFooter(n,e,t,r)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;s>r;)r+=2*Math.PI;var c=r>=s&&l>=r,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,r=o.spanGaps,a=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var a=o.getLabels(),s=a.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/r,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/r,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),o=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),r=o/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=r/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=e.log10(Math.abs(o)),a="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,r=o.data,a=r.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(a,function(r,a){var s=o.getDatasetMeta(a);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(a)&&t(s)&&e.each(r.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),r=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(a,function(n,r){var a=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var r=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*r)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,r=n.paddingBottom,a=n.start,s=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-a),Math.round(e+o)):(i=n.height-(n.paddingTop+r),e=n.bottom-r-i/l*(s-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,r=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),a=(i?t-e.left-n:e.bottom-o-t)/r;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),r=e.sign(t.max);0>o&&0>r?t.max=0:o>0&&r>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)), t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,r=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var s;if(o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)s=r(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(a-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==o.min?o.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==o.max?o.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,r=i.chart,a=r.data,s=a.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,a){var s=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=r)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,r,a,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),k=e.fontString(g,m,v),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=k,n=0;nw&&(w=t.x+r,a=n),t.x-rD?t.x+o>w&&(w=t.x+o,a=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,r=n.ticks,a=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(r.fontSize,i.defaultFontSize),d=l(r.fontStyle,i.defaultFontStyle),h=l(r.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(a,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;y--){if(a.display){var w=t.getPointPosition(y,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=k,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,_=360*C/(2*Math.PI)%360;c.textAlign=0===_||180===_?"center":180>_?"left":"right",c.textBaseline=90===_||270===_?"middle":_>270||90>_?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},r=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,r){var a=[],s=t.chart.isDatasetVisible(r);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,r,a);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+o*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=k),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0])||arguments[0],e={};return this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=this.getEntities();window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&tools="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&tools="+t.join("|"))}},{key:"setupSelect2",value:function(){var t=this.config.apps.map(function(t){return{id:t,text:t}}),e={data:t,placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:this.config.apps.length,minimumInputLength:1};this.$select2Input.select2(e),this.$select2Input.on("change",this.processInput.bind(this))}},{key:"setSelect2Defaults",value:function(t){return this.$select2Input.val(t).trigger("change"),t}},{key:"processInput",value:function(t){var e,i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){var o=this.getEntities();this.setInitialChartType(o.length);var r={entities:o,labels:[],datasets:new Array(o.length),errors:[],fatalErrors:[],promises:[]};if(!r.entities.length)return this.resetView();this.params=location.search,this.prevChartType=this.chartType,this.clearMessages(),this.destroyChart(),this.startSpinny();var a=this.daterangepicker.startDate.startOf("day"),s=this.daterangepicker.endDate.startOf("day");r.entities.forEach(function(t,e){var n=$.ajax({url:"/metaviews/api.php",data:{app:t,start:a.format("YYYY-MM-DD"),end:s.format("YYYY-MM-DD")},dataType:"json"});r.promises.push(n),n.done(function(t){r.datasets[e]=t,r.labels.length||(r.labels=t.map(function(t){return moment(t.date,"YYYY-MM-DD").format(i.dateFormat)}))}).fail(function(e){i.writeMessage(""+t.escape()+" - "+$.i18n("api-error-no-data")),r.entities=r.entities.filter(function(e){return e!==t})})}),(e=$).whenAll.apply(e,n(r.promises)).always(this.updateChart.bind(this,r))}}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"pageloads":return Number(t.sum);case"average":return Number(t.average)}}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleAppLegend();$(".single-page-stats").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e){t.$outputList.append("\n \n \n \n \n "+e.label+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(e.average)+"\n \n ")});var n=e.reduce(function(t,e){return t+e.sum},0),o={label:e.length+" app"+(1===e.length?"":"s"),sum:n,average:Math.round(n/e[0].data.length)};this.$outputList.append("\n \n \n "+o.label+"\n "+this.formatNumber(o.sum)+"\n "+this.formatNumber(o.average)+"\n \n "),$(".output-list .table-view--title a").off("click").on("click",function(e){t.showProjectUsage($(e.target).text())}),$(".table-view").show()}},{key:"showSingleAppLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-page-stats").html("\n "+t.label+"\n ·\n \n "+this.$dateRangeSelector.val()+"\n \n ·\n "+t.sum+" page load"+(1===t.sum?"":"s")+"\n \n ("+this.formatNumber(t.average)+"/"+$.i18n("day")+")\n \n ")}},{key:"showProjectUsage",value:function(t){var e=this;$(".project-output-list").html("");var i=t.charAt(0).toUpperCase()+t.slice(1),n=["siteviews","massviews"],o=n.includes(t)?"language":"project";$("#project-list-modal h4").text(i+" usage by "+o),$("th.project-table-view--title").text(o.charAt(0).toUpperCase()+o.slice(1)),$.ajax({url:"/metaviews/api.php",data:{app:t},dataType:"json"}).done(function(t){t=t.sort(function(t,e){return t.counte.count?-1:0});var i=t.reduce(function(t,e){return t+e.count},0);$(".project-output-list").append("\n \n \n "+t.length+" "+o+"s\n "+e.formatNumber(i)+" page loads\n \n "),t.forEach(function(t,i){$(".project-output-list").append("\n \n "+(i+1)+"\n \n "+t.project+"\n \n "+e.formatNumber(t.count)+"\n \n ")}),$("#project-list-modal").modal("show")})}}]),e}(mix(c).with(u));$(function(){new d})},{"../shared/chart_helpers":3,"../shared/pv":6,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,r={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");r[e]=t}),t.items=[];for(var a=moment(e);a<=i;a.add(1,"day"))if(r[a.format("YYYYMMDD")])t.items.push(r[a.format("YYYYMMDD")]);else{var s=a.isSame(this.maxDate)||a.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(o({timestamp:a.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,o=void 0,r=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",a=this.getDateHeadings(!1);return o=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(a.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[o],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(r), s[a.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===r&&(e.pageViewsData=d,i.resolve(d),a.length&&e.writeMessage($.i18n("api-error-timeout","
    "+a.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var r=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return r=!0}),r}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},o=n(t,e),r=l(o,2);t=r[0],e=r[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var a=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),o=e[0],r=e[1];i.daterangepicker.startDate=moment(o).startOf("month"),i.daterangepicker.setEndDate(moment(r).endOf("month"))};$(".month-selector-start").on("hide",a),$(".month-selector-end").on("hide",a)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var r=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(r.scales=Object.assign({},r.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var a=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?r.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(r.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),r.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?r=this.showPointLabels(r):(delete r.animation.onComplete,delete r.animation.onProgress),this.chartObj=new Chart(a,{type:this.chartType,data:l,options:r})}else delete r.animation.onComplete,delete r.animation.onProgress,this.chartObj=new Chart(a,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:r})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var o=t.chart,r=i(o.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,a){var s=o.controller.getDatasetMeta(a);Chart.helpers.each(s.data.forEach(function(t,o){r.fillStyle="rgba(68,68,68,"+n+")";var a=i._meta[Object.keys(i._meta)[0]].data[o]._yScale.maxHeight,s=(a-t._model.y)/a>=.93?t._model.y+5:t._model.y-10;r.fillText(e.n(i.data[o]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":9}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new r(t)};var r=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),r(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?r(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return a(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+e+i>t;){var r=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();r.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(r),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",r=i?"YYYY-MM":"YYYY-MM-DD",a=moment(this.daterangepicker.startDate);a.isBefore(n);a.add(1,o))t?e.push(a.format(this.dateFormat)):e.push(a.format(r));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var o=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var o='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var r=this.getProjectLang(e);o+=" lang="+r+' dir="'+(this.config.rtlLangs.includes(r)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})}(),r}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|") -;return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var r=this.$dateRangeSelector.remove();$(".date-selector").append(r)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:r,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[r,r],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(r)?moment().startOf("week"):r],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:r;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org", -fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r);if(r-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +;return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var r=this.$dateRangeSelector.remove();$(".date-selector").append(r)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:r,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[r,r],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(r)?moment().startOf("week"):r],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:r;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org", +fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r);if(r-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/metaviews/rev-manifest.json b/public_html/metaviews/rev-manifest.json index 02c48b41..bfb0b87f 100644 --- a/public_html/metaviews/rev-manifest.json +++ b/public_html/metaviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-bf52187b10.css", - "application.js": "application-56505f4d2d.js" + "application.js": "application-479260353a.js" } \ No newline at end of file diff --git a/public_html/pageviews/application-0bfca1c018.js b/public_html/pageviews/application-2a143002fc.js similarity index 95% rename from public_html/pageviews/application-0bfca1c018.js rename to public_html/pageviews/application-2a143002fc.js index 27e68f30..f6464543 100644 --- a/public_html/pageviews/application-0bfca1c018.js +++ b/public_html/pageviews/application-2a143002fc.js @@ -15,4 +15,5 @@ notify:function(t,e){var i,n,a=this._plugins,o=a.length;for(i=0;o>i;++i)if(n=a[i ;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),k=e.fontString(g,m,v),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=k,n=0;nw&&(w=t.x+o,r=n),t.x-ox?t.x+a>w&&(w=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;y--){if(r.display){var w=t.getPointPosition(y,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,f+5),D=l(s.fontColor,i.defaultFontColor);c.font=k,c.fillStyle=D;var x=t.pointLabels,_=this.getIndexAngle(y)+Math.PI/2,C=360*_/(2*Math.PI)%360;c.textAlign=0===C||180===C?"center":180>C?"left":"right",c.textBaseline=90===C||270===C?"middle":C>270||90>C?"bottom":"top",c.fillText(x[y]?x[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=k),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t10?this.massviewsRedirectWithPagePile(e.pages).then(i):(this.setInitialChartType(e.pages.length),i(e.pages)):this.getDefaultPages().done(function(e){t.setInitialChartType(e.length),i(e)}).fail(function(){t.resetView(),t.setInitialChartType(),t.focusSelect2()})}},{key:"getDefaultPages",value:function(){var t=this,e=$.Deferred(),i=function(){t.fetchSiteInfo(t.project).done(function(i){e.resolve([i[t.project].general.mainpage])}).fail(e.reject)};if("en.wikipedia"===this.project)e.resolve(["Cat","Dog"]);else if(this.project.includes("wikipedia")){$.getJSON("https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Cat|Dog&props=sitelinks/urls|datatype&format=json&callback=?").done(function(n){if(n.error)return e.resolve();var a=Object.keys(d).find(function(e){return d[e]===t.project+".org"}),o=Object.keys(n.entities).map(function(t){return n.entities[t].sitelinks[a]?n.entities[t].sitelinks[a].title:null}).filter(Boolean);if(!o.length)return i();e.resolve(o)})}else i();return e}},{key:"processSearchResults",value:function(t){var e=t?t.query:{},i=[];return e?("autocomplete"===this.autocomplete?e.prefixsearch.length&&(i=e.prefixsearch.map(function(t){return{id:t.title.score(),text:t.title}})):"autocomplete_redirects"===this.autocomplete&&(e.redirects&&(i=e.redirects.map(function(t){return{id:t.from.score(),text:t.from}})),Object.keys(e.pages).forEach(function(t){var n=e.pages[t];i.push({id:n.title.score(),text:n.title})})),{results:i}):{results:i}}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val(),redirects:this.includeRedirects()?"1":"0"};if(this.specialRange&&t)e.range=this.specialRange.range;else{var i=this.getDates(!0),n=r(i,2);e.start=n[0],e.end=n[1]}return this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"pages")}},{key:"setupSelect2",value:function(){var t=this,i={ajax:this.getArticleSelectorAjax(),tags:"no_autocomplete"===this.autocomplete,placeholder:$.i18n("article-placeholder"),maximumSelectionLength:10,minimumInputLength:1};l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupSelect2",this).call(this,i),this.$select2Input.off("select2:open").on("select2:open",function(e){$(e.target).val()&&10===$(e.target).val().length&&$(".select2-search__field").one("keyup",function(){var e=$.i18n("massviews-notice",10,""+$.i18n("massviews")+"");t.toastInfo(e)})})}},{key:"getArticleSelectorAjax",value:function(){var t=this;return"no_autocomplete"!==this.autocomplete?{url:"https://"+this.project+".org/w/api.php",dataType:"jsonp",delay:200,jsonpCallback:"articleSuggestionCallback",data:function(e){return t.getSearchParams(e.term)},processResults:this.processSearchResults.bind(this),cache:!0}:null}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),this.$outputList.html(""),$(".single-entity-ranking").html(""),$(".single-page-stats").html(""),$(".single-page-legend").html("")}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.focusSelect2())}},{key:"setupListeners",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),this.$platformSelector.add(this.$agentSelector).add(this.$redirectsCheckbox).on("change",this.processInput.bind(this))}},{key:"consolidateRedirectData",value:function(t,e){var i=this,n=Object.keys(t);if(!this.includeRedirects()||!n.length||!e.entities.length)return e;var a={entities:n,labels:e.labels,datasets:new Array(n.length),errors:e.errors,fatalErrors:e.fatalErrors,promises:e.promises},o=this.getDateHeadings(!1),r=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD";return Object.keys(t).forEach(function(n,s){t[n].map(function(t){return t.title}).forEach(function(t){var n=e.entities.indexOf(t);-1!==n&&e.datasets[n].map(function(e){var n=moment(e.timestamp,i.config.timestampFormat).format(r),l=o.indexOf(n),c=a.datasets[s]&&a.datasets[s][l]?a.datasets[s][l].views:0;e.article=t,e.views=e.views+c,a.datasets[s]=a.datasets[s]||new Array(o.length),a.datasets[s][l]=e})})}),a}},{key:"processInput",value:function(t,e){var i=this,n=this.beforeProcessInput(t);if(n){var a=function(t){i.getRedirects(t).done(function(e){Object.keys(e).forEach(function(i){t=t.concat(e[i].map(function(t){return t.title}))}),i.getPageViewsData(t.unique()).done(function(t){i.updateChart(i.consolidateRedirectData(e,t))})})};e?(this.removeEntity(e),this.getEditData(Object.keys(this.entityInfo.entities)).done(function(t){Object.assign(i.entityInfo.totals,t.totals),i.updateChart()})):this.initialQuery?(a(n),this.initialQuery=!1):this.getPageAndEditInfo(n.map(function(t){return encodeURIComponent(t)})).then(function(){a(n)})}}},{key:"showSingleEntityLegend",value:function(){var t=this,e=this.outputData[0],i=this.getTopviewsMonth(!1),n=i.format("YYYY")+"/"+i.format("MM")+"/all-days";$.ajax({url:"https://wikimedia.org/api/rest_v1/metrics/pageviews/top/"+this.project+"/"+this.$platformSelector.val()+"/"+n,dataType:"json"}).done(function(n){var a=n.items[0].articles.find(function(t){return t.article===e.label.score()});if(a){var o=t.daterangepicker.locale.monthNames[i.month()],r=""+$.i18n("most-viewed-pages").toLowerCase()+"";$(".single-entity-ranking").html($.i18n("most-viewed-rank",a.rank,r,o+" "+i.year()))}}).always(function(){$(".table-view").hide(),$(".single-page-stats").html("\n "+t.getPageLink(e.label)+"\n "+(e.assessment?"·\n"+t.getAssessmentBadge(e):"")+"\n ·\n \n "+t.$dateRangeSelector.val()+"\n \n ·\n "+$.i18n("num-pageviews",t.formatNumber(e.sum),e.sum)+"\n \n "),$(".single-page-legend").html(t.config.templates.chartLegend(t))})}},{key:"updateTable",value:function(){var t=this,e=this.beforeUpdateTable();if(e){$.isNumeric(this.outputData[0].num_edits)||$(".legend-block--revisions .legend-block--body").html(""+$.i18n("data-unavailable")+"");var i=!1,n=!1;e.forEach(function(e){e.protection!==$.i18n("none").toLowerCase()&&(i=!0),e.assessment&&e.assessment.length&&(n=!0),t.$outputList.append(t.config.templates.tableRow(t,e))});var a=e.reduce(function(t,e){return t+e.sum},0),o=e.filter(function(t){return"none"!==t.protection}).length,r={label:$.i18n("num-pages",this.formatNumber(e.length),e.length),sum:a,average:Math.round(a/e[0].data.filter(function(t){return null!==t}).length),num_edits:this.entityInfo.totals?this.entityInfo.totals.num_edits:null,num_users:this.entityInfo.totals?this.entityInfo.totals.num_users:null,length:e.reduce(function(t,e){return t+e.length},0),protection:$.i18n("num-protections",this.formatNumber(o),o),watchers:e.reduce(function(t,e){return t+e.watchers||0},0)};this.$outputList.append(this.config.templates.tableRow(this,r,!0)),$(".table-view--protection").toggle(i),$(".table-view--class").toggle(n),$(".table-view").show()}}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"class":return t.assessment;case"views":return Number(t.sum);case"average":return Number(t.average);case"edits":return Number(t.num_edits);case"editors":return Number(t.num_users);case"size":return Number(t.length);case"watchers":return Number(t.watchers)}}},{key:"getPageAndEditInfo",value:function(t){var e=this,i=$.Deferred();return this.getPageInfo(t).done(function(t){for(var n in t)t[n].missing&&!t[n].known&&(e.writeMessage(e.getPageLink(n)+": "+$.i18n("api-error-no-data")),delete t[n]);e.entityInfo={entities:t};var a=Object.keys(t);if(!a.length)return i.resolve(e.entityInfo);e.getEditData(a).done(function(t){a.forEach(function(i){var n=t.pages[i]||{},a=e.entityInfo.entities[i].protection||[];Array.isArray(a)&&(a=a.find(function(t){return"edit"===t.type})),n.protection=a?a.level:$.i18n("none").toLowerCase(),Object.assign(e.entityInfo.entities[i],n)}),e.entityInfo.totals=t.totals,i.resolve(e.entityInfo)}).fail(function(){i.resolve(e.entityInfo)})}).fail(function(){i.resolve({})}),i}},{key:"massviewsRedirectWithPagePile",value:function(t){var e=this,i=$.Deferred();return $.ajax({url:"https://pagepile.wmflabs.org/api.php",data:{action:"create_pile_with_data",wiki:this.dbName(this.project),data:t.join("\n")}}).success(function(t){var i=e.getParams();delete i.project,document.location="/massviews?overflow=1&"+$.param(i)+"&source=pagepile&target="+t.pile.id}).fail(function(){e.toastError($.i18n("auto-pagepile-error","PagePile",10)),i.resolve(t.slice(0,10))}),i}}]),e}(mix(u).with(h));$(function(){new p})},{"../shared/chart_helpers":4,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var a=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o={chartLegend:function(t){var e=function(e){var i,o,r,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=void 0;if(s)l=t.formatNumber(e.num_edits);else{var c=t.getDates(),u=a(c,2),d=u[1] ;l=t.getHistoryLink(e.label,t.formatNumber(e.num_edits),t.isMonthly()?d.endOf("month"):d,e.num_edits)}var h=$.i18n("basic-information"),p=n({},$.i18n("pageviews"),t.formatNumber(e.sum));t.shouldBeLogarithmic(t.outputData.map(function(t){return t.data}))&&(p[$.i18n("median")]=t.formatNumber(e.median)),p[$.i18n($("#date-type-select").val()+"-average")]=t.formatNumber(e.average);var f=(r={},n(r,$.i18n("pageviews"),p),n(r,$.i18n("revisions"),(i={},n(i,$.i18n("edits"),l),n(i,$.i18n("editors"),t.formatNumber(e.num_users)),i)),n(r,h,(o={},n(o,$.i18n("watchers"),e.watchers?t.formatNumber(e.watchers):$.i18n("unknown")),n(o,$.i18n("size"),e.length?t.formatNumber(e.length):""),o)),r);if(!s){var g,m=e.assessment?t.getAssessmentBadge(e)+" "+e.assessment.upcase():"";Object.assign(f[h],(g={},n(g,$.i18n("protection"),e.protection),n(g,$.i18n("class"),m),g))}var v="";for(var k in f){v+="
\n
"+k+"

\n
";for(var y in f[k]){var w=f[k][y];w&&(v+='\n
\n '+y+":\n \n "+w+"\n \n
")}v+="
"}return s||(v+='\n "),v};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o=new Array(t.outputData[0].data.length).fill(0);return t.outputData.forEach(function(t){t.data.forEach(function(t,e){o[e]+=t})}),e({sum:i,median:t.getMedian(o),average:Math.round(i/t.outputData[0].data.filter(function(t){return null!==t}).length),num_edits:t.entityInfo.totals?t.entityInfo.totals.num_edits:null,num_users:t.entityInfo.totals?t.entityInfo.totals.num_users:null,watchers:t.outputData.reduce(function(t,e){return t+e.watchers||0},0),length:t.outputData.reduce(function(t,e){return t+e.length},0)},!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("all-languages")+'\n •\n '+$.i18n("redirects")+"\n ",r=$.isNumeric(e.num_users)?t.formatNumber(e.num_users):"?",s=void 0;if($.isNumeric(e.num_edits)){s=i?t.formatNumber(e.num_edits):function(){var i=t.getDates(),n=a(i,2),o=n[1];return t.getHistoryLink(e.label,t.formatNumber(e.num_edits),t.isMonthly()?o.endOf("month"):o,e.num_edits)}()}else s="?";return $(".table-view--average .col-heading").text($.i18n($("#date-type-select").val()+"-average")),"\n \n <"+n+" class='table-view--color-col'>\n \n \n <"+n+" class='table-view--title'>"+(i?e.label:t.getPageLink(e.label))+"\n <"+n+" class='table-view--class'>"+t.getAssessmentBadge(e)+"\n <"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+"\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+"\n <"+n+" class='table-view-edits table-view--edit-data'>"+s+"\n <"+n+" class='table-view-editors table-view--edit-data'>"+r+"\n <"+n+" class='table-view--size'>"+(e.length?t.formatNumber(e.length):"?")+"\n <"+n+" class='table-view--protection'>"+e.protection+"\n <"+n+" class='table-view--watchers'>"+(e.watchers?t.formatNumber(e.watchers):$.i18n("unknown"))+"\n <"+n+">"+o+"\n \n "}};e.exports=o},{}],4:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),a=t.getSortProperty(i,t.sort);return na?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var a=t.chart,o=i(a.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=a.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,a){o.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[a]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.n(i.data[a]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?o(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10 ;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var o=this.$dateRangeSelector.remove();$(".date-selector").append(o)}this.$dateRangeSelector.daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":5,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD", -"quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +"quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}}) +;Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/pageviews/rev-manifest.json b/public_html/pageviews/rev-manifest.json index 306f2b4c..1db1bfac 100644 --- a/public_html/pageviews/rev-manifest.json +++ b/public_html/pageviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-a01dec23b5.css", - "application.js": "application-0bfca1c018.js" + "application.js": "application-2a143002fc.js" } \ No newline at end of file diff --git a/public_html/redirectviews/application-fa62488fdf.js b/public_html/redirectviews/application-3eb41a5f33.js similarity index 94% rename from public_html/redirectviews/application-fa62488fdf.js rename to public_html/redirectviews/application-3eb41a5f33.js index f05ae9bf..85f7cd35 100644 --- a/public_html/redirectviews/application-fa62488fdf.js +++ b/public_html/redirectviews/application-3eb41a5f33.js @@ -12,5 +12,5 @@ a.numberOfLabelLines=function(t){var e=1;return a.each(t,function(t){a.isArray(t d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=a.length;u>c;++c)i.fillText(a[c],t.x,t.y),t.y+=r+s,c+1===a.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var a=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(a,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+r};o.each(e.beforeBody,d);var h=s.length>1;u=h?a+2:0,o.each(s,function(r,s){o.each(r.before,d),o.each(r.lines,function(r){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,a,a),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,a,a),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=c),d(r)}),o.each(r.after,d)}),u=0,o.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var a=e.footer;if(a.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=o.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(a,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=o.color(e.backgroundColor);t.fillStyle=r.alpha(a*r.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;s>a;)a+=2*Math.PI;var c=a>=s&&l>=a,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,f=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(f+=h/2),o.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),o=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),a=o/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=a/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)s=a(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==o.min?o.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==o.max?o.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+a,r=n),t.x-aD?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,M=360*C/(2*Math.PI)%360;c.textAlign=0===M||180===M?"center":180>M?"left":"right",c.textBaseline=90===M||270===M?"middle":M>270||90>M?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+o*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,f=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,f.steps[p]);break}break}if(!1===f.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=v),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=k.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},defaults:{dateRange:"latest-20",sort:"views",direction:1,outputData:[],hadFailure:!1,total:0,view:"list"},linearLegend:function(t,e){var i=e.outputData.listData.length-1;return""+$.i18n("totals")+":\n "+$.i18n("num-redirects",(void 0).formatNumber(i),i)+"\n •\n "+$.i18n("num-pageviews",e.formatNumber(e.outputData.sum),e.outputData.sum)+"\n ("+e.formatNumber(Math.round(e.outputData.average))+"/"+$.i18n("day")+")"},formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","section"],view:["list","chart"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.page=this.$sourceInput.val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"page",t)}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=t.outputData.titles.length-1;$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n("num-redirects",t.formatNumber(i),i)+"\n "+$.i18n("num-sections",t.formatNumber(t.outputData.sectionCount),t.outputData.sectionCount)+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+""),$("#output_list").html(""),e.forEach(function(e,i){var n=e.label===t.outputData.source,o="";e.section&&(o=t.getPageLink(t.outputData.source,t.project,"#"+e.section,e.section)),$("#output_list").append("\n "+(i+1)+"\n \n "+t.getPageLink(e.label,t.project+".org")+"\n "+(n?"("+$.i18n("target")+")":"")+"\n \n "+o+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"section":return t.section;case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),o=$.Deferred(),a=[],r=0,s={},l=t.length,c=[],u=[],d=function t(d){var h=encodeURIComponent(d.title),f="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+e.project+"/"+e.$platformSelector.val()+"/"+e.$agentSelector.val()+"/"+h+"/daily/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat),p=$.ajax({url:f,dataType:"json"});a.push(p),p.done(function(t){u.push({title:d.title,section:d.fragment,items:t.items})}).fail(function(i){var n=i.responseJSON&&i.responseJSON.title?i.responseJSON.title:$.i18n("unknown"),o="Error in Cassandra table storage backend"===n,a=e.getPageLink(d.title,e.project+".org");if(o){if(s[d.title]?s[d.title]++:s[d.title]=1,s[d.title]<3)return l++,e.rateLimit(t,e.config.apiThrottle,e)(d);c.push(a)}else e.writeMessage(a+": "+$.i18n("api-error","Pageviews API")+" - "+n);404!==i.status&&(e.hadFailure=!0)}).always(function(){e.updateProgressBar(++r,l),r===l&&(c.length&&e.writeMessage($.i18n("api-error-timeout","
    "+c.map(function(t){return"
  • "+t+"
  • "}).join("")+"
")),o.resolve(u))})},h=this.rateLimit(d,this.config.apiThrottle,this);return t.forEach(function(t){h(t)}),o}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString("pages"));this.$projectInput.val(e.project),this.validateDateRange(e),$(".site-notice .alert-danger").length&&delete e.page,this.$platformSelector.val(e.platform),this.$agentSelector.val(e.agent),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.page?this.getPageInfo([e.page]).done(function(e){var i=Object.keys(e)[0];if(e[i].missing)return t.setState("initial"),t.writeMessage(t.getPageLink(i)+": "+$.i18n("api-error-no-data"));t.$sourceInput.val(i),t.processInput()}).fail(function(){t.writeMessage($.i18n("api-error-unknown","Info"))}):this.$sourceInput.focus()}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),this.$sourceInput.val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"processInput",value:function(){var t=this;this.patchUsage();var e=this.$sourceInput.val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html(t.$dateRangeSelector.val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);$(".progress-counter").text($.i18n("fetching-data","Redirects API")),this.getRedirects(e).done(function(n){t.getPageViewsData(n[e.descore()]).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var o=t.getPageLink(e,t.project);setTimeout(function(){t.buildMotherDataset(e,o,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),this.$sourceInput.typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"opensearch",redirects:"resolve",format:"json",search:t}},preProcess:function(t){return t[1]}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return this.$sourceInput.data("typeahead")}}]),e}(mix(d).with(h,f));$(function(){new p})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,o=void 0,a=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return o=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[o],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(a),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===a&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},o=n(t,e),a=l(o,2);t=a[0],e=a[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),o=e[0],a=e[1];i.daterangepicker.startDate=moment(o).startOf("month"),i.daterangepicker.setEndDate(moment(a).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var o=t.chart,a=i(o.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=o.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,o){a.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[o]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;a.fillText(e.n(i.data[o]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;io?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var o=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(o).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);this.$logarithmicCheckbox.prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var o=this.$chart[0].getContext("2d");this.chartObj=new Chart(o,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".another-query").on("click",function(){t.setState("initial"),t.pushParams(!0)}),$(".view-btn").on("click",function(e){document.activeElement.blur(),t.view=e.currentTarget.dataset.value,t.toggleView(t.view)}),$("#pv_form").on("submit",function(e){e.preventDefault(),t.processInput()})}},{key:"$sourceInput",get:function(){return this.cachedElement("#source-input")}}]),e}(t)};e.exports=l},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),a(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?a(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+e+i>t;){var a=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();a.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(a),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",a=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,o))t?e.push(r.format(this.dateFormat)):e.push(r.format(a));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var o=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var o='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var a=this.getProjectLang(e);o+=" lang="+a+' dir="'+(this.config.rtlLangs.includes(a)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})}(),a}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var a=this.$dateRangeSelector.remove();$(".date-selector").append(a)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,"")) -;var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:a,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[a,a],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(a)?moment().startOf("week"):a],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:a;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org", -pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file +;var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:a,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[a,a],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(a)?moment().startOf("week"):a],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:a;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org", +pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]); \ No newline at end of file diff --git a/public_html/redirectviews/rev-manifest.json b/public_html/redirectviews/rev-manifest.json index dbfe8bdf..e8c893f6 100644 --- a/public_html/redirectviews/rev-manifest.json +++ b/public_html/redirectviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-61d0734b02.css", - "application.js": "application-fa62488fdf.js" + "application.js": "application-3eb41a5f33.js" } \ No newline at end of file diff --git a/public_html/siteviews/application-1f97e9f355.js b/public_html/siteviews/application-edc24cb051.js similarity index 92% rename from public_html/siteviews/application-1f97e9f355.js rename to public_html/siteviews/application-edc24cb051.js index a5d6bba8..59100f8d 100644 --- a/public_html/siteviews/application-1f97e9f355.js +++ b/public_html/siteviews/application-edc24cb051.js @@ -14,5 +14,5 @@ a.borderWidth=o.borderWidth?o.borderWidth:e.getValueAtIndexOrDefault(i.borderWid notify:function(t,e){var i,n,o=this._plugins,a=o.length;for(i=0;a>i;++i)if(n=o[i],"function"==typeof n[t]&&!1===n[t].apply(n,e||[]))return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=i,o.margins=e.extend({left:0,right:0,top:0,bottom:0},n),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,o=t.defaults.global,a=i.options.ticks,r=e.getValueOrDefault(a.fontSize,o.defaultFontSize),s=e.getValueOrDefault(a.fontStyle,o.defaultFontStyle),l=e.getValueOrDefault(a.fontFamily,o.defaultFontFamily),c=e.fontString(r,s,l);n.font=c;var u,d=n.measureText(i.ticks[0]).width,h=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=a.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=h/2+3,i.paddingLeft=d/2+3,i.longestTextCache||(i.longestTextCache={});for(var p,f,g=e.longestText(n,c,i.ticks,i.longestTextCache),m=g,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>v&&i.labelRotationi.yLabelWidth&&(i.paddingLeft=u+r/2),i.paddingRight=r/2,f*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=p*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,a=t.defaults.global,r=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(r.fontSize,a.defaultFontSize),h=e.getValueOrDefault(r.fontStyle,a.defaultFontStyle),p=e.getValueOrDefault(r.fontFamily,a.defaultFontFamily),f=e.fontString(d,h,p),g=e.getValueOrDefault(s.fontSize,a.defaultFontSize),m=o.gridLines.tickMarkLength;if(n.width=u?i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:c&&l.drawTicks?m:0,n.height=u?c&&l.drawTicks?m:0:i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),r.display&&c){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),k=e.numberOfLabelLines(i.ticks),y=.5*d;if(u){i.longestLabelWidth=v;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*k+y*k;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,D=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,x=Math.cos(e.toRadians(i.labelRotation)),_=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?x*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?_*(d/2)+3:D/2+3}else{var C=i.maxWidth-n.width;r.mirror?v=0:v+=i.options.ticks.padding,C>v?n.width+=v:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||void 0===t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),a=o*t+i.paddingLeft;e&&(a+=o/2);var r=i.left+Math.round(a);return r+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var a,r,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,p=c.autoSkip,f=n.isHorizontal();c.maxTicksLimit&&(r=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),v=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),k=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=e.fontString(m,v,k),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),D=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),x=e.getValueOrDefault(d.fontColor,l.defaultFontColor),_=e.getValueOrDefault(d.fontSize,l.defaultFontSize),C=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),S=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),M=e.fontString(_,C,S),T=e.toRadians(n.labelRotation),Y=Math.cos(T),A=n.longestLabelWidth*Y;s.fillStyle=g;var $=[];if(f){if(a=!1,h&&(A/=2),(A+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(a=1+Math.floor((A+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),r&&n.ticks.length>r)for(;!a||n.ticks.length/(a||1)>r;)a||(a=1),a+=1;p||(a=!1)}var O="right"===o.position?n.left:n.right-w,P="right"===o.position?n.left+w:n.right,I="bottom"===o.position?n.top:n.bottom-w,E="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,r){if(void 0!==t&&null!==t){var s=n.ticks.length===r+1;if((!(a>1&&r%a>0||r%a==0&&r+a>=n.ticks.length)||s)&&void 0!==t&&null!==t){var l,d;r===(void 0!==n.zeroLineIndex?n.zeroLineIndex:0)?(l=u.zeroLineWidth,d=u.zeroLineColor):(l=e.getValueAtIndexOrDefault(u.lineWidth,r),d=e.getValueAtIndexOrDefault(u.color,r));var p,g,m,v,k,y,x,_,C,S,M="middle",Y="middle";if(f){h||(Y="top"===o.position?"bottom":"top"),M=h?"right":"center";var A=n.getPixelForTick(r)+e.aliasPixel(l);C=n.getPixelForTick(r,u.offsetGridLines)+c.labelOffset,S=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,p=m=k=x=A,g=I,v=E,y=i.top,_=i.bottom}else{"left"===o.position?c.mirror?(C=n.right+c.padding,M="left"):(C=n.right-c.padding,M="right"):c.mirror?(C=n.left-c.padding,M="right"):(C=n.left+c.padding,M="left");var L=n.getPixelForTick(r);L+=e.aliasPixel(l),S=n.getPixelForTick(r,u.offsetGridLines),p=O,m=P,k=i.left,x=i.right,g=v=y=_=L}$.push({tx1:p,ty1:g,tx2:m,ty2:v,x1:k,y1:y,x2:x,y2:_,labelX:C,labelY:S,glWidth:l,glColor:d,glBorderDash:b,glBorderDashOffset:D,rotation:-1*T,label:t,textBaseline:Y,textAlign:M})}}}),e.each($,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var a=t[e];if(a&&a.hasValue()){var r=a.tooltipPosition();n.push(r.x),o.push(r.y)}}var s=0,l=0;for(e=0;e0){var a=t[0];a.xLabel?i=a.xLabel:o>0&&a.indexe;++e)f.push(n(c[e]));s.itemSort&&(f=f.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(f,function(t){h.push(s.callbacks.labelColor.call(r,t,d))}),o.extend(l,{title:r.getTitle(f,u),beforeBody:r.getBeforeBody(f,u),body:r.getBody(f,u),afterBody:r.getAfterBody(f,u),footer:r.getFooter(f,u),x:Math.round(p.x),y:Math.round(p.y),caretPadding:o.getValueOrDefault(p.padding,2),labelColors:h});var g=r.getTooltipSize(l);r.determineAlignment(g),o.extend(l,r.getBackgroundPoint(l,g))}else r._model.opacity=0;return t&&s.custom&&s.custom.call(r,l),r},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,a=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=r*l,i.height+=(r-1)*t.titleSpacing,i.height+=r?t.titleMarginBottom:0,i.height+=a*c,i.height+=a?(a-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var a,r,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(a=function(t){return u>=t},r=function(t){return t>u}):(a=function(e){return e<=t.width/2},r=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},a(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):r(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,a=t.cornerRadius,r=t.xAlign,s=t.yAlign,l=n+o,c=a+o;return"right"===r?i.x-=e.width:"center"===r&&(i.x-=e.width/2),"top"===s?i.y+=l:i.y-="bottom"===s?e.height+l:e.height/2,"center"===s?"left"===r?i.x+=l:"right"===r&&(i.x-=l):"left"===r?i.x-=c:"right"===r&&(i.x+=c),i},drawCaret:function(t,e,i){var n,a,r,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,p=u.cornerRadius,f=u.xAlign,g=u.yAlign,m=t.x,v=t.y,k=e.width,y=e.height;"center"===g?("left"===f?(n=m,a=n-h,r=n):(n=m+k,a=n+h,r=n),l=v+y/2,s=l-h,c=l+h):("left"===f?(n=m+p,a=n+h,r=a+h):"right"===f?(n=m+k-p,a=n-h,r=a-h):(a=m+k/2,n=a-h,r=a+h),"top"===g?(s=v,l=s-h,c=s):(s=v+y,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(a,l),d.lineTo(r,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=a.length;u>c;++c)i.fillText(a[c],t.x,t.y),t.y+=r+s,c+1===a.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var a=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(a,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+r};o.each(e.beforeBody,d);var h=s.length>1;u=h?a+2:0,o.each(s,function(r,s){o.each(r.before,d),o.each(r.lines,function(r){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,a,a),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,a,a),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=c),d(r)}),o.each(r.after,d)}),u=0,o.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var a=e.footer;if(a.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=o.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(a,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=o.color(e.backgroundColor);t.fillStyle=r.alpha(a*r.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;s>a;)a+=2*Math.PI;var c=a>=s&&l>=a,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),o=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),a=o/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=a/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop ;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0)s=a(o.fixedStepSize,o.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==o.min?o.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==o.max?o.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),k=e.fontString(g,m,v),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=k,n=0;nw&&(w=t.x+a,r=n),t.x-ax?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;y--){if(r.display){var w=t.getPointPosition(y,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,f+5),D=l(s.fontColor,i.defaultFontColor);c.font=k,c.fillStyle=D;var x=t.pointLabels,_=this.getIndexAngle(y)+Math.PI/2,C=360*_/(2*Math.PI)%360;c.textAlign=0===C||180===C?"center":180>C?"left":"right",c.textBaseline=90===C||270===C?"middle":C>270||90>C?"bottom":"top",c.fillText(x[y]?x[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+o*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,p=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,p.steps[f]);break}break}if(!1===p.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=k),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=v.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,o=void 0,a=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return o=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[o],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(a),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),p="pageviews";e.isUniqueDevices()?p="unique-devices":e.isPagecounts()&&(p="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",p.upcase()+" API")+" - "+n)}}).always(function(){++n===a&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
    "+r.map(function(t){return"
  • "+e.getPageLink(t,e.project.escape())+"
  • "}).join("")+"
")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},o=n(t,e),a=l(o,2);t=a[0],e=a[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),o=e[0],a=e[1];i.daterangepicker.startDate=moment(o).startOf("month"),i.daterangepicker.setEndDate(moment(a).endOf("month"))} ;$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var o=t.chart,a=i(o.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=o.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,o){a.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[o]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;a.fillText(e.n(i.data[o]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":7}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!

\n

To use the staging app, append debug=true to the URL

\n

Otherwise, please update your links to use\n https://"+location.host+s+"\n

\n

\n Redirecting you to the production "+document.title+" in\n 10...\n

\n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),a(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?a(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+e+i>t;){var a=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();a.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(a),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",a=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,o))t?e.push(r.format(this.dateFormat)):e.push(r.format(a));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var o=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var o='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var a=this.getProjectLang(e);o+=" lang="+a+' dir="'+(this.config.rtlLangs.includes(a)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})}(),a}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var a=this.$dateRangeSelector.remove();$(".date-selector").append(a)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace" -;console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":2,"./polyfills":3,"./pv_config":5,"./site_map":6}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:a,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[a,a],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(a)?moment().startOf("week"):a],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:a;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":6}],6:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org", -mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],7:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],8:[function(t,e,i){"use strict";var n=t("./templates"),o={chartLegend:n.chartLegend,defaults:{dateRange:"latest-20",projects:["fr.wikipedia.org","de.wikipedia.org"],source:"pageviews"},select2Input:".aqs-select2-selector",templates:n,validateParams:["source","agent","platform"],validParams:{source:["pageviews","unique-devices","pagecounts"]}};e.exports=o},{"./templates":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i10&&(t.sites=t.sites.slice(0,10)):t.sites=this.config.defaults.projects,$("#all-projects").prop("checked","all-projects"===t.sites[0]),this.setInitialChartType(t.sites.length),this.isAllProjects()?($(".site-selector").addClass("disabled"),this.processInput()):this.setSelect2Defaults(t.sites)}},{key:"getSiteStats",value:function(t){var e=this,i=$.Deferred(),n=0;if(this.isAllProjects())return i.resolve();var o=function(){++n===t.length&&i.resolve(e.entityInfo)};return t.forEach(function(t){if(e.entityInfo.entities[t])return o();$.ajax({url:"https://"+t+"/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"statistics",format:"json"},dataType:"jsonp"}).done(function(i){e.entityInfo.entities[t]=i.query.statistics}).always(o)}),i}},{key:"isAllProjects",value:function(){return"1"===$(".all-projects-radio:checked").val()&&this.isPageviews()}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={platform:this.$platformSelector.val(),source:this.$dataSourceSelector.val()};if(this.isPageviews()&&(e.agent=this.$agentSelector.val()),this.specialRange&&t)e.range=this.specialRange.range;else{var i=this.getDates(!0),n=r(i,2);e.start=n[0],e.end=n[1]}return this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"sites")}},{key:"setupSelect2",value:function(){var t={ajax:{transport:function(t,e){e({results:d.filter(function(e){return e.startsWith(t.data.q)}).slice(0,10)})},processResults:function(t){return{results:t.results.map(function(t){return{id:t,text:t}})}}},placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:10,minimumInputLength:1};l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupSelect2",this).call(this,t)}},{key:"setPlatformOptionValues",value:function(){var t=this;this.$platformSelector.find("option").each(function(e,i){$(i).prop("value",t.isPageviews()?$(i).data("value"):$(i).data("ud-value"))})}},{key:"setupDataSourceSelector",value:function(){var t=this;this.setPlatformOptionValues(),this.$dataSourceSelector.on("change",function(){var e=t.$platformSelector.val()||"",i=e.includes("mobile"),n=!!t.params&&t.params.includes("pagecounts");t.isPageviews()?($(".site-selector").toggleClass("disabled",$("#all-projects").is(":checked")),$(".all-projects-selector").show(),$(".platform-select--mobile-web, .platform-select--mobile-app").show(),$(".platform-select--mobile").hide(),t.$agentSelector.prop("disabled",!1)):($(".site-selector").removeClass("disabled"),$(".all-projects-selector").hide(),$(".platform-select--mobile-web, .platform-select--mobile-app").hide(),$(".platform-select--mobile").show(),t.$agentSelector.val("user").prop("disabled",!0)),t.setPlatformOptionValues(),i&&!t.isPageviews()?t.$platformSelector.val("mobile-site"):i&&t.isPageviews()&&t.$platformSelector.val("mobile-web"),t.isPagecounts()||n?(t.setupDateRangeSelector(),t.setupMonthSelector()):t.processInput()})}},{key:"setupListeners",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$.merge(this.$platformSelector,this.$agentSelector).on("change",this.processInput.bind(this)),$(".all-projects-radio").on("change",function(e){if($(".site-selector").toggleClass("disabled","1"===e.target.value),"0"===e.target.value&&!t.getEntities())return t.resetView(),t.setSelect2Defaults(c.defaults.projects);t.processInput()})}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),this.$outputList.html(""),$(".single-entity-ranking").html(""),$(".single-site-stats").html(""),$(".single-site-legend").html(""),$(".site-selector").removeClass("disabled")}},{key:"getEntities",value:function(){return this.isAllProjects()?["all-projects"]:l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getEntities",this).call(this)}},{key:"processInput",value:function(t,e){var i=this,n=this.beforeProcessInput(t);n&&(e?(this.removeEntity(e),this.updateChart()):this.getSiteStats(n).then(function(){i.getPageViewsData(n).done(function(t){return i.updateChart(t)})}))}},{key:"updateTable",value:function(){var t=this,e=this.beforeUpdateTable();if(e){e.forEach(function(e){t.$outputList.append(t.config.templates.tableRow(t,e))});var i=e.reduce(function(t,e){return t+e.sum},0),n={label:$.i18n("num-projects",this.formatNumber(e.length),e.length),sum:i,average:Math.round(i/e[0].data.filter(function(t){return null!==t}).length)};["pages","articles","edits","images","users","activeusers","admins"].forEach(function(t){n[t]=e.reduce(function(e,i){return e+i[t]},0)}),this.$outputList.append(this.config.templates.tableRow(this,n,!0)),$(".table-view").show()}}},{key:"getSortProperty",value:function(t,e){return"active-users"===e?Number(t.activeusers):"label"===e?t.label:Number(t[e])}},{key:"getSiteLink",value:function(t){return this.isAllProjects()?""+$.i18n("all-of-wikimedia")+"":l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getSiteLink",this).call(this,t)}},{key:"showSingleEntityLegend",value:function(){var t=this.outputData[0],e="num-pageviews";this.isUniqueDevices()?e="num-unique-devices":this.isPagecounts()&&(e="num-pagecounts"),$(".table-view").hide(),$(".single-site-stats").html("\n "+this.getSiteLink(t.label)+"\n ·\n \n "+this.$dateRangeSelector.val()+"\n \n ·\n "+$.i18n(e,this.formatNumber(t.sum),t.sum)+"\n \n "),$(".single-site-legend").html(this.config.templates.chartLegend(this))}},{key:"validateParams",value:function(t){return["unique-devices","pagecounts"].includes(t.source)&&(this.config.validParams.platform=["all-sites","desktop-site","mobile-site"],this.config.defaults.platform="all-sites",t.agent="user"),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateParams",this).call(this,t)}}]),e}(mix(h).with(p));$(function(){new f})},{"../shared/chart_helpers":1,"../shared/pv":4,"../shared/site_map":6,"./config":8}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e="pageviews";t.isUniqueDevices()?e="unique-devices":t.isPagecounts()&&(e="pagecounts"),e=$.i18n(e);var i=function(i){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=n({},e,{});if(t.isUniqueDevices()||(a[e][e]=t.formatNumber(i.sum)),a[e][$.i18n($("#date-type-select").val()+"-average")]=t.formatNumber(i.average),t.isAllProjects()){var r=["wikipedia","wiktionary","wikiquote","wikibooks","wikisource","wikinews","wikiversity","wikispecies","wikivoyage"],s={};t.siteDomains.forEach(function(t){var e=r.filter(function(e){return t.includes(e)});if(e[0]){var i=$.i18n(e[0]).upcase();s[i]=s[i]?s[i]+1:1}else s[$.i18n("other")]=s[$.i18n("other")]?s[$.i18n("other")]+1:1}),a[$.i18n("num-projects",t.siteDomains.length)]=s}else{var l;a[$.i18n("statistics")]=(l={},n(l,$.i18n("pages"),t.formatNumber(i.pages)),n(l,$.i18n("articles"),t.formatNumber(i.articles)),n(l,$.i18n("edits"),t.formatNumber(i.edits)),n(l,$.i18n("images"),t.formatNumber(i.images)),n(l,$.i18n("users"),t.formatNumber(i.users)),n(l,$.i18n("active-users"),t.formatNumber(i.activeusers)),n(l,$.i18n("admins"),t.formatNumber(i.admins)),l)}var c="";for(var u in a){c+="
\n
"+u+"("+$.i18n("all-time").toLowerCase()+")

\n
";for(var d in a[u]){var h=a[u][d];h&&(c+='\n
\n '+d+":\n \n "+h+"\n \n
")}c+="
"}return o||t.isAllProjects()||(c+='\n "),c};if(1===t.outputData.length)return i(t.outputData[0]);var o=t.outputData.reduce(function(t,e){return t+e.sum},0);return i({sum:o,average:Math.round(o/t.outputData[0].data.filter(function(t){return null!==t}).length),pages:t.outputData.reduce(function(t,e){return t+e.pages},0),articles:t.outputData.reduce(function(t,e){return t+e.articles},0),edits:t.outputData.reduce(function(t,e){return t+e.edits},0),images:t.outputData.reduce(function(t,e){return t+e.images},0),users:t.outputData.reduce(function(t,e){return t+e.users},0),activeusers:t.outputData.reduce(function(t,e){return t+e.activeusers},0),admins:t.outputData.reduce(function(t,e){return t+e.admins},0)},!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("most-viewed-pages")+"\n ";if(t.isUniqueDevices())$(".table-view--sum").hide();else{$(".table-view--sum").show();var a="views";t.isPagecounts()&&(a="counts"),$(".sort-link--sum .col-heading").text($.i18n(a))}var r="\n \n <"+n+" class='table-view--color-col'>\n \n \n <"+n+" class='table-view--project'>"+(i?e.label:t.getSiteLink(e.label))+"";return t.isUniqueDevices()||(r+="<"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+""),$(".table-view--average .col-heading").text($.i18n($("#date-type-select").val()+"-average")),r+="\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+"\n <"+n+" class='table-view--pages'>"+t.formatNumber(e.pages)+"\n <"+n+" class='table-view--edits'>"+t.formatNumber(e.edits)+"\n <"+n+" class='table-view--images'>"+t.formatNumber(e.images)+"\n <"+n+" class='table-view--users'>"+t.formatNumber(e.users)+"\n <"+n+" class='table-view--active-users'>"+t.formatNumber(e.activeusers)+"\n <"+n+" class='table-view--admins'>"+t.formatNumber(e.admins)+"\n <"+n+">"+o+"\n \n "}};e.exports=o},{}]},{},[9]); \ No newline at end of file +;console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];void 0===n||e.config.validParams[i].includes(o)||(o&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":2,"./polyfills":3,"./pv_config":5,"./site_map":6}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:a,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[a,a],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(a)?moment().startOf("week"):a],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:a;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return o(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],o=i.labels[e.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":6}],6:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org", +mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],7:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a);if(a-o<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],8:[function(t,e,i){"use strict";var n=t("./templates"),o={chartLegend:n.chartLegend,defaults:{dateRange:"latest-20",projects:["fr.wikipedia.org","de.wikipedia.org"],source:"pageviews"},select2Input:".aqs-select2-selector",templates:n,validateParams:["source","agent","platform"],validParams:{source:["pageviews","unique-devices","pagecounts"]}};e.exports=o},{"./templates":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i10&&(t.sites=t.sites.slice(0,10)):t.sites=this.config.defaults.projects,$("#all-projects").prop("checked","all-projects"===t.sites[0]),this.setInitialChartType(t.sites.length),this.isAllProjects()?($(".site-selector").addClass("disabled"),this.processInput()):this.setSelect2Defaults(t.sites)}},{key:"getSiteStats",value:function(t){var e=this,i=$.Deferred(),n=0;if(this.isAllProjects())return i.resolve();var o=function(){++n===t.length&&i.resolve(e.entityInfo)};return t.forEach(function(t){if(e.entityInfo.entities[t])return o();$.ajax({url:"https://"+t+"/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"statistics",format:"json"},dataType:"jsonp"}).done(function(i){e.entityInfo.entities[t]=i.query.statistics}).always(o)}),i}},{key:"isAllProjects",value:function(){return"1"===$(".all-projects-radio:checked").val()&&this.isPageviews()}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={platform:this.$platformSelector.val(),source:this.$dataSourceSelector.val()};if(this.isPageviews()&&(e.agent=this.$agentSelector.val()),this.specialRange&&t)e.range=this.specialRange.range;else{var i=this.getDates(!0),n=r(i,2);e.start=n[0],e.end=n[1]}return this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"sites")}},{key:"setupSelect2",value:function(){var t={ajax:{transport:function(t,e){e({results:d.filter(function(e){return e.startsWith(t.data.q)}).slice(0,10)})},processResults:function(t){return{results:t.results.map(function(t){return{id:t,text:t}})}}},placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:10,minimumInputLength:1};l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupSelect2",this).call(this,t)}},{key:"setPlatformOptionValues",value:function(){var t=this;this.$platformSelector.find("option").each(function(e,i){$(i).prop("value",t.isPageviews()?$(i).data("value"):$(i).data("ud-value"))})}},{key:"setupDataSourceSelector",value:function(){var t=this;this.setPlatformOptionValues(),this.$dataSourceSelector.on("change",function(){var e=t.$platformSelector.val()||"",i=e.includes("mobile"),n=!!t.params&&t.params.includes("pagecounts");t.isPageviews()?($(".site-selector").toggleClass("disabled",$("#all-projects").is(":checked")),$(".all-projects-selector").show(),$(".platform-select--mobile-web, .platform-select--mobile-app").show(),$(".platform-select--mobile").hide(),t.$agentSelector.prop("disabled",!1)):($(".site-selector").removeClass("disabled"),$(".all-projects-selector").hide(),$(".platform-select--mobile-web, .platform-select--mobile-app").hide(),$(".platform-select--mobile").show(),t.$agentSelector.val("user").prop("disabled",!0)),t.setPlatformOptionValues(),i&&!t.isPageviews()?t.$platformSelector.val("mobile-site"):i&&t.isPageviews()&&t.$platformSelector.val("mobile-web"),t.isPagecounts()||n?(t.setupDateRangeSelector(),t.setupMonthSelector()):t.processInput()})}},{key:"setupListeners",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$.merge(this.$platformSelector,this.$agentSelector).on("change",this.processInput.bind(this)),$(".all-projects-radio").on("change",function(e){if($(".site-selector").toggleClass("disabled","1"===e.target.value),"0"===e.target.value&&!t.getEntities())return t.resetView(),t.setSelect2Defaults(c.defaults.projects);t.processInput()})}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),this.$outputList.html(""),$(".single-entity-ranking").html(""),$(".single-site-stats").html(""),$(".single-site-legend").html(""),$(".site-selector").removeClass("disabled")}},{key:"getEntities",value:function(){return this.isAllProjects()?["all-projects"]:l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getEntities",this).call(this)}},{key:"processInput",value:function(t,e){var i=this,n=this.beforeProcessInput(t);n&&(e?(this.removeEntity(e),this.updateChart()):this.getSiteStats(n).then(function(){i.getPageViewsData(n).done(function(t){return i.updateChart(t)})}))}},{key:"updateTable",value:function(){var t=this,e=this.beforeUpdateTable();if(e){e.forEach(function(e){t.$outputList.append(t.config.templates.tableRow(t,e))});var i=e.reduce(function(t,e){return t+e.sum},0),n={label:$.i18n("num-projects",this.formatNumber(e.length),e.length),sum:i,average:Math.round(i/e[0].data.filter(function(t){return null!==t}).length)};["pages","articles","edits","images","users","activeusers","admins"].forEach(function(t){n[t]=e.reduce(function(e,i){return e+i[t]},0)}),this.$outputList.append(this.config.templates.tableRow(this,n,!0)),$(".table-view").show()}}},{key:"getSortProperty",value:function(t,e){return"active-users"===e?Number(t.activeusers):"label"===e?t.label:Number(t[e])}},{key:"getSiteLink",value:function(t){return this.isAllProjects()?""+$.i18n("all-of-wikimedia")+"":l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"getSiteLink",this).call(this,t)}},{key:"showSingleEntityLegend",value:function(){var t=this.outputData[0],e="num-pageviews";this.isUniqueDevices()?e="num-unique-devices":this.isPagecounts()&&(e="num-pagecounts"),$(".table-view").hide(),$(".single-site-stats").html("\n "+this.getSiteLink(t.label)+"\n ·\n \n "+this.$dateRangeSelector.val()+"\n \n ·\n "+$.i18n(e,this.formatNumber(t.sum),t.sum)+"\n \n "),$(".single-site-legend").html(this.config.templates.chartLegend(this))}},{key:"validateParams",value:function(t){return["unique-devices","pagecounts"].includes(t.source)&&(this.config.validParams.platform=["all-sites","desktop-site","mobile-site"],this.config.defaults.platform="all-sites",t.agent="user"),l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateParams",this).call(this,t)}}]),e}(mix(h).with(p));$(function(){new f})},{"../shared/chart_helpers":1,"../shared/pv":4,"../shared/site_map":6,"./config":8}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e="pageviews";t.isUniqueDevices()?e="unique-devices":t.isPagecounts()&&(e="pagecounts"),e=$.i18n(e);var i=function(i){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=n({},e,{});if(t.isUniqueDevices()||(a[e][e]=t.formatNumber(i.sum)),a[e][$.i18n($("#date-type-select").val()+"-average")]=t.formatNumber(i.average),t.isAllProjects()){var r=["wikipedia","wiktionary","wikiquote","wikibooks","wikisource","wikinews","wikiversity","wikispecies","wikivoyage"],s={};t.siteDomains.forEach(function(t){var e=r.filter(function(e){return t.includes(e)});if(e[0]){var i=$.i18n(e[0]).upcase();s[i]=s[i]?s[i]+1:1}else s[$.i18n("other")]=s[$.i18n("other")]?s[$.i18n("other")]+1:1}),a[$.i18n("num-projects",t.siteDomains.length)]=s}else{var l;a[$.i18n("statistics")]=(l={},n(l,$.i18n("pages"),t.formatNumber(i.pages)),n(l,$.i18n("articles"),t.formatNumber(i.articles)),n(l,$.i18n("edits"),t.formatNumber(i.edits)),n(l,$.i18n("images"),t.formatNumber(i.images)),n(l,$.i18n("users"),t.formatNumber(i.users)),n(l,$.i18n("active-users"),t.formatNumber(i.activeusers)),n(l,$.i18n("admins"),t.formatNumber(i.admins)),l)}var c="";for(var u in a){c+="
\n
"+u+"("+$.i18n("all-time").toLowerCase()+")

\n
";for(var d in a[u]){var h=a[u][d];h&&(c+='\n
\n '+d+":\n \n "+h+"\n \n
")}c+="
"}return o||t.isAllProjects()||(c+='\n "),c};if(1===t.outputData.length)return i(t.outputData[0]);var o=t.outputData.reduce(function(t,e){return t+e.sum},0);return i({sum:o,average:Math.round(o/t.outputData[0].data.filter(function(t){return null!==t}).length),pages:t.outputData.reduce(function(t,e){return t+e.pages},0),articles:t.outputData.reduce(function(t,e){return t+e.articles},0),edits:t.outputData.reduce(function(t,e){return t+e.edits},0),images:t.outputData.reduce(function(t,e){return t+e.images},0),users:t.outputData.reduce(function(t,e){return t+e.users},0),activeusers:t.outputData.reduce(function(t,e){return t+e.activeusers},0),admins:t.outputData.reduce(function(t,e){return t+e.admins},0)},!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("most-viewed-pages")+"\n ";if(t.isUniqueDevices())$(".table-view--sum").hide();else{$(".table-view--sum").show();var a="views";t.isPagecounts()&&(a="counts"),$(".sort-link--sum .col-heading").text($.i18n(a))}var r="\n \n <"+n+" class='table-view--color-col'>\n \n \n <"+n+" class='table-view--project'>"+(i?e.label:t.getSiteLink(e.label))+"";return t.isUniqueDevices()||(r+="<"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+""),$(".table-view--average .col-heading").text($.i18n($("#date-type-select").val()+"-average")),r+="\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+"\n <"+n+" class='table-view--pages'>"+t.formatNumber(e.pages)+"\n <"+n+" class='table-view--edits'>"+t.formatNumber(e.edits)+"\n <"+n+" class='table-view--images'>"+t.formatNumber(e.images)+"\n <"+n+" class='table-view--users'>"+t.formatNumber(e.users)+"\n <"+n+" class='table-view--active-users'>"+t.formatNumber(e.activeusers)+"\n <"+n+" class='table-view--admins'>"+t.formatNumber(e.admins)+"\n <"+n+">"+o+"\n \n "}};e.exports=o},{}]},{},[9]); \ No newline at end of file diff --git a/public_html/siteviews/rev-manifest.json b/public_html/siteviews/rev-manifest.json index d5dfb867..484b3a90 100644 --- a/public_html/siteviews/rev-manifest.json +++ b/public_html/siteviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-d084988c60.css", - "application.js": "application-1f97e9f355.js" + "application.js": "application-edc24cb051.js" } \ No newline at end of file diff --git a/public_html/topviews/application-115245c162.js b/public_html/topviews/application-8cdfc9de7b.js similarity index 86% rename from public_html/topviews/application-115245c162.js rename to public_html/topviews/application-8cdfc9de7b.js index db065fff..2d7a8bed 100644 --- a/public_html/topviews/application-115245c162.js +++ b/public_html/topviews/application-8cdfc9de7b.js @@ -8,5 +8,5 @@ e.code=m,e)}return!0}function c(e){var t;return 22===e.code||1014===e.code||[-21 ;if(e.selected=!0,i(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var o=[];e=[e],e.push.apply(e,n);for(var r=0;r=0){var c=o.filter(function(e){return function(){return i(this).val()==e.id}}(l)),u=this.item(c),d=(i.extend(!0,{},u,l),this.option(u));c.replaceWith(d)}else{var h=this.option(l);if(l.children){var p=this.convertToOptions(l.children);t.appendMany(h,p)}a.push(h)}}return a},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,i){function n(t,i){this.ajaxOptions=this._applyDefaults(i.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),e.__super__.constructor.call(this,t,i)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return{q:e.term}},transport:function(e,t,n){var o=i.ajax(e);return o.then(t),o.fail(n),o}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){function n(){var n=r.transport(r,function(n){var r=o.processResults(n,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&i.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){});o._request=n}var o=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url(e)),"function"==typeof r.data&&(r.data=r.data(e)),this.ajaxOptions.delay&&""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),t.define("select2/data/tags",["jquery"],function(e){function t(t,i,n){var o=n.get("tags"),r=n.get("createTag");if(void 0!==r&&(this.createTag=r),t.call(this,i,n),e.isArray(o))for(var a=0;a0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){var n=this;this.current(function(o){var r=null!=o?o.length:0;return n.maximumSelectionLength>0&&r>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void e.call(n,t,i)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),n=e('');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},t.prototype.bind=function(t,i,n){var o=this;t.call(this,i,n),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),i.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),i.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),i.on("results:all",function(e){if(null==e.query.term||""===e.query.term){o.showSearch(e)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var o=t[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,n){var o=this;t.call(this,i,n),i.on("query",function(e){o.lastParams=e,o.loading=!0}),i.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);if(!o.loading&&t){o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('
  • '),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function i(e,t,i){this.$dropdownParent=i.get("dropdownParent")||document.body,e.call(this,t,i)}return i.prototype.bind=function(e,t,i){var n=this,o=!1;e.call(this,t,i),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e(""),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i){var n=this,o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,s=this.$container.parents().filter(t.hasScroll);s.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),s.on(o,function(){var t=e(this).data("select2-scroll-position");e(this).scrollTop(t.y)}),e(window).on(o+" "+r+" "+a,function(){n._positionDropdown(),n._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i){var n="scroll.select2."+i.id,o="resize.select2."+i.id,r="orientationchange.select2."+i.id;this.$container.parents().filter(t.hasScroll).off(n),e(window).off(n+" "+o+" "+r)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=(this.$container.position(),this.$container.offset());r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},c=l.topr.bottom+s.height,d={left:r.left,top:a.bottom};i||n||(o="below"),u||!c||i?!c&&u&&i&&(o="below"):o="above",("above"==o||i&&"below"!==o)&&(d.top=a.top-s.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var i=0,n=0;n0&&(d.dataAdapter=c.Decorate(d.dataAdapter,w)),d.maximumInputLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,k)),d.maximumSelectionLength>0&&(d.dataAdapter=c.Decorate(d.dataAdapter,v)),d.tags&&(d.dataAdapter=c.Decorate(d.dataAdapter,g)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=c.Decorate(d.dataAdapter,m)),null!=d.query){var C=t(d.amdBase+"compat/query");d.dataAdapter=c.Decorate(d.dataAdapter,C)}if(null!=d.initSelection){var $=t(d.amdBase+"compat/initSelection");d.dataAdapter=c.Decorate(d.dataAdapter,$)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,_)),null!=d.placeholder&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,D)),d.selectOnClose&&(d.resultsAdapter=c.Decorate(d.resultsAdapter,M))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=y;else{var S=c.Decorate(y,b);d.dropdownAdapter=S}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,x)),d.closeOnSelect&&(d.dropdownAdapter=c.Decorate(d.dropdownAdapter,T)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var E=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=c.Decorate(d.dropdownAdapter,E)}d.dropdownAdapter=c.Decorate(d.dropdownAdapter,Y)}if(null==d.selectionAdapter){if(d.selectionAdapter=d.multiple?o:n,null!=d.placeholder&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=c.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var O=t(d.amdBase+"compat/containerCss");d.selectionAdapter=c.Decorate(d.selectionAdapter,O)}d.selectionAdapter=c.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var j=d.language.split("-"),A=j[0];d.language=[d.language,A]}else d.language=[d.language];if(e.isArray(d.language)){var q=new u;d.language.push("en");for(var I=d.language,N=0;N0){for(var r=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--){null==i(n,o.children[a])&&r.children.splice(a,1)}return r.children.length>0?r:i(n,r)}var s=t(o.text).toUpperCase(),l=t(n.term).toUpperCase();return s.indexOf(l)>-1?o:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:C,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},$.prototype.set=function(t,i){var n=e.camelCase(t),o={};o[n]=i;var r=c._convertData(o);e.extend(this.defaults,r)},new $}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,i,n){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=i.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var i=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=e.prop("dir")?e.prop("dir"):e.closest("[dir]").prop("dir")?e.closest("[dir]").prop("dir"):"ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);r=n._convertData(r);for(var a in r)t.inArray(a,i)>-1||(t.isPlainObject(this.options[a])?t.extend(this.options[a],r[a]):this.options[a]=r[a]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,i,n){var o=function(e,i){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){u.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return i.Extend(o,i.Observable),o.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t="select2-"+t},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return 0>=o?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;l>s;s+=1){var c=a[s].replace(/\s/g,""),u=c.match(i);if(null!==u&&u.length>=1)return u[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){e.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerSelectionEvents=function(){var t=this,i=["toggle"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("*",function(n,o){-1===e.inArray(n,i)&&t.trigger(n,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("focus",function(){e.$container.addClass("select2-container--focus")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open"),this.dataAdapter.query(t,function(i){e.trigger("results:all",{data:i,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(i){e.trigger("results:append",{data:i,query:t})})}),this.on("keypress",function(t){var i=t.which;e.isOpen()?i===n.ENTER?(e.trigger("results:select"),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle"),t.preventDefault()):i===n.UP?(e.trigger("results:previous"),t.preventDefault()):i===n.DOWN?(e.trigger("results:next"),t.preventDefault()):(i===n.ESC||i===n.TAB)&&(e.close(),t.preventDefault()):(i===n.ENTER||i===n.SPACE||(i===n.DOWN||i===n.UP)&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},o.prototype.trigger=function(e,t){var i=o.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(e in n){var r=n[e],a={prevented:!1,name:e,args:t};if(i.call(this,r,a),a.prevented)return void(t.prevented=!0)}i.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},o.prototype.close=function(){this.isOpen()&&this.trigger("close")},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];e.isArray(i)&&(i=e.map(i,function(e){return e.toString()})),this.$element.val(i).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e('');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(e,t,i,n){if(t("jquery.mousewheel"),null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var n=e.extend({},t,!0);new i(e(this),n)}),this;if("string"==typeof t){var n=this.data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");var r=Array.prototype.slice.call(arguments,1),a=n[t](r);return e.inArray(t,o)>-1?this:a}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i}),t.define("jquery.mousewheel",["jquery"],function(e){return e}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var e=new Date;return i(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function r(e){return function(){return this[e].apply(this,arguments)}}function a(e){return e&&!isNaN(e.getTime())}function s(t,i){function n(e,t){return t.toLowerCase()}var o,r=e(t).data(),a={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in r)i.test(l)&&(o=l.replace(s,n),a[o]=r[l]);return a}function l(t){var i={};if(m[t]||(t=t.split("-")[0],m[t])){var n=m[t];return e.each(g,function(e,t){t in n&&(i[t]=n[t])}),i}}var c=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){ for(var t=e&&e.valueOf(),i=0,n=this.length;n>i;i++)if(0<=this[i].valueOf()-t&&this[i].valueOf()-t<864e5)return i;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var e=new c;return e.replace(this),e}};return function(){var i=[];return i.push.apply(i,arguments),e.extend(i,t),i}}(),u=function(t,i){e.data(t,"datepicker",this),this._process_options(i),this.dates=new c,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=e(w.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(e,t){return Number(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.setViewMode(this.o.startView),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.isInline&&this.show()};u.prototype={constructor:u,_resolveViewName:function(t){return e.each(w.viewModes,function(i,n){return t===i||-1!==e.inArray(t,n.names)?(t=i,!1):void 0}),t},_resolveDaysOfWeek:function(t){return e.isArray(t)||(t=t.split(/[,\s]*/)),e.map(t,Number)},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;return e(i).length>0}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),r=o.language;m[r]||(r=r.split("-")[0],m[r]||(r=f.language)),o.language=r,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var a=w.parseFormat(o.format);o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=w.parseDate(o.startDate,a,o.language,o.assumeNearbyYear):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=w.parseDate(o.endDate,a,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return w.parseDate(e,a,o.language,o.assumeNearbyYear)});var s=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase();if(s=e.grep(s,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===s.length)switch(s[0]){case"top":case"bottom":o.orientation.y=s[0];break;case"left":case"right":o.orientation.x=s[0]}else l=e.grep(s,function(e){return/^left|right$/.test(e)}),o.orientation.x=l[0]||"auto",l=e.grep(s,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=l[0]||"auto";if(o.defaultViewDate){var c=o.defaultViewDate.year||(new Date).getFullYear(),u=o.defaultViewDate.month||0,d=o.defaultViewDate.day||1;o.defaultViewDate=i(c,u,d)}else o.defaultViewDate=n()},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var i,n,o,r=0;ro?(this.picker.addClass("datepicker-orient-right"),h+=d-t):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(f=-r+p-i,g=0>f?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?p-=i+parseInt(this.picker.css("padding-top")):p+=u,this.o.rtl){var m=o-(h+d);this.picker.css({top:p,right:m,zIndex:l})}else this.picker.css({top:p,left:h,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],n=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),i.push(t)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(e){return w.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=e.grep(i,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,n?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){var t=this.o.weekStart,i="";for(this.o.calendarWeeks&&(i+=' ');t";i+="",this.picker.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",i=0;12>i;){t+=''+m[this.o.language].monthsShort[i++]+""}this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=n();return t.getUTCFullYear()r||t.getUTCFullYear()===r&&t.getUTCMonth()>a)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&o(t,s)&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(t>this.range[0]&&tw;w+=1)k=[n],v=null,-1===w?k.push("old"):10===w&&k.push("new"),-1!==e.inArray(m,p)&&k.push("active"),(f>m||m>g)&&k.push("disabled"),m===this.viewDate.getFullYear()&&k.push("focused"),c!==e.noop&&(y=c(new Date(m,0,1)),y===t?y={}:"boolean"==typeof y?y={enabled:y}:"string"==typeof y&&(y={classes:y}),!1===y.enabled&&k.push("disabled"),y.classes&&(k=k.concat(y.classes.split(/\s+/))),y.tooltip&&(v=y.tooltip)),u+='"+m+"",m+=r;d.find("td").html(u)},fill:function(){var n,o,r=new Date(this.viewDate),a=r.getUTCFullYear(),s=r.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,c=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(w.formatDate(r,f,this.o.language)),this.picker.find("tfoot .today").text(h).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot .clear").text(p).toggle(!1!==this.o.clearBtn),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var g=i(a,s,0),k=g.getUTCDate();g.setUTCDate(k-(g.getUTCDay()-this.o.weekStart+7)%7);var v=new Date(g);g.getUTCFullYear()<100&&v.setUTCFullYear(g.getUTCFullYear()),v.setUTCDate(v.getUTCDate()+42),v=v.valueOf();for(var y,b,D=[];g.valueOf()"),this.o.calendarWeeks)){var _=new Date(+g+(this.o.weekStart-y-7)%7*864e5),Y=new Date(Number(_)+(11-_.getUTCDay())%7*864e5),x=new Date(Number(x=i(Y.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),M=(Y-x)/864e5/7+1;D.push(''+M+"")}b=this.getClassNames(g),b.push("day"),this.o.beforeShowDay!==e.noop&&(o=this.o.beforeShowDay(this._utc_to_local(g)),o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),!1===o.enabled&&b.push("disabled"),o.classes&&(b=b.concat(o.classes.split(/\s+/))),o.tooltip&&(n=o.tooltip)),b=e.isFunction(e.uniqueSort)?e.uniqueSort(b):e.unique(b),D.push('"+g.getUTCDate()+""),n=null,y===this.o.weekEnd&&D.push(""),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(D.join(""));var T=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",C=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?T:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&C.eq(t.getUTCMonth()).addClass("active")}),(l>a||a>u)&&C.addClass("disabled"),a===l&&C.slice(0,c).addClass("disabled"),a===u&&C.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var $=this;e.each(C,function(i,n){var o=new Date(a,i,1),r=$.o.beforeShowMonth(o);r===t?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),!1!==r.enabled||e(n).hasClass("disabled")||e(n).addClass("disabled"),r.classes&&e(n).addClass(r.classes),r.tooltip&&e(n).prop("title",r.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,1,a,l,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,a,l,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,a,l,u,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,i=new Date(this.viewDate),n=i.getUTCFullYear(),o=i.getUTCMonth();switch(this.viewMode){case 0:e=this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear()&&o<=this.o.startDate.getUTCMonth(),t=this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&o>=this.o.endDate.getUTCMonth();break;case 1:case 2:case 3:case 4:e=this.o.startDate!==-1/0&&n<=this.o.startDate.getUTCFullYear(),t=this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){t.preventDefault(),t.stopPropagation();var o,r,a,s,l;o=e(t.target),o.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("day")&&(a=Number(o.text()),s=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),(o.hasClass("old")||o.hasClass("new"))&&(r=o.hasClass("old")?-1:1,l=(l+r+12)%12,(-1===r&&11===l||1===r&&0===l)&&(s+=r,this._trigger("changeYear",this.viewDate)),this._trigger("changeMonth",this.viewDate)),this._setDate(i(s,l,a))),(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),a=1,1===this.viewMode?(l=o.parent().find("span").index(o),s=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(l)):(l=0,s=Number(o.text()),this.viewDate.setUTCFullYear(s)),this._trigger(w.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(s,l,a)):(this.setViewMode(this.viewMode-1),this.fill()))),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},navArrowsClick:function(t){var i=e(t.target),n=i.hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*w.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(w.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):!1===this.o.multidate?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var i=new Date(e);return i.setUTCDate(e.getUTCDate()+t),i},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!a(e))return this.o.defaultViewDate;if(!t)return e;var i,n,o=new Date(e.valueOf()),r=o.getUTCDate(),s=o.getUTCMonth(),l=Math.abs(t);if(t=t>0?1:-1,1===l)n=-1===t?function(){return o.getUTCMonth()===s}:function(){return o.getUTCMonth()!==i},i=s+t,o.setUTCMonth(i),i=(i+12)%12;else{for(var c=0;l>c;c++)o=this.moveMonth(o,t);i=o.getUTCMonth(),o.setUTCDate(r),n=function(){return i!==o.getUTCMonth()}}for(;n();)o.setUTCDate(--r),o.setUTCMonth(i);return o},moveYear:function(e,t){return this.moveMonth(e,12*t)},moveAvailableDate:function(e,t,i){do{if(e=this[i](e,t),!this.dateWithinRange(e))return!1;i="moveDay"}while(this.dateIsDisabled(e));return e},weekOfDateIsDisabled:function(t){return-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||e.grep(this.o.datesDisabled,function(e){return o(t,e)}).length>0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(!this.picker.is(":visible"))return void((40===e.keyCode||27===e.keyCode)&&(this.show(),e.stopPropagation()));var t,i,n=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(i=this.moveAvailableDate(o,t,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(i=this.moveAvailableDate(o,t,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?i=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(i=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?((38===e.keyCode||40===e.keyCode)&&(t*=4),i=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&((38===e.keyCode||40===e.keyCode)&&(t*=4),i=this.moveAvailableDate(o,t,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+w.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var d=function(t,i){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(i.inputs,function(e){return e.jquery?e[0]:e}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,p.call(e(this.inputs),i).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};d.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=e.data(i.target,"datepicker");if(n!==t){var o=n.getUTCDate(),r=this.keepEmptyValues,a=e.inArray(i.target,this.inputs),s=a-1,l=a+1,c=this.inputs.length;if(-1!==a){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==n&&r||t.setUTCDate(o)}),o=0&&othis.dates[l])for(;c>l&&o>this.dates[l];)this.pickers[l++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),delete this.element.data().datepicker},remove:r("destroy")};var h=e.fn.datepicker,p=function(i){var n=Array.apply(null,arguments);n.shift();var o;if(this.each(function(){var t=e(this),r=t.data("datepicker"),a="object"==typeof i&&i;if(!r){var c=s(this,"date"),h=e.extend({},f,c,a),p=l(h.language),g=e.extend({},f,p,c,a);t.hasClass("input-daterange")||g.inputs?(e.extend(g,{inputs:g.inputs||t.find("input").toArray()}),r=new d(this,g)):r=new u(this,g),t.data("datepicker",r)}"string"==typeof i&&"function"==typeof r[i]&&(o=r[i].apply(r,n))}),o===t||o instanceof u||o instanceof d)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return o};e.fn.datepicker=p;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,dateCells:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"}},g=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=u;var m=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},w={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),i=e.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(o,r,a,s){function l(e,t){return!0===t&&(t=10),100>e&&(e+=2e3)>(new Date).getFullYear()+t&&(e-=100),e}function c(){var e=this.slice(0,d[f].length),t=d[f].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!o)return t;if(o instanceof Date)return o;if("string"==typeof r&&(r=w.parseFormat(r)),r.toValue)return r.toValue(o,r,a);var d,h,p,f,g,k={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(o in v&&(o=v[o]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(o)){for(d=o.match(/([\-+]\d+)([dmwy])/gi),o=new Date,f=0;ft;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};Y.yy=Y.yyyy,Y.M=Y.MM=Y.mm=Y.m,Y.dd=Y.d,o=n();var x=r.parts.slice();if(d.length!==x.length&&(x=e(x).filter(function(t,i){return-1!==e.inArray(i,_)}).toArray()),d.length===x.length){var M;for(f=0,M=x.length;M>f;f++){if(y=parseInt(d[f],10),h=x[f],isNaN(y))switch(h){case"MM":b=e(m[a].months).filter(c),y=e.inArray(b[0],m[a].months)+1;break;case"M":b=e(m[a].monthsShort).filter(c),y=e.inArray(b[0],m[a].monthsShort)+1}D[h]=y}var T,C;for(f=0;f<_.length;f++)(C=_[f])in D&&!isNaN(D[C])&&(T=new Date(o),Y[C](T,D[C]),isNaN(T)||(o=T))}return o},formatDate:function(t,i,n){if(!t)return"";if("string"==typeof i&&(i=w.parseFormat(i)),i.toDisplay)return i.toDisplay(t,i,n);var o={d:t.getUTCDate(),D:m[n].daysShort[t.getUTCDay()],DD:m[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:m[n].monthsShort[t.getUTCMonth()],MM:m[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m,t=[];for(var r=e.extend([],i.separators),a=0,s=i.parts.length;s>=a;a++)r.length&&t.push(r.shift()),t.push(o[i.parts[a]]);return t.join("")},headTemplate:'«»',contTemplate:'',footTemplate:''};w.template='
    '+w.headTemplate+""+w.footTemplate+'
    '+w.headTemplate+w.contTemplate+w.footTemplate+'
    '+w.headTemplate+w.contTemplate+w.footTemplate+'
    '+w.headTemplate+w.contTemplate+w.footTemplate+'
    '+w.headTemplate+w.contTemplate+w.footTemplate+"
    ",e.fn.datepicker.DPGlobal=w,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=h,this},e.fn.datepicker.version="1.7.0-dev",e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),p.call(i,"show"))}),e(function(){p.call(e('[data-provide="datepicker-inline"]'))})}),function(){function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var u=i[a]={exports:{}};t[a][0].call(u.exports,function(e){return o(t[a][1][e]||e)},u,u.exports,e,t,i,n)}return i[a].exports}for(var r="function"==typeof require&&require,a=0;a":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(t){return e[t]})},Array.prototype.unique=function(){return this.filter(function(e,t,i){return i.indexOf(e)===t})},window.mix=function(e){return new r(e)};var r=function(){function e(t){n(this,e),this.superclass=t}return o(e,[{key:"with",value:function(){for(var e=arguments.length,t=Array(e),i=0;ithis.length)&&-1!==this.indexOf(e,t)}),"function"!=typeof Object.assign&&function(){Object.assign=function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!

    \n

    To use the staging app, append debug=true to the URL

    \n

    Otherwise, please update your links to use\n https://"+location.host+s+"\n

    \n

    \n Redirecting you to the production "+document.title+" in\n 10...\n

    \n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),r(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?r(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(e){return''+e[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return a(t,e),l(t,[{key:"loadTranslations",value:function(){var e=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(t){e[t]="/messages/"+t+".json"}),e.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(e).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var e=$(window).width(),t=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(e<768)){n+t+i>e&&$(".interapp-links--more").removeClass("hidden");for(var o=$(".interapp-links--entry").length;o>0&&n+t+i>e;){var r=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();r.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(r),n=$(".interapp-links").outerWidth()+i,o--}}}},{key:"toast",value:function(e){var t=e.title?""+e.title+" ":"";e.message=t+e.message,e=Object.assign({level:"warning",timeout:10},e),toastr.options.timeOut=1e3*e.timeout,toastr[e.level](e.message)}},{key:"toastSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"success",timeout:t})}},{key:"toastInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"info",timeout:t})}},{key:"toastWarn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"warning",timeout:t})}},{key:"toastError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"error",timeout:t})}},{key:"addInvalidParamNotice",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){e=e.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:e+" "+$.i18n("param-error-see-docs",n),level:t,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(e){if(e.range)this.setSpecialRange(e.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(e.start){var t=/\d{4}-\d{2}-\d{2}$/;e.start&&/^\d{4}-\d{2}$/.test(e.start)&&(e.start=e.start+"-01",e.monthly=!0),e.end&&/^\d{4}-\d{2}$/.test(e.end)?e.end=moment(e.end+"-01").endOf("month").format("YYYY-MM-DD"):e.monthly=!1;var i=void 0,n=void 0;if(e.start&&t.test(e.start))i=moment(e.start);else{if("earliest"!==e.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(e.end&&t.test(e.end))n=moment(e.end);else{if("latest"!==e.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),e.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(e.start).toDate(),this.monthEnd=moment(e.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(e){return Object.keys(u).find(function(t){return u[t]===e.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(e,t){var i=encodeURI(e),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+t,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var e=this;$.each($("#settings-modal input"),function(t,i){"checkbox"===i.type?i.checked="true"===e[i.name]:i.checked=e[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),o=i?"month":"day",r=i?"YYYY-MM":"YYYY-MM-DD",a=moment(this.daterangepicker.startDate);a.isBefore(n);a.add(1,o))e?t.push(a.format(this.dateFormat)):t.push(a.format(r));return t}},{key:"getExpandedPageURL",value:function(e){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(e.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(e,t,i,n){var o=this.getExpandedPageURL(e)+"&action=history";return i&&n&&(o+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+t+""}},{key:"getExportFilename",value:function(){var e=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),t=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+e+"-"+t}},{key:"getPageLink",value:function(e,t,i,n){var o='target="_blank" href="'+this.getPageURL(e,t)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(t)){var r=this.getProjectLang(t);o+=" lang="+r+' dir="'+(this.config.rtlLangs.includes(r)?"rtl":"ltr")+'"'}return'"+(i||e.descore().escape())+""}},{key:"getPageURL",value:function(e){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(e.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(e){return''+e+""}},{key:"getProjectLang",value:function(e){return(e||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(e){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(e){var t=this;e=e.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+e;return this.siteInfo[e]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[e]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+e+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){t.siteInfo[e]=o.query,simpleStorage.set(n,t.siteInfo[e],{TTL:6048e5}),i.resolve(t.siteInfo)}).fail(function(e){i.reject(e)}),i)}},{key:"getEditData",value:function(e){var t=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:e.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(e){return t.resolve(e)}).fail(function(){var i={};e.forEach(function(e){return i[e]={}}),t.resolve({pages:i})}),t}},{key:"getAssessmentBadge",value:function(e){return e.assessment?e.assessment_img?""+e.assessment+"":e.assessment:""}},{key:"getSiteInfo",value:function(e){return this.siteInfo[e.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"startDate":"endDate",i=moment(this.daterangepicker[t]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:e,platform:"all-access",date:t.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(e){return e.split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(e)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(t)||(t+=".org");var r=$.Deferred(),a={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},e);l&&(c[i]=l),$.ajax({url:"https://"+t+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(e){if(e.error||!e.query)return r.resolve(e);var t=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(e.query)),t=a.pages.length>=o):(e.query.pages&&(a.pages=a.pages.concat(e.query.pages)),e.query[n]&&(a[n]=(a[n]||[]).concat(e.query[n])),t=a.pages.length>=o||a[n].length>=o),!t&&e.continue&&e.continue[i]?setTimeout(function(){s(e.continue[i])},100):(e.continue&&(a.continue=!0),r.resolve(a))}).fail(function(e){r.reject(e)})}(),r}},{key:"n",value:function(e){return Number(e).toLocaleString()}},{key:"getPageInfo",value:function(e){var t=$.Deferred();try{e=e.map(function(e){return encodeURIComponent(decodeURIComponent(e))})}catch(e){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+e.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(t){e[e.indexOf(encodeURIComponent(t.from))]=encodeURIComponent(t.to)});var n={};return e.forEach(function(e){try{e=decodeURIComponent(e)}catch(e){}n[e]=i.query.pages.find(function(t){return t.title===e})}),t.resolve(n)})}},{key:"getRedirects",value:function(e){var t=this,i=$.Deferred(),n=(Array.isArray(e)?e:[e]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(e){if(e.error)return t.setState("initial",function(){t.writeMessage($.i18n("api-error","Redirect API")+": "+e.error.info.escape())});var n={};return e.query.pages.forEach(function(e){n[e.title]=[{title:e.title}].concat(e.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(e){for(var t=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=t.split("&"),n={},o=0;o0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),e&&this.setupSelect2()}},{key:"rgba",value:function(e,t){return e.replace(/,\s*\d\)/,", "+t+")")}},{key:"saveSetting",value:function(e,t){this[e]=t,localStorage.setItem("pageviews-settings-"+e,t)}},{key:"saveSettings",value:function(){var e=this,t="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(t,i){"checkbox"===i.type?e.saveSetting(i.name,i.checked?"true":"false"):i.checked&&e.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==t&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(e){var t=this;return e.forEach(function(e){var i=$("
    ").text(e).html();$("").appendTo(t.$select2Input)}),this.$select2Input.select2("val",e),this.$select2Input.trigger("select2:select"),e}},{key:"setSpecialRange",value:function(e){var t=Object.keys(this.config.specialRanges).indexOf(e),i=void 0,n=void 0,o=void 0;if(e.includes("latest-")){o=parseInt(e.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(t>=0))return;var l="latest"===e?this.config.specialRanges.latest():this.config.specialRanges[e],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(t).trigger("click")}return this.specialRange={range:e,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var e=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(t,i){e.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+t+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var e=this;$("a[href='#']").on("click",function(e){return e.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return e.validateProject()}),$(".permalink").on("click",function(t){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),e.toastSuccess($.i18n("permalink-copied")),t.preventDefault(),document.activeElement.blur()}catch(t){}}),$(".sort-link").on("click",function(t){var i=$(t.currentTarget).data("type");e.direction=e.sort===i?-e.direction:1,e.sort=i,e.isChartApp()?e.updateTable():e.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var e=this,t={},i=void 0;this.isPagecounts()?(t=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(t[$.i18n(i)]=e.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var o={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:t};if(this.config.dateLimit&&(o.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var r=this.$dateRangeSelector.remove();$(".date-selector").append(r)}this.$dateRangeSelector.daterangepicker(o),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
    ").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(t){if(t.target.innerText===$.i18n("custom-range"))return e.specialRange=null,e.daterangepicker.clickApply();var i=e.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(e.config.specialRanges).find(function(e){return $.i18n(e)===t.target.innerText});e.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(t,i){i.chosenLabel===$.i18n("custom-range")&&(e.specialRange=null,e.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(e){var t=this;if(this.resetView(),e.forEach(function(e){t.writeMessage(""+$.i18n("fatal-error")+": "+e+"")}),this.debug)throw e[0];e&&e[0]&&e[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(e))+"\n ",0)}},{key:"splash",value:function(){var e="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",e),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",e),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",e),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",e),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ___ _ _ _ _ ",e),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",e),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",e),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",e),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ",e),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",e)}},{key:"startSpinny",value:function(){var e=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){e.resetView(),e.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",e.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(e){return e.map(function(e){return e.score()})}},{key:"updateInterAppLinks",value:function(){var e=this;$(".interapp-link").each(function(t,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+e.project.escape()+".org":i.href=n+"?project="+e.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];return this.$select2Input.length?t=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?t=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),e&&(t=t.map(function(e){return e.score()})),t}},{key:"pushParams",value:function(e,t){if(t)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+e+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+e+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(e){var t=this;return this.config.validateParams.forEach(function(i){"project"===i&&e.project&&(e.project=e.project.replace(/^www\./,""));var n=t.config.defaults[i],o=e[i];void 0===n||t.config.validParams[i].includes(o)||(o&&t.addInvalidParamNotice($.i18n("param-error-3",i)),e[i]=n)}),e}},{key:"validateProject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.$projectInput[0],i=t.value.replace(/^www\./,""),n=!1;return e&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=t.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=t.dataset.value),n&&this.$projectInput.trigger("updated"),t.value=i,n}},{key:"writeMessage",value:function(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
    "+e+"
    ")}},{key:"dateFormat",get:function(){var e="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?e?"MMM YYYY":this.getLocaleDateString():e?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var e=this.$projectInput.val();return e?e.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),t}(c);t.exports=h},{"./core_extensions":1,"./polyfills":2,"./pv_config":4,"./site_map":5}],4:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(e){return t.formatNumber(e)}}}]},legendCallback:function(e){return t.config.chartLegend(e.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:r,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[r,r],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(r)?moment().startOf("week"):r],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,t=i.isPagecounts()?l:r;return[moment(t).subtract(e,"days").startOf("day"),t]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a},rtlLangs:["ar","he","fa","ps","ur"]}}return o(e,[{key:"formatYAxisNumber",value:function(e){return e%1==0?this.formatNumber(e):null}},{key:"linearTooltips",value:function(e){var t=this;return{mode:e||"x-axis",callbacks:{label:function(e){return Number.isNaN(e.yLabel)?" "+$.i18n("unknown"):" "+t.formatNumber(e.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(e){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(e):e}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(e){return this.jQueryCache[e]?this.jQueryCache[e]:this.jQueryCache[e]=$(e)}},{key:"circularTooltips",get:function(){var e=this;return{callbacks:{label:function(t,i){var n=i.datasets[t.datasetIndex].data[t.index],o=i.labels[t.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+e.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),e}();t.exports=s},{"./site_map":5}],5:[function(e,t,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org", -skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};t.exports=n},{}],6:[function(e,t,i){"use strict";var n=(e("../shared/pv"),{defaults:{dateRange:"last-month",excludes:[]},formStates:["processing","complete","search","reset"],maxDate:moment().subtract(1,"day").startOf("day").utc().toDate(),maxYear:moment().subtract(1,"year").startOf("year").utc().toDate(),pageSize:100,validateParams:["project","platform"],cacheTime:60});t.exports=n},{"../shared/pv":3}],7:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var i=0;i\n \n \n "+ ++i+"\n \n \n \n \n \n "+h+"\n "+d+"\n \n "+this.formatNumber(o.views)+"\n \n "+c+"\n ")}}this.offsetEnd=n,setTimeout(function(){e.setState("complete"),$(".topview-entry--background").addClass("animate")}),this.pushParams(),this.addExcludeListeners()}},{key:"addExclude",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Array.isArray(e)||(e=[e]),e.forEach(function(e){t.excludes.includes(e)||t.excludes.push(e)}),this.$select2Input.html(""),this.excludes.forEach(function(e){var i=$("
    ").text(e).html();$("").appendTo(t.$select2Input)}),i)if(this.pageData[this.offsetEnd]){this.setState("processing");var n=this.pageData[this.offsetEnd].article;this.setSingleEditData(n).always(function(){return t.setSingleMobileViews(n).always(function(){t.setState("complete"),t.$select2Input.val(t.excludes).trigger("change"),t.showList()})})}else this.$select2Input.val(this.excludes).trigger("change"),this.showList();this.buildReportFalsePositiveForm()}},{key:"addExcludeListeners",value:function(){var e=this;$(".topview-entry--remove").off("click").on("click",function(t){e.excludeAdded||(e.excludeAdded=!0,$(".report-false-positive").show());var i=e.pageNames[$(t.target).data("article-id")];e.addExclude(i),e.pushParams()})}},{key:"buildReportFalsePositiveForm",value:function(){var e=this;$(".false-positive-list").html(""),this.excludes.forEach(function(e,t){$(".false-positive-list").append("\n
  • \n \n
  • \n ")}),$(".submit-false-positive").off("click").on("click",function(){var t=$.map($(".false-positive-list input:checked"),function(t){return encodeURIComponent(e.excludes[parseInt(t.dataset.index,10)])});t.length&&($.ajax({url:"/topviews/api.php",data:{project:e.project,pages:t,date:e.getParams(!1).date,platform:e.$platformSelector.val()},method:"POST"}),e.toastSuccess($.i18n("report-false-positive-submitted",$.i18n("topviews"))),$(".report-false-positive").hide())})}},{key:"clearSearch",value:function(){this.setState("complete"),this.$topviewsSearchIcon.hasClass("glyphicon-remove")&&($("#topviews_search_field").val(""),this.$topviewsSearchIcon.removeClass("glyphicon-remove").addClass("glyphicon-search"),this.showList())}},{key:"shouldShowMobile",value:function(){return this.isYearly()||this.$showMobileCheckbox.is(":checked")&&"all-access"===this.$platformSelector.val()}},{key:"exportCSV",value:function(){var e=this,t="data:text/csv;charset=utf-8,Page,Edits,Editors,Views"+(this.shouldShowMobile()?",Mobile %":"")+"\n";this.pageData.forEach(function(i){if(!e.excludes.includes(i.article)&&!e.autoExcludes.includes(i.article)){var n='"'+i.article.replace(/"/g,'""')+'"',o=e.editData[i.article]||{};t+=n+","+("number"==typeof o.num_edits?o.num_edits:"?")+","+("number"==typeof o.num_users?o.num_users:"?")+","+i.views,e.shouldShowMobile()&&(t+=","+e.percentMobile(i)),t+="\n"}}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var e="data:text/json;charset=utf-8,"+JSON.stringify(this.pageData);this.downloadData(e,"json")}},{key:"getExportFilename",value:function(){var e=this.datepicker.getDate(),t=void 0;return t=this.isYearly()?moment(e).format("YYYY"):this.isMonthly()?moment(e).format("YYYY/MM"):moment(e).format("YYYY/MM/DD"),this.app+"-"+t}},{key:"getPageviewsURL",value:function(e){var t=moment(this.datepicker.getDate()),i=void 0,n=void 0;this.isYearly()?(i=t.format("YYYY-01-01"),n=t.endOf("year").format("YYYY-MM-DD")):this.isMonthly()?(i=t.format("YYYY-MM-01"),n=t.endOf("month").format("YYYY-MM-DD")):(i=moment(t).subtract(3,"days").format("YYYY-MM-DD"),n=t.add(3,"days").format("YYYY-MM-DD"));var o=this.$platformSelector.val();return"/pageviews?start="+i+"&end="+n+"&project="+this.$projectInput.val()+"&platform="+o+"&pages="+encodeURIComponent(e.score()).replace("'",escape)}},{key:"getParams",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={project:this.$projectInput.val(),platform:this.$platformSelector.val()},i=this.datepicker.getDate();return this.specialRange&&e?t.date=this.specialRange.range:this.isYearly()?t.date=moment(i).format("YYYY"):this.isMonthly()?t.date=moment(i).format("YYYY-MM"):t.date=moment(i).format("YYYY-MM-DD"),t}},{key:"getPermaLink",value:function(){var e=this.getParams(!1);return delete e.range,e}},{key:"setSpecialRange",value:function(e){if("last-year"===e)this.setupDatePicker("yearly"),this.datepicker.setDate(this.config.maxYear),this.specialRange={range:e,value:moment(this.config.maxYear).format("YYYY")};else if("last-month"===e)this.setupDatePicker("monthly"),this.datepicker.setDate(this.maxMonth),this.specialRange={range:e,value:moment(this.maxMonth).format("YYYY/MM")};else{if("yesterday"!==e)return!1;this.setupDatePicker("daily"),this.datepicker.setDate(this.maxDate),this.specialRange={range:e,value:moment(this.maxDate).format("YYYY-MM-DD")}}return!0}},{key:"setDate",value:function(e){var i=void 0;if(/\d{4}$/.test(e))this.setupDatePicker("yearly"),(i=moment(e+"-01-01").toDate())>this.config.maxYear&&(i=this.config.maxYear);else if(/\d{4}-\d{2}$/.test(e))this.setupDatePicker("monthly"),(i=moment(e+"-01").toDate())>this.maxMonth&&(i=this.maxMonth);else{if(!/\d{4}-\d{2}-\d{2}$/.test(e))return void(this.setSpecialRange(e)||this.setSpecialRange(this.config.defaults.dateRange));this.setupDatePicker("daily"),(i=moment(e).toDate())>this.maxDate&&(i=this.maxDate)}i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this)))+"\n "),i=this.minDate.toDate()),this.datepicker.setDate(i)}},{key:"popParams",value:function(){var e=this;this.setState("processing");var t=this.validateParams(this.parseQueryString("excludes"));(t.range||t.start||t.end)&&(this.fixLegacyDates(t),this.toastWarn("\n Topviews has been revamped!\n Custom date ranges are\n no longer supported.\n Using defaults instead.\n ")),this.setDate(t.date),this.$projectInput.val(t.project),this.$platformSelector.val(t.platform),this.isYearly()?($(".percent-mobile-wrapper").show(),this.$showMobileCheckbox.prop("disabled",!0).prop("checked",!0),this.$mainspaceCheckbox.prop("disabled",!0).prop("checked",!0),$(".output-table").addClass("show-mobile"),this.$platformSelector.prop("disabled",!0).val("all-access")):"all-access"===t.platform&&($(".percent-mobile-wrapper").show(),this.$showMobileCheckbox.prop("checked",!!t.mobileviews),$(".output-table").toggleClass("show-mobile",!!t.mobileviews)),this.$mainspaceCheckbox.prop("checked","false"!==t.mainspace),this.excludes=(t.excludes||[]).map(function(e){return decodeURIComponent(e.descore())}),this.params=location.search,this.patchUsage(),this.initData().done(function(){e.setupSelect2(),e.showList()}).always(function(){e.setupListeners()})}},{key:"fixLegacyDates",value:function(e){if(e.date||!e.start&&!e.end&&!e.range)return e;if(e.range)return e.date="last-month",e;var t=/\d{4}-\d{2}-\d{2}$/;if(!t.test(e.start)&&!t.test(e.end))return e.date="last-month",e;var i=moment(e.start,"YYYY-MM-DD"),n=moment(e.end,"YYYY-MM-DD"),o=Math.abs(n.diff(i,"days"));return e.date=o>3?i.format("YYYY-MM"):e.start,e}},{key:"pushParams",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"pushParams",this).call(this,"excludes")}},{key:"resetView",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState("reset"),this.clearSearch(),this.$topviewEntries.html(""),e&&(this.resetSelect2(),this.excludes=[])}},{key:"setState",value:function(e,t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(e),e){case"initial":case"reset":this.stopSpinny(),this.autoExcludes=[],this.offset=0,this.offsetEnd=0,this.max=null,this.pageData=[],this.pageNames=[],this.mobileViews={},this.editData={},this.excludeAdded=!1,$(".message-container").html(""),$(".show-more").removeClass("hidden");break;case"processing":this.startSpinny();break;case"complete":this.stopSpinny()}"function"==typeof t&&t()}},{key:"searchTopviews",value:function(){var e=this,t=$("#topviews_search_field").val().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");if(!t)return this.clearSearch();this.setState("search");var i=[],n=0;this.pageData.forEach(function(o,r){e.excludes.includes(o.article)||e.autoExcludes.includes(o.article)||(n++,new RegExp(t,"i").test(o.article)&&(o.rank=n,o.index=r,i.push(o)))}),this.$topviewEntries.html(""),this.$topviewsSearchIcon.removeClass("glyphicon-search").addClass("glyphicon-remove"),i.forEach(function(t){e.$topviewEntries.append("\n \n \n "+t.rank+"\n \n \n \n \n \n \n \n "+e.formatNumber(t.views)+"\n \n \n ")}),this.addExcludeListeners()}},{key:"validateProject",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.processInput())}},{key:"setupSelect2",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.excludes;this.$select2Input.select2({data:[],maximumSelectionLength:50,minimumInputLength:0,minimumResultsForSearch:1/0,placeholder:$.i18n("hover-to-exclude")}),t.length&&this.setSelect2Defaults(t),this.$select2Input.on("change",function(t){e.excludes=$(t.target).val()||[],e.max=null,e.clearSearch(),$(".select2-search__field").prop("disabled",!0)}),this.$select2Input.on("select2:unselect",function(t){var i=t.params.data.text;e.mobileViews[i]?e.showList():(e.setState("processing"),e.setSingleMobileViews(i).always(e.showList.bind(e))),$(t.target).val()||$(".report-false-positive").hide()})}},{key:"setSelect2Defaults",value:function(e){var t=this;return e=e.map(function(e){var i=$("
    ").text(e).html();return $("").appendTo(t.$select2Input),e}),this.$select2Input.select2("val",e),e}},{key:"setupDatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"monthly";$("#date-type-select").val(e);var t=void 0;t="yearly"===e?{format:"yyyy",viewMode:"years",minViewMode:"years",endDate:this.config.maxYear}:"monthly"===e?{format:"MM yyyy",viewMode:"months",minViewMode:"months",endDate:this.maxMonth}:{format:this.dateFormat,viewMode:"days",endDate:this.maxDate},this.$dateSelector.datepicker("destroy"),this.$dateSelector.datepicker(Object.assign({autoclose:!0,startDate:this.minDate.toDate()},t))}},{key:"setupListeners",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupListeners",this).call(this),this.$platformSelector.on("change",function(t){$(".percent-mobile-wrapper").toggle("all-access"===t.target.value||e.isYearly()),$(".output-table").toggleClass("show-mobile",e.shouldShowMobile()),e.processInput()}),$("#date-type-select").on("change",function(){e.$platformSelector.prop("disabled",!1),e.$showMobileCheckbox.prop("disabled",!1),e.$mainspaceCheckbox.prop("disabled",!1),e.isYearly()?(e.$platformSelector.val("all-access").prop("disabled",!0),$(".percent-mobile-wrapper").show(),e.$showMobileCheckbox.prop("checked",!0).prop("disabled",!0),e.$mainspaceCheckbox.prop("checked",!0).prop("disabled",!0),$(".output-table").addClass("show-mobile"),e.setSpecialRange("last-year")):e.isMonthly()?e.setSpecialRange("last-month"):e.setSpecialRange("yesterday")}),$(".show-more").on("click",function(){e.offset+=e.config.pageSize,e.setState("processing");var t=e.config.pageSize;e.pageData.length-e.offsetEnd0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.pageSize,n=$.Deferred(),o=this.getDates(),r=a(o,2),s=r[0],l=r[1],c=t,u=0,d=i;this.pageData.length0&&void 0!==arguments[0]?arguments[0]:0,t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.pageSize,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=$.Deferred();if(!this.shouldShowMobile())return o.resolve({});if(this.isYearly())return o.resolve({});var r=this.getDates(),s=a(r,2),l=s[0],c=s[1],u=e,d=0,h=i,p=function(e){var i,n=[];["mobile-web","mobile-app"].forEach(function(i){var o="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+t.project+"/"+i+"/user/"+encodeURIComponent(e)+"/"+(t.isMonthly()?"monthly":"daily")+"/"+l.format(t.config.timestampFormat)+"/"+c.format(t.config.timestampFormat);if(t.mobileViews[e]){var r=$.Deferred();return n.push(r),r.resolve()}var a=$.ajax({url:o,dataType:"json"});n.push(a),a.done(function(e){var i=e.items.reduce(function(e,t){return e+t.views},0),n=e.items[0].article.descore();t.mobileViews[n]=i+(t.mobileViews[n]||0)})}),(i=$).whenAll.apply(i,n).always(function(){0==--h&&o.resolve(t.mobileViews)})};if(n)p(n);else for(var f=this.rateLimit(p,2*this.config.apiThrottle,this),g=this.pageData.length;d";t.html($.i18n("known-false-positives-text",i,this.autoExcludes.length)),t.show(),$("#list-false-positives-modal").on("show.bs.modal",function(){$(".false-positive-list").html(""),e.autoExcludes.forEach(function(t){var i=e.pageData.find(function(e){return e.article===t}).rank;$(".false-positive-list").append("\n "+e.getPageLink(t,e.project)+""+i+"\n ")})}),this.excludes=this.excludes.filter(function(t){return-1===e.autoExcludes.indexOf(t)})}},{key:"filterOutNamespace",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=$.Deferred(),o=function(e,n){return e.filter(function(e){var o=e.split(":")[0],r=t.getSiteInfo(t.project).general.mainpage;return(0!==i||e!==r&&e!==r.split(":")[1])&&(!e.includes(":")||!n.includes(o))})};return this.fetchSiteInfo(this.project).done(function(){var r=[];0===i&&(r=["Wikipedia","Special","Sp?cial"]);for(var a in t.getSiteInfo(t.project).namespaces)r.push(t.getSiteInfo(t.project).namespaces[a]["*"]);e=o(e,r),t.excludes=o(t.excludes,r),n.resolve(e)}).fail(function(){t.writeMessage(""+$.i18n("api-error","Siteinfo API")),n.resolve(e)}),n}},{key:"$showMobileCheckbox",get:function(){return this.cachedElement(".show-percent-mobile")}},{key:"$mainspaceCheckbox",get:function(){return this.cachedElement(".mainspace-only-option")}},{key:"$topviewEntries",get:function(){return this.cachedElement(".topview-entries")}},{key:"$topviewsSearchIcon",get:function(){return this.cachedElement(".topviews-search-icon")}},{key:"dateFormat",get:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this).toLowerCase()}},{key:"$dateSelector",get:function(){return this.cachedElement(".date-selector")}},{key:"datepicker",get:function(){return this.$dateSelector.data("datepicker")}}]),t}(u);$(function(){new d})},{"../shared/pv":3,"./config":6}]},{},[7]); \ No newline at end of file +backgroundColor:"rgba(0,0,0,0)",borderWidth:2,borderColor:e,pointColor:e,pointBackgroundColor:e,pointBorderColor:i.rgba(e,.2),pointHoverBackgroundColor:e,pointHoverBorderColor:e,pointHoverBorderWidth:2,pointHoverRadius:5,tension:"true"===i.bezierCurve?.4:0}}},bar:{opts:{scales:{yAxes:[{ticks:{callback:function(e){return t.formatYAxisNumber(e)}}}],xAxes:[{barPercentage:1,categoryPercentage:.85,ticks:{callback:function(e){return o(e)}}}]},legendCallback:function(){return t.config.chartLegend(i)},tooltips:this.linearTooltips("label")},dataset:function(e){return{color:e,backgroundColor:i.rgba(e,.6),borderColor:i.rgba(e,.9),borderWidth:2,hoverBackgroundColor:i.rgba(e,.75),hoverBorderColor:e}}},radar:{opts:{scale:{ticks:{callback:function(e){return t.formatNumber(e)}}},legendCallback:function(){return t.config.chartLegend(i)},tooltips:this.linearTooltips()},dataset:function(e){return{color:e,backgroundColor:i.rgba(e,.1),borderColor:e,borderWidth:2,pointBackgroundColor:e,pointBorderColor:i.rgba(e,.8),pointHoverBackgroundColor:e,pointHoverBorderColor:e,pointHoverRadius:5}}},pie:{opts:{legendCallback:function(){return t.config.chartLegend(i)},tooltips:this.circularTooltips},dataset:function(e){return{color:e,backgroundColor:e,hoverBackgroundColor:i.rgba(e,.8)}}},doughnut:{opts:{legendCallback:function(){return t.config.chartLegend(i)},tooltips:this.circularTooltips},dataset:function(e){return{color:e,backgroundColor:e,hoverBackgroundColor:i.rgba(e,.8)}}},polarArea:{opts:{scale:{ticks:{beginAtZero:!0,callback:function(e){return t.formatNumber(e)}}},legendCallback:function(){return t.config.chartLegend(i)},tooltips:this.circularTooltips},dataset:function(e){return{color:e,backgroundColor:i.rgba(e,.7),hoverBackgroundColor:i.rgba(e,.9)}}}},circularCharts:["pie","doughnut","polarArea"],colors:["rgba(171, 212, 235, 1)","rgba(178, 223, 138, 1)","rgba(251, 154, 153, 1)","rgba(253, 191, 111, 1)","rgba(202, 178, 214, 1)","rgba(207, 182, 128, 1)","rgba(141, 211, 199, 1)","rgba(252, 205, 229, 1)","rgba(255, 247, 161, 1)","rgba(217, 217, 217, 1)"],defaults:{alwaysRedirects:!1,autocomplete:"autocomplete",chartType:function(e){return e>1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(e){return t.formatNumber(e)}}}]},legendCallback:function(e){return t.config.chartLegend(e.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:r,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[r,r],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(r)?moment().startOf("week"):r],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,t=i.isPagecounts()?l:r;return[moment(t).subtract(e,"days").startOf("day"),t]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a},rtlLangs:["ar","he","fa","ps","ur"]}}return o(e,[{key:"formatYAxisNumber",value:function(e){return e%1==0?this.formatNumber(e):null}},{key:"linearTooltips",value:function(e){var t=this;return{mode:e||"x-axis",callbacks:{label:function(e){return Number.isNaN(e.yLabel)?" "+$.i18n("unknown"):" "+t.formatNumber(e.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(e){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(e):e}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(e){return this.jQueryCache[e]?this.jQueryCache[e]:this.jQueryCache[e]=$(e)}},{key:"circularTooltips",get:function(){var e=this;return{callbacks:{label:function(t,i){var n=i.datasets[t.datasetIndex].data[t.index],o=i.labels[t.index];return Number.isNaN(n)?o+": "+$.i18n("unknown"):o+": "+e.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),e}();t.exports=s},{"./site_map":5}],5:[function(e,t,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org", +siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};t.exports=n},{}],6:[function(e,t,i){"use strict";var n=(e("../shared/pv"),{defaults:{dateRange:"last-month",excludes:[]},formStates:["processing","complete","search","reset"],maxDate:moment().subtract(1,"day").startOf("day").utc().toDate(),maxYear:moment().subtract(1,"year").startOf("year").utc().toDate(),pageSize:100,validateParams:["project","platform"],cacheTime:60});t.exports=n},{"../shared/pv":3}],7:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!t||i.length!==t);n=!0);}catch(e){o=!0,r=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(t,i){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function e(e,t){for(var i=0;i\n \n \n "+ ++i+"\n \n \n \n \n \n "+h+"\n "+d+"\n \n "+this.formatNumber(o.views)+"\n \n "+c+"\n ")}}this.offsetEnd=n,setTimeout(function(){e.setState("complete"),$(".topview-entry--background").addClass("animate")}),this.pushParams(),this.addExcludeListeners()}},{key:"addExclude",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(Array.isArray(e)||(e=[e]),e.forEach(function(e){t.excludes.includes(e)||t.excludes.push(e)}),this.$select2Input.html(""),this.excludes.forEach(function(e){var i=$("
    ").text(e).html();$("").appendTo(t.$select2Input)}),i)if(this.pageData[this.offsetEnd]){this.setState("processing");var n=this.pageData[this.offsetEnd].article;this.setSingleEditData(n).always(function(){return t.setSingleMobileViews(n).always(function(){t.setState("complete"),t.$select2Input.val(t.excludes).trigger("change"),t.showList()})})}else this.$select2Input.val(this.excludes).trigger("change"),this.showList();this.buildReportFalsePositiveForm()}},{key:"addExcludeListeners",value:function(){var e=this;$(".topview-entry--remove").off("click").on("click",function(t){e.excludeAdded||(e.excludeAdded=!0,$(".report-false-positive").show());var i=e.pageNames[$(t.target).data("article-id")];e.addExclude(i),e.pushParams()})}},{key:"buildReportFalsePositiveForm",value:function(){var e=this;$(".false-positive-list").html(""),this.excludes.forEach(function(e,t){$(".false-positive-list").append("\n
  • \n \n
  • \n ")}),$(".submit-false-positive").off("click").on("click",function(){var t=$.map($(".false-positive-list input:checked"),function(t){return encodeURIComponent(e.excludes[parseInt(t.dataset.index,10)])});t.length&&($.ajax({url:"/topviews/api.php",data:{project:e.project,pages:t,date:e.getParams(!1).date,platform:e.$platformSelector.val()},method:"POST"}),e.toastSuccess($.i18n("report-false-positive-submitted",$.i18n("topviews"))),$(".report-false-positive").hide())})}},{key:"clearSearch",value:function(){this.setState("complete"),this.$topviewsSearchIcon.hasClass("glyphicon-remove")&&($("#topviews_search_field").val(""),this.$topviewsSearchIcon.removeClass("glyphicon-remove").addClass("glyphicon-search"),this.showList())}},{key:"shouldShowMobile",value:function(){return this.isYearly()||this.$showMobileCheckbox.is(":checked")&&"all-access"===this.$platformSelector.val()}},{key:"exportCSV",value:function(){var e=this,t="data:text/csv;charset=utf-8,Page,Edits,Editors,Views"+(this.shouldShowMobile()?",Mobile %":"")+"\n";this.pageData.forEach(function(i){if(!e.excludes.includes(i.article)&&!e.autoExcludes.includes(i.article)){var n='"'+i.article.replace(/"/g,'""')+'"',o=e.editData[i.article]||{};t+=n+","+("number"==typeof o.num_edits?o.num_edits:"?")+","+("number"==typeof o.num_users?o.num_users:"?")+","+i.views,e.shouldShowMobile()&&(t+=","+e.percentMobile(i)),t+="\n"}}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var e="data:text/json;charset=utf-8,"+JSON.stringify(this.pageData);this.downloadData(e,"json")}},{key:"getExportFilename",value:function(){var e=this.datepicker.getDate(),t=void 0;return t=this.isYearly()?moment(e).format("YYYY"):this.isMonthly()?moment(e).format("YYYY/MM"):moment(e).format("YYYY/MM/DD"),this.app+"-"+t}},{key:"getPageviewsURL",value:function(e){var t=moment(this.datepicker.getDate()),i=void 0,n=void 0;this.isYearly()?(i=t.format("YYYY-01-01"),n=t.endOf("year").format("YYYY-MM-DD")):this.isMonthly()?(i=t.format("YYYY-MM-01"),n=t.endOf("month").format("YYYY-MM-DD")):(i=moment(t).subtract(3,"days").format("YYYY-MM-DD"),n=t.add(3,"days").format("YYYY-MM-DD"));var o=this.$platformSelector.val();return"/pageviews?start="+i+"&end="+n+"&project="+this.$projectInput.val()+"&platform="+o+"&pages="+encodeURIComponent(e.score()).replace("'",escape)}},{key:"getParams",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={project:this.$projectInput.val(),platform:this.$platformSelector.val()},i=this.datepicker.getDate();return this.specialRange&&e?t.date=this.specialRange.range:this.isYearly()?t.date=moment(i).format("YYYY"):this.isMonthly()?t.date=moment(i).format("YYYY-MM"):t.date=moment(i).format("YYYY-MM-DD"),t}},{key:"getPermaLink",value:function(){var e=this.getParams(!1);return delete e.range,e}},{key:"setSpecialRange",value:function(e){if("last-year"===e)this.setupDatePicker("yearly"),this.datepicker.setDate(this.config.maxYear),this.specialRange={range:e,value:moment(this.config.maxYear).format("YYYY")};else if("last-month"===e)this.setupDatePicker("monthly"),this.datepicker.setDate(this.maxMonth),this.specialRange={range:e,value:moment(this.maxMonth).format("YYYY/MM")};else{if("yesterday"!==e)return!1;this.setupDatePicker("daily"),this.datepicker.setDate(this.maxDate),this.specialRange={range:e,value:moment(this.maxDate).format("YYYY-MM-DD")}}return!0}},{key:"setDate",value:function(e){var i=void 0;if(/\d{4}$/.test(e))this.setupDatePicker("yearly"),(i=moment(e+"-01-01").toDate())>this.config.maxYear&&(i=this.config.maxYear);else if(/\d{4}-\d{2}$/.test(e))this.setupDatePicker("monthly"),(i=moment(e+"-01").toDate())>this.maxMonth&&(i=this.maxMonth);else{if(!/\d{4}-\d{2}-\d{2}$/.test(e))return void(this.setSpecialRange(e)||this.setSpecialRange(this.config.defaults.dateRange));this.setupDatePicker("daily"),(i=moment(e).toDate())>this.maxDate&&(i=this.maxDate)}i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.minDate).format(l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this)))+"\n "),i=this.minDate.toDate()),this.datepicker.setDate(i)}},{key:"popParams",value:function(){var e=this;this.setState("processing");var t=this.validateParams(this.parseQueryString("excludes"));(t.range||t.start||t.end)&&(this.fixLegacyDates(t),this.toastWarn("\n Topviews has been revamped!\n Custom date ranges are\n no longer supported.\n Using defaults instead.\n ")),this.setDate(t.date),this.$projectInput.val(t.project),this.$platformSelector.val(t.platform),this.isYearly()?($(".percent-mobile-wrapper").show(),this.$showMobileCheckbox.prop("disabled",!0).prop("checked",!0),this.$mainspaceCheckbox.prop("disabled",!0).prop("checked",!0),$(".output-table").addClass("show-mobile"),this.$platformSelector.prop("disabled",!0).val("all-access")):"all-access"===t.platform&&($(".percent-mobile-wrapper").show(),this.$showMobileCheckbox.prop("checked",!!t.mobileviews),$(".output-table").toggleClass("show-mobile",!!t.mobileviews)),this.$mainspaceCheckbox.prop("checked","false"!==t.mainspace),this.excludes=(t.excludes||[]).map(function(e){return decodeURIComponent(e.descore())}),this.params=location.search,this.patchUsage(),this.initData().done(function(){e.setupSelect2(),e.showList()}).always(function(){e.setupListeners()})}},{key:"fixLegacyDates",value:function(e){if(e.date||!e.start&&!e.end&&!e.range)return e;if(e.range)return e.date="last-month",e;var t=/\d{4}-\d{2}-\d{2}$/;if(!t.test(e.start)&&!t.test(e.end))return e.date="last-month",e;var i=moment(e.start,"YYYY-MM-DD"),n=moment(e.end,"YYYY-MM-DD"),o=Math.abs(n.diff(i,"days"));return e.date=o>3?i.format("YYYY-MM"):e.start,e}},{key:"pushParams",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"pushParams",this).call(this,"excludes")}},{key:"resetView",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.setState("reset"),this.clearSearch(),this.$topviewEntries.html(""),e&&(this.resetSelect2(),this.excludes=[])}},{key:"setState",value:function(e,t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(e),e){case"initial":case"reset":this.stopSpinny(),this.autoExcludes=[],this.offset=0,this.offsetEnd=0,this.max=null,this.pageData=[],this.pageNames=[],this.mobileViews={},this.editData={},this.excludeAdded=!1,$(".message-container").html(""),$(".show-more").removeClass("hidden");break;case"processing":this.startSpinny();break;case"complete":this.stopSpinny()}"function"==typeof t&&t()}},{key:"searchTopviews",value:function(){var e=this,t=$("#topviews_search_field").val().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");if(!t)return this.clearSearch();this.setState("search");var i=[],n=0;this.pageData.forEach(function(o,r){e.excludes.includes(o.article)||e.autoExcludes.includes(o.article)||(n++,new RegExp(t,"i").test(o.article)&&(o.rank=n,o.index=r,i.push(o)))}),this.$topviewEntries.html(""),this.$topviewsSearchIcon.removeClass("glyphicon-search").addClass("glyphicon-remove"),i.forEach(function(t){e.$topviewEntries.append("\n \n \n "+t.rank+"\n \n \n \n \n \n \n \n "+e.formatNumber(t.views)+"\n \n \n ")}),this.addExcludeListeners()}},{key:"validateProject",value:function(){l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.processInput())}},{key:"setupSelect2",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.excludes;this.$select2Input.select2({data:[],maximumSelectionLength:50,minimumInputLength:0,minimumResultsForSearch:1/0,placeholder:$.i18n("hover-to-exclude")}),t.length&&this.setSelect2Defaults(t),this.$select2Input.on("change",function(t){e.excludes=$(t.target).val()||[],e.max=null,e.clearSearch(),$(".select2-search__field").prop("disabled",!0)}),this.$select2Input.on("select2:unselect",function(t){var i=t.params.data.text;e.mobileViews[i]?e.showList():(e.setState("processing"),e.setSingleMobileViews(i).always(e.showList.bind(e))),$(t.target).val()||$(".report-false-positive").hide()})}},{key:"setSelect2Defaults",value:function(e){var t=this;return e=e.map(function(e){var i=$("
    ").text(e).html();return $("").appendTo(t.$select2Input),e}),this.$select2Input.select2("val",e),e}},{key:"setupDatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"monthly";$("#date-type-select").val(e);var t=void 0;t="yearly"===e?{format:"yyyy",viewMode:"years",minViewMode:"years",endDate:this.config.maxYear}:"monthly"===e?{format:"MM yyyy",viewMode:"months",minViewMode:"months",endDate:this.maxMonth}:{format:this.dateFormat,viewMode:"days",endDate:this.maxDate},this.$dateSelector.datepicker("destroy"),this.$dateSelector.datepicker(Object.assign({autoclose:!0,startDate:this.minDate.toDate()},t))}},{key:"setupListeners",value:function(){var e=this;l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupListeners",this).call(this),this.$platformSelector.on("change",function(t){$(".percent-mobile-wrapper").toggle("all-access"===t.target.value||e.isYearly()),$(".output-table").toggleClass("show-mobile",e.shouldShowMobile()),e.processInput()}),$("#date-type-select").on("change",function(){e.$platformSelector.prop("disabled",!1),e.$showMobileCheckbox.prop("disabled",!1),e.$mainspaceCheckbox.prop("disabled",!1),e.isYearly()?(e.$platformSelector.val("all-access").prop("disabled",!0),$(".percent-mobile-wrapper").show(),e.$showMobileCheckbox.prop("checked",!0).prop("disabled",!0),e.$mainspaceCheckbox.prop("checked",!0).prop("disabled",!0),$(".output-table").addClass("show-mobile"),e.setSpecialRange("last-year")):e.isMonthly()?e.setSpecialRange("last-month"):e.setSpecialRange("yesterday")}),$(".show-more").on("click",function(){e.offset+=e.config.pageSize,e.setState("processing");var t=e.config.pageSize;e.pageData.length-e.offsetEnd0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.pageSize,n=$.Deferred(),o=this.getDates(),r=a(o,2),s=r[0],l=r[1],c=t,u=0,d=i;this.pageData.length0&&void 0!==arguments[0]?arguments[0]:0,t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.config.pageSize,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=$.Deferred();if(!this.shouldShowMobile())return o.resolve({});if(this.isYearly())return o.resolve({});var r=this.getDates(),s=a(r,2),l=s[0],c=s[1],u=e,d=0,h=i,p=function(e){var i,n=[];["mobile-web","mobile-app"].forEach(function(i){var o="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+t.project+"/"+i+"/user/"+encodeURIComponent(e)+"/"+(t.isMonthly()?"monthly":"daily")+"/"+l.format(t.config.timestampFormat)+"/"+c.format(t.config.timestampFormat);if(t.mobileViews[e]){var r=$.Deferred();return n.push(r),r.resolve()}var a=$.ajax({url:o,dataType:"json"});n.push(a),a.done(function(e){var i=e.items.reduce(function(e,t){return e+t.views},0),n=e.items[0].article.descore();t.mobileViews[n]=i+(t.mobileViews[n]||0)})}),(i=$).whenAll.apply(i,n).always(function(){0==--h&&o.resolve(t.mobileViews)})};if(n)p(n);else for(var f=this.rateLimit(p,2*this.config.apiThrottle,this),g=this.pageData.length;d";t.html($.i18n("known-false-positives-text",i,this.autoExcludes.length)),t.show(),$("#list-false-positives-modal").on("show.bs.modal",function(){$(".false-positive-list").html(""),e.autoExcludes.forEach(function(t){var i=e.pageData.find(function(e){return e.article===t}).rank;$(".false-positive-list").append("\n "+e.getPageLink(t,e.project)+""+i+"\n ")})}),this.excludes=this.excludes.filter(function(t){return-1===e.autoExcludes.indexOf(t)})}},{key:"filterOutNamespace",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=$.Deferred(),o=function(e,n){return e.filter(function(e){var o=e.split(":")[0],r=t.getSiteInfo(t.project).general.mainpage;return(0!==i||e!==r&&e!==r.split(":")[1])&&(!e.includes(":")||!n.includes(o))})};return this.fetchSiteInfo(this.project).done(function(){var r=[];0===i&&(r=["Wikipedia","Special","Sp?cial"]);for(var a in t.getSiteInfo(t.project).namespaces)r.push(t.getSiteInfo(t.project).namespaces[a]["*"]);e=o(e,r),t.excludes=o(t.excludes,r),n.resolve(e)}).fail(function(){t.writeMessage(""+$.i18n("api-error","Siteinfo API")),n.resolve(e)}),n}},{key:"$showMobileCheckbox",get:function(){return this.cachedElement(".show-percent-mobile")}},{key:"$mainspaceCheckbox",get:function(){return this.cachedElement(".mainspace-only-option")}},{key:"$topviewEntries",get:function(){return this.cachedElement(".topview-entries")}},{key:"$topviewsSearchIcon",get:function(){return this.cachedElement(".topviews-search-icon")}},{key:"dateFormat",get:function(){return l(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this).toLowerCase()}},{key:"$dateSelector",get:function(){return this.cachedElement(".date-selector")}},{key:"datepicker",get:function(){return this.$dateSelector.data("datepicker")}}]),t}(u);$(function(){new d})},{"../shared/pv":3,"./config":6}]},{},[7]); \ No newline at end of file diff --git a/public_html/topviews/rev-manifest.json b/public_html/topviews/rev-manifest.json index 3f49e7f8..3937bc60 100644 --- a/public_html/topviews/rev-manifest.json +++ b/public_html/topviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-b9da095aa9.css", - "application.js": "application-115245c162.js" + "application.js": "application-8cdfc9de7b.js" } \ No newline at end of file diff --git a/public_html/userviews/application-4b087ed598.js b/public_html/userviews/application-6ce53afbe2.js similarity index 91% rename from public_html/userviews/application-4b087ed598.js rename to public_html/userviews/application-6ce53afbe2.js index a45d09ea..b0698c0f 100644 --- a/public_html/userviews/application-4b087ed598.js +++ b/public_html/userviews/application-6ce53afbe2.js @@ -12,5 +12,5 @@ o.numberOfLabelLines=function(t){var e=1;return o.each(t,function(t){o.isArray(t d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=a.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=a.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=o.length;u>c;++c)i.fillText(o[c],t.x,t.y),t.y+=r+s,c+1===o.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var o=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=a.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=a.fontString(o,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=o+r};a.each(e.beforeBody,d);var h=s.length>1;u=h?o+2:0,a.each(s,function(r,s){a.each(r.before,d),a.each(r.lines,function(r){h&&(i.fillStyle=a.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,o,o),i.strokeStyle=a.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,o,o),i.fillStyle=a.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,o-2,o-2),i.fillStyle=c),d(r)}),a.each(r.after,d)}),u=0,a.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var o=e.footer;if(o.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=a.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=a.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),a.each(o,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=a.color(e.backgroundColor);t.fillStyle=r.alpha(o*r.alpha()).rgbString(),a.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,o),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,o),this.drawBody(n,e,t,o),this.drawFooter(n,e,t,o)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;o>l;)o-=2*Math.PI;for(;s>o;)o+=2*Math.PI;var c=o>=s&&l>=o,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;!0===e._view.steppedLine?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,a=n._view,o=a.spanGaps,r=a.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&a.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,a=i.isHorizontal();return n.xLabels&&a||n.yLabels&&!a?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var a=this,o=Math.max(a.maxIndex+1-a.minIndex-(a.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=a.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(a.isHorizontal()){var l=a.width-(a.paddingLeft+a.paddingRight),c=l/o,u=c*(e-a.minIndex)+a.paddingLeft;return(a.options.gridLines.offsetGridLines&&n||a.maxIndex===a.minIndex&&n)&&(u+=c/2),a.left+Math.round(u)}var d=a.height-(a.paddingTop+a.paddingBottom),h=d/o,f=h*(e-a.minIndex)+a.paddingTop;return a.options.gridLines.offsetGridLines&&n&&(f+=h/2),a.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e=this,i=Math.max(e.ticks.length-(e.options.gridLines.offsetGridLines?0:1),1),n=e.isHorizontal(),a=n?e.width-(e.paddingLeft+e.paddingRight):e.height-(e.paddingTop+e.paddingBottom),o=a/i;return t-=n?e.left:e.top,e.options.gridLines.offsetGridLines&&(t-=o/2),t-=n?e.paddingLeft:e.paddingTop,0>=t?0:Math.round(t/o)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(a)>1&&t!==Math.floor(t)&&(a=t-Math.floor(t));var o=e.log10(Math.abs(a)),r="";if(0!==t){var s=-1*Math.floor(o);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=i.chart,o=a.data,r=o.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(o,r){var s=a.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;a.isDatasetVisible(r)&&t(s)&&e.each(o.data,function(t,e){var a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>a?u[e]+=a:c[e]+=a)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),a=e.min(n),o=e.max(n);i.min=null===i.min?a:Math.min(i.min,a),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(r,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,a=n.options.ticks;if(n.isHorizontal())i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.width/50));else{var o=e.getValueOrDefault(a.fontSize,t.defaults.global.defaultFontSize);i=Math.min(a.maxTicksLimit?a.maxTicksLimit:11,Math.ceil(n.height/(2*o)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,a=n.paddingLeft,o=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(a+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+a)):(i=n.height-(n.paddingTop+o),e=n.bottom-o-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,a=e.paddingBottom,o=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+a),r=(i?t-e.left-n:e.bottom-a-t)/o;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var a=e.sign(t.min),o=e.sign(t.max);0>a&&0>o?t.max=0:a>0&&o>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],a=i.ticks,o=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s;if(a.fixedStepSize&&a.fixedStepSize>0||a.stepSize&&a.stepSize>0)s=o(a.fixedStepSize,a.stepSize);else{var l=e.niceNum(t.max-t.min,!1);s=e.niceNum(l/(r-1),!0)}var c=Math.floor(t.min/s)*s,u=Math.ceil(t.max/s)*s,d=(u-c)/s;d=e.almostEquals(d,Math.round(d),s/1e3)?Math.round(d):Math.ceil(d),n.push(void 0!==a.min?a.min:c);for(var h=1;d>h;++h)n.push(c+h*s);n.push(void 0!==a.max?a.max:u),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),a.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===a||2===a||5===a||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,a=n.ticks,o=i.chart,r=o.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(a,r){var s=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(a.data,function(t,e){var a=u[s.type],o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(a[e]=a[e]||0,n.relativePoints?a[e]=100:a[e]+=o)}))}),e.each(u,function(t){var n=e.min(t),a=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(s,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,a,o,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+o,r=n),t.x-oD?t.x+a>w&&(w=t.x+a,r=n):t.x-ae&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,a=n.gridLines,o=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(o.fontSize,i.defaultFontSize),d=l(o.fontStyle,i.defaultFontStyle),h=l(o.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(a.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(a.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(a.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,M=360*C/(2*Math.PI)%360;c.textAlign=0===M||180===M?"center":180>M?"left":"right",c.textBaseline=90===M||270===M?"middle":M>270||90>M?"bottom":"top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",a,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},a={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},o=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:void 0!==this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),void 0!==i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&!1!==e.options.time.isoWeekday?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(a,o){var r=[],s=t.chart.isDatasetVisible(o);"object"==typeof a.data[0]&&null!==a.data[0]?e.each(a.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var a=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):a=i,t.labelDiffs.push(a)},t)},buildTicks:function(){var n=this;n.ctx.save();var a=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),o=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(a,o,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width;u=u*Math.cos(e.toRadians(n.options.ticks.maxRotation))+a*Math.sin(e.toRadians(n.options.ticks.maxRotation));var d=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var h=0,f=i.units[h];h=Math.ceil(n.scaleSizeInUnits/d)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,f.steps[p]);break}break}if(!1===f.maxStep||Math.ceil(n.scaleSizeInUnits/d)y?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):y>=0&&(n.lastTick=v),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var w=1;w<=n.scaleSizeInUnits;++w){var b=k.clone().add(w,n.tickUnit);if(n.options.time.max&&b.diff(n.lastTick,n.tickUnit,!0)>=0)break;w%n.unitScale==0&&n.ticks.push(b)}(0!==n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit)||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=localStorage.getItem("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var a='"'+t.label.replace(/"/g,'""')+'"';e.push(a),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var a={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){a[t.replace(/\\/,"")]=i.data[e]}),e.push(a)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,o={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");o[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(o[r.format("YYYYMMDD")])t.items.push(o[r.format("YYYYMMDD")]);else{var s=r.isSame(this.maxDate)||r.isSame(moment(this.maxDate).subtract(1,"days"));t.items.push(a({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e,i){var n=this,a=void 0,o=this.isMonthly()?"YYYY-MM":"YYYY-MM-DD",r=this.getDateHeadings(!1);return a=i||(this.isPageviews()?"views":"mediaviews"===this.app?"requests":"metaviews"===this.app||this.isPagecounts()?"count":"devices"),t.map(function(t,i){var s=new Array(r.length),l=0,c=void 0,u=0;t.forEach(function(t){var e=t[a],i=void 0;i="metaviews"===n.app?t.date:moment(t.timestamp,n.config.timestampFormat).format(o),s[r.indexOf(i)]=e,l+=e||0,e>u&&(u=e),(void 0===c||e"+$.i18n("learn-more").toLowerCase()+"";e.toastWarn($.i18n("new-article-warning",n))}}),!u(c))return;var h="siteviews"===e.app?e.getSiteLink(c):e.getPageLink(c,e.project),f="pageviews";e.isUniqueDevices()?f="unique-devices":e.isPagecounts()&&(f="pagecounts"),d.errors.push(h+": "+$.i18n("api-error",f.upcase()+" API")+" - "+n)}}).always(function(){++n===o&&(e.pageViewsData=d,i.resolve(d),r.length&&e.writeMessage($.i18n("api-error-timeout","
      "+r.map(function(t){return"
    • "+e.getPageLink(t,e.project.escape())+"
    • "}).join("")+"
    ")))})};return t.forEach(function(t){return h(t)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"isLogarithmic",value:function(){return this.$logarithmicCheckbox.is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"printChart",value:function(){var t=window.open();t.document.write(''),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),this.$chart.hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){if("line"===this.chartType){var t=this.getDateHeadings().length;Chart.defaults.global.elements.point.hitRadius=t>50?3:t>30?5:t>20?10:30}}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var a=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(a<=10)return!1;var o=!1;return i.forEach(function(t){t.push(a);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return o=!0}),o}},{key:"setupSelect2",value:function(t){var e=this;this.$select2Input.select2(t),this.$select2Input.off("select2:select").on("select2:select",this.processInput.bind(this)),this.$select2Input.off("select2:unselect").on("select2:unselect",function(t){e.processInput(!1,t.params.data.text),e.$select2Input.trigger("select2:close")})}},{key:"setupDateRangeSelector",value:function(){var t=this;if(u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=this.$dateRangeSelector;$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"setupMonthSelector",value:function(t,e){var i=this;this.monthDatepicker&&this.monthDatepicker.destroy(),$(".month-selector").datepicker({autoclose:!0,format:"M yyyy",viewMode:"months",minViewMode:"months",startDate:this.minDate.toDate(),endDate:this.maxMonth,disableTouchKeyboard:!0}),t=t||this.initialMonthStart,e=e||this.maxMonth;var n=function(t,e){return ti.maxMonth&&(e=i.maxMonth),(ee)&&(t=e),[t,e]},a=n(t,e),o=l(a,2);t=o[0],e=o[1],this.monthStartDatepicker.setDate(t),this.monthEndDatepicker.setDate(e),this.daterangepicker.startDate=moment(t).startOf("month"),this.daterangepicker.setEndDate(moment(e).endOf("month"));var r=function(){var t=n(i.monthStartDatepicker.getDate(),i.monthEndDatepicker.getDate()),e=l(t,2),a=e[0],o=e[1];i.daterangepicker.startDate=moment(a).startOf("month"),i.daterangepicker.setEndDate(moment(o).endOf("month"))};$(".month-selector-start").on("hide",r),$(".month-selector-end").on("hide",r)}},{key:"getDates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=void 0,i=void 0,n="YYYY-MM-DD";return this.isMonthly()?(e=moment(this.monthStartDatepicker.getDate()),i=moment(this.monthEndDatepicker.getDate()),n="YYYY-MM"):(e=this.daterangepicker.startDate,i=this.daterangepicker.endDate),t&&(e=e.format(n),i=i.format(n)),[e,i]}},{key:"beforeUpdateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleEntityLegend(),!1;$(".single-entity-stats").html(""),["pageviews","siteviews"].includes(this.app)&&$(".single-entity-ranking").html(""),this.$outputList.html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),a=t.getSortProperty(i,t.sort);return na?-t.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";return $(".sort-link--"+this.sort+" .glyphicon").addClass(i).removeClass("glyphicon-sort"),e}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:this.$select2Input.val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var a=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));this.$logarithmicCheckbox.prop("checked",a),$(".begin-at-zero").toggleClass("disabled",a)}this.outputData=this.setColorsAndLogValues(this.outputData);var o=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(o.scales=Object.assign({},o.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=this.$chart[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?o.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(o.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),o.zoom=["pageviews","siteviews","mediaviews"].includes(this.app)&&this.numDaysInRange()>1&&!this.isMonthly()),$(".show-labels-option").is(":checked")?o=this.showPointLabels(o):(delete o.animation.onComplete,delete o.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:o})}else delete o.animation.onComplete,delete o.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:o})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews","mediaviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){var e=this;if(["bar","line"].includes(this.chartType)){var i=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},n=function(t,n){var a=t.chart,o=i(a.ctx);Chart.helpers.each(t.data.datasets.forEach(function(i,r){var s=a.controller.getDatasetMeta(r);Chart.helpers.each(s.data.forEach(function(t,a){o.fillStyle="rgba(68,68,68,"+n+")";var r=i._meta[Object.keys(i._meta)[0]].data[a]._yScale.maxHeight,s=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.n(i.data[a]),t._model.x,s)}),t)}),t)};return t.animation.onComplete=function(){n(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;n(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}},{key:"setupListeners",value:function(){var t=this;u(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()}),$("#date-type-select").on("change",function(e){$(".date-selector").toggle("daily"===e.target.value),$(".month-selector").toggle("monthly"===e.target.value),"monthly"===e.target.value?(t.specialRange=null,t.setupMonthSelector(),t.daterangepicker.setStartDate(t.monthStartDatepicker.getDate()),t.daterangepicker.setEndDate(moment(t.monthEndDatepicker.getDate()).endOf("month"))):t.processInput()})}},{key:"monthDatepicker",get:function(){return this.cachedElement(".month-selector").data("datepicker")}},{key:"monthStartDatepicker",get:function(){return this.cachedElement(".month-selector-start").data("datepicker")}},{key:"monthEndDatepicker",get:function(){return this.cachedElement(".month-selector-end").data("datepicker")}},{key:"$outputList",get:function(){return this.cachedElement(".output-list")}},{key:"$logarithmicCheckbox",get:function(){return this.cachedElement("#logarithmic-checkbox")}},{key:"$beginAtZeroCheckbox",get:function(){return this.cachedElement(".begin-at-zero")}},{key:"$showLabelsCheckbox",get:function(){return this.cachedElement(".show-labels-option")}}]),e}(t)};e.exports=d},{"./zoom_plugin":8}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new o(t)};var o=function(){function t(e){n(this,t),this.superclass=e}return a(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ia?-e.direction:0});$(".sort-link .glyphicon").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var a=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" .glyphicon").addClass(a).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$(".output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);this.$logarithmicCheckbox.prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var a=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===a||2===a||5===a||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),this.outputData.labels=this.getDateHeadings();var a=this.$chart[0].getContext("2d");this.chartObj=new Chart(a,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$(".another-query").on("click",function(){t.setState("initial"),t.pushParams(!0)}),$(".view-btn").on("click",function(e){document.activeElement.blur(),t.view=e.currentTarget.dataset.value,t.toggleView(t.view)}),$("#pv_form").on("submit",function(e){e.preventDefault(),t.processInput()})}},{key:"$sourceInput",get:function(){return this.cachedElement("#source-input")}}]),e}(t)};e.exports=l},{}],4:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return-1!==this.indexOf(t)}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),"function"!=typeof Object.assign&&function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],a=void 0,o=0;o>>0,n=arguments[1],a=n>>0,o=a<0?Math.max(i+a,0):Math.min(a,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);oThis is the staging environment!

    \n

    To use the staging app, append debug=true to the URL

    \n

    Otherwise, please update your links to use\n https://"+location.host+s+"\n

    \n

    \n Redirecting you to the production "+document.title+" in\n 10...\n

    \n ");var l=10;return setInterval(function(){if(0==--l)return document.location=s;$(".countdown").text(l)},1e3),o(i)}return i.debug?window.app=i:i.splash(),/\/(faq|url_structure)\/?$/.test(document.location.pathname)?o(i):(i.loadTranslations().then(function(){}),$.extend($.i18n.parser.emitter,{link:function(t){return''+t[0].escape()+""}}),i.setupNavCollapsing(),toastr.options={closeButton:!0,debug:location.host.includes("localhost"),newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i)}return r(e,t),l(e,[{key:"loadTranslations",value:function(){var t=n({},i18nLang,"/messages/"+i18nLang+".json");return"en"!==i18nLang&&($.i18n.fallbacks[i18nLang]&&$.i18n.fallbacks[i18nLang].forEach(function(e){t[e]="/messages/"+e+".json"}),t.en="/messages/en.json"),$.i18n({locale:i18nLang}).load(t).then(this.initialize.bind(this))}},{key:"setupNavCollapsing",value:function(){var t=$(window).width(),e=$(".nav-buttons").outerWidth(),i=$(".home-link").outerWidth(),n=$(".interapp-links").outerWidth();if(!(t<768)){n+e+i>t&&$(".interapp-links--more").removeClass("hidden");for(var a=$(".interapp-links--entry").length;a>0&&n+e+i>t;){var o=$(".interapp-links > .interapp-links--entry:not(.active)").last().remove();o.addClass("interapp-links--more-entry"),$(".interapp-links--more .dropdown-menu").append(o),n=$(".interapp-links").outerWidth()+i,a--}}}},{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t.message=e+t.message,t=Object.assign({level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){ var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"error",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/url_structure";if(!this.muteValidations){t=t.replace(/\.+$/,"")+".";var n=""+$.i18n("documentation").toLowerCase()+"";this.toast({message:t+" "+$.i18n("param-error-see-docs",n),level:e,title:$.i18n("invalid-params")})}}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice($.i18n("param-error-3","range")),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/;t.start&&/^\d{4}-\d{2}$/.test(t.start)&&(t.start=t.start+"-01",t.monthly=!0),t.end&&/^\d{4}-\d{2}$/.test(t.end)?t.end=moment(t.end+"-01").endOf("month").format("YYYY-MM-DD"):t.monthly=!1;var i=void 0,n=void 0;if(t.start&&e.test(t.start))i=moment(t.start);else{if("earliest"!==t.start)return this.addInvalidParamNotice($.i18n("param-error-3","start")),!1;i=this.minDate}if(t.end&&e.test(t.end))n=moment(t.end);else{if("latest"!==t.end)return this.addInvalidParamNotice($.i18n("param-error-3","end")),!1;n=this.config.maxDate}if(i>n)return this.addInvalidParamNotice($.i18n("param-error-2")),!1;ithis.maxDate&&(this.addInvalidParamNotice($.i18n("param-error-4"),"warning"),n=this.maxDate),t.monthly&&["pageviews","siteviews"].includes(this.app)?($("#date-type-select").val("monthly"),$(".date-selector").hide(),$(".month-selector").show(),this.monthStart=moment(t.start).toDate(),this.monthEnd=moment(t.end).startOf("month").toDate(),this.setupMonthSelector(this.monthStart,this.monthEnd)):(this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n))}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(u).find(function(e){return u[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");"string"==typeof n.download?(document.body.appendChild(n),n.download=this.getExportFilename()+"."+e,n.href=i,n.click(),document.body.removeChild(n)):window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i="monthly"===$("#date-type-select").val(),n=moment(this.daterangepicker.endDate).add(i?0:1,"day"),a=i?"month":"day",o=i?"YYYY-MM":"YYYY-MM-DD",r=moment(this.daterangepicker.startDate);r.isBefore(n);r.add(1,a))t?e.push(r.format(this.dateFormat)):e.push(r.format(o));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e,i,n){var a=this.getExpandedPageURL(t)+"&action=history";return i&&n&&(a+="&offset="+moment(i).format("YYYYMMDD")+"235959&limit="+(n>500?500:n)),''+e+""}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e,i,n){var a='target="_blank" href="'+this.getPageURL(t,e)+(n?"#"+n.score():"")+'"';if(this.isMultilangProject(e)){var o=this.getProjectLang(e);a+=" lang="+o+' dir="'+(this.config.rtlLangs.includes(o)?"rtl":"ltr")+'"'}return'"+(i||t.descore().escape())+""}},{key:"getPageURL",value:function(t){return"https://"+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project).replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+""}},{key:"getProjectLang",value:function(t){return(t||this.project).split(".")[0]}},{key:"getBugReportURL",value:function(t){return"https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+this.app.upcase()+" bug report"}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(a){e.siteInfo[t]=a.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getEditData",value:function(t){var e=$.Deferred();return $.ajax({url:"/"+this.app+"/api.php",data:{pages:t.join("|"),project:this.project+".org",start:this.daterangepicker.startDate.format("YYYY-MM-DD"),end:this.daterangepicker.endDate.format("YYYY-MM-DD"),totals:!0,ttl:this.config.cacheTime},timeout:8e3}).done(function(t){return e.resolve(t)}).fail(function(){var i={};t.forEach(function(t){return i[t]={}}),e.resolve({pages:i})}),e}},{key:"getAssessmentBadge",value:function(t){return t.assessment?t.assessment_img?""+t.assessment+"":t.assessment:""}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews","userviews"].includes(this.app)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===this.$dataSourceSelector.val()}},{key:"isUniqueDevices",value:function(){return"unique-devices"===this.$dataSourceSelector.val()}},{key:"isPagecounts",value:function(){return"pagecounts"===this.$dataSourceSelector.val()}},{key:"isMultilangProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.project;return new RegExp(".*?\\.("+this.multilangProjects.join("|")+")").test(t)}},{key:"includeRedirects",value:function(){return"redirectviews"===this.app||this.$redirectsCheckbox[0].checked}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var o=$.Deferred(),r={pages:[]};return function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l),$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c}).done(function(t){if(t.error||!t.query)return o.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=a):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=a||r[n].length>=a),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),o.resolve(r))}).fail(function(t){o.reject(t)})}(),o}},{key:"n",value:function(t){return Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=(Array.isArray(t)?t:[t]).join("|");return this.includeRedirects()&&n.length?($.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:n}}).done(function(t){if(t.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+t.error.info.escape())});var n={};return t.query.pages.forEach(function(t){n[t.title]=[{title:t.title}].concat(t.redirects||[])}),i.resolve(n)}),i):i.resolve({})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},a=0;a0&&void 0!==arguments[0])||arguments[0];this.$select2Input.data("select2")&&(this.$select2Input.off("change"),this.$select2Input.select2("val",null),this.$select2Input.select2("data",null),this.$select2Input.select2("destroy")),t&&this.setupSelect2()}},{key:"rgba",value:function(t,e){return t.replace(/,\s*\d\)/,", "+e+")")}},{key:"saveSetting",value:function(t,e){this[t]=e,localStorage.setItem("pageviews-settings-"+t,e)}},{key:"saveSettings",value:function(){var t=this,e="no_autocomplete"===this.autocomplete;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?t.saveSetting(i.name,i.checked?"true":"false"):i.checked&&t.saveSetting(i.name,i.value)}),"topviews"!==this.app&&(this.daterangepicker.locale.format=this.dateFormat,this.daterangepicker.updateElement(),this.setupSelect2Colors(),"no_autocomplete"===this.autocomplete!==e&&this.resetSelect2(),"true"===this.beginAtZero&&$(".begin-at-zero-option").prop("checked",!0),"true"===this.alwaysRedirects&&this.$redirectsCheckbox.prop("checked",!0)),this.processInput(!0)}},{key:"setSelect2Defaults",value:function(t){var e=this;return t.forEach(function(t){var i=$("
    ").text(t).html();$("").appendTo(e.$select2Input)}),this.$select2Input.select2("val",t),this.$select2Input.trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,a=void 0;if(t.includes("latest-")){a=parseInt(t.replace("latest-",""),10)||20;var o=this.config.specialRanges.latest(a),r=s(o,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(a?$.i18n("latest-days",a):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),this.$projectInput.on("focusin",function(){this.dataset.value=this.value}),this.$projectInput.on("change",function(){return t.validateProject()}),$(".permalink").on("click",function(e){$(".permalink-copy").val($(".permalink").prop("href"))[0].select();try{document.execCommand("copy"),t.toastSuccess($.i18n("permalink-copied")),e.preventDefault(),document.activeElement.blur()}catch(e){}}),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.isChartApp()?t.updateTable():t.renderData()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e={},i=void 0;this.isPagecounts()?(e=n({},$.i18n("all-time"),[this.config.minDatePagecounts,this.config.maxDatePagecounts]),i=moment(this.config.maxDatePagecounts).subtract(this.config.daysAgo,"days")):(Object.keys(this.config.specialRanges).forEach(function(i){["latest","current","last-week"].includes(i)||(e[$.i18n(i)]=t.config.specialRanges[i])}),i=moment().subtract(this.config.daysAgo,"days"));var a={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:i,minDate:this.minDate,maxDate:this.maxDate,ranges:e};if(this.config.dateLimit&&(a.dateLimit={days:this.config.dateLimit}),this.daterangepicker){this.$dateRangeSelector.data("daterangepicker").remove();var o=this.$dateRangeSelector.remove();$(".date-selector").append(o)}this.$dateRangeSelector.daterangepicker(a),this.isPagecounts()||"mediaviews"===this.app||$(".daterangepicker").append($("
    ").addClass("daterange-notice").html($.i18n("date-notice",$.i18n("pageviews"===this.app?"title":this.app+"-title")))),$(".daterangepicker .ranges li").off("click").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,t.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),a=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:a,value:n[0].value+" - "+n[1].value}}),this.$dateRangeSelector.off("apply.daterangepicker").on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;if(this.resetView(),t.forEach(function(t){e.writeMessage(""+$.i18n("fatal-error")+": "+t+"")}),this.debug)throw t[0];t&&t[0]&&t[0].stack&&this.toastError("\n "+$.i18n("fatal-error")+": "+$.i18n("error-please-report",this.getBugReportURL(t))+"\n ",0)}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),setTimeout(function(){return document.activeElement.blur()}),clearTimeout(this.timeout),this.timeout=setTimeout(function(){t.resetView(),t.toastError("\n "+$.i18n("fatal-error")+":\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},6e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"triggerUpdate",value:function(){this.isChartApp()?this.updateChart():this.renderData()}},{key:"getEntities",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];return this.$select2Input.length?e=this.$select2Input.select2("val")||[]:this.$sourceInput&&this.$sourceInput.length?e=[this.$sourceInput.val()]:console.warn("["+this.app+"] No select2 or source input found."),t&&(e=e.map(function(t){return t.score()})),e}},{key:"pushParams",value:function(t,e){if(e)return void history.replaceState(null,document.title,location.href.split("?")[0]);var i=this.getEntities().join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&"+t+"="+i),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&"+t+"="+i.replace(/\|/g,escape))}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],a=t[i];void 0===n||e.config.validParams[i].includes(a)||(a&&e.addInvalidParamNotice($.i18n("param-error-3",i)),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this.$projectInput[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project",""+i.escape()+"")),i=e.dataset.value):d.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project",""+i.escape()+"")),i=e.dataset.value),n&&this.$projectInput.trigger("updated"),e.value=i,n}},{key:"writeMessage",value:function(t){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&this.clearMessages(),$(".message-container").append("
    "+t+"
    ")}},{key:"dateFormat",get:function(){var t="monthly"===$("#date-type-select").val();return"true"===this.localizeDateFormat?t?"MMM YYYY":this.getLocaleDateString():t?"YYYY-MM":this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return this.$dateRangeSelector.data("daterangepicker")}},{key:"minDate",get:function(){return this.isPagecounts()?this.config.minDatePagecounts:this.config.minDate}},{key:"maxDate",get:function(){return this.isPagecounts()?this.config.maxDatePagecounts:this.config.maxDate}},{key:"maxMonth",get:function(){return this.isPagecounts()?this.config.maxMonthPagecounts:this.config.maxMonth}},{key:"project",get:function(){var t=this.$projectInput.val();return t?t.toLowerCase().replace(/.org$/,""):null}},{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(c);e.exports=h},{"./core_extensions":2,"./polyfills":4,"./pv_config":6,"./site_map":7}],6:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=function(){function t(t,e){for(var i=0;i1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),minDatePagecounts:moment("2007-12-09").startOf("day"),maxDate:o,maxMonth:s,maxDatePagecounts:l,maxMonthPagecounts:c,specialRanges:{current:[o,o],"this-week":[moment().startOf("week"),moment().startOf("week").isAfter(o)?moment().startOf("week"):o],"last-week":[moment().subtract(1,"week").startOf("isoweek"),moment().subtract(1,"week").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(o)?moment().startOf("month"):o],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(o)?moment().startOf("year"):o],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),o],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo,e=i.isPagecounts()?l:o;return[moment(e).subtract(t,"days").startOf("day"),e]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","automated"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r},rtlLangs:["ar","he","fa","ps","ur"]}}return a(t,[{key:"formatYAxisNumber",value:function(t){return t%1==0?this.formatNumber(t):null}},{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"formatNumber",value:function(t){return"true"===(localStorage.getItem("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting)?this.n(t):t}},{key:"getLocaleDateString",value:function(){return navigator.language?{"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY", -"ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":7}],7:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],8:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],9:[function(t,e,i){"use strict";var n={badges:{Q17437796:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured article"},Q17437798:{ -image:"https://upload.wikimedia.org/wikipedia/commons/9/94/Symbol_support_vote.svg",name:"Good article"},Q17559452:{image:"https://upload.wikimedia.org/wikipedia/commons/c/c4/Art%C3%ADculo_bueno-blue.svg",name:"Recommended article"},Q17506997:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured list"},Q17580674:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured portal"},Q20748092:{image:"https://upload.wikimedia.org/wikipedia/commons/c/ce/Featured_article_star_-_check.svg",name:"Proofread"},Q20748093:{image:"https://upload.wikimedia.org/wikipedia/commons/9/94/Symbol_support_vote.svg",name:"Validated"}},defaults:{dateRange:"latest-20",sort:"views",direction:1,redirects:0,namespace:0,outputData:[],hadFailure:!1,total:0,view:"list"},chartLegend:function(t){return""+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view","redirects"],validParams:{direction:["-1","1"],sort:["title","views","datestamp","size"],view:["list","chart"],redirects:["0","1","2"]}};e.exports=n},{}],10:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,i=$.Deferred();return this.fetchSiteInfo(this.project).then(function(n){$("#namespace-select").html("");var a=n[t.project].namespaces;for(var o in a)if(!(o<0)){var r=a[o]["*"]||$.i18n("main");$("#namespace-select").append("")}return $("#namespace-select").val(e),i.resolve()}),i}},{key:"assignDefaults",value:function(){var t=this;["sort","direction","outputData","hadFailure","total","view"].forEach(function(e){t[e]=t.config.defaults[e]})}},{key:"buildMotherDataset",value:function(t,e,i){var n=this;this.outputData={link:e,listData:[]};var a=moment(this.daterangepicker.startDate),o=moment(this.daterangepicker.endDate),s=this.numDaysInRange(),l=new Array(s).fill(0),c=[],u=[],d=0,h=void 0,f=void 0;i.forEach(function(t,e){u.push(t.title);var i=moment(t.timestamp.substr(0,8),"YYYYMMDD");h&&!i.isBefore(h)||(h=i),f&&!i.isAfter(f)||(f=i);var p=n.fillInZeros(t.items,a,o),g=r(p,2),m=g[0];g[1].forEach(function(t){c.includes(t)||c.push(t)});var k=m.map(function(t){return t.views}),v=k.reduce(function(t,e){return t+e});n.outputData.listData.push({data:k,label:t.title,datestamp:i.format("YYYY-MM-DD"),size:t.length,redirect:t.redirect,url:t.url,sum:v,average:v/s,index:e}),l=l.map(function(t,e){return t+m[e].views}),d+=t.length});var p=l.reduce(function(t,e){return(t||0)+(e||0)}),g=h&&f?Math.abs(h.diff(f,"days")):null;if(Object.assign(this.outputData,{datasets:[{label:t,data:l,sum:p,average:p/s}],datesWithoutData:c,sum:p,average:p/s,datespan:g,size:d,titles:u.unique()}),c.length){var m=c.map(function(t){return moment(t).format(n.dateFormat)});this.writeMessage($.i18n("api-incomplete-data",m.sort().join(" · "),m.length))}return this.hadFailure||simpleStorage.set(this.getCacheKey(),this.outputData,{TTL:6e5}),this.outputData}},{key:"getUserLink",value:function(t){return''+t.descore().escape()+""}},{key:"getParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val(),namespace:$("#namespace-select").val(),redirects:$("#redirects-select").val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.user=this.$sourceInput.val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"user",t)}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n("num-pages",t.formatNumber(t.outputData.titles.length),t.outputData.titles.length)+"\n "+$.i18n("num-days-span",t.outputData.datespan)+"\n "+t.formatNumber(t.outputData.size)+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+" / "+$.i18n("day")+""),$("#output_list").html(""),e.forEach(function(e,i){var n=moment(e.datestamp).format(t.dateFormat),a=e.redirect?"("+$.i18n("redirect").toLowerCase()+")":"";$("#output_list").append("\n "+(i+1)+"\n "+t.getPageLink(e.label,t.project)+" "+a+"\n "+n+"\n "+t.formatNumber(e.size)+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"datestamp":return t.datestamp;case"badges":return t.badges.sort().join("");case"size":return t.size;case"views":return Number(t.sum)}}},{key:"checkEditCount",value:function(t){var e=this;this.isRequestCached()||$.ajax({url:"https://"+this.project+".org/w/api.php?action=query&list=users&ususers="+t+"&usprop=editcount&format=json",dataType:"jsonp"}).then(function(i){var n=i.query.users[0].editcount;if(n>5e4){var a=e.getUserLink(t);e.toastInfo($.i18n("userviews-edit-count-warning",a,n))}})}},{key:"getPagesCreated",value:function(){var t=this,e=$.Deferred(),i=this.$sourceInput.val(),n={username:i,project:this.project+".org",redirects:$("#redirects-select").val()};return"all"!==$("#namespace-select").val()&&(n.namespace=$("#namespace-select").val()),$.ajax({url:"/userviews/api.php",data:n}).done(function(n){if(!Array.isArray(n))return e.reject();var a=n.map(function(e){var i=t.siteInfo[t.project].namespaces[e.namespace]["*"],n=""===i?e.title:i+":"+e.title;return Object.assign(e,{title:n})});return a.length>=t.config.apiLimit&&t.toastWarn($.i18n("userviews-oversized-set",t.getUserLink(i),t.config.apiLimit,t.config.apiLimit)),e.resolve(a)}).fail(function(){return e.reject()}),e}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),a=$.Deferred(),o=[],r=0,s={},l=t.length,c=[],u=[],d=function t(d){var h=d.title,f=encodeURIComponent(h),p="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+e.project+"/"+e.$platformSelector.val()+"/"+e.$agentSelector.val()+"/"+f+"/daily/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat),g=$.ajax({url:p,dataType:"json"});o.push(g),g.done(function(t){d.items=t.items,u.push(d)}).fail(function(i){var n=i.responseJSON&&i.responseJSON.title?i.responseJSON.title:$.i18n("unknown"),a="Error in Cassandra table storage backend"===n,o=e.getPageLink(h,e.project+".org");if(a){if(s[h]?s[h]++:s[h]=1,s[h]<3)return l++,e.rateLimit(t,e.config.apiThrottle,e)(h);c.push(o)}else e.writeMessage(o+": "+$.i18n("api-error","Pageviews API")+" - "+n);404!==i.status&&(e.hadFailure=!0)}).always(function(){e.updateProgressBar(++r,l),r===l&&(c.length&&e.writeMessage($.i18n("api-error-timeout","
      "+c.map(function(t){return"
    • "+t+"
    • "}).join("")+"
    ")),a.resolve(u))})},h=this.rateLimit(d,this.config.apiThrottle,this);return t.forEach(function(t){h(t)}),a}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.$projectInput.val(e.project),this.validateDateRange(e),$(".site-notice .alert-danger").length&&delete e.page,this.$platformSelector.val(e.platform),this.$agentSelector.val(e.agent),$("#redirects-select").val(e.redirects||"0"),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.user?(this.$sourceInput.val(decodeURIComponent(e.user).descore()),this.setupNamespaceSelector(e.namespace).then(function(){t.processInput()})):(this.setupNamespaceSelector(e.namespace),this.$sourceInput.focus())}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),this.$sourceInput.val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"processInput",value:function(){var t=this;this.patchUsage();var e=this.$sourceInput.val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html(t.$dateRangeSelector.val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);$(".progress-counter").text($.i18n("fetching-data","Page Creation API"));var n=0;this.elapsedTimer=setInterval(function(){$(".elapsed-timer").text($.i18n("elapsed-time",++n))},1e3),this.checkEditCount(e),this.getPagesCreated(e).done(function(n){if(!n.length)return t.toastInfo($.i18n("select2-no-results")),t.setState("initial");t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var a=t.getUserLink(e);setTimeout(function(){t.buildMotherDataset(e,a,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.toastError(e):t.toastError($.i18n("api-error-unknown","Page Creation API"))}).always(function(){$(".elapsed-timer").text(""),window.clearInterval(t.elapsedTimer),t.elapsedTimer=null})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),this.$sourceInput.typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",psnamespace:2,pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map(function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)}).unique()}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return this.$sourceInput.data("typeahead")}}]),e}(mix(d).with(h,f));$(function(){new p})},{"../shared/chart_helpers":1,"../shared/list_helpers":3,"../shared/pv":5,"../shared/site_map":7,"./config":9}]},{},[10]); \ No newline at end of file +"ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"}[navigator.language.toLowerCase()]||this.config.defaults.dateFormat:this.config.defaults.dateFormat}},{key:"cachedElement",value:function(t){return this.jQueryCache[t]?this.jQueryCache[t]:this.jQueryCache[t]=$(t)}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function(e,i){var n=i.datasets[e.datasetIndex].data[e.index],a=i.labels[e.index];return Number.isNaN(n)?a+": "+$.i18n("unknown"):a+": "+t.formatNumber(n)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"initialMonthStart",get:function(){return moment(this.maxMonth).subtract(11,"months").toDate()}},{key:"$dateRangeSelector",get:function(){return this.cachedElement(".date-range-selector")}},{key:"$agentSelector",get:function(){return this.cachedElement("#agent-select")}},{key:"$platformSelector",get:function(){return this.cachedElement("#platform-select")}},{key:"$projectInput",get:function(){return this.cachedElement("#project-input")}},{key:"$chart",get:function(){return $("#chart")}},{key:"$select2Input",get:function(){return this.cachedElement("#select2-input")}},{key:"$dataSourceSelector",get:function(){return this.cachedElement("#data-source-select")}},{key:"$redirectsCheckbox",get:function(){return this.cachedElement("#redirects-checkbox")}}]),t}();e.exports=s},{"./site_map":7}],7:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawikibooks:"aa.wikibooks.org",aawiktionary:"aa.wiktionary.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",advisorywiki:"advisory.wikimedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",afwiktionary:"af.wiktionary.org",akwiki:"ak.wikipedia.org",akwikibooks:"ak.wikibooks.org",akwiktionary:"ak.wiktionary.org",alswiki:"als.wikipedia.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",alswiktionary:"als.wiktionary.org",altwiki:"alt.wikipedia.org",amwiki:"am.wikipedia.org",amwikimedia:"am.wikimedia.org",amwikiquote:"am.wikiquote.org",amwiktionary:"am.wiktionary.org",angwiki:"ang.wikipedia.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",angwiktionary:"ang.wiktionary.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",arcwiki:"arc.wikipedia.org",arwiki:"ar.wikipedia.org",arwikibooks:"ar.wikibooks.org",arwikimedia:"ar.wikimedia.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arwiktionary:"ar.wiktionary.org",arywiki:"ary.wikipedia.org",arzwiki:"arz.wikipedia.org",astwiki:"ast.wikipedia.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",astwiktionary:"ast.wiktionary.org",aswiki:"as.wikipedia.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",aswiktionary:"as.wiktionary.org",atjwiki:"atj.wikipedia.org",avkwiki:"avk.wikipedia.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",awawiki:"awa.wikipedia.org",aywiki:"ay.wikipedia.org",aywikibooks:"ay.wikibooks.org",aywiktionary:"ay.wiktionary.org",azbwiki:"azb.wikipedia.org",azwiki:"az.wikipedia.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azwiktionary:"az.wiktionary.org",banwiki:"ban.wikipedia.org",banwikisource:"ban.wikisource.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",bclwiki:"bcl.wikipedia.org",bclwiktionary:"bcl.wiktionary.org",bdwikimedia:"bd.wikimedia.org",be_x_oldwiki:"be-tarask.wikipedia.org",betawikiversity:"beta.wikiversity.org",bewiki:"be.wikipedia.org",bewikibooks:"be.wikibooks.org",bewikimedia:"be.wikimedia.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",bewiktionary:"be.wiktionary.org",bgwiki:"bg.wikipedia.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bgwiktionary:"bg.wiktionary.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwikibooks:"bi.wikibooks.org",biwiktionary:"bi.wiktionary.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bmwiktionary:"bm.wiktionary.org",bnwiki:"bn.wikipedia.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bnwikivoyage:"bn.wikivoyage.org",bnwiktionary:"bn.wiktionary.org",bowiki:"bo.wikipedia.org",bowikibooks:"bo.wikibooks.org",bowiktionary:"bo.wiktionary.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwikimedia:"br.wikimedia.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",brwiktionary:"br.wiktionary.org",bswiki:"bs.wikipedia.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bswiktionary:"bs.wiktionary.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawikibooks:"ca.wikibooks.org",cawikimedia:"ca.wikimedia.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cawiktionary:"ca.wiktionary.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cebwiki:"ceb.wikipedia.org",cewiki:"ce.wikipedia.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chwiki:"ch.wikipedia.org",chwikibooks:"ch.wikibooks.org",chwiktionary:"ch.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cnwikimedia:"cn.wikimedia.org",commonswiki:"commons.wikimedia.org",cowiki:"co.wikipedia.org",cowikibooks:"co.wikibooks.org",cowikimedia:"co.wikimedia.org",cowikiquote:"co.wikiquote.org",cowiktionary:"co.wiktionary.org",crhwiki:"crh.wikipedia.org",crwiki:"cr.wikipedia.org",crwikiquote:"cr.wikiquote.org",crwiktionary:"cr.wiktionary.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cswiki:"cs.wikipedia.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",cswiktionary:"cs.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",cywiktionary:"cy.wiktionary.org",dagwiki:"dag.wikipedia.org",dawiki:"da.wikipedia.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dawiktionary:"da.wiktionary.org",dewiki:"de.wikipedia.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",dewiktionary:"de.wiktionary.org",dinwiki:"din.wikipedia.org",diqwiki:"diq.wikipedia.org",dkwikimedia:"dk.wikimedia.org",dsbwiki:"dsb.wikipedia.org",dtywiki:"dty.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",elwiktionary:"el.wiktionary.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",enwiktionary:"en.wiktionary.org",eowiki:"eo.wikipedia.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eowikivoyage:"eo.wikivoyage.org",eowiktionary:"eo.wiktionary.org",eswiki:"es.wikipedia.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",eswiktionary:"es.wiktionary.org",etwiki:"et.wikipedia.org",etwikibooks:"et.wikibooks.org",etwikimedia:"ee.wikimedia.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",etwiktionary:"et.wiktionary.org",euwiki:"eu.wikipedia.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",euwikisource:"eu.wikisource.org",euwiktionary:"eu.wiktionary.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",fawiktionary:"fa.wiktionary.org",ffwiki:"ff.wikipedia.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwikibooks:"fi.wikibooks.org",fiwikimedia:"fi.wikimedia.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiwikivoyage:"fi.wikivoyage.org",fiwiktionary:"fi.wiktionary.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",foundationwiki:"foundation.wikimedia.org",fowiki:"fo.wikipedia.org",fowikisource:"fo.wikisource.org",fowiktionary:"fo.wiktionary.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",frwiki:"fr.wikipedia.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frwiktionary:"fr.wiktionary.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywikibooks:"fy.wikibooks.org",fywiktionary:"fy.wiktionary.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gawiki:"ga.wikipedia.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gawiktionary:"ga.wiktionary.org",gcrwiki:"gcr.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",gewikimedia:"ge.wikimedia.org",glkwiki:"glk.wikipedia.org",glwiki:"gl.wikipedia.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glwiktionary:"gl.wiktionary.org",gnwiki:"gn.wikipedia.org",gnwikibooks:"gn.wikibooks.org",gnwiktionary:"gn.wiktionary.org",gomwiki:"gom.wikipedia.org",gomwiktionary:"gom.wiktionary.org",gorwiki:"gor.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",grwikimedia:"gr.wikimedia.org",guwiki:"gu.wikipedia.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",guwiktionary:"gu.wiktionary.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hakwiki:"hak.wikipedia.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hewiktionary:"he.wiktionary.org",hifwiki:"hif.wikipedia.org",hifwiktionary:"hif.wiktionary.org",hiwiki:"hi.wikipedia.org",hiwikimedia:"hi.wikimedia.org",hiwikibooks:"hi.wikibooks.org",hiwikisource:"hi.wikisource.org",hiwikiquote:"hi.wikiquote.org",hiwikiversity:"hi.wikiversity.org",hiwikivoyage:"hi.wikivoyage.org",hiwiktionary:"hi.wiktionary.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hrwiktionary:"hr.wiktionary.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",huwiktionary:"hu.wiktionary.org",hywiki:"hy.wikipedia.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hywiktionary:"hy.wiktionary.org",hywwiki:"hyw.wikipedia.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawikibooks:"ia.wikibooks.org",iawiktionary:"ia.wiktionary.org",idwiki:"id.wikipedia.org",idwikibooks:"id.wikibooks.org",idwikimedia:"id.wikimedia.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",idwiktionary:"id.wiktionary.org",iegcomwiki:"iegcom.wikimedia.org",iewiki:"ie.wikipedia.org",iewikibooks:"ie.wikibooks.org",iewiktionary:"ie.wiktionary.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",inhwiki:"inh.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",iswiktionary:"is.wiktionary.org",itwiki:"it.wikipedia.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",itwiktionary:"it.wiktionary.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jamwiki:"jam.wikipedia.org",jawiki:"ja.wikipedia.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jawikivoyage:"ja.wikivoyage.org",jawiktionary:"ja.wiktionary.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kawiki:"ka.wikipedia.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kawiktionary:"ka.wiktionary.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",kkwiktionary:"kk.wiktionary.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwikibooks:"km.wikibooks.org",kmwiktionary:"km.wiktionary.org",knwiki:"kn.wikipedia.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",knwiktionary:"kn.wiktionary.org",koiwiki:"koi.wikipedia.org",kowiki:"ko.wikipedia.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",kowiktionary:"ko.wiktionary.org",kbpwiki:"kbp.wikipedia.org",krcwiki:"krc.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",kshwiki:"ksh.wikipedia.org",kswiki:"ks.wikipedia.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kswiktionary:"ks.wiktionary.org",kuwiki:"ku.wikipedia.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kuwiktionary:"ku.wiktionary.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwikiquote:"kw.wikiquote.org",kwwiktionary:"kw.wiktionary.org",kywiki:"ky.wikipedia.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",kywiktionary:"ky.wiktionary.org",labswiki:"wikitech.wikimedia.org",ladwiki:"lad.wikipedia.org",lawiki:"la.wikipedia.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",lawiktionary:"la.wiktionary.org",lbewiki:"lbe.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbwiktionary:"lb.wiktionary.org",lezwiki:"lez.wikipedia.org",lfnwiki:"lfn.wikipedia.org",lgwiki:"lg.wikipedia.org",lijwiki:"lij.wikipedia.org",lijwikisource:"lij.wikisource.org",liwiki:"li.wikipedia.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",liwiktionary:"li.wiktionary.org",lldwiki:"lld.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwikibooks:"ln.wikibooks.org",lnwiktionary:"ln.wiktionary.org",loginwiki:"login.wikimedia.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltgwiki:"ltg.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltwiktionary:"lt.wiktionary.org",lvwiki:"lv.wikipedia.org",lvwikibooks:"lv.wikibooks.org",lvwiktionary:"lv.wiktionary.org",madwiki:"mad.wikipedia.org",maiwiki:"mai.wikipedia.org",maiwikimedia:"mai.wikimedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mgwiki:"mg.wikipedia.org",mgwikibooks:"mg.wikibooks.org",mgwiktionary:"mg.wiktionary.org",mhrwiki:"mhr.wikipedia.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",minwiki:"min.wikipedia.org",minwiktionary:"min.wiktionary.org",miwiki:"mi.wikipedia.org",miwikibooks:"mi.wikibooks.org",miwiktionary:"mi.wiktionary.org",mkwiki:"mk.wikipedia.org",mkwikibooks:"mk.wikibooks.org",mkwikimedia:"mk.wikimedia.org",mkwikisource:"mk.wikisource.org",mkwiktionary:"mk.wiktionary.org",mlwiki:"ml.wikipedia.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mlwiktionary:"ml.wiktionary.org",mniwiki:"mni.wikipedia.org",mniwiktionary:"mni.wiktionary.org",mnwiki:"mn.wikipedia.org",mnwikibooks:"mn.wikibooks.org",mnwiktionary:"mn.wiktionary.org",mnwwiki:"mnw.wikipedia.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrjwiki:"mrj.wikipedia.org",mrwiki:"mr.wikipedia.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrwiktionary:"mr.wiktionary.org",mswiki:"ms.wikipedia.org",mswikibooks:"ms.wikibooks.org",mswiktionary:"ms.wiktionary.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mxwikimedia:"mx.wikimedia.org",myvwiki:"myv.wikipedia.org",mywiki:"my.wikipedia.org",mywikibooks:"my.wikibooks.org",mywiktionary:"my.wiktionary.org",mznwiki:"mzn.wikipedia.org",nahwiki:"nah.wikipedia.org",nahwikibooks:"nah.wikibooks.org",nahwiktionary:"nah.wiktionary.org",napwiki:"nap.wikipedia.org",napwikisource:"nap.wikisource.org",nawiki:"na.wikipedia.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nawiktionary:"na.wiktionary.org",nds_nlwiki:"nds-nl.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",ndswiktionary:"nds.wiktionary.org",newiki:"ne.wikipedia.org",newikibooks:"ne.wikibooks.org",newiktionary:"ne.wiktionary.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",ngwikimedia:"ng.wikimedia.org",niawiki:"nia.wikipedia.org",niawiktionary:"nia.wiktionary.org",nlwiki:"nl.wikipedia.org",nlwikibooks:"nl.wikibooks.org",nlwikimedia:"nl.wikimedia.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nlwiktionary:"nl.wiktionary.org",nnwiki:"nn.wikipedia.org",nnwikiquote:"nn.wikiquote.org",nnwiktionary:"nn.wiktionary.org",nostalgiawiki:"nostalgia.wikipedia.org",novwiki:"nov.wikipedia.org",nowiki:"no.wikipedia.org",nowikibooks:"no.wikibooks.org",nowikimedia:"no.wikimedia.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",nowiktionary:"no.wiktionary.org",nqowiki:"nqo.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nycwikimedia:"nyc.wikimedia.org",nywiki:"ny.wikipedia.org",nzwikimedia:"nz.wikimedia.org",ocwiki:"oc.wikipedia.org",ocwikibooks:"oc.wikibooks.org",ocwiktionary:"oc.wiktionary.org",olowiki:"olo.wikipedia.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwikisource:"or.wikisource.org",orwiktionary:"or.wiktionary.org",oswiki:"os.wikipedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pawiki:"pa.wikipedia.org",pawikibooks:"pa.wikibooks.org",pawikisource:"pa.wikisource.org",pawiktionary:"pa.wiktionary.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",pihwiki:"pih.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",plwiki:"pl.wikipedia.org",plwikibooks:"pl.wikibooks.org",plwikimedia:"pl.wikimedia.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",plwiktionary:"pl.wiktionary.org",pmswiki:"pms.wikipedia.org",pmswikisource:"pms.wikisource.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswikibooks:"ps.wikibooks.org",pswikivoyage:"ps.wikivoyage.org",pswiktionary:"ps.wiktionary.org",ptwiki:"pt.wikipedia.org",ptwikibooks:"pt.wikibooks.org",ptwikimedia:"pt.wikimedia.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",ptwiktionary:"pt.wiktionary.org",quwiki:"qu.wikipedia.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",quwiktionary:"qu.wiktionary.org",rmwiki:"rm.wikipedia.org",rmwikibooks:"rm.wikibooks.org",rmwiktionary:"rm.wiktionary.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",rowiki:"ro.wikipedia.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",rowiktionary:"ro.wiktionary.org",rswikimedia:"rs.wikimedia.org",ruewiki:"rue.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwikibooks:"ru.wikibooks.org",ruwikimedia:"ru.wikimedia.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruwiktionary:"ru.wiktionary.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",sahwikiquote:"sah.wikiquote.org",satwiki:"sat.wikipedia.org",sawiki:"sa.wikipedia.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sawiktionary:"sa.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",sdwiki:"sd.wikipedia.org",sdwikinews:"sd.wikinews.org",sdwiktionary:"sd.wiktionary.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sewikimedia:"se.wikimedia.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shiwiki:"shi.wikipedia.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",shnwiktionary:"shn.wiktionary.org",shywiktionary:"shy.wiktionary.org",simplewiki:"simple.wikipedia.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",simplewiktionary:"simple.wiktionary.org",siwiki:"si.wikipedia.org",siwikibooks:"si.wikibooks.org",siwiktionary:"si.wiktionary.org",skrwiki:"skr.wikipedia.org",skrwiktionary:"skr.wiktionary.org",skwiki:"sk.wikipedia.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",skwiktionary:"sk.wiktionary.org",slwiki:"sl.wikipedia.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",slwiktionary:"sl.wiktionary.org",smnwiki:"smn.wikipedia.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sourceswiki:"wikisource.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",specieswiki:"species.wikimedia.org",sqwiki:"sq.wikipedia.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",sqwiktionary:"sq.wiktionary.org",srnwiki:"srn.wikipedia.org",srwiki:"sr.wikipedia.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srwiktionary:"sr.wiktionary.org",strategywiki:"strategy.wikimedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stqwiki:"stq.wikipedia.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",suwiki:"su.wikipedia.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",suwiktionary:"su.wiktionary.org",svwiki:"sv.wikipedia.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",svwiktionary:"sv.wiktionary.org",swwiki:"sw.wikipedia.org",swwikibooks:"sw.wikibooks.org",swwiktionary:"sw.wiktionary.org",szlwiki:"szl.wikipedia.org",szywiki:"szy.wikipedia.org",tawiki:"ta.wikipedia.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tawiktionary:"ta.wiktionary.org",taywiki:"tay.wikipedia.org",tcywiki:"tcy.wikipedia.org",testwiki:"test.wikipedia.org",test2wiki:"test2.wikipedia.org",tetwiki:"tet.wikipedia.org",tewiki:"te.wikipedia.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tewiktionary:"te.wiktionary.org",tgwiki:"tg.wikipedia.org",tgwikibooks:"tg.wikibooks.org",tgwiktionary:"tg.wiktionary.org",thankyouwiki:"thankyou.wikipedia.org",thwiki:"th.wikipedia.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",thwiktionary:"th.wiktionary.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tkwiktionary:"tk.wiktionary.org",tlwiki:"tl.wikipedia.org",tlwikibooks:"tl.wikibooks.org",tlwiktionary:"tl.wiktionary.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwikibooks:"tr.wikibooks.org",trwikimedia:"tr.wikimedia.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",trwikivoyage:"tr.wikivoyage.org",trwiktionary:"tr.wiktionary.org",trvwiki:"trv.wikipedia.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",ttwiktionary:"tt.wiktionary.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tyvwiki:"tyv.wikipedia.org",tywiki:"ty.wikipedia.org",uawikimedia:"ua.wikimedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ugwiktionary:"ug.wiktionary.org",ukwiki:"uk.wikipedia.org",ukwikibooks:"uk.wikibooks.org",ukwikimedia:"uk.wikimedia.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",ukwiktionary:"uk.wiktionary.org",urwiki:"ur.wikipedia.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",urwiktionary:"ur.wiktionary.org",uzwiki:"uz.wikipedia.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",uzwiktionary:"uz.wiktionary.org",vecwiki:"vec.wikipedia.org",vecwikisource:"vec.wikisource.org",vecwiktionary:"vec.wiktionary.org",vepwiki:"vep.wikipedia.org",vewiki:"ve.wikipedia.org",viwiki:"vi.wikipedia.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",viwiktionary:"vi.wiktionary.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",vowiktionary:"vo.wiktionary.org",warwiki:"war.wikipedia.org",wawiki:"wa.wikipedia.org",wawikibooks:"wa.wikibooks.org",wawikisource:"wa.wikisource.org",wawiktionary:"wa.wiktionary.org",wbwikimedia:"wb.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org",wikimaniawiki:"wikimania.wikimedia.org",wowiki:"wo.wikipedia.org",wowikiquote:"wo.wikiquote.org",wowiktionary:"wo.wiktionary.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwikibooks:"xh.wikibooks.org",xhwiktionary:"xh.wiktionary.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwikisource:"yi.wikisource.org",yiwiktionary:"yi.wiktionary.org",yowiki:"yo.wikipedia.org",yowikibooks:"yo.wikibooks.org",yowiktionary:"yo.wiktionary.org",zawiki:"za.wikipedia.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zawiktionary:"za.wiktionary.org",zeawiki:"zea.wikipedia.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_yuewiki:"zh-yue.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zhwikiversity:"zh.wikiversity.org",zhwiktionary:"zh.wiktionary.org",zuwiki:"zu.wikipedia.org",zuwikibooks:"zu.wikibooks.org",zuwiktionary:"zu.wiktionary.org"};e.exports=n},{}],8:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,a=Math.min(i.clientX,e.clientX)-n,o=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(a),l=r.getValueForPixel(o);if(o-a<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var c=t.data.labels,u=$(".date-range-selector").data("daterangepicker");if(l-s+1===c.length)return t.update(0);u.startDate=moment(c[s],t.data.dateFormat),u.setEndDate(moment(c[l],t.data.dateFormat)),u.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],a=t.zoom._dragZoomStart,o=t.zoom._dragZoomEnd,r=a.target.getBoundingClientRect().left,s=Math.min(a.clientX,o.clientX)-r,l=Math.max(a.clientX,o.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],9:[function(t,e,i){"use strict";var n={badges:{ +Q17437796:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured article"},Q17437798:{image:"https://upload.wikimedia.org/wikipedia/commons/9/94/Symbol_support_vote.svg",name:"Good article"},Q17559452:{image:"https://upload.wikimedia.org/wikipedia/commons/c/c4/Art%C3%ADculo_bueno-blue.svg",name:"Recommended article"},Q17506997:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured list"},Q17580674:{image:"https://upload.wikimedia.org/wikipedia/commons/e/e7/Cscr-featured.svg",name:"Featured portal"},Q20748092:{image:"https://upload.wikimedia.org/wikipedia/commons/c/ce/Featured_article_star_-_check.svg",name:"Proofread"},Q20748093:{image:"https://upload.wikimedia.org/wikipedia/commons/9/94/Symbol_support_vote.svg",name:"Validated"}},defaults:{dateRange:"latest-20",sort:"views",direction:1,redirects:0,namespace:0,outputData:[],hadFailure:!1,total:0,view:"list"},chartLegend:function(t){return""+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view","redirects"],validParams:{direction:["-1","1"],sort:["title","views","datestamp","size"],view:["list","chart"],redirects:["0","1","2"]}};e.exports=n},{}],10:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,a=!1,o=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){a=!0,o=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw o}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:0,i=$.Deferred();return this.fetchSiteInfo(this.project).then(function(n){$("#namespace-select").html("");var a=n[t.project].namespaces;for(var o in a)if(!(o<0)){var r=a[o]["*"]||$.i18n("main");$("#namespace-select").append("")}return $("#namespace-select").val(e),i.resolve()}),i}},{key:"assignDefaults",value:function(){var t=this;["sort","direction","outputData","hadFailure","total","view"].forEach(function(e){t[e]=t.config.defaults[e]})}},{key:"buildMotherDataset",value:function(t,e,i){var n=this;this.outputData={link:e,listData:[]};var a=moment(this.daterangepicker.startDate),o=moment(this.daterangepicker.endDate),s=this.numDaysInRange(),l=new Array(s).fill(0),c=[],u=[],d=0,h=void 0,f=void 0;i.forEach(function(t,e){u.push(t.title);var i=moment(t.timestamp.substr(0,8),"YYYYMMDD");h&&!i.isBefore(h)||(h=i),f&&!i.isAfter(f)||(f=i);var p=n.fillInZeros(t.items,a,o),g=r(p,2),m=g[0];g[1].forEach(function(t){c.includes(t)||c.push(t)});var k=m.map(function(t){return t.views}),v=k.reduce(function(t,e){return t+e});n.outputData.listData.push({data:k,label:t.title,datestamp:i.format("YYYY-MM-DD"),size:t.length,redirect:t.redirect,url:t.url,sum:v,average:v/s,index:e}),l=l.map(function(t,e){return t+m[e].views}),d+=t.length});var p=l.reduce(function(t,e){return(t||0)+(e||0)}),g=h&&f?Math.abs(h.diff(f,"days")):null;if(Object.assign(this.outputData,{datasets:[{label:t,data:l,sum:p,average:p/s}],datesWithoutData:c,sum:p,average:p/s,datespan:g,size:d,titles:u.unique()}),c.length){var m=c.map(function(t){return moment(t).format(n.dateFormat)});this.writeMessage($.i18n("api-incomplete-data",m.sort().join(" · "),m.length))}return this.hadFailure||simpleStorage.set(this.getCacheKey(),this.outputData,{TTL:6e5}),this.outputData}},{key:"getUserLink",value:function(t){return''+t.descore().escape()+""}},{key:"getParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={project:this.$projectInput.val(),platform:this.$platformSelector.val(),agent:this.$agentSelector.val(),namespace:$("#namespace-select").val(),redirects:$("#redirects-select").val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.user=this.$sourceInput.val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"pushParams",this).call(this,"user",t)}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){$(".output-totals").html(""+$.i18n("totals")+"\n "+$.i18n("num-pages",t.formatNumber(t.outputData.titles.length),t.outputData.titles.length)+"\n "+$.i18n("num-days-span",t.outputData.datespan)+"\n "+t.formatNumber(t.outputData.size)+"\n "+t.formatNumber(t.outputData.sum)+"\n "+t.formatNumber(Math.round(t.outputData.average))+" / "+$.i18n("day")+""),$("#output_list").html(""),e.forEach(function(e,i){var n=moment(e.datestamp).format(t.dateFormat),a=e.redirect?"("+$.i18n("redirect").toLowerCase()+")":"";$("#output_list").append("\n "+(i+1)+"\n "+t.getPageLink(e.label,t.project)+" "+a+"\n "+n+"\n "+t.formatNumber(e.size)+"\n "+t.formatNumber(e.sum)+"\n "+t.formatNumber(Math.round(e.average))+"\n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"datestamp":return t.datestamp;case"badges":return t.badges.sort().join("");case"size":return t.size;case"views":return Number(t.sum)}}},{key:"checkEditCount",value:function(t){var e=this;this.isRequestCached()||$.ajax({url:"https://"+this.project+".org/w/api.php?action=query&list=users&ususers="+t+"&usprop=editcount&format=json",dataType:"jsonp"}).then(function(i){var n=i.query.users[0].editcount;if(n>5e4){var a=e.getUserLink(t);e.toastInfo($.i18n("userviews-edit-count-warning",a,n))}})}},{key:"getPagesCreated",value:function(){var t=this,e=$.Deferred(),i=this.$sourceInput.val(),n={username:i,project:this.project+".org",redirects:$("#redirects-select").val()};return"all"!==$("#namespace-select").val()&&(n.namespace=$("#namespace-select").val()),$.ajax({url:"/userviews/api.php",data:n}).done(function(n){if(!Array.isArray(n))return e.reject();var a=n.map(function(e){var i=t.siteInfo[t.project].namespaces[e.namespace]["*"],n=""===i?e.title:i+":"+e.title;return Object.assign(e,{title:n})});return a.length>=t.config.apiLimit&&t.toastWarn($.i18n("userviews-oversized-set",t.getUserLink(i),t.config.apiLimit,t.config.apiLimit)),e.resolve(a)}).fail(function(){return e.reject()}),e}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),a=$.Deferred(),o=[],r=0,s={},l=t.length,c=[],u=[],d=function t(d){var h=d.title,f=encodeURIComponent(h),p="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+e.project+"/"+e.$platformSelector.val()+"/"+e.$agentSelector.val()+"/"+f+"/daily/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat),g=$.ajax({url:p,dataType:"json"});o.push(g),g.done(function(t){d.items=t.items,u.push(d)}).fail(function(i){var n=i.responseJSON&&i.responseJSON.title?i.responseJSON.title:$.i18n("unknown"),a="Error in Cassandra table storage backend"===n,o=e.getPageLink(h,e.project+".org");if(a){if(s[h]?s[h]++:s[h]=1,s[h]<3)return l++,e.rateLimit(t,e.config.apiThrottle,e)(h);c.push(o)}else e.writeMessage(o+": "+$.i18n("api-error","Pageviews API")+" - "+n);404!==i.status&&(e.hadFailure=!0)}).always(function(){e.updateProgressBar(++r,l),r===l&&(c.length&&e.writeMessage($.i18n("api-error-timeout","
      "+c.map(function(t){return"
    • "+t+"
    • "}).join("")+"
    ")),a.resolve(u))})},h=this.rateLimit(d,this.config.apiThrottle,this);return t.forEach(function(t){h(t)}),a}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.$projectInput.val(e.project),this.validateDateRange(e),$(".site-notice .alert-danger").length&&delete e.page,this.$platformSelector.val(e.platform),this.$agentSelector.val(e.agent),$("#redirects-select").val(e.redirects||"0"),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.user?(this.$sourceInput.val(decodeURIComponent(e.user).descore()),this.setupNamespaceSelector(e.namespace).then(function(){t.processInput()})):(this.setupNamespaceSelector(e.namespace),this.$sourceInput.focus())}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$(".output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),this.$sourceInput.val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible")}}},{key:"processInput",value:function(){var t=this;this.patchUsage();var e=this.$sourceInput.val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html(t.$dateRangeSelector.val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);$(".progress-counter").text($.i18n("fetching-data","Page Creation API"));var n=0;this.elapsedTimer=setInterval(function(){$(".elapsed-timer").text($.i18n("elapsed-time",++n))},1e3),this.checkEditCount(e),this.getPagesCreated(e).done(function(n){if(!n.length)return t.toastInfo($.i18n("select2-no-results")),t.setState("initial");t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var a=t.getUserLink(e);setTimeout(function(){t.buildMotherDataset(e,a,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.toastError(e):t.toastError($.i18n("api-error-unknown","Page Creation API"))}).always(function(){$(".elapsed-timer").text(""),window.clearInterval(t.elapsedTimer),t.elapsedTimer=null})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),this.$sourceInput.typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",psnamespace:2,pssearch:"User:"+t}},preProcess:function(t){return t.query.prefixsearch.map(function(t){return t.title.split("/")[0].substr(t.title.indexOf(":")+1)}).unique()}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return this.$sourceInput.data("typeahead")}}]),e}(mix(d).with(h,f));$(function(){new p})},{"../shared/chart_helpers":1,"../shared/list_helpers":3,"../shared/pv":5,"../shared/site_map":7,"./config":9}]},{},[10]); \ No newline at end of file diff --git a/public_html/userviews/rev-manifest.json b/public_html/userviews/rev-manifest.json index e831a183..c7e5ee0c 100644 --- a/public_html/userviews/rev-manifest.json +++ b/public_html/userviews/rev-manifest.json @@ -1,4 +1,4 @@ { "application.css": "application-fe224d0b58.css", - "application.js": "application-4b087ed598.js" + "application.js": "application-6ce53afbe2.js" } \ No newline at end of file diff --git a/site_map.json b/site_map.json index 0eb57108..2a58c9a1 100644 --- a/site_map.json +++ b/site_map.json @@ -66,6 +66,7 @@ "ba.wikibooks.org": "bawikibooks", "ba.wikipedia.org": "bawiki", "ban.wikipedia.org": "banwiki", + "ban.wikisource.org": "banwikisource", "bar.wikipedia.org": "barwiki", "bat-smg.wikipedia.org": "bat_smgwiki", "bcl.wikipedia.org": "bclwiki", @@ -169,6 +170,7 @@ "da.wikiquote.org": "dawikiquote", "da.wikisource.org": "dawikisource", "da.wiktionary.org": "dawiktionary", + "dag.wikipedia.org": "dagwiki", "de.wikibooks.org": "dewikibooks", "de.wikinews.org": "dewikinews", "de.wikipedia.org": "dewiki", @@ -488,6 +490,7 @@ "lv.wikibooks.org": "lvwikibooks", "lv.wikipedia.org": "lvwiki", "lv.wiktionary.org": "lvwiktionary", + "mad.wikipedia.org": "madwiki", "mai.wikimedia.org": "maiwikimedia", "mai.wikipedia.org": "maiwiki", "map-bms.wikipedia.org": "map_bmswiki", @@ -563,6 +566,7 @@ "new.wikipedia.org": "newwiki", "ng.wikipedia.org": "ngwiki", "ng.wikimedia.org": "ngwikimedia", + "nia.wikipedia.org": "niawiki", "nia.wiktionary.org": "niawiktionary", "nl.wikibooks.org": "nlwikibooks", "nl.wikimedia.org": "nlwikimedia", @@ -699,6 +703,7 @@ "sg.wiktionary.org": "sgwiktionary", "sh.wikipedia.org": "shwiki", "sh.wiktionary.org": "shwiktionary", + "shi.wikipedia.org": "shiwiki", "shn.wiktionary.org": "shnwiktionary", "shy.wiktionary.org": "shywiktionary", "si.wikibooks.org": "siwikibooks",