svg-map-extra
Version:
svg-map-extra is an extended JavaScript library that lets you easily create an interactable world map comparing customizable data for each country inspired by the original svgMap.
1 lines • 174 kB
JavaScript
!function(l,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SVGMap=t():l.SVGMap=t()}(this,function(){return n={},o.m=e=[function(Dl,l,t){!function(){"use strict";var o={class:"className",contenteditable:"contentEditable",for:"htmlFor",readonly:"readOnly",maxlength:"maxLength",tabindex:"tabIndex",colspan:"colSpan",rowspan:"rowSpan",usemap:"useMap"};function r(l,t){try{return l(t)}catch(l){return t}}var a=document,i=window,s=a.documentElement,h=a.createElement.bind(a),l=h("div"),t=h("table"),e=h("tbody"),n=h("tr"),u=Array.isArray,c=Array.prototype,p=c.concat,d=c.filter,v=c.indexOf,L=c.map,f=c.push,m=c.slice,M=c.some,g=c.splice,z=/^#(?:[\w-]|\\.|[^\x00-\xa0])*$/,b=/^\.(?:[\w-]|\\.|[^\x00-\xa0])*$/,y=/<.+>/,S=/^\w+$/;function w(l,t){return l&&(I(t)||D(t))?b.test(l)?t.getElementsByClassName(l.slice(1)):S.test(l)?t.getElementsByTagName(l):t.querySelectorAll(l):[]}var C=(E.prototype.init=function(l,t){return new E(l,t)},E);function E(l,t){if(l){if(N(l))return l;var e=l;if(G(l)){t=(N(t)?t[0]:t)||a;if(!(e=z.test(l)?t.getElementById(l.slice(1)):y.test(l)?Al(l):w(l,t)))return}else if(O(l))return this.ready(l);!e.nodeType&&e!==i||(e=[e]),this.length=e.length;for(var n=0,o=this.length;n<o;n++)this[n]=e[n]}}var x=C.prototype,T=x.init;(T.fn=T.prototype=x).length=0,x.splice=g,"function"==typeof Symbol&&(x[Symbol.iterator]=c[Symbol.iterator]),x.map=function(e){return T(p.apply([],L.call(this,function(l,t){return e.call(l,t,l)})))},x.slice=function(l,t){return T(m.call(this,l,t))};var A=/-([a-z])/g;function P(l){return l.replace(A,function(l,t){return t.toUpperCase()})}function Z(l,t){var e=l&&(l.matches||l.webkitMatchesSelector||l.msMatchesSelector);return!!e&&!!t&&e.call(l,t)}function N(l){return l instanceof C}function B(l){return!!l&&l===l.window}function I(l){return l&&9===l.nodeType}function D(l){return!!l&&1===l.nodeType}function O(l){return"function"==typeof l}function G(l){return"string"==typeof l}function R(l){return void 0===l}function H(l){return null===l}function V(l){return!isNaN(parseFloat(l))&&isFinite(l)}function U(l){if("object"!=typeof l||null===l)return!1;l=Object.getPrototypeOf(l);return null===l||l===Object.prototype}function W(l,t,e){if(e){for(var n=l.length;n--;)if(!1===t.call(l[n],n,l[n]))return l}else if(U(l))for(var o=Object.keys(l),n=0,i=o.length;n<i;n++){var r=o[n];if(!1===t.call(l[r],r,l[r]))return l}else for(n=0,i=l.length;n<i;n++)if(!1===t.call(l[n],n,l[n]))return l;return l}function F(){for(var l=[],t=0;t<arguments.length;t++)l[t]=arguments[t];var e="boolean"==typeof l[0]&&l.shift(),n=l.shift(),o=l.length;if(!n)return{};if(!o)return F(e,T,n);for(var i=0;i<o;i++){var r,a=l[i];for(r in a)e&&(u(a[r])||U(a[r]))?(n[r]&&n[r].constructor===a[r].constructor||(n[r]=new a[r].constructor),F(e,n[r],a[r])):n[r]=a[r]}return n}function K(e){return G(e)?function(l,t){return Z(t,e)}:O(e)?e:N(e)?function(l,t){return e.is(t)}:e?function(l,t){return t===e}:function(){return!1}}function k(l,t){return t?l.filter(t):l}T.guid=1,T.isWindow=B,T.isFunction=O,T.isArray=u,T.isNumeric=V,T.isPlainObject=U,x.get=function(l){return R(l)?m.call(this):this[(l=Number(l))<0?l+this.length:l]},x.eq=function(l){return T(this.get(l))},x.first=function(){return this.eq(0)},x.last=function(){return this.eq(-1)},T.each=W,x.each=function(l){return W(this,l)},x.prop=function(e,n){if(e){if(G(e))return e=o[e]||e,arguments.length<2?this[0]&&this[0][e]:this.each(function(l,t){t[e]=n});for(var l in e)this.prop(l,e[l]);return this}},x.removeProp=function(e){return this.each(function(l,t){delete t[o[e]||e]})},T.extend=F,x.extend=function(l){return F(x,l)},x.filter=function(l){var e=K(l);return T(d.call(this,function(l,t){return e.call(l,t,l)}))};var j=/\S+/g;function _(l){return G(l)&&l.match(j)||[]}function Y(l,t,e,n){for(var o=[],i=O(t),r=n&&K(n),a=0,s=l.length;a<s;a++)if(i){var h=t(l[a]);h.length&&f.apply(o,h)}else for(var u=l[a][t];!(null==u||n&&r(-1,u));)o.push(u),u=e?u[t]:null;return o}function q(l){return 1<l.length?d.call(l,function(l,t,e){return v.call(e,l)===t}):l}function X(l,t,e){if(D(l)){var n=i.getComputedStyle(l,null);return e?n.getPropertyValue(t)||void 0:n[t]||l.style[t]}}function J(l,t){return parseInt(X(l,t),10)||0}x.hasClass=function(t){return!!t&&M.call(this,function(l){return D(l)&&l.classList.contains(t)})},x.removeAttr=function(l){var t=_(l);return this.each(function(l,e){D(e)&&W(t,function(l,t){e.removeAttribute(t)})})},x.attr=function(e,n){if(e){if(G(e)){if(arguments.length<2){if(!this[0]||!D(this[0]))return;var l=this[0].getAttribute(e);return H(l)?void 0:l}return R(n)?this:H(n)?this.removeAttr(e):this.each(function(l,t){D(t)&&t.setAttribute(e,n)})}for(var t in e)this.attr(t,e[t]);return this}},x.toggleClass=function(l,n){var t=_(l),o=!R(n);return this.each(function(l,e){D(e)&&W(t,function(l,t){o?n?e.classList.add(t):e.classList.remove(t):e.classList.toggle(t)})})},x.addClass=function(l){return this.toggleClass(l,!0)},x.removeClass=function(l){return arguments.length?this.toggleClass(l,!1):this.attr("class","")},T.unique=q,x.add=function(l,t){return T(q(this.get().concat(T(l,t).get())))};var Q=/^--/;function $(l){return Q.test(l)}var ll={},tl=l.style,el=["webkit","moz","ms"],nl={animationIterationCount:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0};function ol(l,t,e){return(e=void 0===e?$(l):e)||nl[l]||!V(t)?t:t+"px"}x.css=function(e,n){if(G(e)){var o=$(e);return(i=e,e=(l=void 0===(l=o)?$(i):l)?i:(ll[i]||(l=""+(t=P(i))[0].toUpperCase()+t.slice(1),W((t+" "+el.join(l+" ")+l).split(" "),function(l,t){if(t in tl)return ll[i]=t,!1})),ll[i]),arguments.length<2)?this[0]&&X(this[0],e,o):e?(n=ol(e,n,o),this.each(function(l,t){D(t)&&(o?t.style.setProperty(e,n):t.style[e]=n)})):this}var i,l,t,r;for(r in e)this.css(r,e[r]);return this};var il=/^\s+|\s+$/;function rl(l,t){t=l.dataset[t]||l.dataset[P(t)];return il.test(t)?t:r(JSON.parse,t)}function al(l,t){var e=l.documentElement;return Math.max(l.body["scroll"+t],e["scroll"+t],l.body["offset"+t],e["offset"+t],e["client"+t])}function sl(l,t){return J(l,"border"+(t?"Left":"Top")+"Width")+J(l,"padding"+(t?"Left":"Top"))+J(l,"padding"+(t?"Right":"Bottom"))+J(l,"border"+(t?"Right":"Bottom")+"Width")}W([!0,!(x.data=function(o,i){if(!o){if(!this[0])return;var l={};for(t in this[0].dataset)l[t]=rl(this[0],t);return l}if(G(o))return arguments.length<2?this[0]&&rl(this[0],o):R(i)?this:this.each(function(l,t){var e,n;e=t,n=o,t=i,t=r(JSON.stringify,t),e.dataset[P(n)]=t});for(var t in o)this.data(t,o[t]);return this})],function(l,n){W(["Width","Height"],function(t,e){x[(n?"outer":"inner")+e]=function(l){if(this[0])return B(this[0])?n?this[0]["inner"+e]:this[0].document.documentElement["client"+e]:I(this[0])?al(this[0],e):this[0][(n?"offset":"client")+e]+(l&&n?J(this[0],"margin"+(t?"Top":"Left"))+J(this[0],"margin"+(t?"Bottom":"Right")):0)}})}),W(["Width","Height"],function(o,t){var i=t.toLowerCase();x[i]=function(l){if(!this[0])return R(l)?void 0:this;if(!arguments.length)return B(this[0])?this[0].document.documentElement["client"+t]:I(this[0])?al(this[0],t):this[0].getBoundingClientRect()[i]-sl(this[0],!o);var n=parseInt(l,10);return this.each(function(l,t){var e;D(t)&&(e=X(t,"boxSizing"),t.style[i]=ol(i,n+("border-box"===e?sl(t,!o):0)))})}});var hl={};function ul(l){return"none"===X(l,"display")}function cl(t,l){return!l||!M.call(l,function(l){return t.indexOf(l)<0})}x.toggle=function(e){return this.each(function(l,t){D(t)&&((R(e)?ul(t):e)?(t.style.display=t.___cd||"",ul(t)&&(t.style.display=function(l){if(hl[l])return hl[l];var t=h(l);a.body.insertBefore(t,null);var e=X(t,"display");return a.body.removeChild(t),hl[l]="none"!==e?e:"block"}(t.tagName))):(t.___cd=X(t,"display"),t.style.display="none"))})},x.hide=function(){return this.toggle(!1)},x.show=function(){return this.toggle(!0)};var pl="___ce",dl=".",vl={focus:"focusin",blur:"focusout"},Ll={mouseenter:"mouseover",mouseleave:"mouseout"},fl=/^(mouse|pointer|contextmenu|drag|drop|click|dblclick)/i;function ml(l){return Ll[l]||vl[l]||l}function Ml(l){return l[pl]=l[pl]||{}}function gl(l){l=l.split(dl);return[l[0],l.slice(1).sort()]}function zl(n,o,i,r,a){var l=Ml(n);if(o)l[o]&&(l[o]=l[o].filter(function(l){var t=l[0],e=l[1],l=l[2];if(a&&l.guid!==a.guid||!cl(t,i)||r&&r!==e)return!0;n.removeEventListener(o,l)}));else for(o in l)zl(n,o,i,r,a)}function bl(l){return l.multiple&&l.options?Y(d.call(l.options,function(l){return l.selected&&!l.disabled&&!l.parentNode.disabled}),"value"):l.value||""}x.off=function(l,i,r){var a=this;if(R(l))this.each(function(l,t){(D(t)||I(t)||B(t))&&zl(t)});else if(G(l))O(i)&&(r=i,i=""),W(_(l),function(l,t){var e=gl(t),t=e[0],n=e[1],o=ml(t);a.each(function(l,t){(D(t)||I(t)||B(t))&&zl(t,o,n,i,r)})});else for(var t in l)this.off(t,l[t]);return this},x.on=function(l,p,d,v,L){var t,n=this;if(G(l))return G(p)||(p=(R(p)||H(p)||(d=(R(d)||(v=d),p)),"")),O(v)||(v=d,d=void 0),v&&W(_(l),function(l,t){var e=gl(t),t=e[0],s=e[1],h=ml(t),u=t in Ll,c=t in vl;h&&n.each(function(l,i){var t,e,n,o,r,a;(D(i)||I(i)||B(i))&&((a=function l(t){if(t.target["___i"+t.type])return t.stopImmediatePropagation();if((!t.namespace||cl(s,t.namespace.split(dl)))&&(p||!(c&&(t.target!==i||t.___ot===h)||u&&t.relatedTarget&&i.contains(t.relatedTarget)))){var e=i;if(p){for(var n=t.target;!Z(n,p);){if(n===i)return;if(!(n=n.parentNode))return}e=n,t.___cd=!0}t.___cd&&Object.defineProperty(t,"currentTarget",{configurable:!0,get:function(){return e}}),Object.defineProperty(t,"data",{configurable:!0,get:function(){return d}});var o=v.call(e,t,t.___td);L&&zl(i,h,s,p,l),!1===o&&(t.preventDefault(),t.stopPropagation())}}).guid=v.guid=v.guid||T.guid++,e=h,n=s,o=p,r=a,(a=Ml(t=i))[e]=a[e]||[],a[e].push([n,o,r]),t.addEventListener(e,r))})}),this;for(t in l)this.on(t,p,d,l[t],L);return this},x.one=function(l,t,e,n){return this.on(l,t,e,n,!0)},x.ready=function(l){function t(){return setTimeout(l,0,T)}return"loading"!==a.readyState?t():a.addEventListener("DOMContentLoaded",t),this},x.trigger=function(e,l){if(G(e)){var t=gl(e),n=t[0],o=t[1],i=ml(n);if(!i)return this;t=fl.test(i)?"MouseEvents":"HTMLEvents";(e=a.createEvent(t)).initEvent(i,!0,!0),e.namespace=o.join(dl),e.___ot=n}e.___td=l;var r=e.___ot in vl;return this.each(function(l,t){r&&O(t[e.___ot])&&(t["___i"+e.type]=!0,t[e.___ot](),t["___i"+e.type]=!1),t.dispatchEvent(e)})};var yl=/%20/g,Sl=/\r?\n/g,wl=/file|reset|submit|button|image/i,Cl=/radio|checkbox/i;x.serialize=function(){var o="";return this.each(function(l,t){W(t.elements||[t],function(l,n){var t;n.disabled||!n.name||"FIELDSET"===n.tagName||wl.test(n.type)||Cl.test(n.type)&&!n.checked||(R(t=bl(n))||W(u(t)?t:[t],function(l,t){var e;o+=(e=n.name,t=t,"&"+encodeURIComponent(e)+"="+encodeURIComponent(t.replace(Sl,"\r\n")).replace(yl,"+"))}))})}),o.slice(1)},x.val=function(o){return arguments.length?this.each(function(l,t){var e,n=t.multiple&&t.options;n||Cl.test(t.type)?(e=u(o)?L.call(o,String):H(o)?[]:[String(o)],n?W(t.options,function(l,t){t.selected=0<=e.indexOf(t.value)},!0):t.checked=0<=e.indexOf(t.value)):t.value=R(o)||H(o)?"":o}):this[0]&&bl(this[0])},x.clone=function(){return this.map(function(l,t){return t.cloneNode(!0)})},x.detach=function(l){return k(this,l).each(function(l,t){t.parentNode&&t.parentNode.removeChild(t)}),this};var El=/^\s*<(\w+)[^>]*>/,xl=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,Tl={"*":l,tr:e,td:n,th:n,thead:t,tbody:t,tfoot:t};function Al(l){if(!G(l))return[];if(xl.test(l))return[h(RegExp.$1)];var t=El.test(l)&&RegExp.$1,t=Tl[t]||Tl["*"];return t.innerHTML=l,T(t.childNodes).detach().get()}T.parseHTML=Al,x.empty=function(){return this.each(function(l,t){for(;t.firstChild;)t.removeChild(t.firstChild)})},x.html=function(e){return arguments.length?R(e)?this:this.each(function(l,t){D(t)&&(t.innerHTML=e)}):this[0]&&this[0].innerHTML},x.remove=function(l){return k(this,l).detach().off(),this},x.text=function(e){return R(e)?this[0]?this[0].textContent:"":this.each(function(l,t){D(t)&&(t.textContent=e)})},x.unwrap=function(){return this.parent().each(function(l,t){"BODY"!==t.tagName&&(t=T(t)).replaceWith(t.children())}),this},x.offset=function(){var l=this[0];if(l){l=l.getBoundingClientRect();return{top:l.top+i.pageYOffset,left:l.left+i.pageXOffset}}},x.offsetParent=function(){return this.map(function(l,t){for(var e=t.offsetParent;e&&"static"===X(e,"position");)e=e.offsetParent;return e||s})},x.position=function(){var l=this[0];if(l){var t="fixed"===X(l,"position"),e=t?l.getBoundingClientRect():this.offset();if(!t){for(var n=l.ownerDocument,o=l.offsetParent||n.documentElement;(o===n.body||o===n.documentElement)&&"static"===X(o,"position");)o=o.parentNode;o!==l&&D(o)&&(t=T(o).offset(),e.top-=t.top+J(o,"borderTopWidth"),e.left-=t.left+J(o,"borderLeftWidth"))}return{top:e.top-J(l,"marginTop"),left:e.left-J(l,"marginLeft")}}},x.children=function(l){return k(T(q(Y(this,function(l){return l.children}))),l)},x.contents=function(){return T(q(Y(this,function(l){return"IFRAME"===l.tagName?[l.contentDocument]:("TEMPLATE"===l.tagName?l.content:l).childNodes})))},x.find=function(t){return T(q(Y(this,function(l){return w(t,l)})))};var Pl=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Zl=/^$|^module$|\/(java|ecma)script/i,Nl=["type","src","nonce","noModule"];function Bl(l,t,e,n,o){var i;n?l.insertBefore(t,e?l.firstChild:null):l.parentNode.insertBefore(t,e?l:l.nextSibling),o&&(t=t,i=l.ownerDocument,(t=T(t)).filter("script").add(t.find("script")).each(function(l,e){var n;Zl.test(e.type)&&s.contains(e)&&((n=h("script")).text=e.textContent.replace(Pl,""),W(Nl,function(l,t){e[t]&&(n[t]=e[t])}),i.head.insertBefore(n,null),i.head.removeChild(n))}))}function Il(l,e,i,r,a,t,n,s){return W(l,function(l,t){W(T(t),function(n,o){W(T(e),function(l,t){var e=i?t:o,l=i?n:l;Bl(i?o:t,l?e.cloneNode(!0):e,r,a,!l)},s)},n)},t),e}x.after=function(){return Il(arguments,this,!1,!1,!1,!0,!0)},x.append=function(){return Il(arguments,this,!1,!1,!0)},x.appendTo=function(l){return Il(arguments,this,!0,!1,!0)},x.before=function(){return Il(arguments,this,!1,!0)},x.insertAfter=function(l){return Il(arguments,this,!0,!1,!1,!1,!1,!0)},x.insertBefore=function(l){return Il(arguments,this,!0,!0)},x.prepend=function(){return Il(arguments,this,!1,!0,!0,!0,!0)},x.prependTo=function(l){return Il(arguments,this,!0,!0,!0,!1,!1,!0)},x.replaceWith=function(l){return this.before(l).remove()},x.replaceAll=function(l){return T(l).replaceWith(this),this},x.wrapAll=function(l){for(var l=T(l),t=l[0];t.children.length;)t=t.firstElementChild;return this.first().before(l),this.appendTo(t)},x.wrap=function(n){return this.each(function(l,t){var e=T(n)[0];T(t).wrapAll(l?e.cloneNode(!0):e)})},x.wrapInner=function(n){return this.each(function(l,t){var e=T(t),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},x.has=function(e){var l=G(e)?function(l,t){return w(e,t).length}:function(l,t){return t.contains(e)};return this.filter(l)},x.is=function(l){var e=K(l);return M.call(this,function(l,t){return e.call(l,t,l)})},x.next=function(l,t,e){return k(T(q(Y(this,"nextElementSibling",t,e))),l)},x.nextAll=function(l){return this.next(l,!0)},x.nextUntil=function(l,t){return this.next(t,!0,l)},x.not=function(e){var n=K(e);return this.filter(function(l,t){return(!G(e)||D(t))&&!n.call(t,l,t)})},x.parent=function(l){return k(T(q(Y(this,"parentNode"))),l)},x.index=function(l){var t=(l?T(l):this)[0],l=l?this:T(t).parent().children();return v.call(l,t)},x.closest=function(l){var t=this.filter(l);if(t.length)return t;var e=this.parent();return e.length?e.closest(l):t},x.parents=function(l,t){return k(T(q(Y(this,"parentElement",!0,t))),l)},x.parentsUntil=function(l,t){return this.parents(t,l)},x.prev=function(l,t,e){return k(T(q(Y(this,"previousElementSibling",t,e))),l)},x.prevAll=function(l){return this.prev(l,!0)},x.prevUntil=function(l,t){return this.prev(t,!0,l)},x.siblings=function(l){return k(T(q(Y(this,function(l){return T(l).parent().children().not(l)}))),l)},Dl.exports=T}()},function(l,t,e){var r=e(2),o="unknown";document.documentMode&&(o="ie"),l.exports={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(l){if(l.clientWidth&&l.clientHeight)return{width:l.clientWidth,height:l.clientHeight};if(l.getBoundingClientRect())return l.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(l,t){var e=null;if((e=r.isElement(t)?t:l.querySelector(t))||1===(n=Array.prototype.slice.call(l.childNodes||l.children).filter(function(l){return"defs"!==l.nodeName&&"#text"!==l.nodeName})).length&&"g"===n[0].nodeName&&null===n[0].getAttribute("transform")&&(e=n[0]),!e){var n="viewport-"+(new Date).toISOString().replace(/\D/g,"");(e=document.createElementNS(this.svgNS,"g")).setAttribute("id",n);var o=l.childNodes||l.children;if(o&&0<o.length)for(var i=o.length;0<i;i--)"defs"!==o[o.length-i].nodeName&&e.appendChild(o[o.length-i]);l.appendChild(e)}l=[];return~(l=e.getAttribute("class")?e.getAttribute("class").split(" "):l).indexOf("svg-pan-zoom_viewport")||(l.push("svg-pan-zoom_viewport"),e.setAttribute("class",l.join(" "))),e},setupSvgAttributes:function(l){var t;l.setAttribute("xmlns",this.svgNS),l.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),l.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),null===l.parentNode||-1===(t=l.getAttribute("style")||"").toLowerCase().indexOf("overflow")&&l.setAttribute("style","overflow: hidden; "+t)},internetExplorerRedisplayInterval:300,refreshDefsGlobal:r.throttle(function(){for(var l=document.querySelectorAll("defs"),t=l.length,e=0;e<t;e++){var n=l[e];n.parentNode.insertBefore(n,n)}},this?this.internetExplorerRedisplayInterval:null),setCTM:function(l,t,e){var n=this,t="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";l.setAttributeNS(null,"transform",t),"transform"in l.style?l.style.transform=t:"-ms-transform"in l.style?l.style["-ms-transform"]=t:"-webkit-transform"in l.style&&(l.style["-webkit-transform"]=t),"ie"===o&&e&&(e.parentNode.insertBefore(e,e),window.setTimeout(function(){n.refreshDefsGlobal()},n.internetExplorerRedisplayInterval))},getEventPoint:function(l,t){var e=t.createSVGPoint();return r.mouseAndTouchNormalize(l,t),e.x=l.clientX,e.y=l.clientY,e},getSvgCenterPoint:function(l,t,e){return this.createSVGPoint(l,t/2,e/2)},createSVGPoint:function(l,t,e){l=l.createSVGPoint();return l.x=t,l.y=e,l}}},function(l,t){function e(t){return function(l){window.setTimeout(l,t)}}l.exports={extend:function(l,t){for(var e in l=l||{},t)this.isObject(t[e])?l[e]=this.extend(l[e],t[e]):l[e]=t[e];return l},isElement:function(l){return l instanceof HTMLElement||l instanceof SVGElement||l instanceof SVGSVGElement||l&&"object"==typeof l&&null!==l&&1===l.nodeType&&"string"==typeof l.nodeName},isObject:function(l){return"[object Object]"===Object.prototype.toString.call(l)},isNumber:function(l){return!isNaN(parseFloat(l))&&isFinite(l)},getSvg:function(l){var t,e;if(this.isElement(l))t=l;else{if(!("string"==typeof l||l instanceof String))throw new Error("Provided selector is not an HTML object nor String");if(!(t=document.querySelector(l)))throw new Error("Provided selector did not find any elements. Selector: "+l)}if("svg"===t.tagName.toLowerCase())e=t;else if("object"===t.tagName.toLowerCase())e=t.contentDocument.documentElement;else{if("embed"!==t.tagName.toLowerCase())throw"img"===t.tagName.toLowerCase()?new Error('Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.'):new Error("Cannot get SVG.");e=t.getSVGDocument().documentElement}return e},proxy:function(l,t){return function(){return l.apply(t,arguments)}},getType:function(l){return Object.prototype.toString.apply(l).replace(/^\[object\s/,"").replace(/\]$/,"")},mouseAndTouchNormalize:function(l,t){void 0!==l.clientX&&null!==l.clientX||(l.clientX=0,void(l.clientY=0)!==l.touches&&l.touches.length?void 0!==l.touches[0].clientX?(l.clientX=l.touches[0].clientX,l.clientY=l.touches[0].clientY):void 0!==l.touches[0].pageX&&(t=t.getBoundingClientRect(),l.clientX=l.touches[0].pageX-t.left,l.clientY=l.touches[0].pageY-t.top):void 0!==l.originalEvent&&void 0!==l.originalEvent.clientX&&(l.clientX=l.originalEvent.clientX,l.clientY=l.originalEvent.clientY))},isDblClick:function(l,t){if(2===l.detail)return!0;if(null==t)return!1;var e=l.timeStamp-t.timeStamp,t=Math.sqrt(Math.pow(l.clientX-t.clientX,2)+Math.pow(l.clientY-t.clientY,2));return e<250&&t<10},now:Date.now||function(){return(new Date).getTime()},throttle:function(e,n,o){var i,r,a,s=this,h=null,u=0;o=o||{};function c(){u=!1===o.leading?0:s.now(),h=null,a=e.apply(i,r),h||(i=r=null)}return function(){var l=s.now();u||!1!==o.leading||(u=l);var t=n-(l-u);return i=this,r=arguments,t<=0||n<t?(clearTimeout(h),h=null,u=l,a=e.apply(i,r),h||(i=r=null)):h||!1===o.trailing||(h=setTimeout(c,t)),a}},createRequestAnimationFrame:function(l){var t=null;return null===(t="auto"!==l&&l<60&&1<l?Math.floor(1e3/l):t)?window.requestAnimationFrame||e(33):e(t)}}},function(l,t,e){e=e(6);l.exports=e},function(l,t,e){e(5),l.exports=e(10)},function(l,t,e){"use strict";e.r(t)},function(l,t,e){function o(l,t){this.init(l,t)}var n=e(7),i=e(8),r=e(2),a=e(1),s=e(9),h={viewportSelector:".svg-pan-zoom_viewport",panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:"auto",beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},u={passive:!0};o.prototype.init=function(l,t){var e=this;this.svg=l,this.defs=l.querySelector("defs"),a.setupSvgAttributes(this.svg),this.options=r.extend(r.extend({},h),t),this.state="none";l=a.getBoundingClientRectNormalized(l);this.width=l.width,this.height=l.height,this.viewport=s(a.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(l,t){if(e.viewport&&e.options.beforeZoom)return e.options.beforeZoom(l,t)},onZoom:function(l){if(e.viewport&&e.options.onZoom)return e.options.onZoom(l)},beforePan:function(l,t){if(e.viewport&&e.options.beforePan)return e.options.beforePan(l,t)},onPan:function(l){if(e.viewport&&e.options.onPan)return e.options.onPan(l)},onUpdatedCTM:function(l){if(e.viewport&&e.options.onUpdatedCTM)return e.options.onUpdatedCTM(l)}});l=this.getPublicInstance();l.setBeforeZoom(this.options.beforeZoom),l.setOnZoom(this.options.onZoom),l.setBeforePan(this.options.beforePan),l.setOnPan(this.options.onPan),l.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&i.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},o.prototype.setupHandlers=function(){var l,e=this,n=null;if(this.eventListeners={mousedown:function(l){var t=e.handleMouseDown(l,n);return n=l,t},touchstart:function(l){var t=e.handleMouseDown(l,n);return n=l,t},mouseup:function(l){return e.handleMouseUp(l)},touchend:function(l){return e.handleMouseUp(l)},mousemove:function(l){return e.handleMouseMove(l)},touchmove:function(l){return e.handleMouseMove(l)},mouseleave:function(l){return e.handleMouseUp(l)},touchleave:function(l){return e.handleMouseUp(l)},touchcancel:function(l){return e.handleMouseUp(l)}},null!=this.options.customEventsHandler){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var t=this.options.customEventsHandler.haltEventListeners;if(t&&t.length)for(var o=t.length-1;0<=o;o--)this.eventListeners.hasOwnProperty(t[o])&&delete this.eventListeners[t[o]]}for(l in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(l,this.eventListeners[l],!this.options.preventMouseEventsDefault&&u);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},o.prototype.enableMouseWheelZoom=function(){var t,l;this.options.mouseWheelZoomEnabled||((t=this).wheelListener=function(l){return t.handleMouseWheel(l)},l=!this.options.preventMouseEventsDefault,n.on(this.options.eventsListenerElement||this.svg,this.wheelListener,l),this.options.mouseWheelZoomEnabled=!0)},o.prototype.disableMouseWheelZoom=function(){var l;this.options.mouseWheelZoomEnabled&&(l=!this.options.preventMouseEventsDefault,n.off(this.options.eventsListenerElement||this.svg,this.wheelListener,l),this.options.mouseWheelZoomEnabled=!1)},o.prototype.handleMouseWheel=function(l){var t,e;this.options.zoomEnabled&&"none"===this.state&&(this.options.preventMouseEventsDefault&&(l.preventDefault?l.preventDefault():l.returnValue=!1),e=l.deltaY||1,t=Date.now()-this.lastMouseWheelEventTime,t=3+Math.max(0,30-t),this.lastMouseWheelEventTime=Date.now(),e=-.3<(e="deltaMode"in l&&0===l.deltaMode&&l.wheelDelta?0===l.deltaY?0:Math.abs(l.wheelDelta)/l.deltaY:e)&&e<.3?e:(0<e?1:-1)*Math.log(Math.abs(e)+10)/t,t=this.svg.getScreenCTM().inverse(),t=a.getEventPoint(l,this.svg).matrixTransform(t),e=Math.pow(1+this.options.zoomScaleSensitivity,-1*e),this.zoomAtPoint(e,t))},o.prototype.zoomAtPoint=function(l,t,e){var n=this.viewport.getOriginalState();e?(l=Math.max(this.options.minZoom*n.zoom,Math.min(this.options.maxZoom*n.zoom,l)),l/=this.getZoom()):this.getZoom()*l<this.options.minZoom*n.zoom?l=this.options.minZoom*n.zoom/this.getZoom():this.getZoom()*l>this.options.maxZoom*n.zoom&&(l=this.options.maxZoom*n.zoom/this.getZoom());n=this.viewport.getCTM(),t=t.matrixTransform(n.inverse()),t=this.svg.createSVGMatrix().translate(t.x,t.y).scale(l).translate(-t.x,-t.y),t=n.multiply(t);t.a!==n.a&&this.viewport.setCTM(t)},o.prototype.zoom=function(l,t){this.zoomAtPoint(l,a.getSvgCenterPoint(this.svg,this.width,this.height),t)},o.prototype.publicZoom=function(l,t){t&&(l=this.computeFromRelativeZoom(l)),this.zoom(l,t)},o.prototype.publicZoomAtPoint=function(l,t,e){if(e&&(l=this.computeFromRelativeZoom(l)),"SVGPoint"!==r.getType(t)){if(!("x"in t&&"y"in t))throw new Error("Given point is invalid");t=a.createSVGPoint(this.svg,t.x,t.y)}this.zoomAtPoint(l,t,e)},o.prototype.getZoom=function(){return this.viewport.getZoom()},o.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},o.prototype.computeFromRelativeZoom=function(l){return l*this.viewport.getOriginalState().zoom},o.prototype.resetZoom=function(){var l=this.viewport.getOriginalState();this.zoom(l.zoom,!0)},o.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},o.prototype.reset=function(){this.resetZoom(),this.resetPan()},o.prototype.handleDblClick=function(l){var t;if((this.options.preventMouseEventsDefault&&(l.preventDefault?l.preventDefault():l.returnValue=!1),this.options.controlIconsEnabled)&&-1<(l.target.getAttribute("class")||"").indexOf("svg-pan-zoom-control"))return!1;t=l.shiftKey?1/(2*(1+this.options.zoomScaleSensitivity)):2*(1+this.options.zoomScaleSensitivity);l=a.getEventPoint(l,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(t,l)},o.prototype.handleMouseDown=function(l,t){this.options.preventMouseEventsDefault&&(l.preventDefault?l.preventDefault():l.returnValue=!1),r.mouseAndTouchNormalize(l,this.svg),this.options.dblClickZoomEnabled&&r.isDblClick(l,t)?this.handleDblClick(l):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=a.getEventPoint(l,this.svg).matrixTransform(this.firstEventCTM.inverse()))},o.prototype.handleMouseMove=function(l){this.options.preventMouseEventsDefault&&(l.preventDefault?l.preventDefault():l.returnValue=!1),"pan"===this.state&&this.options.panEnabled&&(l=a.getEventPoint(l,this.svg).matrixTransform(this.firstEventCTM.inverse()),l=this.firstEventCTM.translate(l.x-this.stateOrigin.x,l.y-this.stateOrigin.y),this.viewport.setCTM(l))},o.prototype.handleMouseUp=function(l){this.options.preventMouseEventsDefault&&(l.preventDefault?l.preventDefault():l.returnValue=!1),"pan"===this.state&&(this.state="none")},o.prototype.fit=function(){var l=this.viewport.getViewBox(),l=Math.min(this.width/l.width,this.height/l.height);this.zoom(l,!0)},o.prototype.contain=function(){var l=this.viewport.getViewBox(),l=Math.max(this.width/l.width,this.height/l.height);this.zoom(l,!0)},o.prototype.center=function(){var l=this.viewport.getViewBox(),t=.5*(this.width-(l.width+2*l.x)*this.getZoom()),l=.5*(this.height-(l.height+2*l.y)*this.getZoom());this.getPublicInstance().pan({x:t,y:l})},o.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},o.prototype.pan=function(l){var t=this.viewport.getCTM();t.e=l.x,t.f=l.y,this.viewport.setCTM(t)},o.prototype.panBy=function(l){var t=this.viewport.getCTM();t.e+=l.x,t.f+=l.y,this.viewport.setCTM(t)},o.prototype.getPan=function(){var l=this.viewport.getState();return{x:l.x,y:l.y}},o.prototype.resize=function(){var l=a.getBoundingClientRectNormalized(this.svg);this.width=l.width,this.height=l.height;l=this.viewport;l.options.width=this.width,l.options.height=this.height,l.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},o.prototype.destroy=function(){var l,t=this;for(l in this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,(this.onUpdatedCTM=null)!=this.options.customEventsHandler&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()}),this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(l,this.eventListeners[l],!this.options.preventMouseEventsDefault&&u);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),c=c.filter(function(l){return l.svg!==t.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},o.prototype.getPublicInstance=function(){var e=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return e.options.panEnabled=!0,e.pi},disablePan:function(){return e.options.panEnabled=!1,e.pi},isPanEnabled:function(){return!!e.options.panEnabled},pan:function(l){return e.pan(l),e.pi},panBy:function(l){return e.panBy(l),e.pi},getPan:function(){return e.getPan()},setBeforePan:function(l){return e.options.beforePan=null===l?null:r.proxy(l,e.publicInstance),e.pi},setOnPan:function(l){return e.options.onPan=null===l?null:r.proxy(l,e.publicInstance),e.pi},enableZoom:function(){return e.options.zoomEnabled=!0,e.pi},disableZoom:function(){return e.options.zoomEnabled=!1,e.pi},isZoomEnabled:function(){return!!e.options.zoomEnabled},enableControlIcons:function(){return e.options.controlIconsEnabled||(e.options.controlIconsEnabled=!0,i.enable(e)),e.pi},disableControlIcons:function(){return e.options.controlIconsEnabled&&(e.options.controlIconsEnabled=!1,i.disable(e)),e.pi},isControlIconsEnabled:function(){return!!e.options.controlIconsEnabled},enableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!0,e.pi},disableDblClickZoom:function(){return e.options.dblClickZoomEnabled=!1,e.pi},isDblClickZoomEnabled:function(){return!!e.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return e.enableMouseWheelZoom(),e.pi},disableMouseWheelZoom:function(){return e.disableMouseWheelZoom(),e.pi},isMouseWheelZoomEnabled:function(){return!!e.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(l){return e.options.zoomScaleSensitivity=l,e.pi},setMinZoom:function(l){return e.options.minZoom=l,e.pi},setMaxZoom:function(l){return e.options.maxZoom=l,e.pi},setBeforeZoom:function(l){return e.options.beforeZoom=null===l?null:r.proxy(l,e.publicInstance),e.pi},setOnZoom:function(l){return e.options.onZoom=null===l?null:r.proxy(l,e.publicInstance),e.pi},zoom:function(l){return e.publicZoom(l,!0),e.pi},zoomBy:function(l){return e.publicZoom(l,!1),e.pi},zoomAtPoint:function(l,t){return e.publicZoomAtPoint(l,t,!0),e.pi},zoomAtPointBy:function(l,t){return e.publicZoomAtPoint(l,t,!1),e.pi},zoomIn:function(){return this.zoomBy(1+e.options.zoomScaleSensitivity),e.pi},zoomOut:function(){return this.zoomBy(1/(1+e.options.zoomScaleSensitivity)),e.pi},getZoom:function(){return e.getRelativeZoom()},setOnUpdatedCTM:function(l){return e.options.onUpdatedCTM=null===l?null:r.proxy(l,e.publicInstance),e.pi},resetZoom:function(){return e.resetZoom(),e.pi},resetPan:function(){return e.resetPan(),e.pi},reset:function(){return e.reset(),e.pi},fit:function(){return e.fit(),e.pi},contain:function(){return e.contain(),e.pi},center:function(){return e.center(),e.pi},updateBBox:function(){return e.updateBBox(),e.pi},resize:function(){return e.resize(),e.pi},getSizes:function(){return{width:e.width,height:e.height,realZoom:e.getZoom(),viewBox:e.viewport.getViewBox()}},destroy:function(){return e.destroy(),e.pi}}),this.publicInstance};var c=[];l.exports=function(l,t){var e=r.getSvg(l);if(null===e)return null;for(var n=c.length-1;0<=n;n--)if(c[n].svg===e)return c[n].instance.getPublicInstance();return c.push({svg:e,instance:new o(e,t)}),c[c.length-1].instance.getPublicInstance()}},function(l,t){function o(l,e){function t(l){var t={originalEvent:l=l||window.event,target:l.target||l.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==l.type?0:1,deltaX:0,delatZ:0,preventDefault:function(){l.preventDefault?l.preventDefault():l.returnValue=!1}};return"mousewheel"==s?(t.deltaY=-.025*l.wheelDelta,l.wheelDeltaX&&(t.deltaX=-.025*l.wheelDeltaX)):t.deltaY=l.detail,e(t)}return u.push({element:l,fn:t}),t}function n(l,t,e,n){e="wheel"===s?e:o(l,e);l[r](h+t,e,!!n&&c)}function i(l,t,e,n){e="wheel"===s?e:function(l){for(var t=0;t<u.length;t++)if(u[t].element===l)return u[t].fn;return function(){}}(l);l[a](h+t,e,!!n&&c),function(l){for(var t=0;t<u.length;t++)if(u[t].element===l)return u.splice(t,1)}(l)}var r,a,s,h,u,c;l.exports=(u=[],c={passive:!(h="")},window.addEventListener?(r="addEventListener",a="removeEventListener"):(r="attachEvent",a="detachEvent",h="on"),s="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",{on:function(l,t,e){n(l,s,t,e),"DOMMouseScroll"==s&&n(l,"MozMousePixelScroll",t,e)},off:function(l,t,e){i(l,s,t,e),"DOMMouseScroll"==s&&i(l,"MozMousePixelScroll",t,e)}})},function(l,t,e){var n=e(1);l.exports={enable:function(l){var t=l.svg.querySelector("defs");t||(t=document.createElementNS(n.svgNS,"defs"),l.svg.appendChild(t)),t.querySelector("style#svg-pan-zoom-controls-styles")||((e=document.createElementNS(n.svgNS,"style")).setAttribute("id","svg-pan-zoom-controls-styles"),e.setAttribute("type","text/css"),e.textContent=".svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }",t.appendChild(e));var e=document.createElementNS(n.svgNS,"g");e.setAttribute("id","svg-pan-zoom-controls"),e.setAttribute("transform","translate("+(l.width-70)+" "+(l.height-76)+") scale(0.75)"),e.setAttribute("class","svg-pan-zoom-control"),e.appendChild(this._createZoomIn(l)),e.appendChild(this._createZoomReset(l)),e.appendChild(this._createZoomOut(l)),l.svg.appendChild(e),l.controlIcons=e},_createZoomIn:function(l){var t=document.createElementNS(n.svgNS,"g");t.setAttribute("id","svg-pan-zoom-zoom-in"),t.setAttribute("transform","translate(30.5 5) scale(0.015)"),t.setAttribute("class","svg-pan-zoom-control"),t.addEventListener("click",function(){l.getPublicInstance().zoomIn()},!1),t.addEventListener("touchstart",function(){l.getPublicInstance().zoomIn()},!1);var e=document.createElementNS(n.svgNS,"rect");e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width","1500"),e.setAttribute("height","1400"),e.setAttribute("class","svg-pan-zoom-control-background"),t.appendChild(e);e=document.createElementNS(n.svgNS,"path");return e.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z"),e.setAttribute("class","svg-pan-zoom-control-element"),t.appendChild(e),t},_createZoomReset:function(l){var t=document.createElementNS(n.svgNS,"g");t.setAttribute("id","svg-pan-zoom-reset-pan-zoom"),t.setAttribute("transform","translate(5 35) scale(0.4)"),t.setAttribute("class","svg-pan-zoom-control"),t.addEventListener("click",function(){l.getPublicInstance().reset()},!1),t.addEventListener("touchstart",function(){l.getPublicInstance().reset()},!1);var e=document.createElementNS(n.svgNS,"rect");e.setAttribute("x","2"),e.setAttribute("y","2"),e.setAttribute("width","182"),e.setAttribute("height","58"),e.setAttribute("class","svg-pan-zoom-control-background"),t.appendChild(e);e=document.createElementNS(n.svgNS,"path");e.setAttribute("d","M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z"),e.setAttribute("class","svg-pan-zoom-control-element"),t.appendChild(e);e=document.createElementNS(n.svgNS,"path");return e.setAttribute("d","M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z"),e.setAttribute("class","svg-pan-zoom-control-element"),t.appendChild(e),t},_createZoomOut:function(l){var t=document.createElementNS(n.svgNS,"g");t.setAttribute("id","svg-pan-zoom-zoom-out"),t.setAttribute("transform","translate(30.5 70) scale(0.015)"),t.setAttribute("class","svg-pan-zoom-control"),t.addEventListener("click",function(){l.getPublicInstance().zoomOut()},!1),t.addEventListener("touchstart",function(){l.getPublicInstance().zoomOut()},!1);var e=document.createElementNS(n.svgNS,"rect");e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("width","1500"),e.setAttribute("height","1400"),e.setAttribute("class","svg-pan-zoom-control-background"),t.appendChild(e);e=document.createElementNS(n.svgNS,"path");return e.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z"),e.setAttribute("class","svg-pan-zoom-control-element"),t.appendChild(e),t},disable:function(l){l.controlIcons&&(l.controlIcons.parentNode.removeChild(l.controlIcons),l.controlIcons=null)}}},function(l,t,e){function n(l,t){this.init(l,t)}var o=e(1),r=e(2);n.prototype.init=function(l,t){this.viewport=l,this.options=t,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=r.proxy(this.updateCTM,this),this.requestAnimationFrame=r.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();t=this.processCTM();this.setCTM(t),this.updateCTM()},n.prototype.cacheViewBox=function(){var l=this.options.svg.getAttribute("viewBox");l?(l=l.split(/[\s\,]/).filter(function(l){return l}).map(parseFloat),this.viewBox.x=l[0],this.viewBox.y=l[1],this.viewBox.width=l[2],this.viewBox.height=l[3],l=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),this.activeState.zoom=l,this.activeState.x=(this.options.width-this.viewBox.width*l)/2,this.activeState.y=(this.options.height-this.viewBox.height*l)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute("viewBox")):this.simpleViewBoxCache()},n.prototype.simpleViewBoxCache=function(){var l=this.viewport.getBBox();this.viewBox.x=l.x,this.viewBox.y=l.y,this.viewBox.width=l.width,this.viewBox.height=l.height},n.prototype.getViewBox=function(){return r.extend({},this.viewBox)},n.prototype.processCTM=function(){var l,t,e=this.getCTM();return(this.options.fit||this.options.contain)&&(t=this.options.fit?Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),e.a=t,e.d=t,e.e=-this.viewBox.x*t,e.f=-this.viewBox.y*t),this.options.center&&(l=.5*(this.options.width-(this.viewBox.width+2*this.viewBox.x)*e.a),t=.5*(this.options.height-(this.viewBox.height+2*this.viewBox.y)*e.a),e.e=l,e.f=t),this.originalState.zoom=e.a,this.originalState.x=e.e,this.originalState.y=e.f,e},n.prototype.getOriginalState=function(){return r.extend({},this.originalState)},n.prototype.getState=function(){return r.extend({},this.activeState)},n.prototype.getZoom=function(){return this.activeState.zoom},n.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},n.prototype.computeRelativeZoom=function(l){return l/this.originalState.zoom},n.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},n.prototype.getCTM=function(){var l=this.options.svg.createSVGMatrix();return l.a=this.activeState.zoom,l.b=0,l.c=0,l.d=this.activeState.zoom,l.e=this.activeState.x,l.f=this.activeState.y,l},n.prototype.setCTM=function(l){var t,e,n,o=this.isZoomDifferent(l),i=this.isPanDifferent(l);(o||i)&&(o&&(!1===this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(l.a))?(l.a=l.d=this.activeState.zoom,o=!1):(this.updateCache(l),this.options.onZoom(this.getRelativeZoom()))),i&&((n=e=!1)===(t=this.options.beforePan(this.getPan(),{x:l.e,y:l.f}))?(l.e=this.getPan().x,l.f=this.getPan().y,e=n=!0):r.isObject(t)&&(!1===t.x?(l.e=this.getPan().x,e=!0):r.isNumber(t.x)&&(l.e=t.x),!1===t.y?(l.f=this.getPan().y,n=!0):r.isNumber(t.y)&&(l.f=t.y)),e&&n||!this.isPanDifferent(l)?i=!1:(this.updateCache(l),this.options.onPan(this.getPan()))),(o||i)&&this.updateCTMOnNextFrame())},n.prototype.isZoomDifferent=function(l){return this.activeState.zoom!==l.a},n.prototype.isPanDifferent=function(l){return this.activeState.x!==l.e||this.activeState.y!==l.f},n.prototype.updateCache=function(l){this.activeState.zoom=l.a,this.activeState.x=l.e,this.activeState.y=l.f},n.prototype.pendingUpdate=!1,n.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},n.prototype.updateCTM=function(){var l=this.getCTM();o.setCTM(this.viewport,l,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(l)},l.exports=function(l,t){return new n(l,t)}},function(l,t,e){"use strict";e.r(t),e.d(t,"default",function(){return a});var t=e(3),c=e.n(t),t=e(0),p=e.n(t),d={AF:"Afghanistan",AX:"Åland Islands",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei Darussalam",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",BQ:"Caribbean Netherlands",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CG:"Congo",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curaçao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FM:"Federated States of Micronesia",FJ:"Fiji",FI:"Finland",FR:"France",GF:"French Guiana",PF:"French Polynesia",TF:"French Southern Territories",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GP:"Guadeloupe",GU:"Guam",GT:"Guatemala",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macau",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MQ:"Martinique",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",NF:"Norfolk Island",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn Islands",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"São Tomé and Príncipe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",GS:"South Georgia and the South Sandwich Islands",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Eswatini",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TL:"Timor-Leste",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UM:"United States Minor Outlying Islands",VI:"United States Virgin Islands",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican City",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},v=function(l){return("0"+l.toString(16)).slice(-2)},L=function(l){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:d)[l]},f=function(l){var t,e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(l),n=parseInt(e[1],16)/255,o=parseInt(e[2],16)/255,i=parseInt(e[3],16)/255,r=Math.max(n,o,i),l=Math.min(n,o,i),e=(r+l)/2;if(r==l)t=s=0;else{var a=r-l,s=.5<e?a/(2-r-l):a/(r+l);switch(r){case n:t=(o-i)/a+(o<i?6:0);break;case o:t=(i-n)/a+2;break;case i:t=(n-o)/a+4}t/=6}return s*=100,s=Math.round(s),e*=100,e=Math.round(e),{h:t=Math.round(360*t),s:s,l:e}},m={targetElementID:"",targetElement:null,rootElement:null,minZoom:1,maxZoom:25,initialZoom:1.06,zoomScaleSensitivity:.2,mouseWheelZoomEnabled:!0,colorMax:"#CC0033",colorMin:"#FFE5D9",colorNoData:"#E2E2E2",flagType:"image",flagURL:"https://cdn.jsdelivr.net/gh/hjnilsson/country-flags@latest/svg/{0}.svg",hideFlag:!1,noDataText:"No data available",countries:{EH:!0},getTooltipContent:function(e,n,o){var i=p()('<table class="svg-map-tooltip-content-table">');return Object.keys(n).forEach(function(l){var t=o[e][l],l="function"==typeof n[l]?n[l](t):n[l];l.floatingNumbers&&(t=t.toFixed(1)),l.thousandSeparator&&(t=function(l){var t=1<arguments.length&&void