<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window.webpackJsonpW3Utils=window.webpackJsonpW3Utils||[]).push([[4],{227:function(t,e,a){(function(s,i){var n,r,o;!function(t){var e={set:{colors:1,values:1,backgroundColor:1,scaleColors:1,normalizeFunction:1,focus:1},get:{selectedRegions:1,selectedMarkers:1,mapObject:1,regionName:1}};t.fn.vectorMap=function(t){var a=this.children(".jvectormap-container").data("mapObject");if("addMap"===t)h.Map.maps[arguments[1]]=arguments[2];else{if(("set"===t||"get"===t)&amp;&amp;e[t][arguments[1]])return a[t+(arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1))].apply(a,Array.prototype.slice.call(arguments,2));(t=t||{}).container=this,a=new h.Map(t)}return this}}(s),r=[a(50)],void 0===(o="function"==typeof(n=function(t){function e(e){var r=e||window.event,o=h.call(arguments,1),l=0,c=0,p=0,d=0;if((e=t.event.fix(r)).type="mousewheel","detail"in r&amp;&amp;(p=-1*r.detail),"wheelDelta"in r&amp;&amp;(p=r.wheelDelta),"wheelDeltaY"in r&amp;&amp;(p=r.wheelDeltaY),"wheelDeltaX"in r&amp;&amp;(c=-1*r.wheelDeltaX),"axis"in r&amp;&amp;r.axis===r.HORIZONTAL_AXIS&amp;&amp;(c=-1*p,p=0),l=0===p?c:p,"deltaY"in r&amp;&amp;(l=p=-1*r.deltaY),"deltaX"in r&amp;&amp;(c=r.deltaX,0===p&amp;&amp;(l=-1*c)),0!==p||0!==c){if(1===r.deltaMode){var m=t.data(this,"mousewheel-line-height");l*=m,p*=m,c*=m}else if(2===r.deltaMode){var u=t.data(this,"mousewheel-page-height");l*=u,p*=u,c*=u}return d=Math.max(Math.abs(p),Math.abs(c)),(!n||n&gt;d)&amp;&amp;(n=d,s(r,d)&amp;&amp;(n/=40)),s(r,d)&amp;&amp;(l/=40,c/=40,p/=40),l=Math[l&gt;=1?"floor":"ceil"](l/n),c=Math[c&gt;=1?"floor":"ceil"](c/n),p=Math[p&gt;=1?"floor":"ceil"](p/n),e.deltaX=c,e.deltaY=p,e.deltaFactor=n,e.deltaMode=0,o.unshift(e,l,c,p),i&amp;&amp;clearTimeout(i),i=setTimeout(a,200),(t.event.dispatch||t.event.handle).apply(this,o)}}function a(){n=null}function s(t,e){return c.settings.adjustOldDeltas&amp;&amp;"mousewheel"===t.type&amp;&amp;e%120==0}var i,n,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],o="onwheel"in document||document.documentMode&gt;=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice;if(t.event.fixHooks)for(var l=r.length;l;)t.event.fixHooks[r[--l]]=t.event.mouseHooks;var c=t.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var a=o.length;a;)this.addEventListener(o[--a],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",c.getLineHeight(this)),t.data(this,"mousewheel-page-height",c.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=o.length;t;)this.removeEventListener(o[--t],e,!1);else this.onmousewheel=null},getLineHeight:function(e){return parseInt(t(e)["offsetParent"in t.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})?n.apply(e,r):n)||(t.exports=o);var h={inherits:function(t,e){function a(){}a.prototype=e.prototype,t.prototype=new a,t.prototype.constructor=t,t.parentClass=e},mixin:function(t,e){var a;for(a in e.prototype)e.prototype.hasOwnProperty(a)&amp;&amp;(t.prototype[a]=e.prototype[a])},min:function(t){var e,a=Number.MAX_VALUE;if(t instanceof Array)for(e=0;e&lt;t.length;e++)t[e]&lt;a&amp;&amp;(a=t[e]);else for(e in t)t[e]&lt;a&amp;&amp;(a=t[e]);return a},max:function(t){var e,a=Number.MIN_VALUE;if(t instanceof Array)for(e=0;e&lt;t.length;e++)t[e]&gt;a&amp;&amp;(a=t[e]);else for(e in t)t[e]&gt;a&amp;&amp;(a=t[e]);return a},keys:function(t){var e,a=[];for(e in t)a.push(e);return a},values:function(t){var e,a,s=[];for(a=0;a&lt;arguments.length;a++)for(e in t=arguments[a])s.push(t[e]);return s},whenImageLoaded:function(t){var e=new h.$.Deferred,a=h.$("&lt;img/&gt;");return a.error((function(){e.reject()})).load((function(){e.resolve(a)})),a.attr("src",t),e},isImageUrl:function(t){return/\.\w{3,4}$/.test(t)}};h.$=s,Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){var a;if(null==this)throw new TypeError('"this" is null or not defined');var s=Object(this),i=s.length&gt;&gt;&gt;0;if(0===i)return-1;var n=+e||0;if(Math.abs(n)===1/0&amp;&amp;(n=0),n&gt;=i)return-1;for(a=Math.max(n&gt;=0?n:i-Math.abs(n),0);i&gt;a;){if(a in s&amp;&amp;s[a]===t)return a;a++}return-1}),h.AbstractElement=function(t,e){this.node=this.createElement(t),this.name=t,this.properties={},e&amp;&amp;this.set(e)},h.AbstractElement.prototype.set=function(t,e){var a;if("object"==typeof t)for(a in t)this.properties[a]=t[a],this.applyAttr(a,t[a]);else this.properties[t]=e,this.applyAttr(t,e)},h.AbstractElement.prototype.get=function(t){return this.properties[t]},h.AbstractElement.prototype.applyAttr=function(t,e){this.node.setAttribute(t,e)},h.AbstractElement.prototype.remove=function(){h.$(this.node).remove()},h.AbstractCanvasElement=function(t,e,a){this.container=t,this.setSize(e,a),this.rootElement=new h[this.classPrefix+"GroupElement"],this.node.appendChild(this.rootElement.node),this.container.appendChild(this.node)},h.AbstractCanvasElement.prototype.add=function(t,e){(e=e||this.rootElement).add(t),t.canvas=this},h.AbstractCanvasElement.prototype.addPath=function(t,e,a){var s=new h[this.classPrefix+"PathElement"](t,e);return this.add(s,a),s},h.AbstractCanvasElement.prototype.addCircle=function(t,e,a){var s=new h[this.classPrefix+"CircleElement"](t,e);return this.add(s,a),s},h.AbstractCanvasElement.prototype.addImage=function(t,e,a){var s=new h[this.classPrefix+"ImageElement"](t,e);return this.add(s,a),s},h.AbstractCanvasElement.prototype.addText=function(t,e,a){var s=new h[this.classPrefix+"TextElement"](t,e);return this.add(s,a),s},h.AbstractCanvasElement.prototype.addGroup=function(t){var e=new h[this.classPrefix+"GroupElement"];return t?t.node.appendChild(e.node):this.node.appendChild(e.node),e.canvas=this,e},h.AbstractShapeElement=function(t,e,a){this.style=a||{},this.style.current=this.style.current||{},this.isHovered=!1,this.isSelected=!1,this.updateStyle()},h.AbstractShapeElement.prototype.setStyle=function(t,e){var a={};"object"==typeof t?a=t:a[t]=e,h.$.extend(this.style.current,a),this.updateStyle()},h.AbstractShapeElement.prototype.updateStyle=function(){var t={};h.AbstractShapeElement.mergeStyles(t,this.style.initial),h.AbstractShapeElement.mergeStyles(t,this.style.current),this.isHovered&amp;&amp;h.AbstractShapeElement.mergeStyles(t,this.style.hover),this.isSelected&amp;&amp;(h.AbstractShapeElement.mergeStyles(t,this.style.selected),this.isHovered&amp;&amp;h.AbstractShapeElement.mergeStyles(t,this.style.selectedHover)),this.set(t)},h.AbstractShapeElement.mergeStyles=function(t,e){var a;for(a in e=e||{})null===e[a]?delete t[a]:t[a]=e[a]},h.SVGElement=function(){h.SVGElement.parentClass.apply(this,arguments)},h.inherits(h.SVGElement,h.AbstractElement),h.SVGElement.svgns="http://www.w3.org/2000/svg",h.SVGElement.prototype.createElement=function(t){return document.createElementNS(h.SVGElement.svgns,t)},h.SVGElement.prototype.addClass=function(t){this.node.setAttribute("class",t)},h.SVGElement.prototype.getElementCtr=function(t){return h["SVG"+t]},h.SVGElement.prototype.getBBox=function(){return this.node.getBBox()},h.SVGGroupElement=function(){h.SVGGroupElement.parentClass.call(this,"g")},h.inherits(h.SVGGroupElement,h.SVGElement),h.SVGGroupElement.prototype.add=function(t){this.node.appendChild(t.node)},h.SVGCanvasElement=function(){this.classPrefix="SVG",h.SVGCanvasElement.parentClass.call(this,"svg"),this.defsElement=new h.SVGElement("defs"),this.node.appendChild(this.defsElement.node),h.AbstractCanvasElement.apply(this,arguments)},h.inherits(h.SVGCanvasElement,h.SVGElement),h.mixin(h.SVGCanvasElement,h.AbstractCanvasElement),h.SVGCanvasElement.prototype.setSize=function(t,e){this.width=t,this.height=e,this.node.setAttribute("width",t),this.node.setAttribute("height",e)},h.SVGCanvasElement.prototype.applyTransformParams=function(t,e,a){this.scale=t,this.transX=e,this.transY=a,this.rootElement.node.setAttribute("transform","scale("+t+") translate("+e+", "+a+")")},h.SVGShapeElement=function(t,e){h.SVGShapeElement.parentClass.call(this,t,e),h.AbstractShapeElement.apply(this,arguments)},h.inherits(h.SVGShapeElement,h.SVGElement),h.mixin(h.SVGShapeElement,h.AbstractShapeElement),h.SVGShapeElement.prototype.applyAttr=function(t,e){var a,s,i=this;"fill"===t&amp;&amp;h.isImageUrl(e)?h.SVGShapeElement.images[e]?this.applyAttr("fill","url(#image"+h.SVGShapeElement.images[e]+")"):h.whenImageLoaded(e).then((function(t){(s=new h.SVGElement("image")).node.setAttributeNS("http://www.w3.org/1999/xlink","href",e),s.applyAttr("x","0"),s.applyAttr("y","0"),s.applyAttr("width",t[0].width),s.applyAttr("height",t[0].height),(a=new h.SVGElement("pattern")).applyAttr("id","image"+h.SVGShapeElement.imageCounter),a.applyAttr("x",0),a.applyAttr("y",0),a.applyAttr("width",t[0].width/2),a.applyAttr("height",t[0].height/2),a.applyAttr("viewBox","0 0 "+t[0].width+" "+t[0].height),a.applyAttr("patternUnits","userSpaceOnUse"),a.node.appendChild(s.node),i.canvas.defsElement.node.appendChild(a.node),h.SVGShapeElement.images[e]=h.SVGShapeElement.imageCounter++,i.applyAttr("fill","url(#image"+h.SVGShapeElement.images[e]+")")})):h.SVGShapeElement.parentClass.prototype.applyAttr.apply(this,arguments)},h.SVGShapeElement.imageCounter=1,h.SVGShapeElement.images={},h.SVGPathElement=function(t,e){h.SVGPathElement.parentClass.call(this,"path",t,e),this.node.setAttribute("fill-rule","evenodd")},h.inherits(h.SVGPathElement,h.SVGShapeElement),h.SVGCircleElement=function(t,e){h.SVGCircleElement.parentClass.call(this,"circle",t,e)},h.inherits(h.SVGCircleElement,h.SVGShapeElement),h.SVGImageElement=function(t,e){h.SVGImageElement.parentClass.call(this,"image",t,e)},h.inherits(h.SVGImageElement,h.SVGShapeElement),h.SVGImageElement.prototype.applyAttr=function(t,e){var a=this;"image"==t?h.whenImageLoaded(e).then((function(t){a.node.setAttributeNS("http://www.w3.org/1999/xlink","href",e),a.width=t[0].width,a.height=t[0].height,a.applyAttr("width",a.width),a.applyAttr("height",a.height),a.applyAttr("x",a.cx-a.width/2),a.applyAttr("y",a.cy-a.height/2),h.$(a.node).trigger("imageloaded",[t])})):"cx"==t?(this.cx=e,this.width&amp;&amp;this.applyAttr("x",e-this.width/2)):"cy"==t?(this.cy=e,this.height&amp;&amp;this.applyAttr("y",e-this.height/2)):h.SVGImageElement.parentClass.prototype.applyAttr.apply(this,arguments)},h.SVGTextElement=function(t,e){h.SVGTextElement.parentClass.call(this,"text",t,e)},h.inherits(h.SVGTextElement,h.SVGShapeElement),h.SVGTextElement.prototype.applyAttr=function(t,e){"text"===t?this.node.textContent=e:h.SVGTextElement.parentClass.prototype.applyAttr.apply(this,arguments)},h.VMLElement=function(){h.VMLElement.VMLInitialized||h.VMLElement.initializeVML(),h.VMLElement.parentClass.apply(this,arguments)},h.inherits(h.VMLElement,h.AbstractElement),h.VMLElement.VMLInitialized=!1,h.VMLElement.initializeVML=function(){try{document.namespaces.rvml||document.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),h.VMLElement.prototype.createElement=function(t){return document.createElement("&lt;rvml:"+t+' class="rvml"&gt;')}}catch(t){h.VMLElement.prototype.createElement=function(t){return document.createElement("&lt;"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml"&gt;')}}document.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)"),h.VMLElement.VMLInitialized=!0},h.VMLElement.prototype.getElementCtr=function(t){return h["VML"+t]},h.VMLElement.prototype.addClass=function(t){h.$(this.node).addClass(t)},h.VMLElement.prototype.applyAttr=function(t,e){this.node[t]=e},h.VMLElement.prototype.getBBox=function(){var t=h.$(this.node);return{x:t.position().left/this.canvas.scale,y:t.position().top/this.canvas.scale,width:t.width()/this.canvas.scale,height:t.height()/this.canvas.scale}},h.VMLGroupElement=function(){h.VMLGroupElement.parentClass.call(this,"group"),this.node.style.left="0px",this.node.style.top="0px",this.node.coordorigin="0 0"},h.inherits(h.VMLGroupElement,h.VMLElement),h.VMLGroupElement.prototype.add=function(t){this.node.appendChild(t.node)},h.VMLCanvasElement=function(){this.classPrefix="VML",h.VMLCanvasElement.parentClass.call(this,"group"),h.AbstractCanvasElement.apply(this,arguments),this.node.style.position="absolute"},h.inherits(h.VMLCanvasElement,h.VMLElement),h.mixin(h.VMLCanvasElement,h.AbstractCanvasElement),h.VMLCanvasElement.prototype.setSize=function(t,e){var a,s,i,n;if(this.width=t,this.height=e,this.node.style.width=t+"px",this.node.style.height=e+"px",this.node.coordsize=t+" "+e,this.node.coordorigin="0 0",this.rootElement){for(i=0,n=(a=this.rootElement.node.getElementsByTagName("shape")).length;n&gt;i;i++)a[i].coordsize=t+" "+e,a[i].style.width=t+"px",a[i].style.height=e+"px";for(i=0,n=(s=this.node.getElementsByTagName("group")).length;n&gt;i;i++)s[i].coordsize=t+" "+e,s[i].style.width=t+"px",s[i].style.height=e+"px"}},h.VMLCanvasElement.prototype.applyTransformParams=function(t,e,a){this.scale=t,this.transX=e,this.transY=a,this.rootElement.node.coordorigin=this.width-e-this.width/100+","+(this.height-a-this.height/100),this.rootElement.node.coordsize=this.width/t+","+this.height/t},h.VMLShapeElement=function(t,e){h.VMLShapeElement.parentClass.call(this,t,e),this.fillElement=new h.VMLElement("fill"),this.strokeElement=new h.VMLElement("stroke"),this.node.appendChild(this.fillElement.node),this.node.appendChild(this.strokeElement.node),this.node.stroked=!1,h.AbstractShapeElement.apply(this,arguments)},h.inherits(h.VMLShapeElement,h.VMLElement),h.mixin(h.VMLShapeElement,h.AbstractShapeElement),h.VMLShapeElement.prototype.applyAttr=function(t,e){switch(t){case"fill":this.node.fillcolor=e;break;case"fill-opacity":this.fillElement.node.opacity=Math.round(100*e)+"%";break;case"stroke":this.node.stroked="none"!==e,this.node.strokecolor=e;break;case"stroke-opacity":this.strokeElement.node.opacity=Math.round(100*e)+"%";break;case"stroke-width":this.node.stroked=0!==parseInt(e,10),this.node.strokeweight=e;break;case"d":this.node.path=h.VMLPathElement.pathSvgToVml(e);break;default:h.VMLShapeElement.parentClass.prototype.applyAttr.apply(this,arguments)}},h.VMLPathElement=function(t,e){var a=new h.VMLElement("skew");h.VMLPathElement.parentClass.call(this,"shape",t,e),this.node.coordorigin="0 0",a.node.on=!0,a.node.matrix="0.01,0,0,0.01,0,0",a.node.offset="0,0",this.node.appendChild(a.node)},h.inherits(h.VMLPathElement,h.VMLShapeElement),h.VMLPathElement.prototype.applyAttr=function(t,e){"d"===t?this.node.path=h.VMLPathElement.pathSvgToVml(e):h.VMLShapeElement.prototype.applyAttr.call(this,t,e)},h.VMLPathElement.pathSvgToVml=function(t){var e,a,s=0,i=0;return(t=t.replace(/(-?\d+)e(-?\d+)/g,"0")).replace(/([MmLlHhVvCcSs])\s*((?:-?\d*(?:\.\d+)?\s*,?\s*)+)/g,(function(t,n,r){(r=r.replace(/(\d)-/g,"$1,-").replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g,",").split(","))[0]||r.shift();for(var o=0,h=r.length;h&gt;o;o++)r[o]=Math.round(100*r[o]);switch(n){case"m":return s+=r[0],i+=r[1],"t"+r.join(",");case"M":return s=r[0],i=r[1],"m"+r.join(",");case"l":return s+=r[0],i+=r[1],"r"+r.join(",");case"L":return s=r[0],i=r[1],"l"+r.join(",");case"h":return s+=r[0],"r"+r[0]+",0";case"H":return"l"+(s=r[0])+","+i;case"v":return i+=r[0],"r0,"+r[0];case"V":return i=r[0],"l"+s+","+i;case"c":return e=s+r[r.length-4],a=i+r[r.length-3],s+=r[r.length-2],i+=r[r.length-1],"v"+r.join(",");case"C":return e=r[r.length-4],a=r[r.length-3],s=r[r.length-2],i=r[r.length-1],"c"+r.join(",");case"s":return r.unshift(i-a),r.unshift(s-e),e=s+r[r.length-4],a=i+r[r.length-3],s+=r[r.length-2],i+=r[r.length-1],"v"+r.join(",");case"S":return r.unshift(i+i-a),r.unshift(s+s-e),e=r[r.length-4],a=r[r.length-3],s=r[r.length-2],i=r[r.length-1],"c"+r.join(",")}return""})).replace(/z/g,"e")},h.VMLCircleElement=function(t,e){h.VMLCircleElement.parentClass.call(this,"oval",t,e)},h.inherits(h.VMLCircleElement,h.VMLShapeElement),h.VMLCircleElement.prototype.applyAttr=function(t,e){switch(t){case"r":this.node.style.width=2*e+"px",this.node.style.height=2*e+"px",this.applyAttr("cx",this.get("cx")||0),this.applyAttr("cy",this.get("cy")||0);break;case"cx":if(!e)return;this.node.style.left=e-(this.get("r")||0)+"px";break;case"cy":if(!e)return;this.node.style.top=e-(this.get("r")||0)+"px";break;default:h.VMLCircleElement.parentClass.prototype.applyAttr.call(this,t,e)}},h.VectorCanvas=function(t,e,a){return this.mode=window.SVGAngle?"svg":"vml",this.impl="svg"==this.mode?new h.SVGCanvasElement(t,e,a):new h.VMLCanvasElement(t,e,a),this.impl.mode=this.mode,this.impl},h.SimpleScale=function(t){this.scale=t},h.SimpleScale.prototype.getValue=function(t){return t},h.OrdinalScale=function(t){this.scale=t},h.OrdinalScale.prototype.getValue=function(t){return this.scale[t]},h.OrdinalScale.prototype.getTicks=function(){var t,e=[];for(t in this.scale)e.push({label:t,value:this.scale[t]});return e},h.NumericScale=function(t,e,a,s){this.scale=[],e=e||"linear",t&amp;&amp;this.setScale(t),e&amp;&amp;this.setNormalizeFunction(e),void 0!==a&amp;&amp;this.setMin(a),void 0!==s&amp;&amp;this.setMax(s)},h.NumericScale.prototype={setMin:function(t){this.clearMinValue=t,this.minValue="function"==typeof this.normalize?this.normalize(t):t},setMax:function(t){this.clearMaxValue=t,this.maxValue="function"==typeof this.normalize?this.normalize(t):t},setScale:function(t){var e;for(this.scale=[],e=0;e&lt;t.length;e++)this.scale[e]=[t[e]]},setNormalizeFunction:function(t){"polynomial"===t?this.normalize=function(t){return Math.pow(t,.2)}:"linear"===t?delete this.normalize:this.normalize=t,this.setMin(this.clearMinValue),this.setMax(this.clearMaxValue)},getValue:function(t){var e,a,s=[],i=0,n=0;for("function"==typeof this.normalize&amp;&amp;(t=this.normalize(t)),n=0;n&lt;this.scale.length-1;n++)e=this.vectorLength(this.vectorSubtract(this.scale[n+1],this.scale[n])),s.push(e),i+=e;for(a=(this.maxValue-this.minValue)/i,n=0;n&lt;s.length;n++)s[n]*=a;for(n=0,t-=this.minValue;t-s[n]&gt;=0;)t-=s[n],n++;return this.vectorToNum(n==this.scale.length-1?this.scale[n]:this.vectorAdd(this.scale[n],this.vectorMult(this.vectorSubtract(this.scale[n+1],this.scale[n]),t/s[n])))},vectorToNum:function(t){var e,a=0;for(e=0;e&lt;t.length;e++)a+=Math.round(t[e])*Math.pow(256,t.length-e-1);return a},vectorSubtract:function(t,e){var a,s=[];for(a=0;a&lt;t.length;a++)s[a]=t[a]-e[a];return s},vectorAdd:function(t,e){var a,s=[];for(a=0;a&lt;t.length;a++)s[a]=t[a]+e[a];return s},vectorMult:function(t,e){var a,s=[];for(a=0;a&lt;t.length;a++)s[a]=t[a]*e;return s},vectorLength:function(t){var e,a=0;for(e=0;e&lt;t.length;e++)a+=t[e]*t[e];return Math.sqrt(a)},getTicks:function(){var t,e,a=[this.clearMinValue,this.clearMaxValue],s=a[1]-a[0],i=Math.pow(10,Math.floor(Math.log(s/5)/Math.LN10)),n=5/s*i,r=[];for(.15&gt;=n?i*=10:.35&gt;=n?i*=5:.75&gt;=n&amp;&amp;(i*=2),a[0]=Math.floor(a[0]/i)*i,a[1]=Math.ceil(a[1]/i)*i,t=a[0];t&lt;=a[1];)e=t==a[0]?this.clearMinValue:t==a[1]?this.clearMaxValue:t,r.push({label:t,value:this.getValue(e)}),t+=i;return r}},h.ColorScale=function(){h.ColorScale.parentClass.apply(this,arguments)},h.inherits(h.ColorScale,h.NumericScale),h.ColorScale.prototype.setScale=function(t){var e;for(e=0;e&lt;t.length;e++)this.scale[e]=h.ColorScale.rgbToArray(t[e])},h.ColorScale.prototype.getValue=function(t){return h.ColorScale.numToRgb(h.ColorScale.parentClass.prototype.getValue.call(this,t))},h.ColorScale.arrayToRgb=function(t){var e,a,s="#";for(a=0;a&lt;t.length;a++)s+=1==(e=t[a].toString(16)).length?"0"+e:e;return s},h.ColorScale.numToRgb=function(t){for(t=t.toString(16);t.length&lt;6;)t="0"+t;return"#"+t},h.ColorScale.rgbToArray=function(t){return t=t.substr(1),[parseInt(t.substr(0,2),16),parseInt(t.substr(2,2),16),parseInt(t.substr(4,2),16)]},h.Legend=function(t){this.params=t||{},this.map=this.params.map,this.series=this.params.series,this.body=h.$("&lt;div/&gt;"),this.body.addClass("jvectormap-legend"),this.params.cssClass&amp;&amp;this.body.addClass(this.params.cssClass),t.vertical?this.map.legendCntVertical.append(this.body):this.map.legendCntHorizontal.append(this.body),this.render()},h.Legend.prototype.render=function(){var t,e,a,s,i=this.series.scale.getTicks(),n=h.$("&lt;div/&gt;").addClass("jvectormap-legend-inner");for(this.body.html(""),this.params.title&amp;&amp;this.body.append(h.$("&lt;div/&gt;").addClass("jvectormap-legend-title").html(this.params.title)),this.body.append(n),t=0;t&lt;i.length;t++){switch(e=h.$("&lt;div/&gt;").addClass("jvectormap-legend-tick"),a=h.$("&lt;div/&gt;").addClass("jvectormap-legend-tick-sample"),this.series.params.attribute){case"fill":h.isImageUrl(i[t].value)?a.css("background","url("+i[t].value+")"):a.css("background",i[t].value);break;case"stroke":a.css("background",i[t].value);break;case"image":a.css("background","url("+i[t].value+") no-repeat center center");break;case"r":h.$("&lt;div/&gt;").css({"border-radius":i[t].value,border:this.map.params.markerStyle.initial["stroke-width"]+"px "+this.map.params.markerStyle.initial.stroke+" solid",width:2*i[t].value+"px",height:2*i[t].value+"px",background:this.map.params.markerStyle.initial.fill}).appendTo(a)}e.append(a),s=i[t].label,this.params.labelRender&amp;&amp;(s=this.params.labelRender(s)),e.append(h.$("&lt;div&gt;"+s+" &lt;/div&gt;").addClass("jvectormap-legend-tick-text")),n.append(e)}n.append(h.$("&lt;div/&gt;").css("clear","both"))},h.DataSeries=function(t,e,a){var s;(t=t||{}).attribute=t.attribute||"fill",this.elements=e,this.params=t,this.map=a,t.attributes&amp;&amp;this.setAttributes(t.attributes),h.$.isArray(t.scale)?(s="fill"===t.attribute||"stroke"===t.attribute?h.ColorScale:h.NumericScale,this.scale=new s(t.scale,t.normalizeFunction,t.min,t.max)):this.scale=t.scale?new h.OrdinalScale(t.scale):new h.SimpleScale(t.scale),this.values=t.values||{},this.setValues(this.values),this.params.legend&amp;&amp;(this.legend=new h.Legend(i.extend({map:this.map,series:this},this.params.legend)))},h.DataSeries.prototype={setAttributes:function(t,e){var a,s=t;if("string"==typeof t)this.elements[t]&amp;&amp;this.elements[t].setStyle(this.params.attribute,e);else for(a in s)this.elements[a]&amp;&amp;this.elements[a].element.setStyle(this.params.attribute,s[a])},setValues:function(t){var e,a,s=-Number.MAX_VALUE,i=Number.MAX_VALUE,n={};if(this.scale instanceof h.OrdinalScale||this.scale instanceof h.SimpleScale)for(a in t)n[a]=t[a]?this.scale.getValue(t[a]):this.elements[a].element.style.initial[this.params.attribute];else{if(void 0===this.params.min||void 0===this.params.max)for(a in t)(e=parseFloat(t[a]))&gt;s&amp;&amp;(s=e),i&gt;e&amp;&amp;(i=e);for(a in void 0===this.params.min?(this.scale.setMin(i),this.params.min=i):this.scale.setMin(this.params.min),void 0===this.params.max?(this.scale.setMax(s),this.params.max=s):this.scale.setMax(this.params.max),t)"indexOf"!=a&amp;&amp;(e=parseFloat(t[a]),n[a]=isNaN(e)?this.elements[a].element.style.initial[this.params.attribute]:this.scale.getValue(e))}this.setAttributes(n),h.$.extend(this.values,t)},clear:function(){var t,e={};for(t in this.values)this.elements[t]&amp;&amp;(e[t]=this.elements[t].element.shape.style.initial[this.params.attribute]);this.setAttributes(e),this.values={}},setScale:function(t){this.scale.setScale(t),this.values&amp;&amp;this.setValues(this.values)},setNormalizeFunction:function(t){this.scale.setNormalizeFunction(t),this.values&amp;&amp;this.setValues(this.values)}},h.Proj={degRad:180/Math.PI,radDeg:Math.PI/180,radius:6381372,sgn:function(t){return t&gt;0?1:0&gt;t?-1:t},mill:function(t,e,a){return{x:this.radius*(e-a)*this.radDeg,y:-this.radius*Math.log(Math.tan((45+.4*t)*this.radDeg))/.8}},mill_inv:function(t,e,a){return{lat:(2.5*Math.atan(Math.exp(.8*e/this.radius))-5*Math.PI/8)*this.degRad,lng:(a*this.radDeg+t/this.radius)*this.degRad}},merc:function(t,e,a){return{x:this.radius*(e-a)*this.radDeg,y:-this.radius*Math.log(Math.tan(Math.PI/4+t*Math.PI/360))}},merc_inv:function(t,e,a){return{lat:(2*Math.atan(Math.exp(e/this.radius))-Math.PI/2)*this.degRad,lng:(a*this.radDeg+t/this.radius)*this.degRad}},aea:function(t,e,a){var s=a*this.radDeg,i=29.5*this.radDeg,n=45.5*this.radDeg,r=t*this.radDeg,o=e*this.radDeg,h=(Math.sin(i)+Math.sin(n))/2,l=Math.cos(i)*Math.cos(i)+2*h*Math.sin(i),c=h*(o-s),p=Math.sqrt(l-2*h*Math.sin(r))/h,d=Math.sqrt(l-2*h*Math.sin(0))/h;return{x:p*Math.sin(c)*this.radius,y:-(d-p*Math.cos(c))*this.radius}},aea_inv:function(t,e,a){var s=t/this.radius,i=e/this.radius,n=a*this.radDeg,r=29.5*this.radDeg,o=45.5*this.radDeg,h=(Math.sin(r)+Math.sin(o))/2,l=Math.cos(r)*Math.cos(r)+2*h*Math.sin(r),c=Math.sqrt(l-2*h*Math.sin(0))/h,p=Math.sqrt(s*s+(c-i)*(c-i)),d=Math.atan(s/(c-i));return{lat:Math.asin((l-p*p*h*h)/(2*h))*this.degRad,lng:(n+d/h)*this.degRad}},lcc:function(t,e,a){var s=a*this.radDeg,i=e*this.radDeg,n=33*this.radDeg,r=45*this.radDeg,o=t*this.radDeg,h=Math.log(Math.cos(n)*(1/Math.cos(r)))/Math.log(Math.tan(Math.PI/4+r/2)*(1/Math.tan(Math.PI/4+n/2))),l=Math.cos(n)*Math.pow(Math.tan(Math.PI/4+n/2),h)/h,c=l*Math.pow(1/Math.tan(Math.PI/4+o/2),h),p=l*Math.pow(1/Math.tan(Math.PI/4+0),h);return{x:c*Math.sin(h*(i-s))*this.radius,y:-(p-c*Math.cos(h*(i-s)))*this.radius}},lcc_inv:function(t,e,a){var s=t/this.radius,i=e/this.radius,n=a*this.radDeg,r=33*this.radDeg,o=45*this.radDeg,h=Math.log(Math.cos(r)*(1/Math.cos(o)))/Math.log(Math.tan(Math.PI/4+o/2)*(1/Math.tan(Math.PI/4+r/2))),l=Math.cos(r)*Math.pow(Math.tan(Math.PI/4+r/2),h)/h,c=l*Math.pow(1/Math.tan(Math.PI/4+0),h),p=this.sgn(h)*Math.sqrt(s*s+(c-i)*(c-i)),d=Math.atan(s/(c-i));return{lat:(2*Math.atan(Math.pow(l/p,1/h))-Math.PI/2)*this.degRad,lng:(n+d/h)*this.degRad}}},h.MapObject=function(){},h.MapObject.prototype.getLabelText=function(t){return this.config.label?"function"==typeof this.config.label.render?this.config.label.render(t):t:null},h.MapObject.prototype.getLabelOffsets=function(t){var e;return this.config.label&amp;&amp;("function"==typeof this.config.label.offsets?e=this.config.label.offsets(t):"object"==typeof this.config.label.offsets&amp;&amp;(e=this.config.label.offsets[t])),e||[0,0]},h.MapObject.prototype.setHovered=function(t){this.isHovered!==t&amp;&amp;(this.isHovered=t,this.shape.isHovered=t,this.shape.updateStyle(),this.label&amp;&amp;(this.label.isHovered=t,this.label.updateStyle()))},h.MapObject.prototype.setSelected=function(t){this.isSelected!==t&amp;&amp;(this.isSelected=t,this.shape.isSelected=t,this.shape.updateStyle(),this.label&amp;&amp;(this.label.isSelected=t,this.label.updateStyle()),h.$(this.shape).trigger("selected",[t]))},h.MapObject.prototype.setStyle=function(){this.shape.setStyle.apply(this.shape,arguments)},h.MapObject.prototype.remove=function(){this.shape.remove(),this.label&amp;&amp;this.label.remove()},h.Region=function(t){var e,a,s,i;this.config=t,this.map=this.config.map,i=t.canvas.addGroup(t.canvas.rootElement),this.shape=t.canvas.addPath({d:t.path},t.style,i),t.canvas.addPath({d:t.path,"data-code":t.code},{initial:{fill:"transparent",stroke:"transparent","stroke-width":t.margin}},i).addClass("jvectormap-region jvectormap-element"),e=this.shape.getBBox(),a=this.getLabelText(t.code),this.config.label&amp;&amp;a&amp;&amp;(s=this.getLabelOffsets(t.code),this.labelX=e.x+e.width/2+s[0],this.labelY=e.y+e.height/2+s[1],this.label=t.canvas.addText({text:a,"text-anchor":"middle","alignment-baseline":"central",x:this.labelX,y:this.labelY,"data-code":t.code},t.labelStyle,t.labelsGroup),this.label.addClass("jvectormap-region jvectormap-element"))},h.inherits(h.Region,h.MapObject),h.Region.prototype.updateLabelPosition=function(){this.label&amp;&amp;this.label.set({x:this.labelX*this.map.scale+this.map.transX*this.map.scale,y:this.labelY*this.map.scale+this.map.transY*this.map.scale})},h.Marker=function(t){var e;this.config=t,this.map=this.config.map,this.isImage=!!this.config.style.initial.image,this.createShape(),e=this.getLabelText(t.index),this.config.label&amp;&amp;e&amp;&amp;(this.offsets=this.getLabelOffsets(t.index),this.labelX=t.cx/this.map.scale-this.map.transX,this.labelY=t.cy/this.map.scale-this.map.transY,this.label=t.canvas.addText({text:e,"data-index":t.index,dy:"0.6ex",x:this.labelX,y:this.labelY},t.labelStyle,t.labelsGroup),this.label.addClass("jvectormap-marker jvectormap-element"))},h.inherits(h.Marker,h.MapObject),h.Marker.prototype.createShape=function(){var t=this;this.shape&amp;&amp;this.shape.remove(),this.shape=this.config.canvas[this.isImage?"addImage":"addCircle"]({"data-index":this.config.index,cx:this.config.cx,cy:this.config.cy},this.config.style,this.config.group),this.shape.addClass("jvectormap-marker jvectormap-element"),this.isImage&amp;&amp;h.$(this.shape.node).on("imageloaded",(function(){t.updateLabelPosition()}))},h.Marker.prototype.updateLabelPosition=function(){this.label&amp;&amp;this.label.set({x:this.labelX*this.map.scale+this.offsets[0]+this.map.transX*this.map.scale+5+(this.isImage?(this.shape.width||0)/2:this.shape.properties.r),y:this.labelY*this.map.scale+this.map.transY*this.map.scale+this.offsets[1]})},h.Marker.prototype.setStyle=function(t){var e;h.Marker.parentClass.prototype.setStyle.apply(this,arguments),"r"===t&amp;&amp;this.updateLabelPosition(),(e=!!this.shape.get("image"))!=this.isImage&amp;&amp;(this.isImage=e,this.config.style=h.$.extend(!0,{},this.shape.style),this.createShape())},h.Map=function(t){var e,a=this;if(this.params=h.$.extend(!0,{},h.Map.defaultParams,t),!h.Map.maps[this.params.map])throw new Error("Attempt to use map which was not loaded: "+this.params.map);for(e in this.mapData=h.Map.maps[this.params.map],this.markers={},this.regions={},this.regionsColors={},this.regionsData={},this.container=h.$("&lt;div&gt;").addClass("jvectormap-container"),this.params.container&amp;&amp;this.params.container.append(this.container),this.container.data("mapObject",this),this.defaultWidth=this.mapData.width,this.defaultHeight=this.mapData.height,this.setBackgroundColor(this.params.backgroundColor),this.onResize=function(){a.updateSize()},h.$(window).resize(this.onResize),h.Map.apiEvents)this.params[e]&amp;&amp;this.container.bind(h.Map.apiEvents[e]+".jvectormap",this.params[e]);this.canvas=new h.VectorCanvas(this.container[0],this.width,this.height),this.params.bindTouchEvents&amp;&amp;("ontouchstart"in window||window.DocumentTouch&amp;&amp;document instanceof DocumentTouch?this.bindContainerTouchEvents():window.MSGesture&amp;&amp;this.bindContainerPointerEvents()),this.bindContainerEvents(),this.bindElementEvents(),this.createTip(),this.params.zoomButtons&amp;&amp;this.bindZoomButtons(),this.createRegions(),this.createMarkers(this.params.markers||{}),this.updateSize(),this.params.focusOn&amp;&amp;("string"==typeof this.params.focusOn?this.params.focusOn={region:this.params.focusOn}:h.$.isArray(this.params.focusOn)&amp;&amp;(this.params.focusOn={regions:this.params.focusOn}),this.setFocus(this.params.focusOn)),this.params.selectedRegions&amp;&amp;this.setSelectedRegions(this.params.selectedRegions),this.params.selectedMarkers&amp;&amp;this.setSelectedMarkers(this.params.selectedMarkers),this.legendCntHorizontal=h.$("&lt;div/&gt;").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-h"),this.legendCntVertical=h.$("&lt;div/&gt;").addClass("jvectormap-legend-cnt jvectormap-legend-cnt-v"),this.container.append(this.legendCntHorizontal),this.container.append(this.legendCntVertical),this.params.series&amp;&amp;this.createSeries()},h.Map.prototype={transX:0,transY:0,scale:1,baseTransX:0,baseTransY:0,baseScale:1,width:0,height:0,setBackgroundColor:function(t){this.container.css("background-color",t)},resize:function(){var t=this.baseScale;this.width/this.height&gt;this.defaultWidth/this.defaultHeight?(this.baseScale=this.height/this.defaultHeight,this.baseTransX=Math.abs(this.width-this.defaultWidth*this.baseScale)/(2*this.baseScale)):(this.baseScale=this.width/this.defaultWidth,this.baseTransY=Math.abs(this.height-this.defaultHeight*this.baseScale)/(2*this.baseScale)),this.scale*=this.baseScale/t,this.transX*=this.baseScale/t,this.transY*=this.baseScale/t},updateSize:function(){this.width=this.container.width(),this.height=this.container.height(),this.resize(),this.canvas.setSize(this.width,this.height),this.applyTransform()},reset:function(){var t,e;for(t in this.series)for(e=0;e&lt;this.series[t].length;e++)this.series[t][e].clear();this.scale=this.baseScale,this.transX=this.baseTransX,this.transY=this.baseTransY,this.applyTransform()},applyTransform:function(){var t,e,a,s;this.defaultWidth*this.scale&lt;=this.width?(t=(this.width-this.defaultWidth*this.scale)/(2*this.scale),a=(this.width-this.defaultWidth*this.scale)/(2*this.scale)):(t=0,a=(this.width-this.defaultWidth*this.scale)/this.scale),this.defaultHeight*this.scale&lt;=this.height?(e=(this.height-this.defaultHeight*this.scale)/(2*this.scale),s=(this.height-this.defaultHeight*this.scale)/(2*this.scale)):(e=0,s=(this.height-this.defaultHeight*this.scale)/this.scale),this.transY&gt;e?this.transY=e:this.transY&lt;s&amp;&amp;(this.transY=s),this.transX&gt;t?this.transX=t:this.transX&lt;a&amp;&amp;(this.transX=a),this.canvas.applyTransformParams(this.scale,this.transX,this.transY),this.markers&amp;&amp;this.repositionMarkers(),this.repositionLabels(),this.container.trigger("viewportChange",[this.scale/this.baseScale,this.transX,this.transY])},bindContainerEvents:function(){var t,e,a=!1,s=this;this.params.panOnDrag&amp;&amp;(this.container.mousemove((function(i){return a&amp;&amp;(s.transX-=(t-i.pageX)/s.scale,s.transY-=(e-i.pageY)/s.scale,s.applyTransform(),t=i.pageX,e=i.pageY),!1})).mousedown((function(s){return a=!0,t=s.pageX,e=s.pageY,!1})),this.onContainerMouseUp=function(){a=!1},h.$("body").mouseup(this.onContainerMouseUp)),this.params.zoomOnScroll&amp;&amp;this.container.mousewheel((function(t){var e=h.$(s.container).offset(),a=t.pageX-e.left,i=t.pageY-e.top,n=Math.pow(1+s.params.zoomOnScrollSpeed/1e3,t.deltaFactor*t.deltaY);s.tip.hide(),s.setScale(s.scale*n,a,i),t.preventDefault()}))},bindContainerTouchEvents:function(){var t,e,a,s,i,n,r,o=this,l=function(l){var c,p,d,m,u=l.originalEvent.touches;"touchstart"==l.type&amp;&amp;(r=0),1==u.length?(1==r&amp;&amp;(d=o.transX,m=o.transY,o.transX-=(a-u[0].pageX)/o.scale,o.transY-=(s-u[0].pageY)/o.scale,o.applyTransform(),o.tip.hide(),(d!=o.transX||m!=o.transY)&amp;&amp;l.preventDefault()),a=u[0].pageX,s=u[0].pageY):2==u.length&amp;&amp;(2==r?(p=Math.sqrt(Math.pow(u[0].pageX-u[1].pageX,2)+Math.pow(u[0].pageY-u[1].pageY,2))/e,o.setScale(t*p,i,n),o.tip.hide(),l.preventDefault()):(c=h.$(o.container).offset(),i=u[0].pageX&gt;u[1].pageX?u[1].pageX+(u[0].pageX-u[1].pageX)/2:u[0].pageX+(u[1].pageX-u[0].pageX)/2,n=u[0].pageY&gt;u[1].pageY?u[1].pageY+(u[0].pageY-u[1].pageY)/2:u[0].pageY+(u[1].pageY-u[0].pageY)/2,i-=c.left,n-=c.top,t=o.scale,e=Math.sqrt(Math.pow(u[0].pageX-u[1].pageX,2)+Math.pow(u[0].pageY-u[1].pageY,2)))),r=u.length};h.$(this.container).bind("touchstart",l),h.$(this.container).bind("touchmove",l)},bindContainerPointerEvents:function(){var t=this,e=new MSGesture,a=this.container[0];e.target=a,a.addEventListener("MSGestureChange",(function(e){var a,s;(0!=e.translationX||0!=e.translationY)&amp;&amp;(a=t.transX,s=t.transY,t.transX+=e.translationX/t.scale,t.transY+=e.translationY/t.scale,t.applyTransform(),t.tip.hide(),(a!=t.transX||s!=t.transY)&amp;&amp;e.preventDefault()),1!=e.scale&amp;&amp;(t.setScale(t.scale*e.scale,e.offsetX,e.offsetY),t.tip.hide(),e.preventDefault())}),!1),a.addEventListener("pointerdown",(function(t){e.addPointer(t.pointerId)}),!1)},bindElementEvents:function(){var t,e,a,s=this;this.container.mousemove((function(s){Math.abs(t-s.pageX)+Math.abs(e-s.pageY)&gt;2&amp;&amp;(a=!0)})),this.container.delegate("[class~='jvectormap-element']","mouseover mouseout",(function(t){var e=-1===(h.$(this).attr("class").baseVal||h.$(this).attr("class")).indexOf("jvectormap-region")?"marker":"region",a=h.$(this).attr("region"==e?"data-code":"data-index"),i="region"==e?s.regions[a].element:s.markers[a].element,n="region"==e?s.mapData.paths[a].name:s.markers[a].config.name||"",r=h.$.Event(e+"TipShow.jvectormap"),o=h.$.Event(e+"Over.jvectormap");"mouseover"==t.type?(s.container.trigger(o,[a]),o.isDefaultPrevented()||i.setHovered(!0),s.tip.text(n),s.container.trigger(r,[s.tip,a]),r.isDefaultPrevented()||(s.tip.show(),s.tipWidth=s.tip.width(),s.tipHeight=s.tip.height())):(i.setHovered(!1),s.tip.hide(),s.container.trigger(e+"Out.jvectormap",[a]))})),this.container.delegate("[class~='jvectormap-element']","mousedown",(function(s){t=s.pageX,e=s.pageY,a=!1})),this.container.delegate("[class~='jvectormap-element']","mouseup",(function(){var t=-1===(h.$(this).attr("class").baseVal?h.$(this).attr("class").baseVal:h.$(this).attr("class")).indexOf("jvectormap-region")?"marker":"region",e=h.$(this).attr("region"==t?"data-code":"data-index"),i=h.$.Event(t+"Click.jvectormap"),n="region"==t?s.regions[e].element:s.markers[e].element;a||(s.container.trigger(i,[e]),("region"===t&amp;&amp;s.params.regionsSelectable||"marker"===t&amp;&amp;s.params.markersSelectable)&amp;&amp;(i.isDefaultPrevented()||(s.params[t+"sSelectableOne"]&amp;&amp;s.clearSelected(t+"s"),n.setSelected(!n.isSelected))))}))},bindZoomButtons:function(){var t=this;h.$("&lt;div/&gt;").addClass("jvectormap-zoomin").text("+").appendTo(this.container),h.$("&lt;div/&gt;").addClass("jvectormap-zoomout").html("&amp;#x2212;").appendTo(this.container),this.container.find(".jvectormap-zoomin").click((function(){t.setScale(t.scale*t.params.zoomStep,t.width/2,t.height/2,!1,t.params.zoomAnimate)})),this.container.find(".jvectormap-zoomout").click((function(){t.setScale(t.scale/t.params.zoomStep,t.width/2,t.height/2,!1,t.params.zoomAnimate)}))},createTip:function(){var t=this;this.tip=h.$("&lt;div/&gt;").addClass("jvectormap-tip").appendTo(h.$("body")),this.container.mousemove((function(e){var a=e.pageX-15-t.tipWidth,s=e.pageY-15-t.tipHeight;5&gt;a&amp;&amp;(a=e.pageX+15),5&gt;s&amp;&amp;(s=e.pageY+15),t.tip.css({left:a,top:s})}))},setScale:function(t,e,a,s,i){var n,r,o,l,c,p,d,m,u,g=h.$.Event("zoom.jvectormap"),f=this,v=0,y=Math.abs(Math.round(60*(t-this.scale)/Math.max(t,this.scale))),M=new h.$.Deferred;return t&gt;this.params.zoomMax*this.baseScale?t=this.params.zoomMax*this.baseScale:t&lt;this.params.zoomMin*this.baseScale&amp;&amp;(t=this.params.zoomMin*this.baseScale),void 0!==e&amp;&amp;void 0!==a&amp;&amp;(zoomStep=t/this.scale,s?(m=e+this.defaultWidth*(this.width/(this.defaultWidth*t))/2,u=a+this.defaultHeight*(this.height/(this.defaultHeight*t))/2):(m=this.transX-(zoomStep-1)/t*e,u=this.transY-(zoomStep-1)/t*a)),i&amp;&amp;y&gt;0?(r=this.scale,o=(t-r)/y,l=this.transX*this.scale,p=this.transY*this.scale,c=(m*t-l)/y,d=(u*t-p)/y,n=setInterval((function(){v+=1,f.scale=r+o*v,f.transX=(l+c*v)/f.scale,f.transY=(p+d*v)/f.scale,f.applyTransform(),v==y&amp;&amp;(clearInterval(n),f.container.trigger(g,[t/f.baseScale]),M.resolve())}),10)):(this.transX=m,this.transY=u,this.scale=t,this.applyTransform(),this.container.trigger(g,[t/this.baseScale]),M.resolve()),M},setFocus:function(t){var e,a,s,i,n;if((t=t||{}).region?s=[t.region]:t.regions&amp;&amp;(s=t.regions),s){for(i=0;i&lt;s.length;i++)this.regions[s[i]]&amp;&amp;((a=this.regions[s[i]].element.shape.getBBox())&amp;&amp;(void 0===e?e=a:e={x:Math.min(e.x,a.x),y:Math.min(e.y,a.y),width:Math.max(e.x+e.width,a.x+a.width)-Math.min(e.x,a.x),height:Math.max(e.y+e.height,a.y+a.height)-Math.min(e.y,a.y)}));return this.setScale(Math.min(this.width/e.width,this.height/e.height),-(e.x+e.width/2),-(e.y+e.height/2),!0,t.animate)}return t.lat&amp;&amp;t.lng?(n=this.latLngToPoint(t.lat,t.lng),t.x=this.transX-n.x/this.scale,t.y=this.transY-n.y/this.scale):t.x&amp;&amp;t.y&amp;&amp;(t.x*=-this.defaultWidth,t.y*=-this.defaultHeight),this.setScale(t.scale*this.baseScale,t.x,t.y,!0,t.animate)},getSelected:function(t){var e,a=[];for(e in this[t])this[t][e].element.isSelected&amp;&amp;a.push(e);return a},getSelectedRegions:function(){return this.getSelected("regions")},getSelectedMarkers:function(){return this.getSelected("markers")},setSelected:function(t,e){var a;if("object"!=typeof e&amp;&amp;(e=[e]),h.$.isArray(e))for(a=0;a&lt;e.length;a++)this[t][e[a]].element.setSelected(!0);else for(a in e)this[t][a].element.setSelected(!!e[a])},setSelectedRegions:function(t){this.setSelected("regions",t)},setSelectedMarkers:function(t){this.setSelected("markers",t)},clearSelected:function(t){var e,a={},s=this.getSelected(t);for(e=0;e&lt;s.length;e++)a[s[e]]=!1;this.setSelected(t,a)},clearSelectedRegions:function(){this.clearSelected("regions")},clearSelectedMarkers:function(){this.clearSelected("markers")},getMapObject:function(){return this},getRegionName:function(t){return this.mapData.paths[t].name},createRegions:function(){var t,e,a=this;for(t in this.regionLabelsGroup=this.regionLabelsGroup||this.canvas.addGroup(),this.mapData.paths)e=new h.Region({map:this,path:this.mapData.paths[t].path,code:t,style:h.$.extend(!0,{},this.params.regionStyle),margin:this.params.regionMargin,labelStyle:h.$.extend(!0,{},this.params.regionLabelStyle),canvas:this.canvas,labelsGroup:this.regionLabelsGroup,label:"vml"!=this.canvas.mode?this.params.labels&amp;&amp;this.params.labels.regions:null}),h.$(e.shape).bind("selected",(function(t,e){a.container.trigger("regionSelected.jvectormap",[h.$(this.node).attr("data-code"),e,a.getSelectedRegions()])})),this.regions[t]={element:e,config:this.mapData.paths[t]}},createMarkers:function(t){var e,a,s,i,n,r=this;if(this.markersGroup=this.markersGroup||this.canvas.addGroup(),this.markerLabelsGroup=this.markerLabelsGroup||this.canvas.addGroup(),h.$.isArray(t))for(n=t.slice(),t={},e=0;e&lt;n.length;e++)t[e]=n[e];for(e in t)i=t[e]instanceof Array?{latLng:t[e]}:t[e],!1!==(s=this.getMarkerPosition(i))&amp;&amp;(a=new h.Marker({map:this,style:h.$.extend(!0,{},this.params.markerStyle,{initial:i.style||{}}),labelStyle:h.$.extend(!0,{},this.params.markerLabelStyle),index:e,cx:s.x,cy:s.y,group:this.markersGroup,canvas:this.canvas,labelsGroup:this.markerLabelsGroup,label:"vml"!=this.canvas.mode?this.params.labels&amp;&amp;this.params.labels.markers:null}),h.$(a.shape).bind("selected",(function(t,e){r.container.trigger("markerSelected.jvectormap",[h.$(this.node).attr("data-index"),e,r.getSelectedMarkers()])})),this.markers[e]&amp;&amp;this.removeMarkers([e]),this.markers[e]={element:a,config:i})},repositionMarkers:function(){var t,e;for(t in this.markers)!1!==(e=this.getMarkerPosition(this.markers[t].config))&amp;&amp;this.markers[t].element.setStyle({cx:e.x,cy:e.y})},repositionLabels:function(){var t;for(t in this.regions)this.regions[t].element.updateLabelPosition();for(t in this.markers)this.markers[t].element.updateLabelPosition()},getMarkerPosition:function(t){return h.Map.maps[this.params.map].projection?this.latLngToPoint.apply(this,t.latLng||[0,0]):{x:t.coords[0]*this.scale+this.transX*this.scale,y:t.coords[1]*this.scale+this.transY*this.scale}},addMarker:function(t,e,a){var s,i,n={},r=[];a=a||[];for(n[t]=e,i=0;i&lt;a.length;i++)s={},void 0!==a[i]&amp;&amp;(s[t]=a[i]),r.push(s);this.addMarkers(n,r)},addMarkers:function(t,e){var a;for(e=e||[],this.createMarkers(t),a=0;a&lt;e.length;a++)this.series.markers[a].setValues(e[a]||{})},removeMarkers:function(t){var e;for(e=0;e&lt;t.length;e++)this.markers[t[e]].element.remove(),delete this.markers[t[e]]},removeAllMarkers:function(){var t,e=[];for(t in this.markers)e.push(t);this.removeMarkers(e)},latLngToPoint:function(t,e){var a,s,i,n=h.Map.maps[this.params.map].projection,r=n.centralMeridian;return-180+r&gt;e&amp;&amp;(e+=360),a=h.Proj[n.type](t,e,r),!!(s=this.getInsetForPoint(a.x,a.y))&amp;&amp;(i=s.bbox,a.x=(a.x-i[0].x)/(i[1].x-i[0].x)*s.width*this.scale,a.y=(a.y-i[0].y)/(i[1].y-i[0].y)*s.height*this.scale,{x:a.x+this.transX*this.scale+s.left*this.scale,y:a.y+this.transY*this.scale+s.top*this.scale})},pointToLatLng:function(t,e){var a,s,i,n,r,o=h.Map.maps[this.params.map].projection,l=o.centralMeridian,c=h.Map.maps[this.params.map].insets;for(a=0;a&lt;c.length;a++)if(i=(s=c[a]).bbox,n=t-(this.transX*this.scale+s.left*this.scale),r=e-(this.transY*this.scale+s.top*this.scale),n=n/(s.width*this.scale)*(i[1].x-i[0].x)+i[0].x,r=r/(s.height*this.scale)*(i[1].y-i[0].y)+i[0].y,n&gt;i[0].x&amp;&amp;n&lt;i[1].x&amp;&amp;r&gt;i[0].y&amp;&amp;r&lt;i[1].y)return h.Proj[o.type+"_inv"](n,-r,l);return!1},getInsetForPoint:function(t,e){var a,s,i=h.Map.maps[this.params.map].insets;for(a=0;a&lt;i.length;a++)if(t&gt;(s=i[a].bbox)[0].x&amp;&amp;t&lt;s[1].x&amp;&amp;e&gt;s[0].y&amp;&amp;e&lt;s[1].y)return i[a]},createSeries:function(){var t,e;for(e in this.series={markers:[],regions:[]},this.params.series)for(t=0;t&lt;this.params.series[e].length;t++)this.series[e][t]=new h.DataSeries(this.params.series[e][t],this[e],this)},remove:function(){this.tip.remove(),this.container.remove(),h.$(window).unbind("resize",this.onResize),h.$("body").unbind("mouseup",this.onContainerMouseUp)}},h.Map.maps={},h.Map.defaultParams={map:"world_mill_en",backgroundColor:"#505050",zoomButtons:!0,zoomOnScroll:!0,zoomOnScrollSpeed:3,panOnDrag:!0,zoomMax:8,zoomMin:1,zoomStep:1.6,zoomAnimate:!0,regionsSelectable:!1,markersSelectable:!1,bindTouchEvents:!0,regionStyle:{initial:{fill:"white","fill-opacity":1,stroke:"none","stroke-width":0,"stroke-opacity":1},hover:{"fill-opacity":.8,cursor:"pointer"},selected:{fill:"yellow"},selectedHover:{}},regionMargin:0,regionLabelStyle:{initial:{"font-family":"Verdana","font-size":"12","font-weight":"bold",cursor:"default",fill:"black"},hover:{cursor:"pointer"}},markerStyle:{initial:{fill:"grey",stroke:"#505050","fill-opacity":1,"stroke-width":1,"stroke-opacity":1,r:5},hover:{stroke:"black","stroke-width":2,cursor:"pointer"},selected:{fill:"blue"},selectedHover:{}},markerLabelStyle:{initial:{"font-family":"Verdana","font-size":"12","font-weight":"bold",cursor:"default",fill:"black"},hover:{cursor:"pointer"}}},h.Map.apiEvents={onRegionTipShow:"regionTipShow",onRegionOver:"regionOver",onRegionOut:"regionOut",onRegionClick:"regionClick",onRegionSelected:"regionSelected",onMarkerTipShow:"markerTipShow",onMarkerOver:"markerOver",onMarkerOut:"markerOut",onMarkerClick:"markerClick",onMarkerSelected:"markerSelected",onViewportChange:"viewportChange"},h.MultiMap=function(t){var e=this;this.maps={},this.params=h.$.extend(!0,{},h.MultiMap.defaultParams,t),this.params.maxLevel=this.params.maxLevel||Number.MAX_VALUE,this.params.main=this.params.main||{},this.params.main.multiMapLevel=0,this.history=[this.addMap(this.params.main.map,this.params.main)],this.defaultProjection=this.history[0].mapData.projection.type,this.mapsLoaded={},this.params.container.css({position:"relative"}),this.backButton=h.$("&lt;div/&gt;").addClass("jvectormap-goback").text("Back").appendTo(this.params.container),this.backButton.hide(),this.backButton.click((function(){e.goBack()})),this.spinner=h.$("&lt;div/&gt;").addClass("jvectormap-spinner").appendTo(this.params.container),this.spinner.hide()},h.MultiMap.prototype={addMap:function(t,e){var a=h.$("&lt;div/&gt;").css({width:"100%",height:"100%"});return this.params.container.append(a),this.maps[t]=new h.Map(h.$.extend(e,{container:a})),this.params.maxLevel&gt;e.multiMapLevel&amp;&amp;this.maps[t].container.on("regionClick.jvectormap",{scope:this},(function(t,e){var a=t.data.scope,s=a.params.mapNameByCode(e,a);a.drillDownPromise&amp;&amp;"pending"===a.drillDownPromise.state()||a.drillDown(s,e)})),this.maps[t]},downloadMap:function(t){var e=this,a=h.$.Deferred();return this.mapsLoaded[t]?a.resolve():h.$.get(this.params.mapUrlByCode(t,this)).then((function(){e.mapsLoaded[t]=!0,a.resolve()}),(function(){a.reject()})),a},drillDown:function(t,e){var a=this.history[this.history.length-1],s=this,i=a.setFocus({region:e,animate:!0}),n=this.downloadMap(e);i.then((function(){"pending"===n.state()&amp;&amp;s.spinner.show()})),n.always((function(){s.spinner.hide()})),this.drillDownPromise=h.$.when(n,i),this.drillDownPromise.then((function(){a.params.container.hide(),s.maps[t]?s.maps[t].params.container.show():s.addMap(t,{map:t,multiMapLevel:a.params.multiMapLevel+1}),s.history.push(s.maps[t]),s.backButton.show()}))},goBack:function(){var t=this.history.pop(),e=this.history[this.history.length-1],a=this;t.setFocus({scale:1,x:.5,y:.5,animate:!0}).then((function(){t.params.container.hide(),e.params.container.show(),e.updateSize(),1===a.history.length&amp;&amp;a.backButton.hide(),e.setFocus({scale:1,x:.5,y:.5,animate:!0})}))}},h.MultiMap.defaultParams={mapNameByCode:function(t,e){return t.toLowerCase()+"_"+e.defaultProjection+"_en"},mapUrlByCode:function(t,e){return"jquery-jvectormap-data-"+t.toLowerCase()+"-"+e.defaultProjection+"-en.js"}}}).call(this,a(50),a(50))}}]);</pre></body></html>