!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{vart;"undefined"!=typeofwindow?t=window:"undefined"!=typeofglobal?t=global:"undefined"!=typeofself&&(t=self),t.torque=e()}}(function(){vardefine,module,exports;returnfunctione(t,n,r){functioni(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(s)returns(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returni(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}vars=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)i(r[o]);returni}({1:[function(e,t,n){varr=function(e,t){if(e<0)thrownewError("start must be a positive number");if(e>=t)thrownewError("start must be smaller than end");this.start=e,this.end=t};r.prototype={diff:function(){returnthis.end-this.start},isLast:function(e){return(e|0)===this.end}},t.exports=r},{}],2:[function(e,t,n){(function(n){functionu(e,t){if(!t.steps)thrownewError("steps option missing");this.options=t,this.running=!1,this._tick=this._tick.bind(this),this._t0=+(newDate),this.callback=e,this._time=0,this.itemsReady=!1,this.options=r.extend({animationDelay:0,maxDelta:.2,loop:t.loop===undefined?!0:t.loop},this.options),this.steps(t.steps)}varr=e("./"),i=e("./animator-steps-range"),s=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame||function(e){returnn.setTimeout(e,1e3/60)},o=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||n.msCancelAnimationFrame||function(e){clearTimeout(e)};u.prototype={start:function(){this.running=!0,s(this._tick),this.options.onStart&&this.options.onStart(),this.stepsRange().diff()===1&&(this.running=!1)},isRunning:function(){returnthis.running},stop:function(){this.pause(),this.time(this.stepsRange().start),this.options.onStop&&this.options.onStop()},time:function(e){if(!arguments.length)returnthis._time;this._time=e;vart=this.range(this.domain(this._time));this.callback(t)},toggle:function(){this.running?this.pause():this.start()},rescale:function(){returnthis.domainInv=r.math.linear(this.options.animationDelay,this.options.animationDelay+this.options.animationDuration),this.domain=this.domainInv.invert(),this.range=r.math.linear(0,this._defaultStepsRange.end),this.rangeInv=this.range.invert(),this.time(this._time),this.running?this.start():this.pause(),this},duration:function(e){returnarguments.length?(this.options.animationDuration=e,this.time()>e&&this.time(0),this.rescale(),this):this.options.animationDuration},steps:function(e){returnthis.options.steps=e,this._defaultStepsRange=newi(0,e),this.rescale()},stepsRange:function(e,t){if(arguments.length===2){if(e<this._defaultStepsRange.start)thrownewError("start must be within default steps range");if(t>this._defaultStepsRange.end)thrownewError("end must be within default steps range");this._customStepsRange=newi(e,t),this.options.onStepsRange&&this.options.onStepsRange();varn=this.step()|0;(n<e||n>t)&&this.step(e)}returnthis._customStepsRange||this._defaultStepsRange},removeCustomStepsRange:function(){this._customStepsRange=undefined,this.options.onStepsRange&&this.options.onStepsRange()},step:function(e){if(arguments.length===0)returnthis.range(this.domain(this._time));this._time=this.domainInv(this.rangeInv(e))},pause:function(){this.running=!1,o(this._tick),this.options.onPause&&this.options.onPause()},_tick:function(){vare=+(newDate),t=(e-this._t0)*.001;t=Math.min(this.options.maxDelta,t),this._t0=e,this._time+=t;varn=this.stepsRange();n.isLast(this.step())&&(this.options.loop?this.step(n.start):(this.time(this.options.animationDuration),this.pause())),this.running&&(this.time(this._time),s(this._tick))}},t.exports=u}).call(this,typeofglobal!="undefined"?global:typeofself!="undefined"?self:typeofwindow!="undefined"?window:{})},{"./":11,"./animator-steps-range":1}],3:[fun
.x%i+i)%i,y:t.y};this.provider.getTileData(s,n,function(t){r._tileLoaded(e,t)})},drawTile:function(e){vart=e.canvas;if(!e.data)return;t.width=t.width,this.renderer.setCanvas(t);varn=this.renderer.accumulate(e.data,this.getKey());this.renderer.renderTileAccum(n,0,0)},setKey:function(e){this.keys=[e],this.redraw()},setCartoCSS:function(e){if(!this.renderer)thrownewError("renderer is not valid");returnthis.renderer.setCartoCSS(e)},setStepsRange:function(e,t){this.animator.stepsRange(e,t)},removeStepsRange:function(){this.animator.removeCustomStepsRange()},getStepsRange:function(){returnthis.animator.stepsRange()}}),t.exports={GMapsTiledTorqueLayer:f,GMapsTorqueLayer:a}}).call(this,typeofglobal!="undefined"?global:typeofself!="undefined"?self:typeofwindow!="undefined"?window:{})},{"../":11,"./CanvasLayer":6,"./canvas_tile_layer":7,"./gmaps_tileloader_mixin":8,carto:47}],11:[function(e,t,n){t.exports=e("./core"),t.exports.Animator=e("./animator"),t.exports.cartocss_reference=e("./cartocss_reference"),t.exports.common=e("./common"),t.exports.math=e("./math"),t.exports.Mercator=e("./mercator"),t.exports.net=e("./request"),t.exports.renderer=e("./renderer"),t.exports.providers=e("./provider"),e("./leaflet");varr=e("./gmaps");t.exports.GMapsTileLoader=r.GMapsTileLoader,t.exports.GMapsTorqueLayer=r.GMapsTorqueLayer,t.exports.GMapsTiledTorqueLayer=r.GMapsTiledTorqueLayer,e("./ol")},{"./animator":2,"./cartocss_reference":3,"./common":4,"./core":5,"./gmaps":9,"./leaflet":13,"./math":16,"./mercator":17,"./ol":19,"./provider":23,"./renderer":30,"./request":34}],12:[function(e,t,n){e("./leaflet_tileloader_mixin"),L.CanvasLayer=L.Layer.extend({includes:[L.Mixin.Events,L.Mixin.TileLoader],options:{minZoom:0,maxZoom:28,tileSize:256,subdomains:"abc",errorTileUrl:"",attribution:"",zoomOffset:0,opacity:1,unloadInvisibleTiles:L.Browser.mobile,updateWhenIdle:L.Browser.mobile,tileLoader:!1,zoomAnimation:!0},initialize:function(e){vart=this;e=e||{},this.render=this.render.bind(this),L.Util.setOptions(this,e),this._canvas=this._createCanvas(),this.options.zoomAnimation&&(this._backCanvas=this._createCanvas()),this._ctx=this._canvas.getContext("2d"),this.currentAnimationFrame=-1,this.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){returnwindow.setTimeout(e,1e3/60)},this.cancelAnimationFrame=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){clearTimeout(e)}},_createCanvas:function(){vare;e=document.createElement("canvas"),e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.pointerEvents="none",e.style.zIndex=this.options.zIndex||0;vart="leaflet-tile-container";returnthis.options.zoomAnimation&&(t+=" leaflet-zoom-animated"),e.setAttribute("class",t),e},onAdd:function(e){this._map=e;vart=this._map._panes.tilePane,n=L.DomUtil.create("div","leaflet-layer");n.appendChild(this._canvas),this.options.zoomAnimation&&(n.appendChild(this._backCanvas),this._backCanvas.style.display="none"),t.appendChild(n),this._container=n,e.dragging._draggable.on("predrag",function(){vart=e.dragging._draggable;L.DomUtil.setPosition(this._canvas,{x:-t._newPos.x,y:-t._newPos.y})},this),e.on({viewreset:this._reset},this),e.on("move",this.redraw,this),e.on("resize",this._reset,this),this.options.zoomAnimation&&e.on({zoomanim:this._animateZoom,zoomend:this._endZoomAnim,moveend:this._reset},this),this.options.tileLoader&&this._initTileLoader(),this._reset()},_animateZoom:function(e){this._animating||(this._animating=!0);vart=this._backCanvas;t.width=this._canvas.width,t.height=this._canvas.height;varn=this._canvas._leaflet_pos||{x:0,y:0};t.getContext("2d").drawImage(this._canvas,0,0),L.DomUtil.setPosition(t,L.DomUtil.getPosition(this._canvas)),this._canvas.style.display="none",t.style.display="block";varr=this._map,i=r.getZoomScale(e.zoom),s=r._latLngToNewLayerPoint(r.getCenter(),e.zoom,e.center),o=r._latLngToNewLayerPoint(e.center,e.zoom,e.cente
}varr=e("../"),i=e("../profiler"),s=r.types.Uint8Array,o=r.types.Int32Array,u=r.types.Uint32Array,f=function(e){this._ready=!1,this._tileQueue=[],this.options=e,this.options.is_time=this.options.is_time===undefined?!0:this.options.is_time,this.options.tiler_protocol=e.tiler_protocol||"http",this.options.tiler_domain=e.tiler_domain||"cartodb.com",this.options.tiler_port=e.tiler_port||80,this.options.data_aggregation&&(this.options.cumulative=this.options.data_aggregation==="cumulative");if(e.resolution===undefined)thrownewError("resolution should be provided");if(e.steps===undefined)thrownewError("steps should be provided");e.start===undefined?this._fetchKeySpan():this._setReady(!0)};f.prototype={proccessTile:function(e,t,n){varr,a=news(e.length),f=news(e.length),l=i.metric("ProviderJSON:mem"),c=i.metric("ProviderJSON:point_count"),h=i.metric("ProviderJSON:process_time").start(),p=0,d=-1;for(r=0;r<e.length;++r){varv=e[r];p+=v.dates__uint16.length;for(varm=0;m<v.dates__uint16.length;++m)d=Math.max(d,v.dates__uint16[m])}this.options.cumulative&&(p=(1+d)*e.length);varg=this.options.cumulative?u:s,y=newo(d+1),b=newo(d+1),w=new(this.options.valueDataType||g)(p),E=newu(p);l.inc(4*d+4*d+p+p*4),c.inc(e.length);varS={};for(varr=0;r<e.length;++r){varv=e[r];a[r]=v.x__uint8*this.options.resolution,v.y__uint8===-1?f[r]=0:f[r]=v.y__uint8*this.options.resolution;varp=v.dates__uint16,x=v.vals__uint8;if(!this.options.cumulative)for(varT=0,N=p.length;T<N;++T){varC=S[p[T]]||(S[p[T]]=[]);this.options.cumulative&&(x[T]+=prev_val),prev_val=x[T],C.push([r,x[T]])}else{vark={};for(varT=0,N=p.length;T<N;++T)k[p[T]]=x[T];varL=0;for(varT=p[0];T<=d;++T){varC=S[T]||(S[T]=[]),A=k[T];A&&(L+=A),C.push([r,L])}}}varO=0,M=0,_=0;for(var_=0;_<=d;++_){varD=0,P=S[_];if(P)for(varr=0;r<P.length;++r){varC=P[r];++D,E[O]=C[0],w[O]=C[1],++O}y[_]=M,b[_]=D,M+=D}returnh.end(),{x:a,y:f,z:n,coord:{x:t.x,y:t.y,z:n},timeCount:b,timeIndex:y,renderDataPos:E,renderData:w,maxDate:d}},_host:function(){vare=this.options,t=e.sql_api_port,n=(e.user_name||e.user)+"."+(e.sql_api_domain||"cartodb.com")+(t?":"+t:""),r=e.sql_api_protocol||"http";returnthis.options.url||r+"://"+n+"/api/v2/sql"},url:function(e){vart=this.options,n=t.sql_api_protocol||"http";if(!this.options.cdn_url)returnthis._host();varr=n+"://";e&&(r+=e+".");vari=t.cdn_url;if(!i.http&&!i.https)thrownewError("cdn_host should contain http and/or https entries");returnr+=i[n]+"/"+(t.user_name||t.user)+"/api/v2/sql",r},_hash:function(e){vart=0;if(!e||e.length==0)returnt;for(varn=0,r=e.length;n<r;++n)t=(t<<5)-t+e.charCodeAt(n)|0;returnt},_extraParams:function(){if(this.options.extra_params){vare=[];for(vartinthis.options.extra_params){varn=this.options.extra_params[t];n&&e.push(t+"="+encodeURIComponent(n))}returne.join("&")}returnnull},isHttps:function(){returnthis.options.sql_api_protocol&&this.options.sql_api_protocol==="https"},sql:function(e,t,n){n=n||{};vari=this.options.subdomains||"0123";this.isHttps()&&(i=[null]);vars;n.no_cdn?s=this._host():s=this.url(i[Math.abs(this._hash(e))%i.length]);varo=this._extraParams();r.net.get(s+"?q="+encodeURIComponent(e)+(o?"&"+o:""),function(e){n.parseJSON&&(e=JSON.parse(e&&e.responseText)),t&&t(e)})},getTileData:function(e,t,n){this._ready?this._getTileData(e,t,n):this._tileQueue.push([e,t,n])},_setReady:function(e){this._ready=!0,this._processQueue(),this.options.ready&&this.options.ready()},_processQueue:function(){vare;while(e=this._tileQueue.pop())this._getTileData.apply(this,e)},_getTileData:function(e,t,n){varr=i.metric("ProviderJSON:tile_fetch_time").start();this.table=this.options.table;vars=1<<t,o=this.options.column;this.options.is_time&&(o=a("date_part('epoch', {column})",this.options));varu="WITHparAS(SELECTCDB_XYZ_Resolution({zoom})*{resolution}asres,256/{resolution}astile_size,CDB_XYZ_Extent({x},{y},{zoom})asext),cteAS(SELECTST_SnapToGrid(i.the_geom_webmercator,p.res)g,{countby}c,floor(({column_conv}-{start})/{step})dFROM({_sql})i,parpWHEREi.the_geom_webmercator&&p.ex
},"background-image":{css:"background-image",type:"uri","default-value":"","default-meaning":"transparent",doc:"An image that is repeated below all features on a map as a background.",description:"Map Background image"},srs:{css:"srs",type:"string","default-value":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs","default-meaning":"The proj4 literal of EPSG:4326 is assumed to be the Map's spatial reference and all data from layers within this map will be plotted using this coordinate system. If any layers do not declare an srs value then they will be assumed to be in the same srs as the Map and not transformations will be needed to plot them in the Map's coordinate space",doc:"Map spatial reference (proj4 string)"},"buffer-size":{css:"buffer-size","default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:'Extra tolerance around the map (in pixels) used to ensure labels crossing tile boundaries are equally rendered in each tile (e.g. cut in each tile). Not intended to be used in combination with "avoid-edges".'},"maximum-extent":{css:"","default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query all layers during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Map."},base:{css:"base","default-value":"","default-meaning":"This base path defaults to an empty string meaning that any relative paths to files referenced in styles or layers will be interpreted relative to the application process.",type:"string",doc:"Any relative paths used to reference files will be understood as relative to this directory path if the map is loaded from an in memory object rather than from the filesystem. If the map is loaded from the filesystem and this option is not provided it will be set to the directory of the stylesheet."},"paths-from-xml":{css:"","default-value":!0,"default-meaning":"Paths read from XML will be interpreted from the location of the XML",type:"boolean",doc:"value to control whether paths in the XML will be interpreted from the location of the XML or from the working directory of the program that calls load_map()"},"minimum-version":{css:"","default-value":"none","default-meaning":"Mapnik version will not be detected and no error will be thrown about compatibility",type:"string",doc:"The minumum Mapnik version (e.g. 0.7.2) needed to use certain functionality in the stylesheet"},"font-directory":{css:"font-directory",type:"uri","default-value":"none","default-meaning":"No map-specific fonts will be registered",doc:"Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered)."}},polygon:{fill:{css:"polygon-fill",type:"color","default-value":"rgba(128,128,128,1)","default-meaning":"gray and fully opaque (alpha = 1), same as rgb(128,128,128)",doc:"Fill color to assign to a polygon",expression:!0},"fill-opacity":{css:"polygon-opacity",type:"float",doc:"The opacity of the polygon","default-value":1,"default-meaning":"opaque",expression:!0},gamma:{css:"polygon-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon edges"},"gamma-method":{css:"polygon-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},clip:{css:"polygon-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometriesareclippedtomapboundsbyde
,doc:"Control whether overlapping text is shown or hidden.","default-meaning":"Do not allow text to overlap with other text - overlapping markers will not be shown."},orientation:{css:"text-orientation",type:"float",expression:!0,doc:"Rotate the text."},placement:{css:"text-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"Control the style of placement of a point versus the geometry it is attached to."},"placement-type":{css:"text-placement-type",doc:'Re-position and/or re-size text to avoid overlaps. "simple" for basic algorithm (using text-placements string,) "dummy" to turn this feature off.',type:["dummy","simple"],"default-value":"dummy"},placements:{css:"text-placements",type:"string","default-value":"",doc:'If "placement-type" is set to "simple", use this "POSITIONS,[SIZES]" string. An example is `text-placements: "E,NE,SE,W,NW,SW";` '},"text-transform":{css:"text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"horizontal-alignment":{css:"text-horizontal-alignment",type:["left","middle","right","auto"],doc:"The text's horizontal alignment from its centerpoint","default-value":"auto"},"justify-alignment":{css:"text-align",type:["left","right","center","auto"],doc:"Define how text is justified","default-value":"auto","default-meaning":"Auto alignment means that text will be centered by default except when using the `placement-type` parameter - in that case either right or left justification will be used automatically depending on where the text could be fit given the `text-placements` directives"},clip:{css:"text-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"text-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},building:{fill:{css:"building-fill","default-value":"#FFFFFF",doc:"The color of the buildings walls.",type:"color"},"fill-opacity":{css:"building-fill-opacity",type:"float",doc:"The opacity of the building as a whole, including all walls.","default-value":1},height:{css:"building-height",doc:"The height of the building in pixels.",type:"float",expression:!0,"default-value":"0"}},torque:{"-torque-clear-color":{css:"-torque-clear-color",type:"color","default-value":"rgba(255, 255, 255, 0)","default-meaning":"full clear",doc:"color used to clear canvas on each frame"},"-torque-frame-count":{css:"-torque-frame-count","default-value":"128",type:"float","default-meaning":"the data is broken into 128 time frames",doc:"Number of animation steps/frames used in the animation. If the data contains a fewere number of total frames, the lesser value will be used."},"-torque-resolution":{css:"-torque-resolution","default-value":"2",type:"float","default-meaning":"",doc:"Spatial resolution in pixels. A resolution of 1 means no spatial aggregation of the data. Any other resolution of N results in spatial aggregation into cells of NxN pixels. The value N must be power of 2"},"-torque-animation-duration":{css:"-torque-animation-duration","default-value":"30",type:"float","default-meaning":"the animation lasts 30 seconds",doc:"Animation duration in seconds"},"-torque-aggregation-function":{css:"-torque-aggregation-function","default-value":"count(cartodb_id)",type:"string","default-meaning":"thevalueforeachcellisthecountofpointsinthatce
type=="numbers"){for(rinn.value)if(n.value[r].is!=="float")return!1;return!0}if(i.selector(t).type=="tags"){if(!n.value)return!1;if(!n.value[0].value)returnn.value[0].is==="tag";for(r=0;r<n.value[0].value.length;r++)if(n.value[0].value[r].is!=="tag")return!1;return!0}if(i.selector(t).type=="functions")returna(n,t);if(i.selector(t).type==="unsigned")returnn.value[0].is==="float"?(n.value[0].round(),!0):!1;if(i.selector(t).expression)return!0;if(i.selector(t).validate){varo=!1;for(r=0;r<n.value.length;r++)if(i.selector(t).type==n.value[r].is&&i._validateValue[i.selector(t).validate](e,n.value[r].value))return!0;returno}returni.selector(t).type==n.value[0].is},n.Reference=i})(e("../tree"))}).call(this,typeofglobal!="undefined"?global:typeofself!="undefined"?self:typeofwindow!="undefined"?window:{})},{"../tree":52,"mapnik-reference":81,underscore:166}],73:[function(e,t,n){(function(e){functiont(t){returnObject.keys(e.Reference.selector_cache).map(function(n){return[n,e.Reference.editDistance(t,n)]}).sort(function(e,t){returne[1]-t[1]})}e.Rule=function(n,r,i,s){varo=n.split("/");this.name=o.pop(),this.instance=o.length?o[0]:"__default__",this.value=rinstanceofe.Value?r:newe.Value([r]),this.index=i,this.symbolizer=e.Reference.symbolizer(this.name),this.filename=s,this.variable=n.charAt(0)==="@"},e.Rule.prototype.is="rule",e.Rule.prototype.clone=function(){vart=Object.create(e.Rule.prototype);returnt.name=this.name,t.value=this.value,t.index=this.index,t.instance=this.instance,t.symbolizer=this.symbolizer,t.filename=this.filename,t.variable=this.variable,t},e.Rule.prototype.updateID=function(){returnthis.id=this.zoom+"#"+this.instance+"#"+this.name},e.Rule.prototype.toString=function(){return"["+e.Zoom.toString(this.zoom)+"] "+this.name+": "+this.value},e.Rule.prototype.toXML=function(n,r,i,s){if(!e.Reference.validSelector(this.name)){varo=t(this.name),u="";returno[0][1]<3&&(u=". Did you mean "+o[0][0]+"?"),n.error({message:"Unrecognized rule: "+this.name+u,index:this.index,type:"syntax",filename:this.filename})}if(this.valueinstanceofe.Value&&!e.Reference.validValue(n,this.name,this.value)){if(!e.Reference.selector(this.name))returnn.error({message:"Unrecognized property: "+this.name,index:this.index,type:"syntax",filename:this.filename});vara;returne.Reference.selector(this.name).validate?a=e.Reference.selector(this.name).validate:typeofe.Reference.selector(this.name).type=="object"?a="keyword (options: "+e.Reference.selector(this.name).type.join(", ")+")":a=e.Reference.selector(this.name).type,n.error({message:"Invalid value for "+this.name+", the type "+a+" is expected. "+this.value+" (of type "+this.value.value[0].is+") "+" was given.",index:this.index,type:"syntax",filename:this.filename})}if(this.variable)return"";if(e.Reference.isFont(this.name)&&this.value.value.length>1){varf=e._getFontSet(n,this.value.value);return'fontset-name="'+f.name+'"'}returnr?this.value.toString(n,this.name,i):e.Reference.selectorName(this.name)+'="'+this.value.toString(n,this.name)+'"'},e.Rule.prototype.ev=function(t){returnnewe.Rule(this.name,this.value.ev(t),this.index,this.filename)}})(e("../tree"))},{"../tree":52}],74:[function(e,t,n){(function(e){e.Ruleset=function(t,n){this.selectors=t,this.rules=n,this._lookups={}},e.Ruleset.prototype={is:"ruleset",ev:function(t){varn,r=newe.Ruleset(this.selectors,this.rules.slice(0));r.root=this.root,t.frames.unshift(r);for(n=0,rule;n<r.rules.length;n++)rule=r.rules[n],r.rules[n]=rule.ev?rule.ev(t):rule;returnt.frames.shift(),r},match:function(e){return!e||e.length===0},variables:function(){returnthis._variables?this._variables:this._variables=this.rules.reduce(function(t,n){returnninstanceofe.Rule&&n.variable===!0&&(t[n.name]=n),t},{})},variable:function(e){returnthis.variables()[e]},rulesets:function(){returnthis._rulesets?this._rulesets:this._rulesets=this.rules.filter(function(t){returntinstanceofe.Ruleset})},find:function(t,n){n=n||this;varr=[],i,s,o=t.toString();returnointhis._lookups?this._lookups[o]:(this.rulesets().forEach(function(i){if(i!==n
t,n,r,this.css,this.file,i.plugin),o.input={line:n,column:r,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(t,n){if(!this.map)return!1;varr=this.map.consumer(),i=r.originalPositionFor({line:t,column:n});if(!i.source)return!1;vars={file:this.mapResolve(i.source),line:i.line,column:i.column},o=r.sourceContentFor(i.source);returno&&(s.source=o),s},e.prototype.mapResolve=function(t){returnf.default.resolve(this.map.consumer().sourceRoot||".",t)},r(e,[{key:"from",get:function(){returnthis.file||this.id}}]),e}();n.default=p,t.exports=n["default"]},{"./css-syntax-error":100,"./previous-map":110,path:41}],103:[function(e,t,n){"use strict";functionv(e){returne&&e.__esModule?e:{"default":e}}functionm(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiong(e){return(typeofe=="undefined"?"undefined":i(e))==="object"&&typeofe.then=="function"}n.__esModule=!0;varr=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),i=typeofSymbol=="function"&&typeofSymbol.iterator=="symbol"?function(e){returntypeofe}:function(e){returne&&typeofSymbol=="function"&&e.constructor===Symbol?"symbol":typeofe},s=e("./map-generator"),o=v(s),u=e("./stringify"),a=v(u),f=e("./warn-once"),l=v(f),c=e("./result"),h=v(c),p=e("./parse"),d=v(p),y=function(){functione(t,n,r){m(this,e),this.stringified=!1,this.processed=!1;vars=undefined;if((typeofn=="undefined"?"undefined":i(n))==="object"&&n.type==="root")s=n;elseif(ninstanceofe||ninstanceofh.default)s=n.root,n.map&&(typeofr.map=="undefined"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=n.map);else{varo=d.default;r.syntax&&(o=r.syntax.parse),r.parser&&(o=r.parser),o.parse&&(o=o.parse);try{s=o(n,r)}catch(u){this.error=u}}this.result=newh.default(t,s,r)}returne.prototype.warnings=function(){returnthis.sync().warnings()},e.prototype.toString=functiont(){returnthis.css},e.prototype.then=function(t,n){returnthis.async().then(t,n)},e.prototype.catch=function(t){returnthis.async().catch(t)},e.prototype.handleError=function(t,n){try{this.error=t;if(t.name==="CssSyntaxError"&&!t.plugin)t.plugin=n.postcssPlugin,t.setMessage();elseif(n.postcssVersion){varr=n.postcssPlugin,i=n.postcssVersion,s=this.result.processor.version,o=i.split("."),u=s.split(".");(o[0]!==u[0]||parseInt(o[1])>parseInt(u[1]))&&(0,l.default)("Your current PostCSS version is "+s+", but "+r+" "+"uses "+i+". Perhaps this is "+"the source of the error below.")}}catch(a){console&&console.error&&console.error(a)}},e.prototype.asyncTick=function(t,n){varr=this;if(this.plugin>=this.processor.plugins.length)returnthis.processed=!0,t();try{(function(){vare=r.processor.plugins[r.plugin],i=r.run(e);r.plugin+=1,g(i)?i.then(function(){r.asyncTick(t,n)}).catch(function(t){r.handleError(t,e),r.processed=!0,n(t)}):r.asyncTick(t,n)})()}catch(i){this.processed=!0,n(i)}},e.prototype.async=function(){vart=this;returnthis.processed?newPromise(function(e,n){t.error?n(t.error):e(t.stringify())}):this.processing?this.processing:(this.processing=(newPromise(function(e,n){if(t.error)returnn(t.error);t.plugin=0,t.asyncTick(e,n)})).then(function(){returnt.processed=!0,t.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)returnthis.result;this.processed=!0;if(this.processing)thrownewError("Use process(css).then(cb) to work with async plugins");if(this.error)throwthis.error;for(vart=this.result.processor.plugins,n=Array.isArray(t),r=0,t=n?t:t[Symbol.iterator]();;){vari;if(n){if(r>=t.length)break;i=t[r++]}else{r=t.next();if(r.done)break;i=r.value}vars=i,o=this.run(s);if(g(o))thrownewError("Use process(css).then(cb) to work with async plugins")}returnthis.result},e.prototype.run=function(t){this.result.lastPlugin=t;try{returnt(this.result.root,this.result)}catch(n){throwthis.handleError(n,t),n}},e.prototype.stringify=function(){if(this.str
.toStringWithSourceMap=function(t){varn={code:"",line:1,column:0},i=newr(t),s=!1,u=null,a=null,f=null,l=null;returnthis.walk(function(e,t){n.code+=e,t.source!==null&&t.line!==null&&t.column!==null?((u!==t.source||a!==t.line||f!==t.column||l!==t.name)&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name}),u=t.source,a=t.line,f=t.column,l=t.name,s=!0):s&&(i.addMapping({generated:{line:n.line,column:n.column}}),u=null,s=!1);for(varr=0,c=e.length;r<c;r++)e.charCodeAt(r)===o?(n.line++,n.column=0,r+1===c?(u=null,s=!1):s&&i.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:n.line,column:n.column},name:t.name})):n.column++}),this.walkSourceContents(function(e,t){i.setSourceContent(e,t)}),{code:n.code,map:i}},n.SourceNode=a},{"./source-map-generator":129,"./util":131}],131:[function(e,t,n){functionr(e,t,n){if(tine)returne[t];if(arguments.length===3)returnn;thrownewError('"'+t+'" is a required argument.')}functiono(e){vart=e.match(i);returnt?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}functionu(e){vart="";returne.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}functiona(e){vart=e,r=o(e);if(r){if(!r.path)returne;t=r.path}vari=n.isAbsolute(t),s=t.split(/\/+/);for(vara,f=0,l=s.length-1;l>=0;l--)a=s[l],a==="."?s.splice(l,1):a===".."?f++:f>0&&(a===""?(s.splice(l+1,f),f=0):(s.splice(l,2),f--));returnt=s.join("/"),t===""&&(t=i?"/":"."),r?(r.path=t,u(r)):t}functionf(e,t){e===""&&(e="."),t===""&&(t=".");varn=o(t),r=o(e);r&&(e=r.path||"/");if(n&&!n.scheme)returnr&&(n.scheme=r.scheme),u(n);if(n||t.match(s))returnt;if(r&&!r.host&&!r.path)returnr.host=t,u(r);vari=t.charAt(0)==="/"?t:a(e.replace(/\/+$/,"")+"/"+t);returnr?(r.path=i,u(r)):i}functionl(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");varn=0;while(t.indexOf(e+"/")!==0){varr=e.lastIndexOf("/");if(r<0)returnt;e=e.slice(0,r);if(e.match(/^([^\/]+:\/)?\/*$/))returnt;++n}returnArray(n+1).join("../")+t.substr(e.length+1)}functionh(e){returne}functionp(e){returnv(e)?"$"+e:e}functiond(e){returnv(e)?e.slice(1):e}functionv(e){if(!e)return!1;vart=e.length;if(t<9)return!1;if(e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(varn=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}functionm(e,t,n){varr=e.source-t.source;returnr!==0?r:(r=e.originalLine-t.originalLine,r!==0?r:(r=e.originalColumn-t.originalColumn,r!==0||n?r:(r=e.generatedColumn-t.generatedColumn,r!==0?r:(r=e.generatedLine-t.generatedLine,r!==0?r:e.name-t.name))))}functiong(e,t,n){varr=e.generatedLine-t.generatedLine;returnr!==0?r:(r=e.generatedColumn-t.generatedColumn,r!==0||n?r:(r=e.source-t.source,r!==0?r:(r=e.originalLine-t.originalLine,r!==0?r:(r=e.originalColumn-t.originalColumn,r!==0?r:e.name-t.name))))}functiony(e,t){returne===t?0:e>t?1:-1}functionb(e,t){varn=e.generatedLine-t.generatedLine;returnn!==0?n:(n=e.generatedColumn-t.generatedColumn,n!==0?n:(n=y(e.source,t.source),n!==0?n:(n=e.originalLine-t.originalLine,n!==0?n:(n=e.originalColumn-t.originalColumn,n!==0?n:y(e.name,t.name)))))}n.getArg=r;vari=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,s=/^data:.+\,.+$/;n.urlParse=o,n.urlGenerate=u,n.normalize=a,n.join=f,n.isAbsolute=function(e){returne.charAt(0)==="/"||!!e.match(i)},n.relative=l;varc=function(){vare=Object.create(null);return!("__proto__"ine)}();n.toSetString=c?h:p,n.fromSetString=c?h:d,n.compareByOriginalPositions=m,n.compareByGeneratedPositionsDeflated=g,n.compareByGeneratedPositionsInflated=b},{}],132:[function(e,t,n){n.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,n.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,n.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":128,"./lib/source-map-generator"
}functionE(e,t){varn=o(e),r=p(e),i=Math.sqrt(e.length);return(n-t)/(r/i)}functionS(e,t,n){varr=e.length,i=t.length;if(!r||!i)returnnull;n||(n=0);vars=o(e),u=o(t),a=((r-1)*v(e)+(i-1)*v(t))/(r+i-2);return(s-u-n)/Math.sqrt(a*(1/r+1/i))}functionx(e,t){varn=[];if(t<=0)returnnull;for(varr=0;r<e.length;r+=t)n.push(e.slice(r,r+t));returnn}functionT(e,t){t=t||Math.random;varn=e.length,r,i;while(n>0)i=Math.floor(t()*n--),r=e[n],e[n]=e[i],e[i]=r;returne}functionN(e,t){returne=e.slice(),T(e.slice(),t)}functionC(e,t,n){varr=N(e,n);returnr.slice(0,t)}functionk(e,t){varn=e.length*t;returnt<0||t>1?null:t===1?e[e.length-1]:t===0?e[0]:n%1!==0?e[Math.ceil(n)-1]:e.length%2===0?(e[n-1]+e[n])/2:e[n]}functionL(e,t){if(e.length===0)returnnull;varn=e.slice().sort(function(e,t){returne-t});if(t.length){varr=[];for(vari=0;i<t.length;i++)r[i]=k(n,t[i]);returnr}returnk(n,t)}functionA(e){returne.length===0?null:L(e,.75)-L(e,.25)}functionO(e){if(!e||e.length===0)returnnull;vart=b(e),n=[];for(varr=0;r<e.length;r++)n.push(Math.abs(e[r]-t));returnb(n)}functionM(e,t){varn=[],r=[],i,s,o=0;for(i=0;i<e.length+1;i++){varu=[],a=[];for(s=0;s<t+1;s++)u.push(0),a.push(0);n.push(u),r.push(a)}for(i=1;i<t+1;i++){n[1][i]=1,r[1][i]=0;for(s=2;s<e.length+1;s++)r[s][i]=Infinity}for(varf=2;f<e.length+1;f++){varl=0,c=0,h=0,p=0;for(vard=1;d<f+1;d++){varv=f-d+1,m=e[v-1];h++,l+=m,c+=m*m,o=c-l*l/h,p=v-1;if(p!==0)for(s=2;s<t+1;s++)r[f][s]>=o+r[p][s-1]&&(n[f][s]=v,r[f][s]=o+r[p][s-1])}n[f][1]=1,r[f][1]=o}return{lower_class_limits:n,variance_combinations:r}}function_(e,t,n){varr=e.length,i=[],s=n;i[n]=e[e.length-1];while(s>0)i[s-1]=e[t[r][s]-1],r=t[r][s]-1,s--;returni}functionD(e,t){if(t>e.length)returnnull;e=e.slice().sort(function(e,t){returne-t});varn=M(e,t),r=n.lower_class_limits;return_(e,r,t)}functionP(e){if(e.length<3)returnnull;vart=e.length,n=Math.pow(m(e),3),r=d(e,3);returnt*r/((t-1)*(t-2)*n)}functionB(e){vart=1/(1+.5*Math.abs(e)),n=t*Math.exp(-Math.pow(e,2)-1.26551223+1.00002368*t+.37409196*Math.pow(t,2)+.09678418*Math.pow(t,3)-.18628806*Math.pow(t,4)+.27886807*Math.pow(t,5)-1.13520398*Math.pow(t,6)+1.48851587*Math.pow(t,7)-.82215223*Math.pow(t,8)+.17087277*Math.pow(t,9));returne>=0?1-n:n-1}functionj(e){vart=Math.abs(e),n=Math.min(Math.round(t*100),H.length-1);returne>=0?H[n]:+(1-H[n]).toFixed(4)}functionF(e,t,n){return(e-t)/n}functionq(e){if(e<0)returnnull;vart=1;for(varn=2;n<=e;n++)t*=n;returnt}functionR(e,t){functionn(e,t,n){returnq(t)/(q(e)*q(t-e))*Math.pow(n,e)*Math.pow(1-n,t-e)}if(t<0||t>1||e<=0||e%1!==0)returnnull;varr=0,i=0,s={};dos[r]=n(r,e,t),i+=s[r],r++;while(i<1-I);returns}functionU(e){returne<0||e>1?null:R(1,e)}functionz(e){functioni(e,t){returnMath.pow(Math.E,-t)*Math.pow(t,e)/q(e)}if(e<=0)returnnull;vart=0,n=0,r={};dor[t]=i(t,e),n+=r[t],t++;while(n<1-I);returnr}functionX(e,t,n){varr=o(e),i=0,s,u=1,a=t(r),f=[],l=[],c;for(varh=0;h<e.length;h++)f[e[h]]===undefined&&(f[e[h]]=0),f[e[h]]++;for(h=0;h<f.length;h++)f[h]===undefined&&(f[h]=0);for(cina)cinf&&(l[c]=a[c]*e.length);for(c=l.length-1;c>=0;c--)l[c]<3&&(l[c-1]+=l[c],l.pop(),f[c-1]+=f[c],f.pop());for(c=0;c<f.length;c++)i+=Math.pow(f[c]-l[c],2)/l[c];returns=f.length-u-1,W[s][n]<i}functionV(t){functioni(t){returnfunction(){varn=Array.prototype.slice.apply(arguments);returnn.unshift(this),e[t].apply(e,n)}}varn=!!Object.defineProperty&&!!Object.defineProperties;if(!n)thrownewError("without defineProperty, simple-statistics cannot be mixed in");varr=["median","standard_deviation","sum","sample_skewness","mean","min","max","quantile","geometric_mean","harmonic_mean","root_mean_square"],s;t?s=t.slice():s=Array.prototype;for(varo=0;o<r.length;o++)Object.defineProperty(s,r[o],{value:i(r[o]),configurable:!0,enumerable:!1,writable:!0});returns}vare={};typeoft!="undefined"?t.exports=e:this.ss=e;varH=[.5,.504,.508,.512,.516,.5199,.5239,.5279,.5319,.5359,.5398,.5438,.5478,.5517,.5557,.5596,.5636,.5675,.5714,.5753,.5793,.5832,.5871,.591,.5948,.5987,.6026,.6064,.6103,.6141,.6179,.6217,.6255,.6293,.6331,.6368,.6406,.6