admin_dashboard/static/plugins/datamaps/datamaps.geo.min.js

2 lines
32 KiB
JavaScript

!function(){function a(a,b,c){"undefined"==typeof c&&(c=b,optionsValues=void 0);var d="undefined"!=typeof a?a:b;if("undefined"==typeof d)return null;if("function"==typeof d){var e=[c];return c.geography&&(e=[c.geography,c.data]),d.apply(null,e)}return d}function b(a,b,c){return this.svg=n.select(a).append("svg").attr("width",c||a.offsetWidth).attr("data-width",c||a.offsetWidth).attr("class","datamap").attr("height",b||a.offsetHeight).style("overflow","hidden"),this.options.responsive&&(n.select(this.options.element).style({position:"relative","padding-bottom":100*this.options.aspectRatio+"%"}),n.select(this.options.element).select("svg").style({position:"absolute",width:"100%",height:"100%"}),n.select(this.options.element).select("svg").select("g").selectAll("path").style("vector-effect","non-scaling-stroke")),this.svg}function c(a,b){var c,d,e=b.width||a.offsetWidth,f=b.height||a.offsetHeight,g=this.svg;return b&&"undefined"==typeof b.scope&&(b.scope="world"),"usa"===b.scope?c=n.geo.albersUsa().scale(e).translate([e/2,f/2]):"world"===b.scope&&(c=n.geo[b.projection]().scale((e+1)/2/Math.PI).translate([e/2,f/("mercator"===b.projection?1.45:1.8)])),"orthographic"===b.projection&&(g.append("defs").append("path").datum({type:"Sphere"}).attr("id","sphere").attr("d",d),g.append("use").attr("class","stroke").attr("xlink:href","#sphere"),g.append("use").attr("class","fill").attr("xlink:href","#sphere"),c.scale(250).clipAngle(90).rotate(b.projectionConfig.rotation)),d=n.geo.path().projection(c),{path:d,projection:c}}function d(){n.select(".datamaps-style-block").empty()&&n.select("head").append("style").attr("class","datamaps-style-block").html('.datamap path.datamaps-graticule { fill: none; stroke: #777; stroke-width: 0.5px; stroke-opacity: .5; pointer-events: none; } .datamap .labels {pointer-events: none;} .datamap path {stroke: #FFFFFF; stroke-width: 1px;} .datamaps-legend dt, .datamaps-legend dd { float: left; margin: 0 3px 0 0;} .datamaps-legend dd {width: 20px; margin-right: 6px; border-radius: 3px;} .datamaps-legend {padding-bottom: 20px; z-index: 1001; position: absolute; left: 4px; font-size: 12px; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;} .datamaps-hoverover {display: none; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; } .hoverinfo {padding: 4px; border-radius: 1px; background-color: #FFF; box-shadow: 1px 1px 5px #CCC; font-size: 12px; border: 1px solid #CCC; } .hoverinfo hr {border:1px dotted #CCC; }')}function e(b){var c=this.options.fills,d=this.options.data||{},e=this.options.geographyConfig,f=this.svg.select("g.datamaps-subunits");f.empty()&&(f=this.addLayer("datamaps-subunits",null,!0));var g=o.feature(b,b.objects[this.options.scope]).features;e.hideAntarctica&&(g=g.filter(function(a){return"ATA"!==a.id})),e.hideHawaiiAndAlaska&&(g=g.filter(function(a){return"HI"!==a.id&&"AK"!==a.id}));var h=f.selectAll("path.datamaps-subunit").data(g);h.enter().append("path").attr("d",this.path).attr("class",function(a){return"datamaps-subunit "+a.id}).attr("data-info",function(a){return JSON.stringify(d[a.id])}).style("fill",function(b){var e,f=d[b.id];return f&&f.fillKey&&(e=c[a(f.fillKey,{data:d[b.id],geography:b})]),"undefined"==typeof e&&(e=a(f&&f.fillColor,c.defaultFill,{data:d[b.id],geography:b})),e}).style("stroke-width",e.borderWidth).style("stroke",e.borderColor)}function f(){function b(){this.parentNode.appendChild(this)}var c=this.svg,d=this,e=this.options.geographyConfig;(e.highlightOnHover||e.popupOnHover)&&c.selectAll(".datamaps-subunit").on("mouseover",function(f){var g=n.select(this),h=d.options.data[f.id]||{};if(e.highlightOnHover){var i={fill:g.style("fill"),stroke:g.style("stroke"),"stroke-width":g.style("stroke-width"),"fill-opacity":g.style("fill-opacity")};g.style("fill",a(h.highlightFillColor,e.highlightFillColor,h)).style("stroke",a(h.highlightBorderColor,e.highlightBorderColor,h)).style("stroke-width",a(h.highlightBorderWidth,e.highlightBorderWidth,h)).style("fill-opacity",a(h.highlightFillOpacity,e.highlightFillOpacity,h)).attr("data-previousAttributes",JSON.stringify(i)),/((MSIE)|(Trident))/.test(navigator.userAgent)||b.call(this)}e.popupOnHover&&d.updatePopup(g,f,e,c)}).on("mouseout",function(){var a=n.select(this);if(e.highlightOnHover){var b=JSON.parse(a.attr("data-previousAttributes"));for(var c in b)a.style(c,b[c])}a.on("mousemove",null),n.selectAll(".datamaps-hoverover").style("display","none")})}function g(a,b,c){if(b=b||{},this.options.fills){var d="<dl>",e="";b.legendTitle&&(d="<h2>"+b.legendTitle+"</h2>"+d);for(var f in this.options.fills){if("defaultFill"===f){if(!b.defaultFillName)continue;e=b.defaultFillName}else e=b.labels&&b.labels[f]?b.labels[f]:f+": ";d+="<dt>"+e+"</dt>",d+='<dd style="background-color:'+this.options.fills[f]+'">&nbsp;</dd>'}d+="</dl>";n.select(this.options.element).append("div").attr("class","datamaps-legend").html(d)}}function h(a,b){var c=n.geo.graticule();this.svg.insert("path",".datamaps-subunits").datum(c).attr("class","datamaps-graticule").attr("d",this.path)}function i(b,c,d){var e=this;this.svg;if(!c||c&&!c.slice)throw"Datamaps Error - arcs must be an array";for(var f=0;f<c.length;f++)c[f]=l(c[f],c[f].options),delete c[f].options;"undefined"==typeof d&&(d=p.arcConfig);var g=b.selectAll("path.datamaps-arc").data(c,JSON.stringify),h=n.geo.path().projection(e.projection);g.enter().append("svg:path").attr("class","datamaps-arc").style("stroke-linecap","round").style("stroke",function(b){return a(b.strokeColor,d.strokeColor,b)}).style("fill","none").style("stroke-width",function(b){return a(b.strokeWidth,d.strokeWidth,b)}).attr("d",function(b){var c=e.latLngToXY(a(b.origin.latitude,b),a(b.origin.longitude,b)),f=e.latLngToXY(a(b.destination.latitude,b),a(b.destination.longitude,b)),g=[(c[0]+f[0])/2,(c[1]+f[1])/2];if(d.greatArc){var i=n.geo.greatArc().source(function(b){return[a(b.origin.longitude,b),a(b.origin.latitude,b)]}).target(function(b){return[a(b.destination.longitude,b),a(b.destination.latitude,b)]});return h(i(b))}var j=a(b.arcSharpness,d.arcSharpness,b);return"M"+c[0]+","+c[1]+"S"+(g[0]+50*j)+","+(g[1]-75*j)+","+f[0]+","+f[1]}).transition().delay(100).style("fill",function(b){var c=this.getTotalLength();return this.style.transition=this.style.WebkitTransition="none",this.style.strokeDasharray=c+" "+c,this.style.strokeDashoffset=c,this.getBoundingClientRect(),this.style.transition=this.style.WebkitTransition="stroke-dashoffset "+a(b.animationSpeed,d.animationSpeed,b)+"ms ease-out",this.style.strokeDashoffset="0","none"}),g.exit().transition().style("opacity",0).remove()}function j(a,b){var c=this;b=b||{};var d=this.projection([-67.707617,42.722131]);this.svg.selectAll(".datamaps-subunit").attr("data-foo",function(e){var f=c.path.centroid(e),g=7.5,h=5;["FL","KY","MI"].indexOf(e.id)>-1&&(g=-2.5),"NY"===e.id&&(g=-1),"MI"===e.id&&(h=18),"LA"===e.id&&(g=13);var i,j;i=f[0]-g,j=f[1]+h;var k=["VT","NH","MA","RI","CT","NJ","DE","MD","DC"].indexOf(e.id);if(k>-1){var l=d[1];i=d[0],j=l+k*(2+(b.fontSize||12)),a.append("line").attr("x1",i-3).attr("y1",j-5).attr("x2",f[0]).attr("y2",f[1]).style("stroke",b.labelColor||"#000").style("stroke-width",b.lineWidth||1)}return a.append("text").attr("x",i).attr("y",j).style("font-size",(b.fontSize||10)+"px").style("font-family",b.fontFamily||"Verdana").style("fill",b.labelColor||"#000").text(e.id),"bar"})}function k(b,c,d){function e(a){return"undefined"!=typeof a&&"undefined"!=typeof a.latitude&&"undefined"!=typeof a.longitude}var f=this,g=this.options.fills,h=this.options.filters,i=this.svg;if(!c||c&&!c.slice)throw"Datamaps Error - bubbles must be an array";var j=b.selectAll("circle.datamaps-bubble").data(c,d.key);j.enter().append("svg:circle").attr("class","datamaps-bubble").attr("cx",function(a){var b;return e(a)?b=f.latLngToXY(a.latitude,a.longitude):a.centered&&(b=f.path.centroid(i.select("path."+a.centered).data()[0])),b?b[0]:void 0}).attr("cy",function(a){var b;return e(a)?b=f.latLngToXY(a.latitude,a.longitude):a.centered&&(b=f.path.centroid(i.select("path."+a.centered).data()[0])),b?b[1]:void 0}).attr("r",function(b){return d.animate?0:a(b.radius,d.radius,b)}).attr("data-info",function(a){return JSON.stringify(a)}).attr("filter",function(b){var c=h[a(b.filterKey,d.filterKey,b)];return c?c:void 0}).style("stroke",function(b){return a(b.borderColor,d.borderColor,b)}).style("stroke-width",function(b){return a(b.borderWidth,d.borderWidth,b)}).style("fill-opacity",function(b){return a(b.fillOpacity,d.fillOpacity,b)}).style("fill",function(b){var c=g[a(b.fillKey,d.fillKey,b)];return c||g.defaultFill}).on("mouseover",function(b){var c=n.select(this);if(d.highlightOnHover){var e={fill:c.style("fill"),stroke:c.style("stroke"),"stroke-width":c.style("stroke-width"),"fill-opacity":c.style("fill-opacity")};c.style("fill",a(b.highlightFillColor,d.highlightFillColor,b)).style("stroke",a(b.highlightBorderColor,d.highlightBorderColor,b)).style("stroke-width",a(b.highlightBorderWidth,d.highlightBorderWidth,b)).style("fill-opacity",a(b.highlightFillOpacity,d.highlightFillOpacity,b)).attr("data-previousAttributes",JSON.stringify(e))}d.popupOnHover&&f.updatePopup(c,b,d,i)}).on("mouseout",function(a){var b=n.select(this);if(d.highlightOnHover){var c=JSON.parse(b.attr("data-previousAttributes"));for(var e in c)b.style(e,c[e])}n.selectAll(".datamaps-hoverover").style("display","none")}),j.transition().duration(400).attr("r",function(b){return a(b.radius,d.radius,b)}),j.exit().transition().delay(d.exitDelay).attr("r",0).remove()}function l(a){return Array.prototype.slice.call(arguments,1).forEach(function(b){if(b)for(var c in b)null==a[c]&&(a[c]=b[c])}),a}function m(a){if("undefined"==typeof n||"undefined"==typeof o)throw new Error("Include d3.js (v3.0.3 or greater) and topojson on this page before creating a new map");return this.options=l(a,p),this.options.geographyConfig=l(a.geographyConfig,p.geographyConfig),this.options.projectionConfig=l(a.projectionConfig,p.projectionConfig),this.options.bubblesConfig=l(a.bubblesConfig,p.bubblesConfig),this.options.arcConfig=l(a.arcConfig,p.arcConfig),n.select(this.options.element).select("svg").length>0&&b.call(this,this.options.element,this.options.height,this.options.width),this.addPlugin("bubbles",k),this.addPlugin("legend",g),this.addPlugin("arc",i),this.addPlugin("labels",j),this.addPlugin("graticule",h),this.options.disableDefaultStyles||d(),this.draw()}var n=window.d3,o=window.topojson,p={scope:"world",responsive:!1,aspectRatio:.5625,setProjection:c,projection:"equirectangular",dataType:"json",data:{},done:function(){},fills:{defaultFill:"#ABDDA4"},filters:{},geographyConfig:{dataUrl:null,hideAntarctica:!0,hideHawaiiAndAlaska:!1,borderWidth:1,borderColor:"#FDFDFD",popupTemplate:function(a,b){return'<div class="hoverinfo"><strong>'+a.properties.name+"</strong></div>"},popupOnHover:!0,highlightOnHover:!0,highlightFillColor:"#FC8D59",highlightBorderColor:"rgba(250, 15, 160, 0.2)",highlightBorderWidth:2},projectionConfig:{rotation:[97,0]},bubblesConfig:{borderWidth:2,borderColor:"#FFFFFF",popupOnHover:!0,radius:null,popupTemplate:function(a,b){return'<div class="hoverinfo"><strong>'+b.name+"</strong></div>"},fillOpacity:.75,animate:!0,highlightOnHover:!0,highlightFillColor:"#FC8D59",highlightBorderColor:"rgba(250, 15, 160, 0.2)",highlightBorderWidth:2,highlightFillOpacity:.85,exitDelay:100,key:JSON.stringify},arcConfig:{strokeColor:"#DD1C77",strokeWidth:1,arcSharpness:1,animationSpeed:600}};m.prototype.resize=function(){var a=this,b=a.options;if(b.responsive){var c=b.element.clientWidth,d=n.select(b.element).select("svg").attr("data-width");n.select(b.element).select("svg").selectAll("g").attr("transform","scale("+c/d+")")}},m.prototype.draw=function(){function a(a){b.options.dataUrl&&n[b.options.dataType](b.options.dataUrl,function(a){if("csv"===b.options.dataType&&a&&a.slice){for(var c={},d=0;d<a.length;d++)c[a[d].id]=a[d];a=c}Datamaps.prototype.updateChoropleth.call(b,a)}),e.call(b,a),f.call(b),(b.options.geographyConfig.popupOnHover||b.options.bubblesConfig.popupOnHover)&&(hoverover=n.select(b.options.element).append("div").attr("class","datamaps-hoverover").style("z-index",10001).style("position","absolute")),b.options.done(b)}var b=this,c=b.options,d=c.setProjection.apply(b,[c.element,c]);return this.path=d.path,this.projection=d.projection,c.geographyConfig.dataUrl?n.json(c.geographyConfig.dataUrl,function(c,d){if(c)throw new Error(c);b.customTopo=d,a(d)}):a(this[c.scope+"Topo"]||c.geographyConfig.dataJson),this},m.prototype.worldTopo="__WORLD__",m.prototype.abwTopo="__ABW__",m.prototype.afgTopo="__AFG__",m.prototype.agoTopo="__AGO__",m.prototype.aiaTopo="__AIA__",m.prototype.albTopo="__ALB__",m.prototype.aldTopo="__ALD__",m.prototype.andTopo="__AND__",m.prototype.areTopo="__ARE__",m.prototype.argTopo="__ARG__",m.prototype.armTopo="__ARM__",m.prototype.asmTopo="__ASM__",m.prototype.ataTopo="__ATA__",m.prototype.atcTopo="__ATC__",m.prototype.atfTopo="__ATF__",m.prototype.atgTopo="__ATG__",m.prototype.ausTopo="__AUS__",m.prototype.autTopo="__AUT__",m.prototype.azeTopo="__AZE__",m.prototype.bdiTopo="__BDI__",m.prototype.belTopo="__BEL__",m.prototype.benTopo="__BEN__",m.prototype.bfaTopo="__BFA__",m.prototype.bgdTopo="__BGD__",m.prototype.bgrTopo="__BGR__",m.prototype.bhrTopo="__BHR__",m.prototype.bhsTopo="__BHS__",m.prototype.bihTopo="__BIH__",m.prototype.bjnTopo="__BJN__",m.prototype.blmTopo="__BLM__",m.prototype.blrTopo="__BLR__",m.prototype.blzTopo="__BLZ__",m.prototype.bmuTopo="__BMU__",m.prototype.bolTopo="__BOL__",m.prototype.braTopo="__BRA__",m.prototype.brbTopo="__BRB__",m.prototype.brnTopo="__BRN__",m.prototype.btnTopo="__BTN__",m.prototype.norTopo="__NOR__",m.prototype.bwaTopo="__BWA__",m.prototype.cafTopo="__CAF__",m.prototype.canTopo="__CAN__",m.prototype.cheTopo="__CHE__",m.prototype.chlTopo="__CHL__",m.prototype.chnTopo="__CHN__",m.prototype.civTopo="__CIV__",m.prototype.clpTopo="__CLP__",m.prototype.cmrTopo="__CMR__",m.prototype.codTopo="__COD__",m.prototype.cogTopo="__COG__",m.prototype.cokTopo="__COK__",m.prototype.colTopo="__COL__",m.prototype.comTopo="__COM__",m.prototype.cpvTopo="__CPV__",m.prototype.criTopo="__CRI__",m.prototype.csiTopo="__CSI__",m.prototype.cubTopo="__CUB__",m.prototype.cuwTopo="__CUW__",m.prototype.cymTopo="__CYM__",m.prototype.cynTopo="__CYN__",m.prototype.cypTopo="__CYP__",m.prototype.czeTopo="__CZE__",m.prototype.deuTopo="__DEU__",m.prototype.djiTopo="__DJI__",m.prototype.dmaTopo="__DMA__",m.prototype.dnkTopo="__DNK__",m.prototype.domTopo="__DOM__",m.prototype.dzaTopo="__DZA__",m.prototype.ecuTopo="__ECU__",m.prototype.egyTopo="__EGY__",m.prototype.eriTopo="__ERI__",m.prototype.esbTopo="__ESB__",m.prototype.espTopo="__ESP__",m.prototype.estTopo="__EST__",m.prototype.ethTopo="__ETH__",m.prototype.finTopo="__FIN__",m.prototype.fjiTopo="__FJI__",m.prototype.flkTopo="__FLK__",m.prototype.fraTopo="__FRA__",m.prototype.froTopo="__FRO__",m.prototype.fsmTopo="__FSM__",m.prototype.gabTopo="__GAB__",m.prototype.psxTopo="__PSX__",m.prototype.gbrTopo="__GBR__",m.prototype.geoTopo={type:"Topology",objects:{geo:{type:"GeometryCollection",geometries:[{type:"Polygon",properties:{name:"Abkhazia"},id:"GE.AB",arcs:[[0,1]]},{type:"Polygon",properties:{name:"Ajaria"},id:"GE.AJ",arcs:[[2,3,4]]},{type:"Polygon",properties:{name:"Guria"},id:"GE.GU",arcs:[[5,6,-5,7,8]]},{type:"Polygon",properties:{name:"Samegrelo-Zemo Svaneti"},id:"GE.SZ",arcs:[[9,10,-9,11,-1,12]]},{type:"Polygon",properties:{name:"Imereti"},id:"GE.IM",arcs:[[13,14,-6,-11,15]]},{type:"Polygon",properties:{name:"Kakheti"},id:"GE.KA",arcs:[[16,17,18]]},{type:"Polygon",properties:{name:"Mtskheta-Mtianeti"},id:"GE.MM",arcs:[[-18,19,20,21,22,23]]},{type:"Polygon",properties:{name:"Racha-Lechkhumi-Kvemo Svaneti"},id:"GE.RK",arcs:[[24,-16,-10,25]]},{type:"Polygon",properties:{name:"Tbilisi"},id:"GE.TB",arcs:[[26,-21]]},{type:"Polygon",properties:{name:"Kvemo Kartli"},id:"GE.KK",arcs:[[-17,27,28,29,-22,-27,-20]]},{type:"Polygon",properties:{name:"Samtskhe-Javakheti"},id:"GE.SJ",arcs:[[-29,30,-3,-7,-15,31]]},{type:"Polygon",properties:{name:"Shida Kartli"},id:"GE.SD",arcs:[[-30,-32,-14,-25,32,-23]]}]}},arcs:[[[3232,8584],[-21,-94],[-16,-102],[5,-113],[1,-110],[-21,-112],[-30,-95],[-34,-76],[-29,-91],[-78,-64],[-144,-53],[-12,-29],[-23,-60],[26,-66],[13,-82],[8,-93],[2,-14],[12,-70],[8,-86],[-23,-61],[-19,-23],[-16,-33],[-1,-43],[11,-36],[16,-182],[-2,-102],[6,-96],[42,-141],[5,-94],[5,-76],[-13,-71],[-27,-33],[-31,-49],[-24,-68],[-2,-6],[-117,-222],[-129,-147],[-4,-5],[-74,-49],[-20,-50],[-33,-80],[-56,-70],[-17,-16],[-36,-33],[-7,-7]],[[2333,5381],[-76,924],[-26,157],[-38,132],[-49,103],[-61,69],[-114,41],[-24,27],[-24,43],[-36,39],[-38,28],[-30,8],[-17,-10],[-30,-36],[-19,-7],[-16,19],[-68,201],[-34,243],[-62,210],[-25,113],[-37,-2],[-59,-52],[-37,26],[-45,132],[-26,31],[0,20],[-35,118],[-10,16],[-109,83],[-149,40],[-70,-7],[-48,-24],[-18,-3],[-18,12],[-28,56],[-16,13],[-6,11],[-26,53],[-13,19],[-15,11],[-47,16],[-119,112],[-56,12],[-39,-97],[-15,32],[-22,106],[-13,51],[-34,66],[-15,43],[6,125],[-23,116],[-33,107],[-24,58],[-46,41],[-81,48],[-48,93],[-22,20],[-68,22],[-47,37],[-35,15],[8,68],[101,509],[20,63],[36,46],[101,52],[102,0],[368,-265],[59,-14],[47,24],[96,97],[55,12],[43,-43],[13,-19],[75,-110],[153,-102],[48,-55],[204,-317],[46,-22],[155,40],[51,-20],[48,-47],[46,-74],[52,-43],[106,40],[46,-34],[13,-39],[21,-92],[14,-41],[22,-32],[77,-47],[40,-45],[66,-133],[40,-43],[55,-9],[109,28],[54,-11],[97,-54],[47,-9],[104,22],[44,-4],[43,-23],[46,-45],[48,-27],[47,-5],[48,18],[118,128]],[[3720,2980],[6,-38],[15,-84],[-1,-137],[-18,-52],[-3,-75],[10,-56],[15,-49],[39,-72],[34,-81],[44,-140],[15,-83]],[[3876,2113],[-2,-1],[-30,-46],[-15,-67],[-14,-161],[-15,-63],[-32,-68],[-45,-135],[-31,-41],[-18,-2],[-20,-2],[-261,204],[-73,-9],[-36,6],[-25,47],[-21,25],[-23,2],[-47,-27],[-21,19],[-21,7],[-21,-6],[-21,-20],[-53,-33],[-107,81],[-60,-48],[-20,-32],[-47,-133],[-60,-102],[-14,-16],[-18,15],[-59,110],[-20,13],[-44,11],[-17,14],[-6,25],[0,32],[2,30],[-2,15],[-12,0],[-37,-34],[-45,-7],[-19,8],[-159,133],[98,349],[44,118],[90,117],[25,119],[70,228],[4,46],[0,36],[2,31],[9,35],[24,66],[9,33],[3,36],[0,320]],[[2665,3391],[195,-20],[39,-46],[23,-26],[8,-83],[73,-61],[29,-38],[18,-16],[46,-71],[19,7],[1,1],[38,27],[72,17],[48,-49],[27,-31],[43,-22],[27,9],[81,25],[80,99],[41,25],[33,-15],[57,-116],[19,-20],[38,-7]],[[3343,4159],[-34,-104],[36,-104],[74,-26],[27,-16],[25,16],[45,58],[53,-25],[30,-94],[19,-116],[43,-50],[53,-32],[38,-56],[41,-40],[29,-35],[30,-29],[47,7],[45,-24],[23,-172],[3,-200]],[[3970,3117],[-38,-1],[-34,-45],[-13,-71],[-25,-40],[-33,12],[-34,24],[-73,-16]],[[2665,3391],[0,17],[-18,248],[-3,90],[-6,55],[-61,209]],[[2577,4010],[25,84],[8,20],[6,75],[21,110],[94,35],[95,6],[185,62],[82,-41],[76,-99],[95,-24],[79,-79]],[[4753,7466],[-48,-39],[-51,-138],[-33,-61],[-4,-123],[-27,-83],[-42,14],[-92,70],[-108,-28],[-162,142],[-20,-19],[-18,-30],[-40,-35],[-87,7],[-212,100],[-37,34],[-37,2],[-19,-66],[-15,-73],[-16,-24],[-18,-9],[-56,-8],[-47,-52],[-37,-137],[82,-137],[167,-186],[68,-134],[-40,-165],[113,-443]],[[3917,5845],[-28,-3],[-27,-14],[-75,-10],[-45,-91],[-23,-136],[-23,-39],[-15,-62],[-1,-115],[-20,-93],[-105,-237],[-64,-210],[-17,-103],[-28,-65],[-15,-164],[2,-208],[-31,-122],[-59,-14]],[[2577,4010],[-45,156],[-16,26],[-15,33],[-7,76],[-3,134],[-12,178],[-79,542],[-6,24],[-10,29],[-40,79],[-6,28],[-5,65],[0,1]],[[3232,8584],[8,9],[38,22],[252,42],[12,-3],[90,-25],[85,-111],[39,-76],[43,-65],[91,-99],[29,-12],[21,17],[40,73],[26,24],[46,2],[70,42],[59,-3],[57,-30],[42,-52],[42,-78],[43,-55],[127,-92],[0,-52],[-11,-65],[-4,-64],[13,-42],[74,-99],[160,-295],[29,-31]],[[5368,5334],[52,-63],[58,-18],[44,21],[41,45],[47,12],[34,-79],[-18,-127],[-1,-129],[-114,-61],[-71,-99],[-30,-42],[-5,-48],[-7,-70],[9,-126],[-8,-103],[-8,-16],[-10,-21],[-23,-38],[-20,-114],[-28,-102],[-48,-72],[-41,-82],[-6,-167],[-23,-141],[-54,-95],[-11,-153]],[[5127,3446],[-445,-360],[-25,7],[-25,19],[-153,-27],[-64,-53],[-67,2],[-128,54],[-158,-79],[-92,108]],[[3917,5845],[13,-91],[1,-100],[12,-75],[1,-84],[159,105],[38,-31],[39,-6],[33,65],[37,3],[82,-103],[76,-139],[19,-124],[37,-59],[32,-11],[71,-79],[106,19],[63,51],[53,104],[141,146],[158,-34],[152,24],[96,-69],[32,-23]],[[7969,1581],[-4,67],[-10,51],[-12,48],[-11,98],[-27,79],[-47,26],[-48,7],[-26,35],[-11,77],[-8,107],[51,235],[-29,211],[-11,127],[-27,106],[-56,12],[-50,71],[-32,108],[-39,87]],[[7572,3133],[-20,117],[-47,56],[40,86],[44,54],[82,-106],[119,34],[-53,127],[-73,38],[-36,7],[-33,23],[-14,123],[23,107],[-27,125],[-4,111],[-18,153],[21,91],[23,226],[28,90],[30,200],[37,89],[38,70],[32,9],[29,22],[13,153],[-19,158],[15,92],[33,58],[23,100],[-5,121],[21,179],[48,139],[0,1]],[[7922,5986],[17,-71],[15,-46],[50,-40],[63,17],[120,71],[86,-4],[125,-43],[116,-90],[61,-143],[0,-3],[-4,-91],[-172,-881],[15,-92],[45,-57],[60,-55],[164,-227],[104,-53],[20,-40],[42,-206],[16,-44],[20,-22],[28,-4],[11,9],[20,30],[12,6],[10,-9],[25,-44],[12,-12],[27,3],[21,11],[14,-20],[10,-86],[36,-34],[46,-2],[88,36],[0,1],[13,6],[13,3],[12,-3],[15,-7],[39,-63],[65,-154],[42,-38],[89,-15],[36,-40],[37,-97],[-57,-232],[-32,-103],[-64,-155],[-22,-39],[-24,-23],[-31,-6],[-70,32],[-32,-7],[-29,-61],[-14,-135],[1,-201],[19,-177],[40,-67],[13,21],[7,37],[10,30],[21,1],[3,-22],[33,-126],[3,-28],[11,-155],[14,-85],[25,-66],[78,-108],[18,-16],[30,-15],[70,-129],[145,-122],[73,-87],[24,-111],[23,19],[10,-14],[2,-3],[10,-33],[29,-65],[47,-143],[9,-58],[-5,-5],[-12,4],[-13,-31],[-3,-30],[-2,-69],[-3,-26],[-9,-25],[-19,-37],[-9,-25],[-14,-106],[-8,-136],[-13,-127],[-8,-23],[-21,-58],[-29,-9],[-28,15],[-29,6],[-32,-40],[-17,-63],[-8,-62],[-13,-41],[-33,-3],[-26,33],[-42,113],[-25,43],[-88,58],[-31,36],[-88,160],[-43,108],[-24,47],[-27,18],[-112,-1],[-33,-15],[-38,-49],[-39,-50],[-30,-22],[-36,-6],[-72,17],[-221,160],[-75,92],[-29,36],[-61,105],[-36,113],[33,82],[35,25],[21,23],[-2,24],[-35,28],[-97,39],[-214,167],[-49,91],[-21,50],[-22,8],[-50,-30],[-30,-6],[-23,10],[-72,74]],[[7572,3133],[-75,-9],[-75,36],[-32,-25],[-25,-73],[-18,-111],[-35,-85]],[[7312,2866],[-91,94],[-38,7],[-23,-82],[-43,-53],[-43,2],[-30,-135],[-28,-24],[-19,-63]],[[6997,2612],[-78,-78],[-70,125],[-70,99],[-82,22]],[[6697,2780],[-1,101],[29,68],[-4,152],[41,79],[55,5],[20,112],[-41,124],[-49,114],[-11,142],[-13,84],[-6,39],[-51,56],[-107,48],[-51,3],[-43,-63],[-23,-43],[-20,-37],[-8,102],[-41,43],[-6,66],[12,73],[1,6],[3,203],[23,193],[18,31],[19,25],[13,48],[11,53],[30,46],[26,69],[-12,124],[-25,105],[5,124],[-3,119],[-21,53],[-20,40],[-6,61],[-3,63],[-11,40],[-17,20],[23,141],[48,117],[-23,65],[-26,44],[-49,174],[-71,38],[-31,82],[-18,105],[-3,13]],[[6260,6250],[17,10],[21,41],[28,56],[27,112],[35,80],[132,6],[61,38],[116,122],[43,23],[75,12],[63,-16],[57,-36],[5,-3],[55,-62],[23,-37],[44,-92],[18,-53],[37,-230],[18,-38],[14,28],[24,217],[43,183],[9,64],[38,100],[65,-25],[163,-229],[26,-25],[28,-12],[28,10],[13,12],[42,36],[28,7],[49,-36],[43,-72],[146,-350],[17,-53],[11,-52]],[[5846,6012],[-9,-200],[-80,-112],[-32,-115],[-29,-27],[-207,-32],[-121,-192]],[[4753,7466],[29,-31],[286,-157],[139,-77],[56,-27],[103,-98],[25,-43],[62,-143],[27,-35],[139,-66],[39,-39],[27,-27],[17,-115],[-34,-95],[-52,-73],[-42,-80],[-5,-117],[43,-103],[67,-35],[73,-11],[60,-31],[34,-51]],[[7312,2866],[-43,-83],[-4,-68],[29,-52],[10,-69],[7,-69],[23,-40],[26,-26],[35,-18],[34,18],[19,56],[25,37],[14,-97],[-43,-124],[-56,-37],[-57,7],[-43,43],[-36,17],[-37,6],[-122,125],[-44,-5],[-20,55],[-5,56],[-27,14]],[[7969,1581],[-27,28],[-49,6],[-48,-34],[-226,-373],[-142,-235],[-19,-24],[-34,-61],[-18,-25],[-56,-3],[-144,45],[-29,-58],[12,-56],[56,-54],[10,-28],[6,-17],[-15,-41],[-39,-11],[-218,9],[-63,50],[-30,8],[-32,-29],[-19,-51],[-18,-63],[-22,-39],[-31,17],[-8,30],[-6,41],[-7,30],[-16,-1],[-10,-15],[-30,-67],[-36,-21],[-34,4],[-32,24],[-80,97],[-18,4],[-18,-11],[-12,-22],[-11,-25],[-14,-19],[-35,-11],[-27,21],[-72,100],[-41,33],[-16,0],[-17,-25],[-4,-30],[-1,-33],[-8,-39],[-23,-46],[-29,-32],[-32,-11],[-63,35],[-30,-6],[-60,-54],[-34,-17]],[[5950,476],[0,1],[-16,205],[-15,63],[-20,57],[-10,174],[21,174],[-6,85],[-15,75],[-31,40],[-12,91],[0,86],[-5,85],[-6,54],[-14,24],[-27,114],[-39,83],[-71,8],[-72,-36],[-65,-6],[-52,21],[10,62],[21,34],[15,97],[10,395],[34,123],[66,-21],[89,7],[73,154]],[[5813,2725],[345,-67],[46,30],[47,16],[70,-34],[72,25],[90,87],[27,-27],[24,-57],[35,-27],[104,5],[24,104]],[[5950,476],[-1,0],[-32,-16],[-138,-6],[-64,-54],[-70,-122],[-29,-25],[-36,-6],[-243,69],[-64,-5],[-80,-66],[-15,-6],[-14,0],[-15,8],[17,102],[-22,94],[-40,75],[-41,47],[-47,25],[-43,-6],[-137,-76],[-22,31],[-35,175],[-30,69],[-30,7],[-33,-7],[-40,25],[81,83],[21,38],[20,57],[-2,21],[-43,11],[-46,44],[-72,126],[-110,149],[-21,48],[-45,167],[-11,26],[-14,10],[-7,16],[-6,18],[-9,17],[-44,29],[-11,14],[-13,44],[-8,50],[-11,25],[-20,-25],[-36,-84],[-28,18],[-29,62],[-38,46],[13,39],[29,49],[12,29],[6,35],[3,40],[5,39],[12,37],[-29,27],[-208,36],[-75,-13],[-30,-19],[-6,-4]],[[5127,3446],[42,5],[97,-46],[52,-49],[14,-55],[8,-64],[20,-33],[15,-46],[51,-87],[46,-15],[22,-104],[48,-37],[52,-58],[56,16],[100,4],[63,-152]],[[5846,6012],[19,-29],[28,-27],[28,9],[22,38],[37,100],[20,43],[65,59],[142,14],[53,31]]],transform:{scale:[.0006709497695346505,.0002531984968496843],translate:[39.98597635542308,41.04411082000007]}},m.prototype.ggyTopo="__GGY__",m.prototype.ghaTopo="__GHA__",m.prototype.gibTopo="__GIB__",m.prototype.ginTopo="__GIN__",m.prototype.gmbTopo="__GMB__",m.prototype.gnbTopo="__GNB__",m.prototype.gnqTopo="__GNQ__",m.prototype.grcTopo="__GRC__",m.prototype.grdTopo="__GRD__",m.prototype.grlTopo="__GRL__",m.prototype.gtmTopo="__GTM__",m.prototype.gumTopo="__GUM__",m.prototype.guyTopo="__GUY__",m.prototype.hkgTopo="__HKG__",m.prototype.hmdTopo="__HMD__",m.prototype.hndTopo="__HND__",m.prototype.hrvTopo="__HRV__",m.prototype.htiTopo="__HTI__",m.prototype.hunTopo="__HUN__",m.prototype.idnTopo="__IDN__",m.prototype.imnTopo="__IMN__",m.prototype.indTopo="__IND__",m.prototype.ioaTopo="__IOA__",m.prototype.iotTopo="__IOT__",m.prototype.irlTopo="__IRL__",m.prototype.irnTopo="__IRN__",m.prototype.irqTopo="__IRQ__",m.prototype.islTopo="__ISL__",m.prototype.isrTopo="__ISR__",m.prototype.itaTopo="__ITA__",m.prototype.jamTopo="__JAM__",m.prototype.jeyTopo="__JEY__",m.prototype.jorTopo="__JOR__",m.prototype.jpnTopo="__JPN__",m.prototype.kabTopo="__KAB__",m.prototype.kasTopo="__KAS__",m.prototype.kazTopo="__KAZ__",m.prototype.kenTopo="__KEN__",m.prototype.kgzTopo="__KGZ__",m.prototype.khmTopo="__KHM__",m.prototype.kirTopo="__KIR__",m.prototype.knaTopo="__KNA__",m.prototype.korTopo="__KOR__",m.prototype.kosTopo="__KOS__",m.prototype.kwtTopo="__KWT__",m.prototype.laoTopo="__LAO__",m.prototype.lbnTopo="__LBN__",m.prototype.lbrTopo="__LBR__",m.prototype.lbyTopo="__LBY__",m.prototype.lcaTopo="__LCA__",m.prototype.lieTopo="__LIE__",m.prototype.lkaTopo="__LKA__",m.prototype.lsoTopo="__LSO__",m.prototype.ltuTopo="__LTU__",m.prototype.luxTopo="__LUX__",m.prototype.lvaTopo="__LVA__",m.prototype.macTopo="__MAC__",m.prototype.mafTopo="__MAF__",m.prototype.marTopo="__MAR__",m.prototype.mcoTopo="__MCO__",m.prototype.mdaTopo="__MDA__",m.prototype.mdgTopo="__MDG__",m.prototype.mdvTopo="__MDV__",m.prototype.mexTopo="__MEX__",m.prototype.mhlTopo="__MHL__",m.prototype.mkdTopo="__MKD__",m.prototype.mliTopo="__MLI__",m.prototype.mltTopo="__MLT__",m.prototype.mmrTopo="__MMR__",m.prototype.mneTopo="__MNE__",m.prototype.mngTopo="__MNG__",m.prototype.mnpTopo="__MNP__",m.prototype.mozTopo="__MOZ__",m.prototype.mrtTopo="__MRT__",m.prototype.msrTopo="__MSR__",m.prototype.musTopo="__MUS__",m.prototype.mwiTopo="__MWI__",m.prototype.mysTopo="__MYS__",m.prototype.namTopo="__NAM__",m.prototype.nclTopo="__NCL__",m.prototype.nerTopo="__NER__",m.prototype.nfkTopo="__NFK__",m.prototype.ngaTopo="__NGA__",m.prototype.nicTopo="__NIC__",m.prototype.niuTopo="__NIU__",m.prototype.nldTopo="__NLD__",m.prototype.nplTopo="__NPL__",m.prototype.nruTopo="__NRU__",m.prototype.nulTopo="__NUL__",m.prototype.nzlTopo="__NZL__",m.prototype.omnTopo="__OMN__",m.prototype.pakTopo="__PAK__",m.prototype.panTopo="__PAN__",m.prototype.pcnTopo="__PCN__",m.prototype.perTopo="__PER__",m.prototype.pgaTopo="__PGA__",m.prototype.phlTopo="__PHL__",m.prototype.plwTopo="__PLW__",m.prototype.pngTopo="__PNG__",m.prototype.polTopo="__POL__",m.prototype.priTopo="__PRI__",m.prototype.prkTopo="__PRK__",m.prototype.prtTopo="__PRT__",m.prototype.pryTopo="__PRY__",m.prototype.pyfTopo="__PYF__",m.prototype.qatTopo="__QAT__",m.prototype.rouTopo="__ROU__",m.prototype.rusTopo="__RUS__",m.prototype.rwaTopo="__RWA__",m.prototype.sahTopo="__SAH__",m.prototype.sauTopo="__SAU__",m.prototype.scrTopo="__SCR__",m.prototype.sdnTopo="__SDN__",m.prototype.sdsTopo="__SDS__",m.prototype.senTopo="__SEN__",m.prototype.serTopo="__SER__",m.prototype.sgpTopo="__SGP__",m.prototype.sgsTopo="__SGS__",m.prototype.shnTopo="__SHN__",m.prototype.slbTopo="__SLB__",m.prototype.sleTopo="__SLE__",m.prototype.slvTopo="__SLV__",m.prototype.smrTopo="__SMR__",m.prototype.solTopo="__SOL__",m.prototype.somTopo="__SOM__",m.prototype.spmTopo="__SPM__",m.prototype.srbTopo="__SRB__",m.prototype.stpTopo="__STP__",m.prototype.surTopo="__SUR__",m.prototype.svkTopo="__SVK__",m.prototype.svnTopo="__SVN__",m.prototype.sweTopo="__SWE__",m.prototype.swzTopo="__SWZ__",m.prototype.sxmTopo="__SXM__",m.prototype.sycTopo="__SYC__",m.prototype.syrTopo="__SYR__",m.prototype.tcaTopo="__TCA__",m.prototype.tcdTopo="__TCD__",m.prototype.tgoTopo="__TGO__",m.prototype.thaTopo="__THA__",m.prototype.tjkTopo="__TJK__",m.prototype.tkmTopo="__TKM__",m.prototype.tlsTopo="__TLS__",m.prototype.tonTopo="__TON__",m.prototype.ttoTopo="__TTO__",m.prototype.tunTopo="__TUN__",m.prototype.turTopo="__TUR__",m.prototype.tuvTopo="__TUV__",m.prototype.twnTopo="__TWN__",m.prototype.tzaTopo="__TZA__",m.prototype.ugaTopo="__UGA__",m.prototype.ukrTopo="__UKR__",m.prototype.umiTopo="__UMI__",m.prototype.uryTopo="__URY__",m.prototype.usaTopo="__USA__",m.prototype.usgTopo="__USG__",m.prototype.uzbTopo="__UZB__",m.prototype.vatTopo="__VAT__",m.prototype.vctTopo="__VCT__",m.prototype.venTopo="__VEN__",m.prototype.vgbTopo="__VGB__",m.prototype.virTopo="__VIR__",m.prototype.vnmTopo="__VNM__",m.prototype.vutTopo="__VUT__",m.prototype.wlfTopo="__WLF__",m.prototype.wsbTopo="__WSB__",m.prototype.wsmTopo="__WSM__",m.prototype.yemTopo="__YEM__",m.prototype.zafTopo="__ZAF__",m.prototype.zmbTopo="__ZMB__",m.prototype.zweTopo="__ZWE__",m.prototype.latLngToXY=function(a,b){return this.projection([b,a])},m.prototype.addLayer=function(a,b,c){var d;return d=c?this.svg.insert("g",":first-child"):this.svg.append("g"),d.attr("id",b||"").attr("class",a||"")},m.prototype.updateChoropleth=function(a){var b=this.svg;for(var c in a)if(a.hasOwnProperty(c)){var d,e=a[c];if(!c)continue;if(d="string"==typeof e?e:"string"==typeof e.color?e.color:this.options.fills[e.fillKey],e===Object(e)){this.options.data[c]=l(e,this.options.data[c]||{});this.svg.select("."+c).attr("data-info",JSON.stringify(this.options.data[c]))}b.selectAll("."+c).transition().style("fill",d)}},m.prototype.updatePopup=function(a,b,c){var d=this;a.on("mousemove",null),a.on("mousemove",function(){var e=n.mouse(d.options.element);n.select(d.svg[0][0].parentNode).select(".datamaps-hoverover").style("top",e[1]+30+"px").html(function(){var d=JSON.parse(a.attr("data-info"));try{return c.popupTemplate(b,d)}catch(e){return""}}).style("left",e[0]+"px")}),n.select(d.svg[0][0].parentNode).select(".datamaps-hoverover").style("display","block")},m.prototype.addPlugin=function(a,b){var c=this;"undefined"==typeof m.prototype[a]&&(m.prototype[a]=function(d,e,f,g){var h;"undefined"==typeof g&&(g=!1),"function"==typeof e&&(f=e,e=void 0),e=l(e||{},c.options[a+"Config"]),!g&&this.options[a+"Layer"]?(h=this.options[a+"Layer"],e=e||this.options[a+"Options"]):(h=this.addLayer(a),this.options[a+"Layer"]=h,this.options[a+"Options"]=e),b.apply(this,[h,d,e]),f&&f(h)})},"object"==typeof exports?(n=require("d3"),
o=require("topojson"),module.exports=m):"function"==typeof define&&define.amd?define("datamaps",["require","d3","topojson"],function(a){return n=a("d3"),o=a("topojson"),m}):window.Datamap=window.Datamaps=m,window.jQuery&&(window.jQuery.fn.datamaps=function(a,b){a=a||{},a.element=this[0];var c=new m(a);return"function"==typeof b&&b(c,a),this})}();