32 lines
1.0 MiB
32 lines
1.0 MiB
function _createForOfIteratorHelper(e,t){var n;if(typeof Symbol==="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=_unsupportedIterableToArray2(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var i=0;var r=function t(){};return{s:r,n:function t(){if(i>=e.length)return{done:true};return{done:false,value:e[i++]}},e:function t(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){n=e[Symbol.iterator]()},n:function t(){var e=n.next();a=e.done;return e},e:function t(e){o=true;s=e},f:function t(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function _unsupportedIterableToArray2(t,e){if(!t)return;if(typeof t==="string")return _arrayLikeToArray2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(t,e)}function _arrayLikeToArray2(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);if(t)i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,i)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){ownKeys(Object(n),true).forEach(function(t){_defineProperty2(e,t,n[t])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}}return e}function _defineProperty2(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function _typeof2(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof2=function t(e){return typeof e}}else{_typeof2=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof2(t)}
|
||
/*
|
||
d3plus v2.0.0-alpha.30
|
||
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
||
Copyright (c) 2020 D3plus - https://d3plus.org
|
||
@license MIT
|
||
*/
|
||
(function(t){typeof define==="function"&&define.amd?define(t):t()})(function(){"use strict";var t=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function e(t,e,i){return i={path:e,exports:{},require:function t(e,n){return r(e,n===undefined||n===null?i.path:n)}},t(i,i.exports),i.exports}function r(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=function t(e){return e&&e.Math==Math&&e};var h=n((typeof globalThis==="undefined"?"undefined":_typeof2(globalThis))=="object"&&globalThis)||n((typeof window==="undefined"?"undefined":_typeof2(window))=="object"&&window)||n((typeof self==="undefined"?"undefined":_typeof2(self))=="object"&&self)||n(_typeof2(t)=="object"&&t)||function(){return this}()||Function("return this")();var s=function t(e){try{return!!e()}catch(t){return true}};var d=!s(function(){return Object.defineProperty({},1,{get:function t(){return 7}})[1]!=7});var i={}.propertyIsEnumerable;var a=Object.getOwnPropertyDescriptor;var o=a&&!i.call({1:2},1);var u=o?function t(e){var n=a(this,e);return!!n&&n.enumerable}:i;var g={f:u};var l=function t(e,n){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}};var c={}.toString;var f=function t(e){return c.call(e).slice(8,-1)};var p="".split;var b=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return f(t)=="String"?p.call(t,""):Object(t)}:Object;var v=function t(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e};var m=function t(e){return b(v(e))};var y=function t(e){return _typeof2(e)==="object"?e!==null:typeof e==="function"};var _=function t(e,n){if(!y(e))return e;var i,r;if(n&&typeof(i=e.toString)=="function"&&!y(r=i.call(e)))return r;if(typeof(i=e.valueOf)=="function"&&!y(r=i.call(e)))return r;if(!n&&typeof(i=e.toString)=="function"&&!y(r=i.call(e)))return r;throw TypeError("Can't convert object to primitive value")};var w={}.hasOwnProperty;var x=function t(e,n){return w.call(e,n)};var k=h.document;var S=y(k)&&y(k.createElement);var C=function t(e){return S?k.createElement(e):{}};var E=!d&&!s(function(){return Object.defineProperty(C("div"),"a",{get:function t(){return 7}}).a!=7});var A=Object.getOwnPropertyDescriptor;var R=d?A:function t(e,n){e=m(e);n=_(n,true);if(E)try{return A(e,n)}catch(t){}if(x(e,n))return l(!g.f.call(e,n),e[n])};var M={f:R};var T=function t(e){if(!y(e)){throw TypeError(String(e)+" is not an object")}return e};var P=Object.defineProperty;var O=d?P:function t(e,n,i){T(e);n=_(n,true);T(i);if(E)try{return P(e,n,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");if("value"in i)e[n]=i.value;return e};var B={f:O};var D=d?function(t,e,n){return B.f(t,e,l(1,n))}:function(t,e,n){t[e]=n;return t};var N=function t(e,n){try{D(h,e,n)}catch(t){h[e]=n}return n};var z="__core-js_shared__";var j=h[z]||N(z,{});var L=j;var F=Function.toString;if(typeof L.inspectSource!="function"){L.inspectSource=function(t){return F.call(t)}}var I=L.inspectSource;var H=h.WeakMap;var G=typeof H==="function"&&/native code/.test(I(H));var V=e(function(t){(t.exports=function(t,e){return L[t]||(L[t]=e!==undefined?e:{})})("versions",[]).push({version:"3.7.0",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})});var U=0;var W=Math.random();var q=function t(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++U+W).toString(36)};var K=V("keys");var Y=function t(e){return K[e]||(K[e]=q(e))};var X={};var Z=h.WeakMap;var $,J,Q;var tt=function t(e){return Q(e)?J(e):$(e,{})};var et=function t(n){return function(t){var e;if(!y(t)||(e=J(t)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return e}};if(G){var nt=L.state||(L.state=new Z);var it=nt.get;var rt=nt.has;var at=nt.set;$=function t(e,n){n.facade=e;at.call(nt,e,n);return n};J=function t(e){return it.call(nt,e)||{}};Q=function t(e){return rt.call(nt,e)}}else{var ot=Y("state");X[ot]=true;$=function t(e,n){n.facade=e;D(e,ot,n);return n};J=function t(e){return x(e,ot)?e[ot]:{}};Q=function t(e){return x(e,ot)}}var st={set:$,get:J,has:Q,enforce:tt,getterFor:et};var ut=e(function(t){var e=st.get;var u=st.enforce;var l=String(String).split("String");(t.exports=function(t,e,n,i){var r=i?!!i.unsafe:false;var a=i?!!i.enumerable:false;var o=i?!!i.noTargetGet:false;var s;if(typeof n=="function"){if(typeof e=="string"&&!x(n,"name")){D(n,"name",e)}s=u(n);if(!s.source){s.source=l.join(typeof e=="string"?e:"")}}if(t===h){if(a)t[e]=n;else N(e,n);return}else if(!r){delete t[e]}else if(!o&&t[e]){a=true}if(a)t[e]=n;else D(t,e,n)})(Function.prototype,"toString",function t(){return typeof this=="function"&&e(this).source||I(this)})});var lt=h;var ct=function t(e){return typeof e=="function"?e:undefined};var ft=function t(e,n){return arguments.length<2?ct(lt[e])||ct(h[e]):lt[e]&<[e][n]||h[e]&&h[e][n]};var ht=Math.ceil;var dt=Math.floor;var gt=function t(e){return isNaN(e=+e)?0:(e>0?dt:ht)(e)};var pt=Math.min;var vt=function t(e){return e>0?pt(gt(e),9007199254740991):0};var mt=Math.max;var yt=Math.min;var _t=function t(e,n){var i=gt(e);return i<0?mt(i+n,0):yt(i,n)};var bt=function t(s){return function(t,e,n){var i=m(t);var r=vt(i.length);var a=_t(n,r);var o;if(s&&e!=e)while(r>a){o=i[a++];if(o!=o)return true}else for(;r>a;a++){if((s||a in i)&&i[a]===e)return s||a||0}return!s&&-1}};var wt={includes:bt(true),indexOf:bt(false)};var xt=wt.indexOf;var kt=function t(e,n){var i=m(e);var r=0;var a=[];var o;for(o in i){!x(X,o)&&x(i,o)&&a.push(o)}while(n.length>r){if(x(i,o=n[r++])){~xt(a,o)||a.push(o)}}return a};var St=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Ct=St.concat("length","prototype");var Et=Object.getOwnPropertyNames||function t(e){return kt(e,Ct)};var At={f:Et};var Rt=Object.getOwnPropertySymbols;var Mt={f:Rt};var Tt=ft("Reflect","ownKeys")||function t(e){var n=At.f(T(e));var i=Mt.f;return i?n.concat(i(e)):n};var Pt=function t(e,n){var i=Tt(n);var r=B.f;var a=M.f;for(var o=0;o<i.length;o++){var s=i[o];if(!x(e,s))r(e,s,a(n,s))}};var Ot=/#|\.prototype\./;var Bt=function t(e,n){var i=Nt[Dt(e)];return i==jt?true:i==zt?false:typeof n=="function"?s(n):!!n};var Dt=Bt.normalize=function(t){return String(t).replace(Ot,".").toLowerCase()};var Nt=Bt.data={};var zt=Bt.NATIVE="N";var jt=Bt.POLYFILL="P";var Lt=Bt;var Ft=M.f;var It=function t(e,n){var i=e.target;var r=e.global;var a=e.stat;var o,s,u,l,c,f;if(r){s=h}else if(a){s=h[i]||N(i,{})}else{s=(h[i]||{}).prototype}if(s)for(u in n){c=n[u];if(e.noTargetGet){f=Ft(s,u);l=f&&f.value}else l=s[u];o=Lt(r?u:i+(a?".":"#")+u,e.forced);if(!o&&l!==undefined){if(_typeof2(c)===_typeof2(l))continue;Pt(c,l)}if(e.sham||l&&l.sham){D(c,"sham",true)}ut(s,u,c,e)}};var Ht=function t(e){if(typeof e!="function"){throw TypeError(String(e)+" is not a function")}return e};var Gt=function t(i,r,e){Ht(i);if(r===undefined)return i;switch(e){case 0:return function(){return i.call(r)};case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}};var Vt=function t(e){return Object(v(e))};var Ut=Array.isArray||function t(e){return f(e)=="Array"};var Wt=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())});var qt=Wt&&!Symbol.sham&&_typeof2(Symbol.iterator)=="symbol";var Kt=V("wks");var Yt=h.Symbol;var Xt=qt?Yt:Yt&&Yt.withoutSetter||q;var Zt=function t(e){if(!x(Kt,e)){if(Wt&&x(Yt,e))Kt[e]=Yt[e];else Kt[e]=Xt("Symbol."+e)}return Kt[e]};var $t=Zt("species");var Jt=function t(e,n){var i;if(Ut(e)){i=e.constructor;if(typeof i=="function"&&(i===Array||Ut(i.prototype)))i=undefined;else if(y(i)){i=i[$t];if(i===null)i=undefined}}return new(i===undefined?Array:i)(n===0?0:n)};var Qt=[].push;var te=function t(d){var g=d==1;var p=d==2;var v=d==3;var m=d==4;var y=d==6;var _=d==5||y;return function(t,e,n,i){var r=Vt(t);var a=b(r);var o=Gt(e,n,3);var s=vt(a.length);var u=0;var l=i||Jt;var c=g?l(t,s):p?l(t,0):undefined;var f,h;for(;s>u;u++){if(_||u in a){f=a[u];h=o(f,u,r);if(d){if(g)c[u]=h;else if(h)switch(d){case 3:return true;case 5:return f;case 6:return u;case 2:Qt.call(c,f)}else if(m)return false}}}return y?-1:v||m?m:c}};var ee={forEach:te(0),map:te(1),filter:te(2),some:te(3),every:te(4),find:te(5),findIndex:te(6)};var ne=Object.keys||function t(e){return kt(e,St)};var ie=d?Object.defineProperties:function t(e,n){T(e);var i=ne(n);var r=i.length;var a=0;var o;while(r>a){B.f(e,o=i[a++],n[o])}return e};var re=ft("document","documentElement");var ae=">";var oe="<";var se="prototype";var ue="script";var le=Y("IE_PROTO");var ce=function t(){};var fe=function t(e){return oe+ue+ae+e+oe+"/"+ue+ae};var he=function t(e){e.write(fe(""));e.close();var n=e.parentWindow.Object;e=null;return n};var de=function t(){var e=C("iframe");var n="java"+ue+":";var i;e.style.display="none";re.appendChild(e);e.src=String(n);i=e.contentWindow.document;i.open();i.write(fe("document.F=Object"));i.close();return i.F};var ge;var pe=function t(){try{ge=document.domain&&new ActiveXObject("htmlfile")}catch(t){}pe=ge?he(ge):de();var e=St.length;while(e--){delete pe[se][St[e]]}return pe()};X[le]=true;var ve=Object.create||function t(e,n){var i;if(e!==null){ce[se]=T(e);i=new ce;ce[se]=null;i[le]=e}else i=pe();return n===undefined?i:ie(i,n)};var me=Zt("unscopables");var ye=Array.prototype;if(ye[me]==undefined){B.f(ye,me,{configurable:true,value:ve(null)})}var _e=function t(e){ye[me][e]=true};var be=Object.defineProperty;var we={};var xe=function t(e){throw e};var ke=function t(e,n){if(x(we,e))return we[e];if(!n)n={};var i=[][e];var r=x(n,"ACCESSORS")?n.ACCESSORS:false;var a=x(n,0)?n[0]:xe;var o=x(n,1)?n[1]:undefined;return we[e]=!!i&&!s(function(){if(r&&!d)return true;var t={length:-1};if(r)be(t,1,{enumerable:true,get:xe});else t[1]=1;i.call(t,a,o)})};var Se=ee.find;var Ce="find";var Ee=true;var Ae=ke(Ce);if(Ce in[])Array(1)[Ce](function(){Ee=false});It({target:"Array",proto:true,forced:Ee||!Ae},{find:function t(e){return Se(this,e,arguments.length>1?arguments[1]:undefined)}});_e(Ce);var Re=wt.includes;var Me=ke("indexOf",{ACCESSORS:true,1:0});It({target:"Array",proto:true,forced:!Me},{includes:function t(e){return Re(this,e,arguments.length>1?arguments[1]:undefined)}});_e("includes");var Te=Object.assign;var Pe=Object.defineProperty;var Oe=!Te||s(function(){if(d&&Te({b:1},Te(Pe({},"a",{enumerable:true,get:function t(){Pe(this,"b",{value:3,enumerable:false})}}),{b:2})).b!==1)return true;var t={};var e={};var n=Symbol();var i="abcdefghijklmnopqrst";t[n]=7;i.split("").forEach(function(t){e[t]=t});return Te({},t)[n]!=7||ne(Te({},e)).join("")!=i})?function t(e,n){var i=Vt(e);var r=arguments.length;var a=1;var o=Mt.f;var s=g.f;while(r>a){var u=b(arguments[a++]);var l=o?ne(u).concat(o(u)):ne(u);var c=l.length;var f=0;var h;while(c>f){h=l[f++];if(!d||s.call(u,h))i[h]=u[h]}}return i}:Te;It({target:"Object",stat:true,forced:Object.assign!==Oe},{assign:Oe});var Be=Zt("match");var De=function t(e){var n;return y(e)&&((n=e[Be])!==undefined?!!n:f(e)=="RegExp")};var Ne=function t(e){if(De(e)){throw TypeError("The method doesn't accept regular expressions")}return e};var ze=Zt("match");var je=function t(e){var n=/./;try{"/./"[e](n)}catch(t){try{n[ze]=false;return"/./"[e](n)}catch(t){}}return false};It({target:"String",proto:true,forced:!je("includes")},{includes:function t(e){return!!~String(v(this)).indexOf(Ne(e),arguments.length>1?arguments[1]:undefined)}});var Le=M.f;var Fe="".startsWith;var Ie=Math.min;var He=je("startsWith");var Ge=!He&&!!function(){var t=Le(String.prototype,"startsWith");return t&&!t.writable}();It({target:"String",proto:true,forced:!Ge&&!He},{startsWith:function t(e){var n=String(v(this));Ne(e);var i=vt(Ie(arguments.length>1?arguments[1]:undefined,n.length));var r=String(e);return Fe?Fe.call(n,r,i):n.slice(i,i+r.length)===r}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(t){return}function n(t){switch(t.nodeType){case 1:return r(t);case 3:return e(t);case 8:return i(t)}}function e(t){return t.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function i(t){return"\x3c!--"+t.nodeValue+"--\x3e"}function r(t){var e="";e+="<"+t.tagName;if(t.hasAttributes()){[].forEach.call(t.attributes,function(t){e+=" "+t.name+'="'+t.value+'"'})}e+=">";if(t.hasChildNodes()){[].forEach.call(t.childNodes,function(t){e+=n(t)})}e+="</"+t.tagName+">";return e}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function t(){var e="";[].forEach.call(this.childNodes,function(t){e+=n(t)});return e},set:function t(e){while(this.firstChild){this.removeChild(this.firstChild)}try{var n=new DOMParser;n.async=false;var i="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+e+"</svg>";var r=n.parseFromString(i,"text/xml").documentElement;[].forEach.call(r.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,true))}.bind(this))}catch(t){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function t(){return this.innerHTML},set:function t(e){this.innerHTML=e}})})()}});(function(t,e){(typeof exports==="undefined"?"undefined":_typeof2(exports))==="object"&&typeof module!=="undefined"?e(exports):typeof define==="function"&&define.amd?define("d3plus",["exports"],e):(t=typeof globalThis!=="undefined"?globalThis:t||self,e(t.d3plus={}))})(this,function(t){var e="2.0.0-alpha.30";function k(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function S(o){if(o.length===1)o=n(o);return{left:function t(e,n,i,r){if(i==null)i=0;if(r==null)r=e.length;while(i<r){var a=i+r>>>1;if(o(e[a],n)<0)i=a+1;else r=a}return i},right:function t(e,n,i,r){if(i==null)i=0;if(r==null)r=e.length;while(i<r){var a=i+r>>>1;if(o(e[a],n)>0)r=a;else i=a+1}return i}}}function n(n){return function(t,e){return k(n(t),e)}}var i=S(k);var l=i.right;function c(t){return t===null?NaN:+t}function r(t,e){var n=t.length,i=0,r=-1,a=0,o,s,u=0;if(e==null){while(++r<n){if(!isNaN(o=c(t[r]))){s=o-a;a+=s/++i;u+=s*(o-a)}}}else{while(++r<n){if(!isNaN(o=c(e(t[r],r,t)))){s=o-a;a+=s/++i;u+=s*(o-a)}}}if(i>1)return u/(i-1)}function se(t,e){var n=r(t,e);return n?Math.sqrt(n):n}function ue(t,e){var n=t.length,i=-1,r,a,o;if(e==null){while(++i<n){if((r=t[i])!=null&&r>=r){a=o=r;while(++i<n){if((r=t[i])!=null){if(a>r)a=r;if(o<r)o=r}}}}}else{while(++i<n){if((r=e(t[i],i,t))!=null&&r>=r){a=o=r;while(++i<n){if((r=e(t[i],i,t))!=null){if(a>r)a=r;if(o<r)o=r}}}}}return[a,o]}function le(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(r);while(++i<r){a[i]=t+i*n}return a}var o=Math.sqrt(50),s=Math.sqrt(10),u=Math.sqrt(2);function vt(t,e,n){var i,r=-1,a,o,s;e=+e,t=+t,n=+n;if(t===e&&n>0)return[t];if(i=e<t)a=t,t=e,e=a;if((s=f(t,e,n))===0||!isFinite(s))return[];if(s>0){t=Math.ceil(t/s);e=Math.floor(e/s);o=new Array(a=Math.ceil(e-t+1));while(++r<a){o[r]=(t+r)*s}}else{t=Math.floor(t*s);e=Math.ceil(e*s);o=new Array(a=Math.ceil(t-e+1));while(++r<a){o[r]=(t-r)/s}}if(i)o.reverse();return o}function f(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=o?10:a>=s?5:a>=u?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=o?10:a>=s?5:a>=u?2:1)}function C(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),a=i/r;if(a>=o)r*=10;else if(a>=s)r*=5;else if(a>=u)r*=2;return e<t?-r:r}function zt(t,e,n){if(n==null)n=c;if(!(i=t.length))return;if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,a=Math.floor(r),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(r-a)}function ce(t,e){var n=t.length,i=-1,r,a;if(e==null){while(++i<n){if((r=t[i])!=null&&r>=r){a=r;while(++i<n){if((r=t[i])!=null&&r>a){a=r}}}}}else{while(++i<n){if((r=e(t[i],i,t))!=null&&r>=r){a=r;while(++i<n){if((r=e(t[i],i,t))!=null&&r>a){a=r}}}}}return a}function fe(t,e){var n=t.length,i=n,r=-1,a,o=0;if(e==null){while(++r<n){if(!isNaN(a=c(t[r])))o+=a;else--i}}else{while(++r<n){if(!isNaN(a=c(e(t[r],r,t))))o+=a;else--i}}if(i)return o/i}function he(t){var e=t.length,n,i=-1,r=0,a,o;while(++i<e){r+=t[i].length}a=new Array(r);while(--e>=0){o=t[e];n=o.length;while(--n>=0){a[--r]=o[n]}}return a}function de(t,e){var n=t.length,i=-1,r,a;if(e==null){while(++i<n){if((r=t[i])!=null&&r>=r){a=r;while(++i<n){if((r=t[i])!=null&&a>r){a=r}}}}}else{while(++i<n){if((r=e(t[i],i,t))!=null&&r>=r){a=r;while(++i<n){if((r=e(t[i],i,t))!=null&&a>r){a=r}}}}}return a}function ge(t,e){var n=t.length,i=-1,r,a=0;if(e==null){while(++i<n){if(r=+t[i])a+=r}}else{while(++i<n){if(r=+e(t[i],i,t))a+=r}}return a}var h=new Date,d=new Date;function g(a,o,n,i){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var i=[],r;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return i;do{i.push(r=new Date(+t)),o(t,n),a(t)}while(r<t&&t<e);return i};s.filter=function(n){return g(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){h.setTime(+t),d.setTime(+e);a(h),a(d);return Math.floor(n(h,d))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(i?function(t){return i(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var a=g(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});a.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return a;return g(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var p=1e3;var v=6e4;var m=36e5;var y=864e5;var _=6048e5;var mt=g(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*p)},function(t,e){return(e-t)/p},function(t){return t.getUTCSeconds()});var yt=g(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*p)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getMinutes()});var _t=g(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*p-t.getMinutes()*v)},function(t,e){t.setTime(+t+e*m)},function(t,e){return(e-t)/m},function(t){return t.getHours()});var bt=g(function(t){t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/y},function(t){return t.getDate()-1});function b(e){return g(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*v)/_})}var wt=b(0);var W=b(1);var w=b(2);var x=b(3);var E=b(4);var A=b(5);var R=b(6);var xt=g(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var kt=g(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});kt.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:g(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var M=g(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*v)},function(t,e){return(e-t)/v},function(t){return t.getUTCMinutes()});var T=g(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*m)},function(t,e){return(e-t)/m},function(t){return t.getUTCHours()});var q=g(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/y},function(t){return t.getUTCDate()-1});function P(e){return g(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/_})}var O=P(0);var K=P(1);var B=P(2);var D=P(3);var N=P(4);var z=P(5);var j=P(6);var L=g(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var F=g(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});F.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:g(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};function Y(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);e.setFullYear(t.y);return e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function X(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));e.setUTCFullYear(t.y);return e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Z(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function I(t){var i=t.dateTime,r=t.date,a=t.time,e=t.periods,n=t.days,o=t.shortDays,s=t.months,u=t.shortMonths;var l=tt(e),c=et(e),f=tt(n),h=et(n),d=tt(o),g=et(o),p=tt(s),v=et(s),m=tt(u),y=et(u);var _={a:B,A:D,b:N,B:z,c:null,d:Tt,e:Tt,f:Nt,g:Kt,G:Xt,H:Pt,I:Ot,j:Bt,L:Dt,m:jt,M:Lt,p:j,q:L,Q:Ee,s:Ae,S:Ft,u:It,U:Ht,V:Vt,w:Ut,W:Wt,x:null,X:null,y:qt,Y:Yt,Z:Zt,"%":Ce};var b={a:F,A:I,b:H,B:G,c:null,d:$t,e:$t,f:ne,g:we,G:ke,H:Jt,I:Qt,j:te,L:ee,m:ie,M:re,p:V,q:U,Q:Ee,s:Ae,S:ae,u:oe,U:pe,V:me,w:ye,W:_e,x:null,X:null,y:be,Y:xe,Z:Se,"%":Ce};var w={a:E,A:A,b:R,B:M,c:T,d:ht,e:ht,f:Et,g:ut,G:st,H:gt,I:gt,j:dt,L:Ct,m:ft,M:pt,p:C,q:ct,Q:Rt,s:Mt,S:St,u:it,U:rt,V:at,w:nt,W:ot,x:P,X:O,y:ut,Y:st,Z:lt,"%":At};_.x=x(r,_);_.X=x(a,_);_.c=x(i,_);b.x=x(r,b);b.X=x(a,b);b.c=x(i,b);function x(u,l){return function(t){var e=[],n=-1,i=0,r=u.length,a,o,s;if(!(t instanceof Date))t=new Date(+t);while(++n<r){if(u.charCodeAt(n)===37){e.push(u.slice(i,n));if((o=J[a=u.charAt(++n)])!=null)a=u.charAt(++n);else o=a==="e"?" ":"0";if(s=l[a])a=s(t,o);e.push(a);i=n+1}}e.push(u.slice(i,n));return e.join("")}}function k(a,o){return function(t){var e=Z(1900,undefined,1),n=S(e,a,t+="",0),i,r;if(n!=t.length)return null;if("Q"in e)return new Date(e.Q);if("s"in e)return new Date(e.s*1e3+("L"in e?e.L:0));if(o&&!("Z"in e))e.Z=0;if("p"in e)e.H=e.H%12+e.p*12;if(e.m===undefined)e.m="q"in e?e.q:0;if("V"in e){if(e.V<1||e.V>53)return null;if(!("w"in e))e.w=1;if("Z"in e){i=X(Z(e.y,0,1)),r=i.getUTCDay();i=r>4||r===0?K.ceil(i):K(i);i=q.offset(i,(e.V-1)*7);e.y=i.getUTCFullYear();e.m=i.getUTCMonth();e.d=i.getUTCDate()+(e.w+6)%7}else{i=Y(Z(e.y,0,1)),r=i.getDay();i=r>4||r===0?W.ceil(i):W(i);i=bt.offset(i,(e.V-1)*7);e.y=i.getFullYear();e.m=i.getMonth();e.d=i.getDate()+(e.w+6)%7}}else if("W"in e||"U"in e){if(!("w"in e))e.w="u"in e?e.u%7:"W"in e?1:0;r="Z"in e?X(Z(e.y,0,1)).getUTCDay():Y(Z(e.y,0,1)).getDay();e.m=0;e.d="W"in e?(e.w+6)%7+e.W*7-(r+5)%7:e.w+e.U*7-(r+6)%7}if("Z"in e){e.H+=e.Z/100|0;e.M+=e.Z%100;return X(e)}return Y(e)}}function S(t,e,n,i){var r=0,a=e.length,o=n.length,s,u;while(r<a){if(i>=o)return-1;s=e.charCodeAt(r++);if(s===37){s=e.charAt(r++);u=w[s in J?e.charAt(r++):s];if(!u||(i=u(t,n,i))<0)return-1}else if(s!=n.charCodeAt(i++)){return-1}}return i}function C(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=c[i[0].toLowerCase()],n+i[0].length):-1}function E(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g[i[0].toLowerCase()],n+i[0].length):-1}function A(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=h[i[0].toLowerCase()],n+i[0].length):-1}function R(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=y[i[0].toLowerCase()],n+i[0].length):-1}function M(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=v[i[0].toLowerCase()],n+i[0].length):-1}function T(t,e,n){return S(t,i,e,n)}function P(t,e,n){return S(t,r,e,n)}function O(t,e,n){return S(t,a,e,n)}function B(t){return o[t.getDay()]}function D(t){return n[t.getDay()]}function N(t){return u[t.getMonth()]}function z(t){return s[t.getMonth()]}function j(t){return e[+(t.getHours()>=12)]}function L(t){return 1+~~(t.getMonth()/3)}function F(t){return o[t.getUTCDay()]}function I(t){return n[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function G(t){return s[t.getUTCMonth()]}function V(t){return e[+(t.getUTCHours()>=12)]}function U(t){return 1+~~(t.getUTCMonth()/3)}return{format:function t(e){var n=x(e+="",_);n.toString=function(){return e};return n},parse:function t(e){var n=k(e+="",false);n.toString=function(){return e};return n},utcFormat:function t(e){var n=x(e+="",b);n.toString=function(){return e};return n},utcParse:function t(e){var n=k(e+="",true);n.toString=function(){return e};return n}}}var J={"-":"",_:" ",0:"0"},H=/^\s*\d+/,G=/^%/,V=/[\\^$*+?|[\]().{}]/g;function U(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",a=r.length;return i+(a<n?new Array(n-a+1).join(e)+r:r)}function Q(t){return t.replace(V,"\\$&")}function tt(t){return new RegExp("^(?:"+t.map(Q).join("|")+")","i")}function et(t){var e={},n=-1,i=t.length;while(++n<i){e[t[n].toLowerCase()]=n}return e}function nt(t,e,n){var i=H.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function it(t,e,n){var i=H.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function rt(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function at(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function ot(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function st(t,e,n){var i=H.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function ut(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function lt(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ct(t,e,n){var i=H.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function ft(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function ht(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function dt(t,e,n){var i=H.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function gt(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function pt(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function St(t,e,n){var i=H.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Ct(t,e,n){var i=H.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Et(t,e,n){var i=H.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function At(t,e,n){var i=G.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Rt(t,e,n){var i=H.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Mt(t,e,n){var i=H.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Tt(t,e){return U(t.getDate(),e,2)}function Pt(t,e){return U(t.getHours(),e,2)}function Ot(t,e){return U(t.getHours()%12||12,e,2)}function Bt(t,e){return U(1+bt.count(kt(t),t),e,3)}function Dt(t,e){return U(t.getMilliseconds(),e,3)}function Nt(t,e){return Dt(t,e)+"000"}function jt(t,e){return U(t.getMonth()+1,e,2)}function Lt(t,e){return U(t.getMinutes(),e,2)}function Ft(t,e){return U(t.getSeconds(),e,2)}function It(t){var e=t.getDay();return e===0?7:e}function Ht(t,e){return U(wt.count(kt(t)-1,t),e,2)}function Gt(t){var e=t.getDay();return e>=4||e===0?E(t):E.ceil(t)}function Vt(t,e){t=Gt(t);return U(E.count(kt(t),t)+(kt(t).getDay()===4),e,2)}function Ut(t){return t.getDay()}function Wt(t,e){return U(W.count(kt(t)-1,t),e,2)}function qt(t,e){return U(t.getFullYear()%100,e,2)}function Kt(t,e){t=Gt(t);return U(t.getFullYear()%100,e,2)}function Yt(t,e){return U(t.getFullYear()%1e4,e,4)}function Xt(t,e){var n=t.getDay();t=n>=4||n===0?E(t):E.ceil(t);return U(t.getFullYear()%1e4,e,4)}function Zt(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+U(e/60|0,"0",2)+U(e%60,"0",2)}function $t(t,e){return U(t.getUTCDate(),e,2)}function Jt(t,e){return U(t.getUTCHours(),e,2)}function Qt(t,e){return U(t.getUTCHours()%12||12,e,2)}function te(t,e){return U(1+q.count(F(t),t),e,3)}function ee(t,e){return U(t.getUTCMilliseconds(),e,3)}function ne(t,e){return ee(t,e)+"000"}function ie(t,e){return U(t.getUTCMonth()+1,e,2)}function re(t,e){return U(t.getUTCMinutes(),e,2)}function ae(t,e){return U(t.getUTCSeconds(),e,2)}function oe(t){var e=t.getUTCDay();return e===0?7:e}function pe(t,e){return U(O.count(F(t)-1,t),e,2)}function ve(t){var e=t.getUTCDay();return e>=4||e===0?N(t):N.ceil(t)}function me(t,e){t=ve(t);return U(N.count(F(t),t)+(F(t).getUTCDay()===4),e,2)}function ye(t){return t.getUTCDay()}function _e(t,e){return U(K.count(F(t)-1,t),e,2)}function be(t,e){return U(t.getUTCFullYear()%100,e,2)}function we(t,e){t=ve(t);return U(t.getUTCFullYear()%100,e,2)}function xe(t,e){return U(t.getUTCFullYear()%1e4,e,4)}function ke(t,e){var n=t.getUTCDay();t=n>=4||n===0?N(t):N.ceil(t);return U(t.getUTCFullYear()%1e4,e,4)}function Se(){return"+0000"}function Ce(){return"%"}function Ee(t){return+t}function Ae(t){return Math.floor(+t/1e3)}var Re;var Me;var Te;var Pe;var Oe;Be({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Be(t){Re=I(t);Me=Re.format;Te=Re.parse;Pe=Re.utcFormat;Oe=Re.utcParse;return Re}function De(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Ne(t,e){switch(arguments.length){case 0:break;case 1:this.interpolator(t);break;default:this.interpolator(e).domain(t);break}return this}var ze="$";function je(){}je.prototype=Le.prototype={constructor:je,has:function t(e){return ze+e in this},get:function t(e){return this[ze+e]},set:function t(e,n){this[ze+e]=n;return this},remove:function t(e){var n=ze+e;return n in this&&delete this[n]},clear:function t(){for(var e in this){if(e[0]===ze)delete this[e]}},keys:function t(){var t=[];for(var e in this){if(e[0]===ze)t.push(e.slice(1))}return t},values:function t(){var t=[];for(var e in this){if(e[0]===ze)t.push(this[e])}return t},entries:function t(){var t=[];for(var e in this){if(e[0]===ze)t.push({key:e.slice(1),value:this[e]})}return t},size:function t(){var t=0;for(var e in this){if(e[0]===ze)++t}return t},empty:function t(){for(var e in this){if(e[0]===ze)return false}return true},each:function t(e){for(var n in this){if(n[0]===ze)e(this[n],n.slice(1),this)}}};function Le(t,e){var n=new je;if(t instanceof je)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var i=-1,r=t.length,a;if(e==null)while(++i<r){n.set(i,t[i])}else while(++i<r){n.set(e(a=t[i],i,t),a)}}else if(t)for(var o in t){n.set(o,t[o])}return n}function Fe(){var h=[],a=[],d,g,n;function p(t,n,i,r){if(n>=h.length){if(d!=null)t.sort(d);return g!=null?g(t):t}var e=-1,a=t.length,o=h[n++],s,u,l=Le(),c,f=i();while(++e<a){if(c=l.get(s=o(u=t[e])+"")){c.push(u)}else{l.set(s,[u])}}l.each(function(t,e){r(f,e,p(t,n,i,r))});return f}function o(t,n){if(++n>h.length)return t;var i,r=a[n-1];if(g!=null&&n>=h.length)i=t.entries();else i=[],t.each(function(t,e){i.push({key:e,values:o(t,n)})});return r!=null?i.sort(function(t,e){return r(t.key,e.key)}):i}return n={object:function t(e){return p(e,0,Ie,He)},map:function t(e){return p(e,0,Ge,Ve)},entries:function t(e){return o(p(e,0,Ge,Ve),0)},key:function t(e){h.push(e);return n},sortKeys:function t(e){a[h.length-1]=e;return n},sortValues:function t(e){d=e;return n},rollup:function t(e){g=e;return n}}}function Ie(){return{}}function He(t,e,n){t[e]=n}function Ge(){return Le()}function Ve(t,e,n){t.set(e,n)}function Ue(){}var We=Le.prototype;Ue.prototype=qe.prototype={constructor:Ue,has:We.has,add:function t(e){e+="";this[ze+e]=e;return this},remove:We.remove,clear:We.clear,values:We.keys,size:We.size,empty:We.empty,each:We.each};function qe(t,e){var n=new Ue;if(t instanceof Ue)t.each(function(t){n.add(t)});else if(t){var i=-1,r=t.length;if(e==null)while(++i<r){n.add(t[i])}else while(++i<r){n.add(e(t[i],i,t))}}return n}function Ke(t){var e=[];for(var n in t){e.push(n)}return e}var Ye=Array.prototype;var Xe=Ye.map;var Ze=Ye.slice;var $e={name:"implicit"};function Je(){var a=Le(),o=[],i=[],r=$e;function s(t){var e=t+"",n=a.get(e);if(!n){if(r!==$e)return r;a.set(e,n=o.push(t))}return i[(n-1)%i.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=Le();var e=-1,n=t.length,i,r;while(++e<n){if(!a.has(r=(i=t[e])+""))a.set(r,o.push(i))}return s};s.range=function(t){return arguments.length?(i=Ze.call(t),s):i.slice()};s.unknown=function(t){return arguments.length?(r=t,s):r};s.copy=function(){return Je(o,i).unknown(r)};De.apply(s,arguments);return s}function Qe(){var t=Je().unknown(undefined),a=t.domain,o=t.range,s=[0,1],u,l,c=false,f=0,h=0,d=.5;delete t.unknown;function e(){var t=a().length,e=s[1]<s[0],n=s[e-0],i=s[1-e];u=(i-n)/Math.max(1,t-f+h*2);if(c)u=Math.floor(u);n+=(i-n-u*(t-f))*d;l=u*(1-f);if(c)n=Math.round(n),l=Math.round(l);var r=le(t).map(function(t){return n+u*t});return o(e?r.reverse():r)}t.domain=function(t){return arguments.length?(a(t),e()):a()};t.range=function(t){return arguments.length?(s=[+t[0],+t[1]],e()):s.slice()};t.rangeRound=function(t){return s=[+t[0],+t[1]],c=true,e()};t.bandwidth=function(){return l};t.step=function(){return u};t.round=function(t){return arguments.length?(c=!!t,e()):c};t.padding=function(t){return arguments.length?(f=Math.min(1,h=+t),e()):f};t.paddingInner=function(t){return arguments.length?(f=Math.min(1,t),e()):f};t.paddingOuter=function(t){return arguments.length?(h=+t,e()):h};t.align=function(t){return arguments.length?(d=Math.max(0,Math.min(1,t)),e()):d};t.copy=function(){return Qe(a(),s).round(c).paddingInner(f).paddingOuter(h).align(d)};return De.apply(e(),arguments)}function tn(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return tn(e())};return t}function en(){return tn(Qe.apply(null,arguments).paddingInner(1))}function nn(t,e,n){t.prototype=e.prototype=n;n.constructor=t}function rn(t,e){var n=Object.create(t.prototype);for(var i in e){n[i]=e[i]}return n}function an(){}var on=.7;var sn=1/on;var un="\\s*([+-]?\\d+)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",cn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",fn=/^#([0-9a-f]{3,8})$/,hn=new RegExp("^rgb\\("+[un,un,un]+"\\)$"),dn=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),gn=new RegExp("^rgba\\("+[un,un,un,ln]+"\\)$"),pn=new RegExp("^rgba\\("+[cn,cn,cn,ln]+"\\)$"),vn=new RegExp("^hsl\\("+[ln,cn,cn]+"\\)$"),mn=new RegExp("^hsla\\("+[ln,cn,cn,ln]+"\\)$");var yn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};nn(an,xn,{copy:function t(e){return Object.assign(new this.constructor,this,e)},displayable:function t(){return this.rgb().displayable()},hex:_n,formatHex:_n,formatHsl:bn,formatRgb:wn,toString:wn});function _n(){return this.rgb().formatHex()}function bn(){return On(this).formatHsl()}function wn(){return this.rgb().formatRgb()}function xn(t){var e,n;t=(t+"").trim().toLowerCase();return(e=fn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?kn(e):n===3?new An(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Sn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Sn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=hn.exec(t))?new An(e[1],e[2],e[3],1):(e=dn.exec(t))?new An(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=gn.exec(t))?Sn(e[1],e[2],e[3],e[4]):(e=pn.exec(t))?Sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=vn.exec(t))?Pn(e[1],e[2]/100,e[3]/100,1):(e=mn.exec(t))?Pn(e[1],e[2]/100,e[3]/100,e[4]):yn.hasOwnProperty(t)?kn(yn[t]):t==="transparent"?new An(NaN,NaN,NaN,0):null}function kn(t){return new An(t>>16&255,t>>8&255,t&255,1)}function Sn(t,e,n,i){if(i<=0)t=e=n=NaN;return new An(t,e,n,i)}function Cn(t){if(!(t instanceof an))t=xn(t);if(!t)return new An;t=t.rgb();return new An(t.r,t.g,t.b,t.opacity)}function En(t,e,n,i){return arguments.length===1?Cn(t):new An(t,e,n,i==null?1:i)}function An(t,e,n,i){this.r=+t;this.g=+e;this.b=+n;this.opacity=+i}nn(An,En,rn(an,{brighter:function t(e){e=e==null?sn:Math.pow(sn,e);return new An(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function t(e){e=e==null?on:Math.pow(on,e);return new An(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function t(){return this},displayable:function t(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Rn,formatHex:Rn,formatRgb:Mn,toString:Mn}));function Rn(){return"#"+Tn(this.r)+Tn(this.g)+Tn(this.b)}function Mn(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Tn(t){t=Math.max(0,Math.min(255,Math.round(t)||0));return(t<16?"0":"")+t.toString(16)}function Pn(t,e,n,i){if(i<=0)t=e=n=NaN;else if(n<=0||n>=1)t=e=NaN;else if(e<=0)t=NaN;return new Dn(t,e,n,i)}function On(t){if(t instanceof Dn)return new Dn(t.h,t.s,t.l,t.opacity);if(!(t instanceof an))t=xn(t);if(!t)return new Dn;if(t instanceof Dn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),o=NaN,s=a-r,u=(a+r)/2;if(s){if(e===a)o=(n-i)/s+(n<i)*6;else if(n===a)o=(i-e)/s+2;else o=(e-n)/s+4;s/=u<.5?a+r:2-a-r;o*=60}else{s=u>0&&u<1?0:o}return new Dn(o,s,u,t.opacity)}function Bn(t,e,n,i){return arguments.length===1?On(t):new Dn(t,e,n,i==null?1:i)}function Dn(t,e,n,i){this.h=+t;this.s=+e;this.l=+n;this.opacity=+i}nn(Dn,Bn,rn(an,{brighter:function t(e){e=e==null?sn:Math.pow(sn,e);return new Dn(this.h,this.s,this.l*e,this.opacity)},darker:function t(e){e=e==null?on:Math.pow(on,e);return new Dn(this.h,this.s,this.l*e,this.opacity)},rgb:function t(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,i=this.l,r=i+(i<.5?i:1-i)*n,a=2*i-r;return new An(Nn(e>=240?e-240:e+120,a,r),Nn(e,a,r),Nn(e<120?e+240:e-120,a,r),this.opacity)},displayable:function t(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function t(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Nn(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function zn(t){return function(){return t}}function jn(e,n){return function(t){return e+t*n}}function Ln(e,n,i){return e=Math.pow(e,i),n=Math.pow(n,i)-e,i=1/i,function(t){return Math.pow(e+t*n,i)}}function Fn(n){return(n=+n)===1?In:function(t,e){return e-t?Ln(t,e,n):zn(isNaN(t)?e:t)}}function In(t,e){var n=e-t;return n?jn(t,n):zn(isNaN(t)?e:t)}var Hn=function t(e){var o=Fn(e);function n(e,t){var n=o((e=En(e)).r,(t=En(t)).r),i=o(e.g,t.g),r=o(e.b,t.b),a=In(e.opacity,t.opacity);return function(t){e.r=n(t);e.g=i(t);e.b=r(t);e.opacity=a(t);return e+""}}n.gamma=t;return n}(1);function Gn(e,n){if(!n)n=[];var i=e?Math.min(n.length,e.length):0,r=n.slice(),a;return function(t){for(a=0;a<i;++a){r[a]=e[a]*(1-t)+n[a]*t}return r}}function Vn(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Un(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),a=new Array(n),o;for(o=0;o<i;++o){r[o]=Qn(t[o],e[o])}for(;o<n;++o){a[o]=e[o]}return function(t){for(o=0;o<i;++o){a[o]=r[o](t)}return a}}function Wn(e,n){var i=new Date;return e=+e,n=+n,function(t){return i.setTime(e*(1-t)+n*t),i}}function qn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function Kn(t,e){var n={},i={},r;if(t===null||_typeof2(t)!=="object")t={};if(e===null||_typeof2(e)!=="object")e={};for(r in e){if(r in t){n[r]=Qn(t[r],e[r])}else{i[r]=e[r]}}return function(t){for(r in n){i[r]=n[r](t)}return i}}var Yn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xn=new RegExp(Yn.source,"g");function Zn(t){return function(){return t}}function $n(e){return function(t){return e(t)+""}}function Jn(t,i){var e=Yn.lastIndex=Xn.lastIndex=0,n,r,a,o=-1,s=[],u=[];t=t+"",i=i+"";while((n=Yn.exec(t))&&(r=Xn.exec(i))){if((a=r.index)>e){a=i.slice(e,a);if(s[o])s[o]+=a;else s[++o]=a}if((n=n[0])===(r=r[0])){if(s[o])s[o]+=r;else s[++o]=r}else{s[++o]=null;u.push({i:o,x:qn(n,r)})}e=Xn.lastIndex}if(e<i.length){a=i.slice(e);if(s[o])s[o]+=a;else s[++o]=a}return s.length<2?u[0]?$n(u[0].x):Zn(i):(i=u.length,function(t){for(var e=0,n;e<i;++e){s[(n=u[e]).i]=n.x(t)}return s.join("")})}function Qn(t,e){var n=_typeof2(e),i;return e==null||n==="boolean"?zn(e):(n==="number"?qn:n==="string"?(i=xn(e))?(e=i,Hn):Jn:e instanceof xn?Hn:e instanceof Date?Wn:Vn(e)?Gn:Array.isArray(e)?Un:typeof e.valueOf!=="function"&&typeof e.toString!=="function"||isNaN(e)?Kn:qn)(t,e)}function ti(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}var ei=180/Math.PI;var ni={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ii(t,e,n,i,r,a){var o,s,u;if(o=Math.sqrt(t*t+e*e))t/=o,e/=o;if(u=t*n+e*i)n-=t*u,i-=e*u;if(s=Math.sqrt(n*n+i*i))n/=s,i/=s,u/=s;if(t*i<e*n)t=-t,e=-e,u=-u,o=-o;return{translateX:r,translateY:a,rotate:Math.atan2(e,t)*ei,skewX:Math.atan(u)*ei,scaleX:o,scaleY:s}}var ri,ai,oi,si;function ui(t){if(t==="none")return ni;if(!ri)ri=document.createElement("DIV"),ai=document.documentElement,oi=document.defaultView;ri.style.transform=t;t=oi.getComputedStyle(ai.appendChild(ri),null).getPropertyValue("transform");ai.removeChild(ri);t=t.slice(7,-1).split(",");return ii(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5])}function li(t){if(t==null)return ni;if(!si)si=document.createElementNS("http://www.w3.org/2000/svg","g");si.setAttribute("transform",t);if(!(t=si.transform.baseVal.consolidate()))return ni;t=t.matrix;return ii(t.a,t.b,t.c,t.d,t.e,t.f)}function ci(n,s,u,r){function l(t){return t.length?t.pop()+" ":""}function i(t,e,n,i,r,a){if(t!==n||e!==i){var o=r.push("translate(",null,s,null,u);a.push({i:o-4,x:qn(t,n)},{i:o-2,x:qn(e,i)})}else if(n||i){r.push("translate("+n+s+i+u)}}function o(t,e,n,i){if(t!==e){if(t-e>180)e+=360;else if(e-t>180)t+=360;i.push({i:n.push(l(n)+"rotate(",null,r)-2,x:qn(t,e)})}else if(e){n.push(l(n)+"rotate("+e+r)}}function c(t,e,n,i){if(t!==e){i.push({i:n.push(l(n)+"skewX(",null,r)-2,x:qn(t,e)})}else if(e){n.push(l(n)+"skewX("+e+r)}}function f(t,e,n,i,r,a){if(t!==n||e!==i){var o=r.push(l(r)+"scale(",null,",",null,")");a.push({i:o-4,x:qn(t,n)},{i:o-2,x:qn(e,i)})}else if(n!==1||i!==1){r.push(l(r)+"scale("+n+","+i+")")}}return function(t,e){var r=[],a=[];t=n(t),e=n(e);i(t.translateX,t.translateY,e.translateX,e.translateY,r,a);o(t.rotate,e.rotate,r,a);c(t.skewX,e.skewX,r,a);f(t.scaleX,t.scaleY,e.scaleX,e.scaleY,r,a);t=e=null;return function(t){var e=-1,n=a.length,i;while(++e<n){r[(i=a[e]).i]=i.x(t)}return r.join("")}}}var fi=ci(ui,"px, ","px)","deg)");var hi=ci(li,", ",")",")");var di=Math.SQRT2,gi=2,pi=4,vi=1e-12;function mi(t){return((t=Math.exp(t))+1/t)/2}function yi(t){return((t=Math.exp(t))-1/t)/2}function _i(t){return((t=Math.exp(2*t))-1)/(t+1)}function bi(t,e){var a=t[0],o=t[1],s=t[2],n=e[0],i=e[1],r=e[2],u=n-a,l=i-o,c=u*u+l*l,f,h;if(c<vi){h=Math.log(r/s)/di;f=function t(e){return[a+e*u,o+e*l,s*Math.exp(di*e*h)]}}else{var d=Math.sqrt(c),g=(r*r-s*s+pi*c)/(2*s*gi*d),p=(r*r-s*s-pi*c)/(2*r*gi*d),v=Math.log(Math.sqrt(g*g+1)-g),m=Math.log(Math.sqrt(p*p+1)-p);h=(m-v)/di;f=function t(e){var n=e*h,i=mi(v),r=s/(gi*d)*(i*_i(di*n+v)-yi(v));return[a+r*u,o+r*l,s*i/mi(di*n+v)]}}f.duration=h*1e3;return f}function wi(t){return function(){return t}}function xi(t){return+t}var ki=[0,1];function Si(t){return t}function Ci(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:wi(isNaN(n)?NaN:.5)}function Ei(t){var e=t[0],n=t[t.length-1],i;if(e>n)i=e,e=n,n=i;return function(t){return Math.max(e,Math.min(n,t))}}function Ai(t,e,n){var i=t[0],r=t[1],a=e[0],o=e[1];if(r<i)i=Ci(r,i),a=n(o,a);else i=Ci(i,r),a=n(a,o);return function(t){return a(i(t))}}function Ri(n,t,e){var i=Math.min(n.length,t.length)-1,r=new Array(i),a=new Array(i),o=-1;if(n[i]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<i){r[o]=Ci(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=l(n,t,1,i)-1;return a[e](r[e](t))}}function Mi(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ti(){var e=ki,n=ki,i=Qn,r,a,o,s=Si,u,l,c;function f(){u=Math.min(e.length,n.length)>2?Ri:Ai;l=c=null;return h}function h(t){return isNaN(t=+t)?o:(l||(l=u(e.map(r),n,i)))(r(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(r),qn)))(t)))};h.domain=function(t){return arguments.length?(e=Xe.call(t,xi),s===Si||(s=Ei(e)),f()):e.slice()};h.range=function(t){return arguments.length?(n=Ze.call(t),f()):n.slice()};h.rangeRound=function(t){return n=Ze.call(t),i=ti,f()};h.clamp=function(t){return arguments.length?(s=t?Ei(e):Si,h):s!==Si};h.interpolate=function(t){return arguments.length?(i=t,f()):i};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){r=t,a=e;return f()}}function Pi(t,e){return Ti()(t,e)}function Oi(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Bi(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Di(t){return t=Bi(Math.abs(t)),t?t[1]:NaN}function Ni(s,u){return function(t,e){var n=t.length,i=[],r=0,a=s[0],o=0;while(n>0&&a>0){if(o+a+1>e)a=Math.max(1,e-o);i.push(t.substring(n-=a,n+a));if((o+=a+1)>e)break;a=s[r=(r+1)%s.length]}return i.reverse().join(u)}}function zi(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var ji=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Li(t){if(!(e=ji.exec(t)))throw new Error("invalid format: "+t);var e;return new Fi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Li.prototype=Fi.prototype;function Fi(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}Fi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ii(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n){switch(t[n]){case".":i=r=n;break;case"0":if(i===0)i=n;r=n;break;default:if(!+t[n])break t;if(i>0)i=0;break}}return i>0?t.slice(0,i)+t.slice(r+1):t}var Hi;function Gi(t,e){var n=Bi(t,e);if(!n)return t+"";var i=n[0],r=n[1],a=r-(Hi=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Bi(t,Math.max(0,e+a-1))[0]}function Vi(t,e){var n=Bi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}var Ui={"%":function t(e,n){return(e*100).toFixed(n)},b:function t(e){return Math.round(e).toString(2)},c:function t(e){return e+""},d:Oi,e:function t(e,n){return e.toExponential(n)},f:function t(e,n){return e.toFixed(n)},g:function t(e,n){return e.toPrecision(n)},o:function t(e){return Math.round(e).toString(8)},p:function t(e,n){return Vi(e*100,n)},r:Vi,s:Gi,X:function t(e){return Math.round(e).toString(16).toUpperCase()},x:function t(e){return Math.round(e).toString(16)}};function Wi(t){return t}var qi=Array.prototype.map,Ki=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yi(t){var x=t.grouping===undefined||t.thousands===undefined?Wi:Ni(qi.call(t.grouping,Number),t.thousands+""),i=t.currency===undefined?"":t.currency[0]+"",r=t.currency===undefined?"":t.currency[1]+"",k=t.decimal===undefined?".":t.decimal+"",S=t.numerals===undefined?Wi:zi(qi.call(t.numerals,String)),a=t.percent===undefined?"%":t.percent+"",C=t.minus===undefined?"-":t.minus+"",E=t.nan===undefined?"NaN":t.nan+"";function o(t){t=Li(t);var l=t.fill,c=t.align,f=t.sign,e=t.symbol,h=t.zero,d=t.width,g=t.comma,p=t.precision,v=t.trim,m=t.type;if(m==="n")g=true,m="g";else if(!Ui[m])p===undefined&&(p=12),v=true,m="g";if(h||l==="0"&&c==="=")h=true,l="0",c="=";var y=e==="$"?i:e==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=e==="$"?r:/[%p]/.test(m)?a:"";var b=Ui[m],w=/[defgprs%]/.test(m);p=p===undefined?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function n(t){var e=y,n=_,i,r,a;if(m==="c"){n=b(t)+n;t=""}else{t=+t;var o=t<0||1/t<0;t=isNaN(t)?E:b(Math.abs(t),p);if(v)t=Ii(t);if(o&&+t===0&&f!=="+")o=false;e=(o?f==="("?f:C:f==="-"||f==="("?"":f)+e;n=(m==="s"?Ki[8+Hi/3]:"")+n+(o&&f==="("?")":"");if(w){i=-1,r=t.length;while(++i<r){if(a=t.charCodeAt(i),48>a||a>57){n=(a===46?k+t.slice(i+1):t.slice(i))+n;t=t.slice(0,i);break}}}}if(g&&!h)t=x(t,Infinity);var s=e.length+t.length+n.length,u=s<d?new Array(d-s+1).join(l):"";if(g&&h)t=x(u+t,u.length?d-n.length:Infinity),u="";switch(c){case"<":t=e+t+n+u;break;case"=":t=e+u+t+n;break;case"^":t=u.slice(0,s=u.length>>1)+e+t+n+u.slice(s);break;default:t=u+e+t+n;break}return S(t)}n.toString=function(){return t+""};return n}function e(t,e){var n=o((t=Li(t),t.type="f",t)),i=Math.max(-8,Math.min(8,Math.floor(Di(e)/3)))*3,r=Math.pow(10,-i),a=Ki[8+i/3];return function(t){return n(r*t)+a}}return{format:o,formatPrefix:e}}var Xi;var Zi;var $i;Ji({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Ji(t){Xi=Yi(t);Zi=Xi.format;$i=Xi.formatPrefix;return Xi}function Qi(t){return Math.max(0,-Di(Math.abs(t)))}function tr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Di(e)/3)))*3-Di(Math.abs(t)))}function er(t,e){t=Math.abs(t),e=Math.abs(e)-t;return Math.max(0,Di(e)-Di(t))+1}function nr(t,e,n,i){var r=C(t,e,n),a;i=Li(i==null?",f":i);switch(i.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(i.precision==null&&!isNaN(a=tr(r,o)))i.precision=a;return $i(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(a=er(r,Math.max(Math.abs(t),Math.abs(e)))))i.precision=a-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(a=Qi(r)))i.precision=a-(i.type==="%")*2;break}}return Zi(i)}function ir(s){var u=s.domain;s.ticks=function(t){var e=u();return vt(e[0],e[e.length-1],t==null?10:t)};s.tickFormat=function(t,e){var n=u();return nr(n[0],n[n.length-1],t==null?10:t,e)};s.nice=function(t){if(t==null)t=10;var e=u(),n=0,i=e.length-1,r=e[n],a=e[i],o;if(a<r){o=r,r=a,a=o;o=n,n=i,i=o}o=f(r,a,t);if(o>0){r=Math.floor(r/o)*o;a=Math.ceil(a/o)*o;o=f(r,a,t)}else if(o<0){r=Math.ceil(r*o)/o;a=Math.floor(a*o)/o;o=f(r,a,t)}if(o>0){e[n]=Math.floor(r/o)*o;e[i]=Math.ceil(a/o)*o;u(e)}else if(o<0){e[n]=Math.ceil(r*o)/o;e[i]=Math.floor(a*o)/o;u(e)}return s};return s}function rr(){var t=Pi(Si,Si);t.copy=function(){return Mi(t,rr())};De.apply(t,arguments);return ir(t)}function ar(e){var n;function i(t){return isNaN(t=+t)?n:t}i.invert=i;i.domain=i.range=function(t){return arguments.length?(e=Xe.call(t,xi),i):e.slice()};i.unknown=function(t){return arguments.length?(n=t,i):n};i.copy=function(){return ar(e).unknown(n)};e=arguments.length?Xe.call(e,xi):[0,1];return ir(i)}function or(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],a=t[i],o;if(a<r){o=n,n=i,i=o;o=r,r=a,a=o}t[n]=e.floor(r);t[i]=e.ceil(a);return t}function sr(t){return Math.log(t)}function ur(t){return Math.exp(t)}function lr(t){return-Math.log(-t)}function cr(t){return-Math.exp(-t)}function fr(t){return isFinite(t)?+("1e"+t):t<0?0:t}function hr(e){return e===10?fr:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function dr(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function gr(e){return function(t){return-e(-t)}}function pr(t){var e=t(sr,ur),h=e.domain,d=10,g,p;function n(){g=dr(d),p=hr(d);if(h()[0]<0){g=gr(g),p=gr(p);t(lr,cr)}else{t(sr,ur)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],i=e[e.length-1],r;if(r=i<n)a=n,n=i,i=a;var a=g(n),o=g(i),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.round(a)-1,o=Math.round(o)+1;if(n>0)for(;a<o;++a){for(u=1,s=p(a);u<d;++u){l=s*u;if(l<n)continue;if(l>i)break;f.push(l)}}else for(;a<o;++a){for(u=d-1,s=p(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>i)break;f.push(l)}}}else{f=vt(a,o,Math.min(o-a,c)).map(p)}return r?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Zi(n);if(t===Infinity)return n;if(t==null)t=10;var i=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/p(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=i?n(t):""}};e.nice=function(){return h(or(h(),{floor:function t(e){return p(Math.floor(g(e)))},ceil:function t(e){return p(Math.ceil(g(e)))}}))};return e}function vr(){var t=pr(Ti()).domain([1,10]);t.copy=function(){return Mi(t,vr()).base(t.base())};De.apply(t,arguments);return t}function mr(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function yr(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _r(e){var n=1,t=e(mr(n),yr(n));t.constant=function(t){return arguments.length?e(mr(n=+t),yr(n)):n};return ir(t)}function br(){var t=_r(Ti());t.copy=function(){return Mi(t,br()).constant(t.constant())};return De.apply(t,arguments)}function wr(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function xr(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function kr(t){return t<0?-t*t:t*t}function Sr(t){var e=t(Si,Si),n=1;function i(){return n===1?t(Si,Si):n===.5?t(xr,kr):t(wr(n),wr(1/n))}e.exponent=function(t){return arguments.length?(n=+t,i()):n};return ir(e)}function Cr(){var t=Sr(Ti());t.copy=function(){return Mi(t,Cr()).exponent(t.exponent())};De.apply(t,arguments);return t}function Er(){return Cr.apply(null,arguments).exponent(.5)}function Ar(){var r=[],n=[],i=[],e;function a(){var t=0,e=Math.max(1,n.length);i=new Array(e-1);while(++t<e){i[t-1]=zt(r,t/e)}return o}function o(t){return isNaN(t=+t)?e:n[l(i,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e<i.length?i[e]:r[r.length-1]]};o.domain=function(t){if(!arguments.length)return r.slice();r=[];for(var e=0,n=t.length,i;e<n;++e){if(i=t[e],i!=null&&!isNaN(i=+i))r.push(i)}r.sort(k);return a()};o.range=function(t){return arguments.length?(n=Ze.call(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return i.slice()};o.copy=function(){return Ar().domain(r).range(n).unknown(e)};return De.apply(o,arguments)}function Rr(){var n=0,i=1,r=1,a=[.5],o=[0,1],e;function s(t){return t<=t?o[l(a,t,0,r)]:e}function u(){var t=-1;a=new Array(r);while(++t<r){a[t]=((t+1)*i-(t-r)*n)/(r+1)}return s}s.domain=function(t){return arguments.length?(n=+t[0],i=+t[1],u()):[n,i]};s.range=function(t){return arguments.length?(r=(o=Ze.call(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,a[0]]:e>=r?[a[r-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return Rr().domain([n,i]).range(o).unknown(e)};return De.apply(ir(s),arguments)}function Mr(){var n=[.5],i=[0,1],e,r=1;function a(t){return t<=t?i[l(n,t,0,r)]:e}a.domain=function(t){return arguments.length?(n=Ze.call(t),r=Math.min(n.length,i.length-1),a):n.slice()};a.range=function(t){return arguments.length?(i=Ze.call(t),r=Math.min(n.length,i.length-1),a):i.slice()};a.invertExtent=function(t){var e=i.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return Mr().domain(n).range(i).unknown(e)};return De.apply(a,arguments)}var Tr=1e3,Pr=Tr*60,Or=Pr*60,Br=Or*24,Dr=Br*7,Nr=Br*30,zr=Br*365;function jr(t){return new Date(t)}function Lr(t){return t instanceof Date?+t:+new Date(+t)}function Fr(o,e,n,i,r,a,s,u,l){var c=Pi(Si,Si),f=c.invert,h=c.domain;var d=l(".%L"),g=l(":%S"),p=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),y=l("%b %d"),_=l("%B"),b=l("%Y");var w=[[s,1,Tr],[s,5,5*Tr],[s,15,15*Tr],[s,30,30*Tr],[a,1,Pr],[a,5,5*Pr],[a,15,15*Pr],[a,30,30*Pr],[r,1,Or],[r,3,3*Or],[r,6,6*Or],[r,12,12*Or],[i,1,Br],[i,2,2*Br],[n,1,Dr],[e,1,Nr],[e,3,3*Nr],[o,1,zr]];function x(t){return(s(t)<t?d:a(t)<t?g:r(t)<t?p:i(t)<t?v:e(t)<t?n(t)<t?m:y:o(t)<t?_:b)(t)}function k(t,e,n,i){if(t==null)t=10;if(typeof t==="number"){var r=Math.abs(n-e)/t,a=S(function(t){return t[2]}).right(w,r);if(a===w.length){i=C(e/zr,n/zr,t);t=o}else if(a){a=w[r/w[a-1][2]<w[a][2]/r?a-1:a];i=a[1];t=a[0]}else{i=Math.max(C(e,n,t),1);t=u}}return i==null?t:t.every(i)}c.invert=function(t){return new Date(f(t))};c.domain=function(t){return arguments.length?h(Xe.call(t,Lr)):h().map(jr)};c.ticks=function(t,e){var n=h(),i=n[0],r=n[n.length-1],a=r<i,o;if(a)o=i,i=r,r=o;o=k(t,i,r,e);o=o?o.range(i,r+1):[];return a?o.reverse():o};c.tickFormat=function(t,e){return e==null?x:l(e)};c.nice=function(t,e){var n=h();return(t=k(t,n[0],n[n.length-1],e))?h(or(n,t)):c};c.copy=function(){return Mi(c,Fr(o,e,n,i,r,a,s,u,l))};return c}function Ir(){return De.apply(Fr(kt,xt,wt,bt,_t,yt,mt,a,Me).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Hr(){return De.apply(Fr(F,L,O,q,T,M,mt,a,Pe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gr(){var e=0,n=1,i,r,a,o,s=Si,u=false,l;function c(t){return isNaN(t=+t)?l:s(a===0?.5:(t=(o(t)-i)*a,u?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){return arguments.length?(i=o(e=+t[0]),r=o(n=+t[1]),a=i===r?0:1/(r-i),c):[e,n]};c.clamp=function(t){return arguments.length?(u=!!t,c):u};c.interpolator=function(t){return arguments.length?(s=t,c):s};c.unknown=function(t){return arguments.length?(l=t,c):l};return function(t){o=t,i=t(e),r=t(n),a=i===r?0:1/(r-i);return c}}function Vr(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ur(){var t=ir(Gr()(Si));t.copy=function(){return Vr(t,Ur())};return Ne.apply(t,arguments)}function Wr(){var t=pr(Gr()).domain([1,10]);t.copy=function(){return Vr(t,Wr()).base(t.base())};return Ne.apply(t,arguments)}function qr(){var t=_r(Gr());t.copy=function(){return Vr(t,qr()).constant(t.constant())};return Ne.apply(t,arguments)}function Kr(){var t=Sr(Gr());t.copy=function(){return Vr(t,Kr()).exponent(t.exponent())};return Ne.apply(t,arguments)}function Yr(){return Kr.apply(null,arguments).exponent(.5)}function Xr(){var r=[],e=Si;function a(t){if(!isNaN(t=+t))return e((l(r,t)-1)/(r.length-1))}a.domain=function(t){if(!arguments.length)return r.slice();r=[];for(var e=0,n=t.length,i;e<n;++e){if(i=t[e],i!=null&&!isNaN(i=+i))r.push(i)}r.sort(k);return a};a.interpolator=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return Xr(e).domain(r)};return Ne.apply(a,arguments)}function Zr(){var e=0,n=.5,i=1,r,a,o,s,u,l=Si,c,f=false,h;function d(t){return isNaN(t=+t)?h:(t=.5+((t=+c(t))-a)*(t<a?s:u),l(f?Math.max(0,Math.min(1,t)):t))}d.domain=function(t){return arguments.length?(r=c(e=+t[0]),a=c(n=+t[1]),o=c(i=+t[2]),s=r===a?0:.5/(a-r),u=a===o?0:.5/(o-a),d):[e,n,i]};d.clamp=function(t){return arguments.length?(f=!!t,d):f};d.interpolator=function(t){return arguments.length?(l=t,d):l};d.unknown=function(t){return arguments.length?(h=t,d):h};return function(t){c=t,r=t(e),a=t(n),o=t(i),s=r===a?0:.5/(a-r),u=a===o?0:.5/(o-a);return d}}function $r(){var t=ir(Zr()(Si));t.copy=function(){return Vr(t,$r())};return Ne.apply(t,arguments)}function Jr(){var t=pr(Zr()).domain([.1,1,10]);t.copy=function(){return Vr(t,Jr()).base(t.base())};return Ne.apply(t,arguments)}function Qr(){var t=_r(Zr());t.copy=function(){return Vr(t,Qr()).constant(t.constant())};return Ne.apply(t,arguments)}function ta(){var t=Sr(Zr());t.copy=function(){return Vr(t,ta()).exponent(t.exponent())};return Ne.apply(t,arguments)}function ea(){return ta.apply(null,arguments).exponent(.5)}var na=Object.freeze({__proto__:null,scaleBand:Qe,scalePoint:en,scaleIdentity:ar,scaleLinear:rr,scaleLog:vr,scaleSymlog:br,scaleOrdinal:Je,scaleImplicit:$e,scalePow:Cr,scaleSqrt:Er,scaleQuantile:Ar,scaleQuantize:Rr,scaleThreshold:Mr,scaleTime:Ir,scaleUtc:Hr,scaleSequential:Ur,scaleSequentialLog:Wr,scaleSequentialPow:Kr,scaleSequentialSqrt:Yr,scaleSequentialSymlog:qr,scaleSequentialQuantile:Xr,scaleDiverging:$r,scaleDivergingLog:Jr,scaleDivergingPow:ta,scaleDivergingSqrt:ea,scaleDivergingSymlog:Qr,tickFormat:nr});var ia="http://www.w3.org/1999/xhtml";var ra={svg:"http://www.w3.org/2000/svg",xhtml:ia,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function aa(t){var e=t+="",n=e.indexOf(":");if(n>=0&&(e=t.slice(0,n))!=="xmlns")t=t.slice(n+1);return ra.hasOwnProperty(e)?{space:ra[e],local:t}:t}function oa(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===ia&&t.documentElement.namespaceURI===ia?t.createElement(n):t.createElementNS(e,n)}}function sa(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ua(t){var e=aa(t);return(e.local?sa:oa)(e)}function la(){}function ca(t){return t==null?la:function(){return this.querySelector(t)}}function fa(t){if(typeof t!=="function")t=ca(t);for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r){for(var a=e[r],o=a.length,s=i[r]=new Array(o),u,l,c=0;c<o;++c){if((u=a[c])&&(l=t.call(u,u.__data__,c,a))){if("__data__"in u)l.__data__=u.__data__;s[c]=l}}}return new qo(i,this._parents)}function ha(){return[]}function da(t){return t==null?ha:function(){return this.querySelectorAll(t)}}function ga(t){if(typeof t!=="function")t=da(t);for(var e=this._groups,n=e.length,i=[],r=[],a=0;a<n;++a){for(var o=e[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){i.push(t.call(u,u.__data__,l,o));r.push(u)}}}return new qo(i,r)}function pa(t){return function(){return this.matches(t)}}function va(t){if(typeof t!=="function")t=pa(t);for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r){for(var a=e[r],o=a.length,s=i[r]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new qo(i,this._parents)}function ma(t){return new Array(t.length)}function ya(){return new qo(this._enter||this._groups.map(ma),this._parents)}function _a(t,e){this.ownerDocument=t.ownerDocument;this.namespaceURI=t.namespaceURI;this._next=null;this._parent=t;this.__data__=e}_a.prototype={constructor:_a,appendChild:function t(e){return this._parent.insertBefore(e,this._next)},insertBefore:function t(e,n){return this._parent.insertBefore(e,n)},querySelector:function t(e){return this._parent.querySelector(e)},querySelectorAll:function t(e){return this._parent.querySelectorAll(e)}};function ba(t){return function(){return t}}var wa="$";function xa(t,e,n,i,r,a){var o=0,s,u=e.length,l=a.length;for(;o<l;++o){if(s=e[o]){s.__data__=a[o];i[o]=s}else{n[o]=new _a(t,a[o])}}for(;o<u;++o){if(s=e[o]){r[o]=s}}}function ka(t,e,n,i,r,a,o){var s,u,l={},c=e.length,f=a.length,h=new Array(c),d;for(s=0;s<c;++s){if(u=e[s]){h[s]=d=wa+o.call(u,u.__data__,s,e);if(d in l){r[s]=u}else{l[d]=u}}}for(s=0;s<f;++s){d=wa+o.call(t,a[s],s,a);if(u=l[d]){i[s]=u;u.__data__=a[s];l[d]=null}else{n[s]=new _a(t,a[s])}}for(s=0;s<c;++s){if((u=e[s])&&l[h[s]]===u){r[s]=u}}}function Sa(t,e){if(!t){d=new Array(this.size()),l=-1;this.each(function(t){d[++l]=t});return d}var n=e?ka:xa,i=this._parents,r=this._groups;if(typeof t!=="function")t=ba(t);for(var a=r.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=i[l],f=r[l],h=f.length,d=t.call(c,c&&c.__data__,l,i),g=d.length,p=s[l]=new Array(g),v=o[l]=new Array(g),m=u[l]=new Array(h);n(c,f,p,v,m,d,e);for(var y=0,_=0,b,w;y<g;++y){if(b=p[y]){if(y>=_)_=y+1;while(!(w=v[_])&&++_<g){}b._next=w||null}}}o=new qo(o,i);o._enter=s;o._exit=u;return o}function Ca(){return new qo(this._exit||this._groups.map(ma),this._parents)}function Ea(t,e,n){var i=this.enter(),r=this,a=this.exit();i=typeof t==="function"?t(i):i.append(t+"");if(e!=null)r=e(r);if(n==null)a.remove();else n(a);return i&&r?i.merge(r).order():r}function Aa(t){for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<i;++s){o[s]=e[s]}return new qo(o,this._parents)}function Ra(){for(var t=this._groups,e=-1,n=t.length;++e<n;){for(var i=t[e],r=i.length-1,a=i[r],o;--r>=0;){if(o=i[r]){if(a&&o.compareDocumentPosition(a)^4)a.parentNode.insertBefore(o,a);a=o}}}return this}function Ma(n){if(!n)n=Ta;function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}for(var e=this._groups,i=e.length,r=new Array(i),a=0;a<i;++a){for(var o=e[a],s=o.length,u=r[a]=new Array(s),l,c=0;c<s;++c){if(l=o[c]){u[c]=l}}u.sort(t)}return new qo(r,this._parents).order()}function Ta(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Pa(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function Oa(){var t=new Array(this.size()),e=-1;this.each(function(){t[++e]=this});return t}function Ba(){for(var t=this._groups,e=0,n=t.length;e<n;++e){for(var i=t[e],r=0,a=i.length;r<a;++r){var o=i[r];if(o)return o}}return null}function Da(){var t=0;this.each(function(){++t});return t}function Na(){return!this.node()}function za(t){for(var e=this._groups,n=0,i=e.length;n<i;++n){for(var r=e[n],a=0,o=r.length,s;a<o;++a){if(s=r[a])t.call(s,s.__data__,a,r)}}return this}function ja(t){return function(){this.removeAttribute(t)}}function La(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Fa(t,e){return function(){this.setAttribute(t,e)}}function Ia(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Ha(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttribute(e);else this.setAttribute(e,t)}}function Ga(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttributeNS(e.space,e.local);else this.setAttributeNS(e.space,e.local,t)}}function Va(t,e){var n=aa(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?La:ja:typeof e==="function"?n.local?Ga:Ha:n.local?Ia:Fa)(n,e))}function Ua(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Wa(t){return function(){this.style.removeProperty(t)}}function qa(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ka(e,n,i){return function(){var t=n.apply(this,arguments);if(t==null)this.style.removeProperty(e);else this.style.setProperty(e,t,i)}}function Ya(t,e,n){return arguments.length>1?this.each((e==null?Wa:typeof e==="function"?Ka:qa)(t,e,n==null?"":n)):Xa(this.node(),t)}function Xa(t,e){return t.style.getPropertyValue(e)||Ua(t).getComputedStyle(t,null).getPropertyValue(e)}function Za(t){return function(){delete this[t]}}function $a(t,e){return function(){this[t]=e}}function Ja(e,n){return function(){var t=n.apply(this,arguments);if(t==null)delete this[e];else this[e]=t}}function Qa(t,e){return arguments.length>1?this.each((e==null?Za:typeof e==="function"?Ja:$a)(t,e)):this.node()[t]}function to(t){return t.trim().split(/^|\s+/)}function eo(t){return t.classList||new no(t)}function no(t){this._node=t;this._names=to(t.getAttribute("class")||"")}no.prototype={add:function t(e){var n=this._names.indexOf(e);if(n<0){this._names.push(e);this._node.setAttribute("class",this._names.join(" "))}},remove:function t(e){var n=this._names.indexOf(e);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function t(e){return this._names.indexOf(e)>=0}};function io(t,e){var n=eo(t),i=-1,r=e.length;while(++i<r){n.add(e[i])}}function ro(t,e){var n=eo(t),i=-1,r=e.length;while(++i<r){n.remove(e[i])}}function ao(t){return function(){io(this,t)}}function oo(t){return function(){ro(this,t)}}function so(t,e){return function(){(e.apply(this,arguments)?io:ro)(this,t)}}function uo(t,e){var n=to(t+"");if(arguments.length<2){var i=eo(this.node()),r=-1,a=n.length;while(++r<a){if(!i.contains(n[r]))return false}return true}return this.each((typeof e==="function"?so:e?ao:oo)(n,e))}function lo(){this.textContent=""}function co(t){return function(){this.textContent=t}}function fo(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function ho(t){return arguments.length?this.each(t==null?lo:(typeof t==="function"?fo:co)(t)):this.node().textContent}function go(){this.innerHTML=""}function po(t){return function(){this.innerHTML=t}}function vo(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function mo(t){return arguments.length?this.each(t==null?go:(typeof t==="function"?vo:po)(t)):this.node().innerHTML}function yo(){if(this.nextSibling)this.parentNode.appendChild(this)}function _o(){return this.each(yo)}function bo(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function wo(){return this.each(bo)}function xo(t){var e=typeof t==="function"?t:ua(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ko(){return null}function So(t,e){var n=typeof t==="function"?t:ua(t),i=e==null?ko:typeof e==="function"?e:ca(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Co(){var t=this.parentNode;if(t)t.removeChild(this)}function Eo(){return this.each(Co)}function Ao(){var t=this.cloneNode(false),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ro(){var t=this.cloneNode(true),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Mo(t){return this.select(t?Ro:Ao)}function To(t){return arguments.length?this.property("__data__",t):this.node().__data__}var Po={};var Oo=null;if(typeof document!=="undefined"){var Bo=document.documentElement;if(!("onmouseenter"in Bo)){Po={mouseenter:"mouseover",mouseleave:"mouseout"}}}function Do(n,t,e){n=No(n,t,e);return function(t){var e=t.relatedTarget;if(!e||e!==this&&!(e.compareDocumentPosition(this)&8)){n.call(this,t)}}}function No(n,i,r){return function(t){var e=Oo;Oo=t;try{n.call(this,this.__data__,i,r)}finally{Oo=e}}}function zo(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);return{type:t,name:e}})}function jo(a){return function(){var t=this.__on;if(!t)return;for(var e=0,n=-1,i=t.length,r;e<i;++e){if(r=t[e],(!a.type||r.type===a.type)&&r.name===a.name){this.removeEventListener(r.type,r.listener,r.capture)}else{t[++n]=r}}if(++n)t.length=n;else delete this.__on}}function Lo(u,l,c){var f=Po.hasOwnProperty(u.type)?Do:No;return function(t,e,n){var i=this.__on,r,a=f(l,e,n);if(i)for(var o=0,s=i.length;o<s;++o){if((r=i[o]).type===u.type&&r.name===u.name){this.removeEventListener(r.type,r.listener,r.capture);this.addEventListener(r.type,r.listener=a,r.capture=c);r.value=l;return}}this.addEventListener(u.type,a,c);r={type:u.type,name:u.name,value:l,listener:a,capture:c};if(!i)this.__on=[r];else i.push(r)}}function Fo(t,e,n){var i=zo(t+""),r,a=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s)for(var u=0,l=s.length,c;u<l;++u){for(r=0,c=s[u];r<a;++r){if((o=i[r]).type===c.type&&o.name===c.name){return c.value}}}return}s=e?Lo:jo;if(n==null)n=false;for(r=0;r<a;++r){this.each(s(i[r],e,n))}return this}function Io(t,e,n,i){var r=Oo;t.sourceEvent=Oo;Oo=t;try{return e.apply(n,i)}finally{Oo=r}}function Ho(t,e,n){var i=Ua(t),r=i.CustomEvent;if(typeof r==="function"){r=new r(e,n)}else{r=i.document.createEvent("Event");if(n)r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail;else r.initEvent(e,false,false)}t.dispatchEvent(r)}function Go(t,e){return function(){return Ho(this,t,e)}}function Vo(t,e){return function(){return Ho(this,t,e.apply(this,arguments))}}function Uo(t,e){return this.each((typeof e==="function"?Vo:Go)(t,e))}var Wo=[null];function qo(t,e){this._groups=t;this._parents=e}function Ko(){return new qo([[document.documentElement]],Wo)}qo.prototype=Ko.prototype={constructor:qo,select:fa,selectAll:ga,filter:va,data:Sa,enter:ya,exit:Ca,join:Ea,merge:Aa,order:Ra,sort:Ma,call:Pa,nodes:Oa,node:Ba,size:Da,empty:Na,each:za,attr:Va,style:Ya,property:Qa,classed:uo,text:ho,html:mo,raise:_o,lower:wo,append:xo,insert:So,remove:Eo,clone:Mo,datum:To,on:Fo,dispatch:Uo};function Yo(t){return typeof t==="string"?new qo([[document.querySelector(t)]],[document.documentElement]):new qo([[t]],Wo)}function Xo(){var t=Oo,e;while(e=t.sourceEvent){t=e}return t}function Zo(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();i.x=e.clientX,i.y=e.clientY;i=i.matrixTransform(t.getScreenCTM().inverse());return[i.x,i.y]}var r=t.getBoundingClientRect();return[e.clientX-r.left-t.clientLeft,e.clientY-r.top-t.clientTop]}function $o(t){var e=Xo();if(e.changedTouches)e=e.changedTouches[0];return Zo(t,e)}function Jo(t){return typeof t==="string"?new qo([document.querySelectorAll(t)],[document.documentElement]):new qo([t==null?[]:t],Wo)}function Qo(t,e,n){if(arguments.length<3)n=e,e=Xo().changedTouches;for(var i=0,r=e?e.length:0,a;i<r;++i){if((a=e[i]).identifier===n){return Zo(t,a)}}return null}var ts={value:function t(){}};function es(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new ns(n)}function ns(t){this._=t}function is(t,i){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);if(t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}ns.prototype=es.prototype={constructor:ns,on:function t(e,n){var i=this._,r=is(e+"",i),a,o=-1,s=r.length;if(arguments.length<2){while(++o<s){if((a=(e=r[o]).type)&&(a=rs(i[a],e.name)))return a}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(a=(e=r[o]).type)i[a]=as(i[a],e.name,n);else if(n==null)for(a in i){i[a]=as(i[a],e.name,null)}}return this},copy:function t(){var t={},e=this._;for(var n in e){t[n]=e[n].slice()}return new ns(t)},call:function t(e,n){if((a=arguments.length-2)>0)for(var i=new Array(a),r=0,a,o;r<a;++r){i[r]=arguments[r+2]}if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,a=o.length;r<a;++r){o[r].value.apply(n,i)}},apply:function t(e,n,i){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,o=r.length;a<o;++a){r[a].value.apply(n,i)}}};function rs(t,e){for(var n=0,i=t.length,r;n<i;++n){if((r=t[n]).name===e){return r.value}}}function as(t,e,n){for(var i=0,r=t.length;i<r;++i){if(t[i].name===e){t[i]=ts,t=t.slice(0,i).concat(t.slice(i+1));break}}if(n!=null)t.push({name:e,value:n});return t}var os=0,ss=0,us=0,ls=1e3,cs,fs,hs=0,ds=0,gs=0,ps=(typeof performance==="undefined"?"undefined":_typeof2(performance))==="object"&&performance.now?performance:Date,vs=(typeof window==="undefined"?"undefined":_typeof2(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ms(){return ds||(vs(ys),ds=ps.now()+gs)}function ys(){ds=0}function _s(){this._call=this._time=this._next=null}_s.prototype=bs.prototype={constructor:_s,restart:function t(e,n,i){if(typeof e!=="function")throw new TypeError("callback is not a function");i=(i==null?ms():+i)+(n==null?0:+n);if(!this._next&&fs!==this){if(fs)fs._next=this;else cs=this;fs=this}this._call=e;this._time=i;Cs()},stop:function t(){if(this._call){this._call=null;this._time=Infinity;Cs()}}};function bs(t,e,n){var i=new _s;i.restart(t,e,n);return i}function ws(){ms();++os;var t=cs,e;while(t){if((e=ds-t._time)>=0)t._call.call(null,e);t=t._next}--os}function xs(){ds=(hs=ps.now())+gs;os=ss=0;try{ws()}finally{os=0;Ss();ds=0}}function ks(){var t=ps.now(),e=t-hs;if(e>ls)gs-=e,hs=t}function Ss(){var t,e=cs,n,i=Infinity;while(e){if(e._call){if(i>e._time)i=e._time;t=e,e=e._next}else{n=e._next,e._next=null;e=t?t._next=n:cs=n}}fs=t;Cs(i)}function Cs(t){if(os)return;if(ss)ss=clearTimeout(ss);var e=t-ds;if(e>24){if(t<Infinity)ss=setTimeout(xs,t-ps.now()-gs);if(us)us=clearInterval(us)}else{if(!us)hs=ps.now(),us=setInterval(ks,ls);os=1,vs(xs)}}function Es(e,n,t){var i=new _s;n=n==null?0:+n;i.restart(function(t){i.stop();e(t+n)},n,t);return i}var As=es("start","end","cancel","interrupt");var Rs=[];var Ms=0;var Ts=1;var Ps=2;var Os=3;var Bs=4;var Ds=5;var Ns=6;function zs(t,e,n,i,r,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Is(t,n,{name:e,index:i,group:r,on:As,tween:Rs,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Ms})}function js(t,e){var n=Fs(t,e);if(n.state>Ms)throw new Error("too late; already scheduled");return n}function Ls(t,e){var n=Fs(t,e);if(n.state>Os)throw new Error("too late; already running");return n}function Fs(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Is(a,o,s){var u=a.__transition,l;u[o]=s;s.timer=bs(t,0,s.time);function t(t){s.state=Ts;s.timer.restart(c,s.delay,s.time);if(s.delay<=t)c(t-s.delay)}function c(t){var e,n,i,r;if(s.state!==Ts)return h();for(e in u){r=u[e];if(r.name!==s.name)continue;if(r.state===Os)return Es(c);if(r.state===Bs){r.state=Ns;r.timer.stop();r.on.call("interrupt",a,a.__data__,r.index,r.group);delete u[e]}else if(+e<o){r.state=Ns;r.timer.stop();r.on.call("cancel",a,a.__data__,r.index,r.group);delete u[e]}}Es(function(){if(s.state===Os){s.state=Bs;s.timer.restart(f,s.delay,s.time);f(t)}});s.state=Ps;s.on.call("start",a,a.__data__,s.index,s.group);if(s.state!==Ps)return;s.state=Os;l=new Array(i=s.tween.length);for(e=0,n=-1;e<i;++e){if(r=s.tween[e].value.call(a,a.__data__,s.index,s.group)){l[++n]=r}}l.length=n+1}function f(t){var e=t<s.duration?s.ease.call(null,t/s.duration):(s.timer.restart(h),s.state=Ds,1),n=-1,i=l.length;while(++n<i){l[n].call(a,e)}if(s.state===Ds){s.on.call("end",a,a.__data__,s.index,s.group);h()}}function h(){s.state=Ns;s.timer.stop();delete u[o];for(var t in u){return}delete a.__transition}}function Hs(t,e){var n=t.__transition,i,r,a=true,o;if(!n)return;e=e==null?null:e+"";for(o in n){if((i=n[o]).name!==e){a=false;continue}r=i.state>Ps&&i.state<Ds;i.state=Ns;i.timer.stop();i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group);delete n[o]}if(a)delete t.__transition}function Gs(t){return this.each(function(){Hs(this,t)})}function Vs(r,a){var o,s;return function(){var t=Ls(this,r),e=t.tween;if(e!==o){s=o=e;for(var n=0,i=s.length;n<i;++n){if(s[n].name===a){s=s.slice();s.splice(n,1);break}}}t.tween=s}}function Us(a,o,s){var u,l;if(typeof s!=="function")throw new Error;return function(){var t=Ls(this,a),e=t.tween;if(e!==u){l=(u=e).slice();for(var n={name:o,value:s},i=0,r=l.length;i<r;++i){if(l[i].name===o){l[i]=n;break}}if(i===r)l.push(n)}t.tween=l}}function Ws(t,e){var n=this._id;t+="";if(arguments.length<2){var i=Fs(this.node(),n).tween;for(var r=0,a=i.length,o;r<a;++r){if((o=i[r]).name===t){return o.value}}return null}return this.each((e==null?Vs:Us)(n,t,e))}function qs(t,e,n){var i=t._id;t.each(function(){var t=Ls(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)});return function(t){return Fs(t,i).value[e]}}function Ks(t,e){var n;return(typeof e==="number"?qn:e instanceof xn?Hn:(n=xn(e))?(e=n,Hn):Jn)(t,e)}function Ys(t){return function(){this.removeAttribute(t)}}function Xs(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Zs(e,n,i){var r,a=i+"",o;return function(){var t=this.getAttribute(e);return t===a?null:t===r?o:o=n(r=t,i)}}function $s(e,n,i){var r,a=i+"",o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===a?null:t===r?o:o=n(r=t,i)}}function Js(i,r,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttribute(i);t=this.getAttribute(i);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=r(o=t,e))}}function Qs(i,r,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttributeNS(i.space,i.local);t=this.getAttributeNS(i.space,i.local);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=r(o=t,e))}}function tu(t,e){var n=aa(t),i=n==="transform"?hi:Ks;return this.attrTween(t,typeof e==="function"?(n.local?Qs:Js)(n,i,qs(this,"attr."+t,e)):e==null?(n.local?Xs:Ys)(n):(n.local?$s:Zs)(n,i,e))}function eu(e,n){return function(t){this.setAttribute(e,n.call(this,t))}}function nu(e,n){return function(t){this.setAttributeNS(e.space,e.local,n.call(this,t))}}function iu(e,n){var i,r;function t(){var t=n.apply(this,arguments);if(t!==r)i=(r=t)&&nu(e,t);return i}t._value=n;return t}function ru(e,n){var i,r;function t(){var t=n.apply(this,arguments);if(t!==r)i=(r=t)&&eu(e,t);return i}t._value=n;return t}function au(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!=="function")throw new Error;var i=aa(t);return this.tween(n,(i.local?iu:ru)(i,e))}function ou(t,e){return function(){js(this,t).delay=+e.apply(this,arguments)}}function su(t,e){return e=+e,function(){js(this,t).delay=e}}function uu(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?ou:su)(e,t)):Fs(this.node(),e).delay}function lu(t,e){return function(){Ls(this,t).duration=+e.apply(this,arguments)}}function cu(t,e){return e=+e,function(){Ls(this,t).duration=e}}function fu(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?lu:cu)(e,t)):Fs(this.node(),e).duration}function hu(t,e){if(typeof e!=="function")throw new Error;return function(){Ls(this,t).ease=e}}function du(t){var e=this._id;return arguments.length?this.each(hu(e,t)):Fs(this.node(),e).ease}function gu(t){if(typeof t!=="function")t=pa(t);for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r){for(var a=e[r],o=a.length,s=i[r]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new Vu(i,this._parents,this._name,this._id)}function pu(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,a=Math.min(i,r),o=new Array(i),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<i;++s){o[s]=e[s]}return new Vu(o,this._parents,this._name,this._id)}function vu(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");if(e>=0)t=t.slice(0,e);return!t||t==="start"})}function mu(n,i,r){var a,o,s=vu(i)?js:Ls;return function(){var t=s(this,n),e=t.on;if(e!==a)(o=(a=e).copy()).on(i,r);t.on=o}}function yu(t,e){var n=this._id;return arguments.length<2?Fs(this.node(),n).on.on(t):this.each(mu(n,t,e))}function _u(n){return function(){var t=this.parentNode;for(var e in this.__transition){if(+e!==n)return}if(t)t.removeChild(this)}}function bu(){return this.on("end.remove",_u(this._id))}function wu(t){var e=this._name,n=this._id;if(typeof t!=="function")t=ca(t);for(var i=this._groups,r=i.length,a=new Array(r),o=0;o<r;++o){for(var s=i[o],u=s.length,l=a[o]=new Array(u),c,f,h=0;h<u;++h){if((c=s[h])&&(f=t.call(c,c.__data__,h,s))){if("__data__"in c)f.__data__=c.__data__;l[h]=f;zs(l[h],e,n,h,l,Fs(c,n))}}}return new Vu(a,this._parents,e,n)}function xu(t){var e=this._name,n=this._id;if(typeof t!=="function")t=da(t);for(var i=this._groups,r=i.length,a=[],o=[],s=0;s<r;++s){for(var u=i[s],l=u.length,c,f=0;f<l;++f){if(c=u[f]){for(var h=t.call(c,c.__data__,f,u),d,g=Fs(c,n),p=0,v=h.length;p<v;++p){if(d=h[p]){zs(d,e,n,p,h,g)}}a.push(h);o.push(c)}}}return new Vu(a,o,e,n)}var ku=Ko.prototype.constructor;function Su(){return new ku(this._groups,this._parents)}function Cu(n,i){var r,a,o;return function(){var t=Xa(this,n),e=(this.style.removeProperty(n),Xa(this,n));return t===e?null:t===r&&e===a?o:o=i(r=t,a=e)}}function Eu(t){return function(){this.style.removeProperty(t)}}function Au(e,n,i){var r,a=i+"",o;return function(){var t=Xa(this,e);return t===a?null:t===r?o:o=n(r=t,i)}}function Ru(i,r,a){var o,s,u;return function(){var t=Xa(this,i),e=a(this),n=e+"";if(e==null)n=e=(this.style.removeProperty(i),Xa(this,i));return t===n?null:t===o&&n===s?u:(s=n,u=r(o=t,e))}}function Mu(i,r){var a,o,s,u="style."+r,l="end."+u,c;return function(){var t=Ls(this,i),e=t.on,n=t.value[u]==null?c||(c=Eu(r)):undefined;if(e!==a||s!==n)(o=(a=e).copy()).on(l,s=n);t.on=o}}function Tu(t,e,n){var i=(t+="")==="transform"?fi:Ks;return e==null?this.styleTween(t,Cu(t,i)).on("end.style."+t,Eu(t)):typeof e==="function"?this.styleTween(t,Ru(t,i,qs(this,"style."+t,e))).each(Mu(this._id,t)):this.styleTween(t,Au(t,i,e),n).on("end.style."+t,null)}function Pu(e,n,i){return function(t){this.style.setProperty(e,n.call(this,t),i)}}function Ou(e,n,i){var r,a;function t(){var t=n.apply(this,arguments);if(t!==a)r=(a=t)&&Pu(e,t,i);return r}t._value=n;return t}function Bu(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!=="function")throw new Error;return this.tween(i,Ou(t,e,n==null?"":n))}function Du(t){return function(){this.textContent=t}}function Nu(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function zu(t){return this.tween("text",typeof t==="function"?Nu(qs(this,"text",t)):Du(t==null?"":t+""))}function ju(e){return function(t){this.textContent=e.call(this,t)}}function Lu(e){var n,i;function t(){var t=e.apply(this,arguments);if(t!==i)n=(i=t)&&ju(t);return n}t._value=e;return t}function Fu(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!=="function")throw new Error;return this.tween(e,Lu(t))}function Iu(){var t=this._name,e=this._id,n=Wu();for(var i=this._groups,r=i.length,a=0;a<r;++a){for(var o=i[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){var c=Fs(u,e);zs(u,t,n,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}}}return new Vu(i,this._parents,t,n)}function Hu(){var r,a,o=this,s=o._id,u=o.size();return new Promise(function(e,t){var n={value:t},i={value:function t(){if(--u===0)e()}};o.each(function(){var t=Ls(this,s),e=t.on;if(e!==r){a=(r=e).copy();a._.cancel.push(n);a._.interrupt.push(n);a._.end.push(i)}t.on=a})})}var Gu=0;function Vu(t,e,n,i){this._groups=t;this._parents=e;this._name=n;this._id=i}function Uu(t){return Ko().transition(t)}function Wu(){return++Gu}var qu=Ko.prototype;Vu.prototype=Uu.prototype={constructor:Vu,select:wu,selectAll:xu,filter:gu,merge:pu,selection:Su,transition:Iu,call:qu.call,nodes:qu.nodes,node:qu.node,size:qu.size,empty:qu.empty,each:qu.each,on:yu,attr:tu,attrTween:au,style:Tu,styleTween:Bu,text:zu,textTween:Fu,remove:bu,tween:Ws,delay:uu,duration:fu,ease:du,end:Hu};function Ku(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Yu={time:null,delay:0,duration:250,ease:Ku};function Xu(t,e){var n;while(!(n=t.__transition)||!(n=n[e])){if(!(t=t.parentNode)){return Yu.time=ms(),Yu}}return n}function Zu(t){var e,n;if(t instanceof Vu){e=t._id,t=t._name}else{e=Wu(),(n=Yu).time=ms(),t=t==null?null:t+""}for(var i=this._groups,r=i.length,a=0;a<r;++a){for(var o=i[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){zs(u,t,e,l,o,n||Xu(u,e))}}}return new Vu(i,this._parents,t,e)}Ko.prototype.interrupt=Gs;Ko.prototype.transition=Zu;function $u(e,n){if(n===void 0)return function(t){return t[e]};return function(t){return t[e]===void 0?n:t[e]}}function Ju(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ju=function t(e){return typeof e}}else{Ju=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Ju(t)}function Qu(t){return t&&Ju(t)==="object"&&(typeof window==="undefined"||t!==window&&t!==window.document&&!(t instanceof Element))&&!Array.isArray(t)?true:false}function tl(t){if(typeof window==="undefined")return true;else return t!==window&&t!==document}function el(){var i=arguments;var r=arguments.length<=0?undefined:arguments[0];var t=function t(e){var n=e<0||i.length<=e?undefined:i[e];Object.keys(n).forEach(function(t){var e=n[t];if(Qu(e)&&tl(e)){if(r.hasOwnProperty(t)&&Qu(r[t]))r[t]=el({},r[t],e);else r[t]=el({},e)}else if(Array.isArray(e))r[t]=e.slice();else r[t]=e})};for(var e=1;e<arguments.length;e++){t(e)}return r}function nl(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.attr(n,e[n])}}var il={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var rl={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var al={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var ol={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var sl={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var ul={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var ll={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var cl={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var fl={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var hl={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var dl={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var gl={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var pl={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var vl={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var ml={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var yl={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var _l={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var bl={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var wl={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var xl={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var kl={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var Sl={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var Cl={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var El={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var Al={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var Rl={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var Ml={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var Tl={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var Pl={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var Ol={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var Bl={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var Dl={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var Nl={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var zl={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var jl={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var Ll={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var Fl={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var Il={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var Hl={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var Gl={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var Vl={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var Ul={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var Wl={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var ql={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var Kl={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var Yl={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var Xl={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var Zl={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var $l={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var Jl={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var Ql={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var tc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var ec={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var nc={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var ic={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var rc={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var ac={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var oc={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var sc={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var uc={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var lc={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var cc={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var fc={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var hc={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var dc={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var gc={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var pc={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var vc={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var mc={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var yc={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var _c={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var bc={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var wc={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var xc={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var kc={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var Sc={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var Cc={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var Ec={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var Ac={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var Rc={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var Mc={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var Tc={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var Pc={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var Oc={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var Bc={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var Dc={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var Nc={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var zc={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var jc={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var Lc={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var Fc={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var Ic={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var Hc={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var Gc={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var Vc={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var Uc={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var Wc={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var qc={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var Kc={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var Yc={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var Xc={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var Zc={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var $c={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var Jc={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Qc={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var tf={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var ef={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var nf={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var rf={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var af={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var of={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var sf={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var uf={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var lf={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var cf={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var ff={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var hf={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var df={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var gf={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var pf={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var vf={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var mf={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var yf={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var _f={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var bf={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var wf={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var xf={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var kf={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var Sf={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var Cf={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var Ef={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var Af={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var Rf={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var Mf={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var Tf={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var Pf={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var Of={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var Bf={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var Df={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var Nf={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var zf={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var jf={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var Lf={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var Ff={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var If={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var Hf={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var Gf={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var Vf={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var Uf={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var Wf={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var qf={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var Kf={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var Yf={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var Xf={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var Zf={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var $f={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var Jf={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var Qf={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var th={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var eh={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var nh={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var ih={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var rh={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var ah={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var oh={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var sh={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var uh={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var lh={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var ch={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var fh={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var hh={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var dh={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var gh={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var ph={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var vh={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var mh={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var yh={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var _h={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var bh={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var wh={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var xh={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var kh={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var Sh={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var Ch={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var Eh={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var Ah={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var Rh={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var Mh={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var Th={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var Ph={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var Oh={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var Bh={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var Dh={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var Nh={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var zh={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var jh={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var Lh={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var Fh={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var Ih={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var Hh={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var Gh={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var Vh={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var Uh={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var Wh={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var qh={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var Kh={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var Yh={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var Xh={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var Zh={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var $h={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var Jh={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var Qh={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var td={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var ed={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var nd={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var id={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var rd={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var ad={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var od={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var sd={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var ud={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var ld={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var cd={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var fd={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var hd={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var dd={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var gd={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var pd={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var vd={aa:il,"aa-dj":{language:"Afar",location:"Djibouti",id:4096,tag:"aa-DJ",version:"Release 10"},"aa-er":{language:"Afar",location:"Eritrea",id:4096,tag:"aa-ER",version:"Release 10"},"aa-et":{language:"Afar",location:"Ethiopia",id:4096,tag:"aa-ET",version:"Release 10"},af:rl,"af-na":{language:"Afrikaans",location:"Namibia",id:4096,tag:"af-NA",version:"Release 10"},"af-za":{language:"Afrikaans",location:"South Africa",id:1078,tag:"af-ZA",version:"Release B"},agq:al,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:ol,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:sl,"sq-al":{language:"Albanian",location:"Albania",id:1052,tag:"sq-AL",version:"Release B"},"sq-mk":{language:"Albanian",location:"North Macedonia",id:4096,tag:"sq-MK",version:"Release 10"},gsw:ul,"gsw-fr":{language:"Alsatian",location:"France",id:1156,tag:"gsw-FR",version:"Release V"},"gsw-li":{language:"Alsatian",location:"Liechtenstein",id:4096,tag:"gsw-LI",version:"Release 10"},"gsw-ch":{language:"Alsatian",location:"Switzerland",id:4096,tag:"gsw-CH",version:"Release 10"},am:ll,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:cl,"ar-dz":{language:"Arabic",location:"Algeria",id:5121,tag:"ar-DZ",version:"Release B"},"ar-bh":{language:"Arabic",location:"Bahrain",id:15361,tag:"ar-BH",version:"Release B"},"ar-td":{language:"Arabic",location:"Chad",id:4096,tag:"ar-TD",version:"Release 10"},"ar-km":{language:"Arabic",location:"Comoros",id:4096,tag:"ar-KM",version:"Release 10"},"ar-dj":{language:"Arabic",location:"Djibouti",id:4096,tag:"ar-DJ",version:"Release 10"},"ar-eg":{language:"Arabic",location:"Egypt",id:3073,tag:"ar-EG",version:"Release B"},"ar-er":{language:"Arabic",location:"Eritrea",id:4096,tag:"ar-ER",version:"Release 10"},"ar-iq":{language:"Arabic",location:"Iraq",id:2049,tag:"ar-IQ",version:"Release B"},"ar-il":{language:"Arabic",location:"Israel",id:4096,tag:"ar-IL",version:"Release 10"},"ar-jo":{language:"Arabic",location:"Jordan",id:11265,tag:"ar-JO",version:"Release B"},"ar-kw":{language:"Arabic",location:"Kuwait",id:13313,tag:"ar-KW",version:"Release B"},"ar-lb":{language:"Arabic",location:"Lebanon",id:12289,tag:"ar-LB",version:"Release B"},"ar-ly":{language:"Arabic",location:"Libya",id:4097,tag:"ar-LY",version:"Release B"},"ar-mr":{language:"Arabic",location:"Mauritania",id:4096,tag:"ar-MR",version:"Release 10"},"ar-ma":{language:"Arabic",location:"Morocco",id:6145,tag:"ar-MA",version:"Release B"},"ar-om":{language:"Arabic",location:"Oman",id:8193,tag:"ar-OM",version:"Release B"},"ar-ps":{language:"Arabic",location:"Palestinian Authority",id:4096,tag:"ar-PS",version:"Release 10"},"ar-qa":{language:"Arabic",location:"Qatar",id:16385,tag:"ar-QA",version:"Release B"},"ar-sa":{language:"Arabic",location:"Saudi Arabia",id:1025,tag:"ar-SA",version:"Release B"},"ar-so":{language:"Arabic",location:"Somalia",id:4096,tag:"ar-SO",version:"Release 10"},"ar-ss":{language:"Arabic",location:"South Sudan",id:4096,tag:"ar-SS",version:"Release 10"},"ar-sd":{language:"Arabic",location:"Sudan",id:4096,tag:"ar-SD",version:"Release 10"},"ar-sy":{language:"Arabic",location:"Syria",id:10241,tag:"ar-SY",version:"Release B"},"ar-tn":{language:"Arabic",location:"Tunisia",id:7169,tag:"ar-TN",version:"Release B"},"ar-ae":{language:"Arabic",location:"U.A.E.",id:14337,tag:"ar-AE",version:"Release B"},"ar-001":{language:"Arabic",location:"World",id:4096,tag:"ar-001",version:"Release 10"},"ar-ye":{language:"Arabic",location:"Yemen",id:9217,tag:"ar-YE",version:"Release B"},hy:fl,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:hl,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:dl,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:gl,"asa-tz":{language:"Asu",location:"Tanzania",id:4096,tag:"asa-TZ",version:"Release 10"},"az-cyrl":{language:"Azerbaijani (Cyrillic)",location:null,id:29740,tag:"az-Cyrl",version:"Windows 7"},"az-cyrl-az":{language:"Azerbaijani (Cyrillic)",location:"Azerbaijan",id:2092,tag:"az-Cyrl-AZ",version:"Release C"},az:pl,"az-latn":{language:"Azerbaijani (Latin)",location:null,id:30764,tag:"az-Latn",version:"Windows 7"},"az-latn-az":{language:"Azerbaijani (Latin)",location:"Azerbaijan",id:1068,tag:"az-Latn-AZ",version:"Release C"},ksf:vl,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:ml,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:yl,"bn-bd":{language:"Bangla",location:"Bangladesh",id:2117,tag:"bn-BD",version:"Release V"},"bn-in":{language:"Bangla",location:"India",id:1093,tag:"bn-IN",version:"Release E1"},bas:_l,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:bl,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:wl,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:xl,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:kl,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:Sl,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:Cl,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:El,"brx-in":{language:"Bodo",location:"India",id:4096,tag:"brx-IN",version:"Release 10"},"bs-cyrl":{language:"Bosnian (Cyrillic)",location:null,id:25626,tag:"bs-Cyrl",version:"Windows 7"},"bs-cyrl-ba":{language:"Bosnian (Cyrillic)",location:"Bosnia and Herzegovina",id:8218,tag:"bs-Cyrl-BA",version:"Release E1"},"bs-latn":{language:"Bosnian (Latin)",location:null,id:26650,tag:"bs-Latn",version:"Windows 7"},bs:Al,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:Rl,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:Ml,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:Tl,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:Pl,"ca-ad":{language:"Catalan",location:"Andorra",id:4096,tag:"ca-AD",version:"Release 10"},"ca-fr":{language:"Catalan",location:"France",id:4096,tag:"ca-FR",version:"Release 10"},"ca-it":{language:"Catalan",location:"Italy",id:4096,tag:"ca-IT",version:"Release 10"},"ca-es":{language:"Catalan",location:"Spain",id:1027,tag:"ca-ES",version:"Release B"},ceb:Ol,"ceb-latn":{language:"Cebuan (Latin)",location:null,id:4096,tag:"ceb-Latn",version:"Release 10.5"},"ceb-latn-ph":{language:"Cebuan (Latin)",location:"Philippines",id:4096,tag:"ceb-Latn-PH",version:"Release 10.5"},"tzm-latn-":{language:"Central Atlas Tamazight (Latin)",location:"Morocco",id:4096,tag:"tzm-Latn-",version:"Release 10"},ku:Bl,"ku-arab":{language:"Central Kurdish",location:null,id:31890,tag:"ku-Arab",version:"Release 8"},"ku-arab-iq":{language:"Central Kurdish",location:"Iraq",id:1170,tag:"ku-Arab-IQ",version:"Release 8"},ccp:Dl,"ccp-cakm":{language:"Chakma",location:"Chakma",id:4096,tag:"ccp-Cakm",version:"Release 10.5"},"ccp-cakm-":{language:"Chakma",location:"India",id:4096,tag:"ccp-Cakm-",version:"Release 10.5"},"cd-ru":{language:"Chechen",location:"Russia",id:4096,tag:"cd-RU",version:"Release 10.1"},chr:Nl,"chr-cher":{language:"Cherokee",location:null,id:31836,tag:"chr-Cher",version:"Release 8"},"chr-cher-us":{language:"Cherokee",location:"United States",id:1116,tag:"chr-Cher-US",version:"Release 8"},cgg:zl,"cgg-ug":{language:"Chiga",location:"Uganda",id:4096,tag:"cgg-UG",version:"Release 10"},"zh-hans":{language:"Chinese (Simplified)",location:null,id:4,tag:"zh-Hans",version:"Release A"},zh:jl,"zh-cn":{language:"Chinese (Simplified)",location:"People's Republic of China",id:2052,tag:"zh-CN",version:"Release A"},"zh-sg":{language:"Chinese (Simplified)",location:"Singapore",id:4100,tag:"zh-SG",version:"Release A"},"zh-hant":{language:"Chinese (Traditional)",location:null,id:31748,tag:"zh-Hant",version:"Release A"},"zh-hk":{language:"Chinese (Traditional)",location:"Hong Kong S.A.R.",id:3076,tag:"zh-HK",version:"Release A"},"zh-mo":{language:"Chinese (Traditional)",location:"Macao S.A.R.",id:5124,tag:"zh-MO",version:"Release D"},"zh-tw":{language:"Chinese (Traditional)",location:"Taiwan",id:1028,tag:"zh-TW",version:"Release A"},"cu-ru":{language:"Church Slavic",location:"Russia",id:4096,tag:"cu-RU",version:"Release 10.1"},swc:Ll,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:Fl,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:Il,"co-fr":{language:"Corsican",location:"France",id:1155,tag:"co-FR",version:"Release V"},"hr,":{language:"Croatian",location:null,id:26,tag:"hr,",version:"Release 7"},"hr-hr":{language:"Croatian",location:"Croatia",id:1050,tag:"hr-HR",version:"Release A"},"hr-ba":{language:"Croatian (Latin)",location:"Bosnia and Herzegovina",id:4122,tag:"hr-BA",version:"Release E1"},cs:Hl,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:Gl,"da-dk":{language:"Danish",location:"Denmark",id:1030,tag:"da-DK",version:"Release A"},"da-gl":{language:"Danish",location:"Greenland",id:4096,tag:"da-GL",version:"Release 10"},prs:Vl,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:Ul,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:Wl,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:ql,"nl-aw":{language:"Dutch",location:"Aruba",id:4096,tag:"nl-AW",version:"Release 10"},"nl-be":{language:"Dutch",location:"Belgium",id:2067,tag:"nl-BE",version:"Release A"},"nl-bq":{language:"Dutch",location:"Bonaire, Sint Eustatius and Saba",id:4096,tag:"nl-BQ",version:"Release 10"},"nl-cw":{language:"Dutch",location:"Curaçao",id:4096,tag:"nl-CW",version:"Release 10"},"nl-nl":{language:"Dutch",location:"Netherlands",id:1043,tag:"nl-NL",version:"Release A"},"nl-sx":{language:"Dutch",location:"Sint Maarten",id:4096,tag:"nl-SX",version:"Release 10"},"nl-sr":{language:"Dutch",location:"Suriname",id:4096,tag:"nl-SR",version:"Release 10"},dz:Kl,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:Yl,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:Xl,"en-as":{language:"English",location:"American Samoa",id:4096,tag:"en-AS",version:"Release 10"},"en-ai":{language:"English",location:"Anguilla",id:4096,tag:"en-AI",version:"Release 10"},"en-ag":{language:"English",location:"Antigua and Barbuda",id:4096,tag:"en-AG",version:"Release 10"},"en-au":{language:"English",location:"Australia",id:3081,tag:"en-AU",version:"Release A"},"en-at":{language:"English",location:"Austria",id:4096,tag:"en-AT",version:"Release 10.1"},"en-bs":{language:"English",location:"Bahamas",id:4096,tag:"en-BS",version:"Release 10"},"en-bb":{language:"English",location:"Barbados",id:4096,tag:"en-BB",version:"Release 10"},"en-be":{language:"English",location:"Belgium",id:4096,tag:"en-BE",version:"Release 10"},"en-bz":{language:"English",location:"Belize",id:10249,tag:"en-BZ",version:"Release B"},"en-bm":{language:"English",location:"Bermuda",id:4096,tag:"en-BM",version:"Release 10"},"en-bw":{language:"English",location:"Botswana",id:4096,tag:"en-BW",version:"Release 10"},"en-io":{language:"English",location:"British Indian Ocean Territory",id:4096,tag:"en-IO",version:"Release 10"},"en-vg":{language:"English",location:"British Virgin Islands",id:4096,tag:"en-VG",version:"Release 10"},"en-bi":{language:"English",location:"Burundi",id:4096,tag:"en-BI",version:"Release 10.1"},"en-cm":{language:"English",location:"Cameroon",id:4096,tag:"en-CM",version:"Release 10"},"en-ca":{language:"English",location:"Canada",id:4105,tag:"en-CA",version:"Release A"},"en-029":{language:"English",location:"Caribbean",id:9225,tag:"en-029",version:"Release B"},"en-ky":{language:"English",location:"Cayman Islands",id:4096,tag:"en-KY",version:"Release 10"},"en-cx":{language:"English",location:"Christmas Island",id:4096,tag:"en-CX",version:"Release 10"},"en-cc":{language:"English",location:"Cocos [Keeling] Islands",id:4096,tag:"en-CC",version:"Release 10"},"en-ck":{language:"English",location:"Cook Islands",id:4096,tag:"en-CK",version:"Release 10"},"en-cy":{language:"English",location:"Cyprus",id:4096,tag:"en-CY",version:"Release 10.1"},"en-dk":{language:"English",location:"Denmark",id:4096,tag:"en-DK",version:"Release 10.1"},"en-dm":{language:"English",location:"Dominica",id:4096,tag:"en-DM",version:"Release 10"},"en-er":{language:"English",location:"Eritrea",id:4096,tag:"en-ER",version:"Release 10"},"en-150":{language:"English",location:"Europe",id:4096,tag:"en-150",version:"Release 10"},"en-fk":{language:"English",location:"Falkland Islands",id:4096,tag:"en-FK",version:"Release 10"},"en-fi":{language:"English",location:"Finland",id:4096,tag:"en-FI",version:"Release 10.1"},"en-fj":{language:"English",location:"Fiji",id:4096,tag:"en-FJ",version:"Release 10"},"en-gm":{language:"English",location:"Gambia",id:4096,tag:"en-GM",version:"Release 10"},"en-de":{language:"English",location:"Germany",id:4096,tag:"en-DE",version:"Release 10.1"},"en-gh":{language:"English",location:"Ghana",id:4096,tag:"en-GH",version:"Release 10"},"en-gi":{language:"English",location:"Gibraltar",id:4096,tag:"en-GI",version:"Release 10"},"en-gd":{language:"English",location:"Grenada",id:4096,tag:"en-GD",version:"Release 10"},"en-gu":{language:"English",location:"Guam",id:4096,tag:"en-GU",version:"Release 10"},"en-gg":{language:"English",location:"Guernsey",id:4096,tag:"en-GG",version:"Release 10"},"en-gy":{language:"English",location:"Guyana",id:4096,tag:"en-GY",version:"Release 10"},"en-hk":{language:"English",location:"Hong Kong",id:15369,tag:"en-HK",version:"Release 8.1"},"en-in":{language:"English",location:"India",id:16393,tag:"en-IN",version:"Release V"},"en-ie":{language:"English",location:"Ireland",id:6153,tag:"en-IE",version:"Release A"},"en-im":{language:"English",location:"Isle of Man",id:4096,tag:"en-IM",version:"Release 10"},"en-il":{language:"English",location:"Israel",id:4096,tag:"en-IL",version:"Release 10.1"},"en-jm":{language:"English",location:"Jamaica",id:8201,tag:"en-JM",version:"Release B"},"en-je":{language:"English",location:"Jersey",id:4096,tag:"en-JE",version:"Release 10"},"en-ke":{language:"English",location:"Kenya",id:4096,tag:"en-KE",version:"Release 10"},"en-ki":{language:"English",location:"Kiribati",id:4096,tag:"en-KI",version:"Release 10"},"en-ls":{language:"English",location:"Lesotho",id:4096,tag:"en-LS",version:"Release 10"},"en-lr":{language:"English",location:"Liberia",id:4096,tag:"en-LR",version:"Release 10"},"en-mo":{language:"English",location:"Macao SAR",id:4096,tag:"en-MO",version:"Release 10"},"en-mg":{language:"English",location:"Madagascar",id:4096,tag:"en-MG",version:"Release 10"},"en-mw":{language:"English",location:"Malawi",id:4096,tag:"en-MW",version:"Release 10"},"en-my":{language:"English",location:"Malaysia",id:17417,tag:"en-MY",version:"Release V"},"en-mt":{language:"English",location:"Malta",id:4096,tag:"en-MT",version:"Release 10"},"en-mh":{language:"English",location:"Marshall Islands",id:4096,tag:"en-MH",version:"Release 10"},"en-mu":{language:"English",location:"Mauritius",id:4096,tag:"en-MU",version:"Release 10"},"en-fm":{language:"English",location:"Micronesia",id:4096,tag:"en-FM",version:"Release 10"},"en-ms":{language:"English",location:"Montserrat",id:4096,tag:"en-MS",version:"Release 10"},"en-na":{language:"English",location:"Namibia",id:4096,tag:"en-NA",version:"Release 10"},"en-nr":{language:"English",location:"Nauru",id:4096,tag:"en-NR",version:"Release 10"},"en-nl":{language:"English",location:"Netherlands",id:4096,tag:"en-NL",version:"Release 10.1"},"en-nz":{language:"English",location:"New Zealand",id:5129,tag:"en-NZ",version:"Release A"},"en-ng":{language:"English",location:"Nigeria",id:4096,tag:"en-NG",version:"Release 10"},"en-nu":{language:"English",location:"Niue",id:4096,tag:"en-NU",version:"Release 10"},"en-nf":{language:"English",location:"Norfolk Island",id:4096,tag:"en-NF",version:"Release 10"},"en-mp":{language:"English",location:"Northern Mariana Islands",id:4096,tag:"en-MP",version:"Release 10"},"en-pk":{language:"English",location:"Pakistan",id:4096,tag:"en-PK",version:"Release 10"},"en-pw":{language:"English",location:"Palau",id:4096,tag:"en-PW",version:"Release 10"},"en-pg":{language:"English",location:"Papua New Guinea",id:4096,tag:"en-PG",version:"Release 10"},"en-pn":{language:"English",location:"Pitcairn Islands",id:4096,tag:"en-PN",version:"Release 10"},"en-pr":{language:"English",location:"Puerto Rico",id:4096,tag:"en-PR",version:"Release 10"},"en-ph":{language:"English",location:"Republic of the Philippines",id:13321,tag:"en-PH",version:"Release C"},"en-rw":{language:"English",location:"Rwanda",id:4096,tag:"en-RW",version:"Release 10"},"en-kn":{language:"English",location:"Saint Kitts and Nevis",id:4096,tag:"en-KN",version:"Release 10"},"en-lc":{language:"English",location:"Saint Lucia",id:4096,tag:"en-LC",version:"Release 10"},"en-vc":{language:"English",location:"Saint Vincent and the Grenadines",id:4096,tag:"en-VC",version:"Release 10"},"en-ws":{language:"English",location:"Samoa",id:4096,tag:"en-WS",version:"Release 10"},"en-sc":{language:"English",location:"Seychelles",id:4096,tag:"en-SC",version:"Release 10"},"en-sl":{language:"English",location:"Sierra Leone",id:4096,tag:"en-SL",version:"Release 10"},"en-sg":{language:"English",location:"Singapore",id:18441,tag:"en-SG",version:"Release V"},"en-sx":{language:"English",location:"Sint Maarten",id:4096,tag:"en-SX",version:"Release 10"},"en-si":{language:"English",location:"Slovenia",id:4096,tag:"en-SI",version:"Release 10.1"},"en-sb":{language:"English",location:"Solomon Islands",id:4096,tag:"en-SB",version:"Release 10"},"en-za":{language:"English",location:"South Africa",id:7177,tag:"en-ZA",version:"Release B"},"en-ss":{language:"English",location:"South Sudan",id:4096,tag:"en-SS",version:"Release 10"},"en-sh":{language:"English",location:"St Helena, Ascension, Tristan da Cunha",id:4096,tag:"en-SH",version:"Release 10"},"en-sd":{language:"English",location:"Sudan",id:4096,tag:"en-SD",version:"Release 10"},"en-sz":{language:"English",location:"Swaziland",id:4096,tag:"en-SZ",version:"Release 10"},"en-se":{language:"English",location:"Sweden",id:4096,tag:"en-SE",version:"Release 10.1"},"en-ch":{language:"English",location:"Switzerland",id:4096,tag:"en-CH",version:"Release 10.1"},"en-tz":{language:"English",location:"Tanzania",id:4096,tag:"en-TZ",version:"Release 10"},"en-tk":{language:"English",location:"Tokelau",id:4096,tag:"en-TK",version:"Release 10"},"en-to":{language:"English",location:"Tonga",id:4096,tag:"en-TO",version:"Release 10"},"en-tt":{language:"English",location:"Trinidad and Tobago",id:11273,tag:"en-TT",version:"Release B"},"en-tc":{language:"English",location:"Turks and Caicos Islands",id:4096,tag:"en-TC",version:"Release 10"},"en-tv":{language:"English",location:"Tuvalu",id:4096,tag:"en-TV",version:"Release 10"},"en-ug":{language:"English",location:"Uganda",id:4096,tag:"en-UG",version:"Release 10"},"en-ae":{language:"English",location:"United Arab Emirates",id:19465,tag:"en-AE",version:"Release 10.5"},"en-gb":{language:"English",location:"United Kingdom",id:2057,tag:"en-GB",version:"Release A"},"en-us":{language:"English",location:"United States",id:1033,tag:"en-US",version:"Release A"},"en-um":{language:"English",location:"US Minor Outlying Islands",id:4096,tag:"en-UM",version:"Release 10"},"en-vi":{language:"English",location:"US Virgin Islands",id:4096,tag:"en-VI",version:"Release 10"},"en-vu":{language:"English",location:"Vanuatu",id:4096,tag:"en-VU",version:"Release 10"},"en-001":{language:"English",location:"World",id:4096,tag:"en-001",version:"Release 10"},"en-zm":{language:"English",location:"Zambia",id:4096,tag:"en-ZM",version:"Release 10"},"en-zw":{language:"English",location:"Zimbabwe",id:12297,tag:"en-ZW",version:"Release C"},eo:Zl,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:$l,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:Jl,"ee-gh":{language:"Ewe",location:"Ghana",id:4096,tag:"ee-GH",version:"Release 10"},"ee-tg":{language:"Ewe",location:"Togo",id:4096,tag:"ee-TG",version:"Release 10"},ewo:Ql,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:tc,"fo-dk":{language:"Faroese",location:"Denmark",id:4096,tag:"fo-DK",version:"Release 10.1"},"fo-fo":{language:"Faroese",location:"Faroe Islands",id:1080,tag:"fo-FO",version:"Release B"},fil:ec,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:nc,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:ic,"fr-dz":{language:"French",location:"Algeria",id:4096,tag:"fr-DZ",version:"Release 10"},"fr-be":{language:"French",location:"Belgium",id:2060,tag:"fr-BE",version:"Release A"},"fr-bj":{language:"French",location:"Benin",id:4096,tag:"fr-BJ",version:"Release 10"},"fr-bf":{language:"French",location:"Burkina Faso",id:4096,tag:"fr-BF",version:"Release 10"},"fr-bi":{language:"French",location:"Burundi",id:4096,tag:"fr-BI",version:"Release 10"},"fr-cm":{language:"French",location:"Cameroon",id:11276,tag:"fr-CM",version:"Release 8.1"},"fr-ca":{language:"French",location:"Canada",id:3084,tag:"fr-CA",version:"Release A"},"fr-cf":{language:"French",location:"Central African Republic",id:4096,tag:"fr-CF",version:"Release10"},"fr-td":{language:"French",location:"Chad",id:4096,tag:"fr-TD",version:"Release 10"},"fr-km":{language:"French",location:"Comoros",id:4096,tag:"fr-KM",version:"Release 10"},"fr-cg":{language:"French",location:"Congo",id:4096,tag:"fr-CG",version:"Release 10"},"fr-cd":{language:"French",location:"Congo, DRC",id:9228,tag:"fr-CD",version:"Release 8.1"},"fr-ci":{language:"French",location:"Côte d'Ivoire",id:12300,tag:"fr-CI",version:"Release 8.1"},"fr-dj":{language:"French",location:"Djibouti",id:4096,tag:"fr-DJ",version:"Release 10"},"fr-gq":{language:"French",location:"Equatorial Guinea",id:4096,tag:"fr-GQ",version:"Release 10"},"fr-fr":{language:"French",location:"France",id:1036,tag:"fr-FR",version:"Release A"},"fr-gf":{language:"French",location:"French Guiana",id:4096,tag:"fr-GF",version:"Release 10"},"fr-pf":{language:"French",location:"French Polynesia",id:4096,tag:"fr-PF",version:"Release 10"},"fr-ga":{language:"French",location:"Gabon",id:4096,tag:"fr-GA",version:"Release 10"},"fr-gp":{language:"French",location:"Guadeloupe",id:4096,tag:"fr-GP",version:"Release 10"},"fr-gn":{language:"French",location:"Guinea",id:4096,tag:"fr-GN",version:"Release 10"},"fr-ht":{language:"French",location:"Haiti",id:15372,tag:"fr-HT",version:"Release 8.1"},"fr-lu":{language:"French",location:"Luxembourg",id:5132,tag:"fr-LU",version:"Release A"},"fr-mg":{language:"French",location:"Madagascar",id:4096,tag:"fr-MG",version:"Release 10"},"fr-ml":{language:"French",location:"Mali",id:13324,tag:"fr-ML",version:"Release 8.1"},"fr-mq":{language:"French",location:"Martinique",id:4096,tag:"fr-MQ",version:"Release 10"},"fr-mr":{language:"French",location:"Mauritania",id:4096,tag:"fr-MR",version:"Release 10"},"fr-mu":{language:"French",location:"Mauritius",id:4096,tag:"fr-MU",version:"Release 10"},"fr-yt":{language:"French",location:"Mayotte",id:4096,tag:"fr-YT",version:"Release 10"},"fr-ma":{language:"French",location:"Morocco",id:14348,tag:"fr-MA",version:"Release 8.1"},"fr-nc":{language:"French",location:"New Caledonia",id:4096,tag:"fr-NC",version:"Release 10"},"fr-ne":{language:"French",location:"Niger",id:4096,tag:"fr-NE",version:"Release 10"},"fr-mc":{language:"French",location:"Principality of Monaco",id:6156,tag:"fr-MC",version:"Release A"},"fr-re":{language:"French",location:"Reunion",id:8204,tag:"fr-RE",version:"Release 8.1"},"fr-rw":{language:"French",location:"Rwanda",id:4096,tag:"fr-RW",version:"Release 10"},"fr-bl":{language:"French",location:"Saint Barthélemy",id:4096,tag:"fr-BL",version:"Release 10"},"fr-mf":{language:"French",location:"Saint Martin",id:4096,tag:"fr-MF",version:"Release 10"},"fr-pm":{language:"French",location:"Saint Pierre and Miquelon",id:4096,tag:"fr-PM",version:"Release 10"},"fr-sn":{language:"French",location:"Senegal",id:10252,tag:"fr-SN",version:"Release 8.1"},"fr-sc":{language:"French",location:"Seychelles",id:4096,tag:"fr-SC",version:"Release 10"},"fr-ch":{language:"French",location:"Switzerland",id:4108,tag:"fr-CH",version:"Release A"},"fr-sy":{language:"French",location:"Syria",id:4096,tag:"fr-SY",version:"Release 10"},"fr-tg":{language:"French",location:"Togo",id:4096,tag:"fr-TG",version:"Release 10"},"fr-tn":{language:"French",location:"Tunisia",id:4096,tag:"fr-TN",version:"Release 10"},"fr-vu":{language:"French",location:"Vanuatu",id:4096,tag:"fr-VU",version:"Release 10"},"fr-wf":{language:"French",location:"Wallis and Futuna",id:4096,tag:"fr-WF",version:"Release 10"},fy:rc,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:ac,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:oc,"ff-latn":{language:"Fulah (Latin)",location:null,id:31847,tag:"ff-Latn",version:"Release 8"},"ff-latn-bf":{language:"Fulah (Latin)",location:"Burkina Faso",id:4096,tag:"ff-Latn-BF",version:"Release 10.4"},"ff-cm":{language:"Fulah",location:"Cameroon",id:4096,tag:"ff-CM",version:"Release 10"},"ff-latn-cm":{language:"Fulah (Latin)",location:"Cameroon",id:4096,tag:"ff-Latn-CM",version:"Release 10.4"},"ff-latn-gm":{language:"Fulah (Latin)",location:"Gambia",id:4096,tag:"ff-Latn-GM",version:"Release 10.4"},"ff-latn-gh":{language:"Fulah (Latin)",location:"Ghana",id:4096,tag:"ff-Latn-GH",version:"Release 10.4"},"ff-gn":{language:"Fulah",location:"Guinea",id:4096,tag:"ff-GN",version:"Release 10"},"ff-latn-gn":{language:"Fulah (Latin)",location:"Guinea",id:4096,tag:"ff-Latn-GN",version:"Release 10.4"},"ff-latn-gw":{language:"Fulah (Latin)",location:"Guinea-Bissau",id:4096,tag:"ff-Latn-GW",version:"Release 10.4"},"ff-latn-lr":{language:"Fulah (Latin)",location:"Liberia",id:4096,tag:"ff-Latn-LR",version:"Release 10.4"},"ff-mr":{language:"Fulah",location:"Mauritania",id:4096,tag:"ff-MR",version:"Release 10"},"ff-latn-mr":{language:"Fulah (Latin)",location:"Mauritania",id:4096,tag:"ff-Latn-MR",version:"Release 10.4"},"ff-latn-ne":{language:"Fulah (Latin)",location:"Niger",id:4096,tag:"ff-Latn-NE",version:"Release 10.4"},"ff-ng":{language:"Fulah",location:"Nigeria",id:4096,tag:"ff-NG",version:"Release 10"},"ff-latn-ng":{language:"Fulah (Latin)",location:"Nigeria",id:4096,tag:"ff-Latn-NG",version:"Release 10.4"},"ff-latn-sn":{language:"Fulah",location:"Senegal",id:2151,tag:"ff-Latn-SN",version:"Release 8"},"ff-latn-sl":{language:"Fulah (Latin)",location:"Sierra Leone",id:4096,tag:"ff-Latn-SL",version:"Release 10.4"},gl:sc,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:uc,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:lc,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:cc,"de-at":{language:"German",location:"Austria",id:3079,tag:"de-AT",version:"Release A"},"de-be":{language:"German",location:"Belgium",id:4096,tag:"de-BE",version:"Release 10"},"de-de":{language:"German",location:"Germany",id:1031,tag:"de-DE",version:"Release A"},"de-it":{language:"German",location:"Italy",id:4096,tag:"de-IT",version:"Release 10.2"},"de-li":{language:"German",location:"Liechtenstein",id:5127,tag:"de-LI",version:"Release B"},"de-lu":{language:"German",location:"Luxembourg",id:4103,tag:"de-LU",version:"Release B"},"de-ch":{language:"German",location:"Switzerland",id:2055,tag:"de-CH",version:"Release A"},el:fc,"el-cy":{language:"Greek",location:"Cyprus",id:4096,tag:"el-CY",version:"Release 10"},"el-gr":{language:"Greek",location:"Greece",id:1032,tag:"el-GR",version:"Release A"},kl:hc,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:dc,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:gc,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:pc,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:vc,"ha-latn":{language:"Hausa (Latin)",location:null,id:31848,tag:"ha-Latn",version:"Windows 7"},"ha-latn-gh":{language:"Hausa (Latin)",location:"Ghana",id:4096,tag:"ha-Latn-GH",version:"Release 10"},"ha-latn-ne":{language:"Hausa (Latin)",location:"Niger",id:4096,tag:"ha-Latn-NE",version:"Release 10"},"ha-latn-ng":{language:"Hausa (Latin)",location:"Nigeria",id:1128,tag:"ha-Latn-NG",version:"Release V"},haw:mc,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:yc,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:_c,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:bc,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:wc,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:xc,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:kc,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:Sc,"ia-fr":{language:"Interlingua",location:"France",id:4096,tag:"ia-FR",version:"Release 10"},"ia-001":{language:"Interlingua",location:"World",id:4096,tag:"ia-001",version:"Release 10"},iu:Cc,"iu-latn":{language:"Inuktitut (Latin)",location:null,id:31837,tag:"iu-Latn",version:"Windows 7"},"iu-latn-ca":{language:"Inuktitut (Latin)",location:"Canada",id:2141,tag:"iu-Latn-CA",version:"Release E2"},"iu-cans":{language:"Inuktitut (Syllabics)",location:null,id:30813,tag:"iu-Cans",version:"Windows 7"},"iu-cans-ca":{language:"Inuktitut (Syllabics)",location:"Canada",id:1117,tag:"iu-Cans-CA",version:"Release V"},ga:Ec,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:Ac,"it-it":{language:"Italian",location:"Italy",id:1040,tag:"it-IT",version:"Release A"},"it-sm":{language:"Italian",location:"San Marino",id:4096,tag:"it-SM",version:"Release 10"},"it-ch":{language:"Italian",location:"Switzerland",id:2064,tag:"it-CH",version:"Release A"},"it-va":{language:"Italian",location:"Vatican City",id:4096,tag:"it-VA",version:"Release 10.3"},ja:Rc,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:Mc,"jv-latn":{language:"Javanese",location:"Latin",id:4096,tag:"jv-Latn",version:"Release 8.1"},"jv-latn-id":{language:"Javanese",location:"Latin, Indonesia",id:4096,tag:"jv-Latn-ID",version:"Release 8.1"},dyo:Tc,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:Pc,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:Oc,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:Bc,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:Dc,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:Nc,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:zc,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:jc,"ks-arab":{language:"Kashmiri",location:"Perso-Arabic",id:1120,tag:"ks-Arab",version:"Release 10"},"ks-arab-in":{language:"Kashmiri",location:"Perso-Arabic",id:4096,tag:"ks-Arab-IN",version:"Release 10"},kk:Lc,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:Fc,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:Ic,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:Hc,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:Gc,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:Vc,"sw-ke":{language:"Kiswahili",location:"Kenya",id:1089,tag:"sw-KE",version:"Release C"},"sw-tz":{language:"Kiswahili",location:"Tanzania",id:4096,tag:"sw-TZ",version:"Release 10"},"sw-ug":{language:"Kiswahili",location:"Uganda",id:4096,tag:"sw-UG",version:"Release 10"},kok:Uc,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:Wc,"ko-kr":{language:"Korean",location:"Korea",id:1042,tag:"ko-KR",version:"Release A"},"ko-kp":{language:"Korean",location:"North Korea",id:4096,tag:"ko-KP",version:"Release 10.1"},khq:qc,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:Kc,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:Yc,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:Xc,"ky-kg":{language:"Kyrgyz",location:"Kyrgyzstan",id:1088,tag:"ky-KG",version:"Release D"},"ku-arab-ir":{language:"Kurdish",location:"Perso-Arabic, Iran",id:4096,tag:"ku-Arab-IR",version:"Release 10.1"},lkt:Zc,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:$c,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:Jc,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Qc,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:tf,"ln-ao":{language:"Lingala",location:"Angola",id:4096,tag:"ln-AO",version:"Release 10"},"ln-cf":{language:"Lingala",location:"Central African Republic",id:4096,tag:"ln-CF",version:"Release 10"},"ln-cg":{language:"Lingala",location:"Congo",id:4096,tag:"ln-CG",version:"Release 10"},"ln-cd":{language:"Lingala",location:"Congo DRC",id:4096,tag:"ln-CD",version:"Release 10"},lt:ef,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:nf,"nds-de":{language:"Low German",location:"Germany",id:4096,tag:"nds-DE",version:"Release 10.2"},"nds-nl":{language:"Low German",location:"Netherlands",id:4096,tag:"nds-NL",version:"Release 10.2"},dsb:rf,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:af,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:of,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:sf,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:uf,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:lf,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:cf,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:ff,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:hf,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:df,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:gf,"ms-bn":{language:"Malay",location:"Brunei Darussalam",id:2110,tag:"ms-BN",version:"Release C"},"ms-my":{language:"Malay",location:"Malaysia",id:1086,tag:"ms-MY",version:"Release C"},ml:pf,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:vf,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:mf,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:yf,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:_f,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:bf,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:wf,"mas-ke":{language:"Masai",location:"Kenya",id:4096,tag:"mas-KE",version:"Release 10"},"mas-tz":{language:"Masai",location:"Tanzania",id:4096,tag:"mas-TZ",version:"Release 10"},"mzn-ir":{language:"Mazanderani",location:"Iran",id:4096,tag:"mzn-IR",version:"Release 10.1"},mer:xf,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:kf,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:Sf,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:Cf,"mn-cyrl":{language:"Mongolian (Cyrillic)",location:null,id:30800,tag:"mn-Cyrl",version:"Windows 7"},"mn-mn":{language:"Mongolian (Cyrillic)",location:"Mongolia",id:1104,tag:"mn-MN",version:"Release D"},"mn-mong":{language:"Mongolian (Traditional Mongolian)",location:null,id:31824,tag:"mn-Mong",version:"Windows 7"},"mn-mong-cn":{language:"Mongolian (Traditional Mongolian)",location:"People's Republic of China",id:2128,tag:"mn-Mong-CN",version:"Windows V"},"mn-mong-mn":{language:"Mongolian (Traditional Mongolian)",location:"Mongolia",id:3152,tag:"mn-Mong-MN",version:"Windows 7"},mfe:Ef,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:Af,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:Rf,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:Mf,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:Tf,"ne-in":{language:"Nepali",location:"India",id:2145,tag:"ne-IN",version:"Release 8.1"},"ne-np":{language:"Nepali",location:"Nepal",id:1121,tag:"ne-NP",version:"Release E2"},nnh:Pf,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:Of,"jgo-cm":{language:"Ngomba",location:"Cameroon",id:4096,tag:"jgo-CM",version:"Release 10"},"lrc-iq":{language:"Northern Luri",location:"Iraq",id:4096,tag:"lrc-IQ",version:"Release 10.1"},"lrc-ir":{language:"Northern Luri",location:"Iran",id:4096,tag:"lrc-IR",version:"Release 10.1"},nd:Bf,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:Df,nb:Nf,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:zf,"nn-no":{language:"Norwegian (Nynorsk)",location:"Norway",id:2068,tag:"nn-NO",version:"Release A"},"nb-sj":{language:"Norwegian Bokmål",location:"Svalbard and Jan Mayen",id:4096,tag:"nb-SJ",version:"Release 10"},nus:jf,"nus-sd":{language:"Nuer",location:"Sudan",id:4096,tag:"nus-SD",version:"Release 10"},"nus-ss":{language:"Nuer",location:"South Sudan",id:4096,tag:"nus-SS",version:"Release 10.1"},nyn:Lf,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:Ff,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:If,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:Hf,"om-et":{language:"Oromo",location:"Ethiopia",id:1138,tag:"om-ET",version:"Release 8.1"},"om-ke":{language:"Oromo",location:"Kenya",id:4096,tag:"om-KE",version:"Release 10"},os:Gf,"os-ge":{language:"Ossetian",location:"Cyrillic, Georgia",id:4096,tag:"os-GE",version:"Release 10"},"os-ru":{language:"Ossetian",location:"Cyrillic, Russia",id:4096,tag:"os-RU",version:"Release 10"},ps:Vf,"ps-af":{language:"Pashto",location:"Afghanistan",id:1123,tag:"ps-AF",version:"Release E2"},"ps-pk":{language:"Pashto",location:"Pakistan",id:4096,tag:"ps-PK",version:"Release 10.5"},fa:Uf,"fa-af":{language:"Persian",location:"Afghanistan",id:4096,tag:"fa-AF",version:"Release 10"},"fa-ir":{language:"Persian",location:"Iran",id:1065,tag:"fa-IR",version:"Release B"},pl:Wf,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:qf,"pt-ao":{language:"Portuguese",location:"Angola",id:4096,tag:"pt-AO",version:"Release 8.1"},"pt-br":{language:"Portuguese",location:"Brazil",id:1046,tag:"pt-BR",version:"Release A"},"pt-cv":{language:"Portuguese",location:"Cabo Verde",id:4096,tag:"pt-CV",version:"Release 10"},"pt-gq":{language:"Portuguese",location:"Equatorial Guinea",id:4096,tag:"pt-GQ",version:"Release 10.2"},"pt-gw":{language:"Portuguese",location:"Guinea-Bissau",id:4096,tag:"pt-GW",version:"Release 10"},"pt-lu":{language:"Portuguese",location:"Luxembourg",id:4096,tag:"pt-LU",version:"Release 10.2"},"pt-mo":{language:"Portuguese",location:"Macao SAR",id:4096,tag:"pt-MO",version:"Release 10"},"pt-mz":{language:"Portuguese",location:"Mozambique",id:4096,tag:"pt-MZ",version:"Release 10"},"pt-pt":{language:"Portuguese",location:"Portugal",id:2070,tag:"pt-PT",version:"Release A"},"pt-st":{language:"Portuguese",location:"São Tomé and Príncipe",id:4096,tag:"pt-ST",version:"Release 10"},"pt-ch":{language:"Portuguese",location:"Switzerland",id:4096,tag:"pt-CH",version:"Release 10.2"},"pt-tl":{language:"Portuguese",location:"Timor-Leste",id:4096,tag:"pt-TL",version:"Release 10"},"prg-001":{language:"Prussian",location:null,id:4096,tag:"prg-001",version:"Release 10.1"},"qps-ploca":{language:"Pseudo Language",location:"Pseudo locale for east Asian/complex script localization testing",id:1534,tag:"qps-ploca",version:"Release 7"},"qps-ploc":{language:"Pseudo Language",location:"Pseudo locale used for localization testing",id:1281,tag:"qps-ploc",version:"Release 7"},"qps-plocm":{language:"Pseudo Language",location:"Pseudo locale used for localization testing of mirrored locales",id:2559,tag:"qps-plocm",version:"Release 7"},pa:Kf,"pa-arab":{language:"Punjabi",location:null,id:31814,tag:"pa-Arab",version:"Release 8"},"pa-in":{language:"Punjabi",location:"India",id:1094,tag:"pa-IN",version:"Release D"},"pa-arab-pk":{language:"Punjabi",location:"Islamic Republic of Pakistan",id:2118,tag:"pa-Arab-PK",version:"Release 8"},quz:Yf,"quz-bo":{language:"Quechua",location:"Bolivia",id:1131,tag:"quz-BO",version:"Release E1"},"quz-ec":{language:"Quechua",location:"Ecuador",id:2155,tag:"quz-EC",version:"Release E1"},"quz-pe":{language:"Quechua",location:"Peru",id:3179,tag:"quz-PE",version:"Release E1"},ksh:Xf,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:Zf,"ro-md":{language:"Romanian",location:"Moldova",id:2072,tag:"ro-MD",version:"Release 8.1"},"ro-ro":{language:"Romanian",location:"Romania",id:1048,tag:"ro-RO",version:"Release A"},rm:$f,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:Jf,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:Qf,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:th,"ru-by":{language:"Russian",location:"Belarus",id:4096,tag:"ru-BY",version:"Release 10"},"ru-kz":{language:"Russian",location:"Kazakhstan",id:4096,tag:"ru-KZ",version:"Release 10"},"ru-kg":{language:"Russian",location:"Kyrgyzstan",id:4096,tag:"ru-KG",version:"Release 10"},"ru-md":{language:"Russian",location:"Moldova",id:2073,tag:"ru-MD",version:"Release 10"},"ru-ru":{language:"Russian",location:"Russia",id:1049,tag:"ru-RU",version:"Release A"},"ru-ua":{language:"Russian",location:"Ukraine",id:4096,tag:"ru-UA",version:"Release 10"},rwk:eh,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:nh,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:ih,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:rh,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:ah,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:oh,"smj-no":{language:"Sami (Lule)",location:"Norway",id:4155,tag:"smj-NO",version:"Release E1"},"smj-se":{language:"Sami (Lule)",location:"Sweden",id:5179,tag:"smj-SE",version:"Release E1"},se:sh,"se-fi":{language:"Sami (Northern)",location:"Finland",id:3131,tag:"se-FI",version:"Release E1"},"se-no":{language:"Sami (Northern)",location:"Norway",id:1083,tag:"se-NO",version:"Release E1"},"se-se":{language:"Sami (Northern)",location:"Sweden",id:2107,tag:"se-SE",version:"Release E1"},sms:uh,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:lh,"sma-no":{language:"Sami (Southern)",location:"Norway",id:6203,tag:"sma-NO",version:"Release E1"},"sma-se":{language:"Sami (Southern)",location:"Sweden",id:7227,tag:"sma-SE",version:"Release E1"},sg:ch,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:fh,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:hh,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:dh,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:gh,"seh-mz":{language:"Sena",location:"Mozambique",id:4096,tag:"seh-MZ",version:"Release 10"},"sr-cyrl":{language:"Serbian (Cyrillic)",location:null,id:27674,tag:"sr-Cyrl",version:"Windows 7"},"sr-cyrl-ba":{language:"Serbian (Cyrillic)",location:"Bosnia and Herzegovina",id:7194,tag:"sr-Cyrl-BA",version:"Release E1"},"sr-cyrl-me":{language:"Serbian (Cyrillic)",location:"Montenegro",id:12314,tag:"sr-Cyrl-ME",version:"Release 7"},"sr-cyrl-rs":{language:"Serbian (Cyrillic)",location:"Serbia",id:10266,tag:"sr-Cyrl-RS",version:"Release 7"},"sr-cyrl-cs":{language:"Serbian (Cyrillic)",location:"Serbia and Montenegro (Former)",id:3098,tag:"sr-Cyrl-CS",version:"Release B"},"sr-latn":{language:"Serbian (Latin)",location:null,id:28698,tag:"sr-Latn",version:"Windows 7"},sr:ph,"sr-latn-ba":{language:"Serbian (Latin)",location:"Bosnia and Herzegovina",id:6170,tag:"sr-Latn-BA",version:"Release E1"},"sr-latn-me":{language:"Serbian (Latin)",location:"Montenegro",id:11290,tag:"sr-Latn-ME",version:"Release 7"},"sr-latn-rs":{language:"Serbian (Latin)",location:"Serbia",id:9242,tag:"sr-Latn-RS",version:"Release 7"},"sr-latn-cs":{language:"Serbian (Latin)",location:"Serbia and Montenegro (Former)",id:2074,tag:"sr-Latn-CS",version:"Release B"},nso:vh,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:mh,"tn-bw":{language:"Setswana",location:"Botswana",id:2098,tag:"tn-BW",version:"Release 8"},"tn-za":{language:"Setswana",location:"South Africa",id:1074,tag:"tn-ZA",version:"Release E1"},ksb:yh,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:_h,"sn-latn":{language:"Shona",location:"Latin",id:4096,tag:"sn-Latn",version:"Release 8.1"},"sn-latn-zw":{language:"Shona",location:"Zimbabwe",id:4096,tag:"sn-Latn-ZW",version:"Release 8.1"},sd:bh,"sd-arab":{language:"Sindhi",location:null,id:31833,tag:"sd-Arab",version:"Release 8"},"sd-arab-pk":{language:"Sindhi",location:"Islamic Republic of Pakistan",id:2137,tag:"sd-Arab-PK",version:"Release 8"},si:wh,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:xh,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:kh,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:Sh,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:Ch,"so-dj":{language:"Somali",location:"Djibouti",id:4096,tag:"so-DJ",version:"Release 10"},"so-et":{language:"Somali",location:"Ethiopia",id:4096,tag:"so-ET",version:"Release 10"},"so-ke":{language:"Somali",location:"Kenya",id:4096,tag:"so-KE",version:"Release 10"},"so-so":{language:"Somali",location:"Somalia",id:1143,tag:"so-SO",version:"Release 8.1"},st:Eh,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:Ah,"nr-za":{language:"South Ndebele",location:"South Africa",id:4096,tag:"nr-ZA",version:"Release 10"},"st-ls":{language:"Southern Sotho",location:"Lesotho",id:4096,tag:"st-LS",version:"Release 10"},es:Rh,"es-ar":{language:"Spanish",location:"Argentina",id:11274,tag:"es-AR",version:"Release B"},"es-bz":{language:"Spanish",location:"Belize",id:4096,tag:"es-BZ",version:"Release 10.3"},"es-ve":{language:"Spanish",location:"Bolivarian Republic of Venezuela",id:8202,tag:"es-VE",version:"Release B"},"es-bo":{language:"Spanish",location:"Bolivia",id:16394,tag:"es-BO",version:"Release B"},"es-br":{language:"Spanish",location:"Brazil",id:4096,tag:"es-BR",version:"Release 10.2"},"es-cl":{language:"Spanish",location:"Chile",id:13322,tag:"es-CL",version:"Release B"},"es-co":{language:"Spanish",location:"Colombia",id:9226,tag:"es-CO",version:"Release B"},"es-cr":{language:"Spanish",location:"Costa Rica",id:5130,tag:"es-CR",version:"Release B"},"es-cu":{language:"Spanish",location:"Cuba",id:23562,tag:"es-CU",version:"Release 10"},"es-do":{language:"Spanish",location:"Dominican Republic",id:7178,tag:"es-DO",version:"Release B"},"es-ec":{language:"Spanish",location:"Ecuador",id:12298,tag:"es-EC",version:"Release B"},"es-sv":{language:"Spanish",location:"El Salvador",id:17418,tag:"es-SV",version:"Release B"},"es-gq":{language:"Spanish",location:"Equatorial Guinea",id:4096,tag:"es-GQ",version:"Release 10"},"es-gt":{language:"Spanish",location:"Guatemala",id:4106,tag:"es-GT",version:"Release B"},"es-hn":{language:"Spanish",location:"Honduras",id:18442,tag:"es-HN",version:"Release B"},"es-419":{language:"Spanish",location:"Latin America",id:22538,tag:"es-419",version:"Release 8.1"},"es-mx":{language:"Spanish",location:"Mexico",id:2058,tag:"es-MX",version:"Release A"},"es-ni":{language:"Spanish",location:"Nicaragua",id:19466,tag:"es-NI",version:"Release B"},"es-pa":{language:"Spanish",location:"Panama",id:6154,tag:"es-PA",version:"Release B"},"es-py":{language:"Spanish",location:"Paraguay",id:15370,tag:"es-PY",version:"Release B"},"es-pe":{language:"Spanish",location:"Peru",id:10250,tag:"es-PE",version:"Release B"},"es-ph":{language:"Spanish",location:"Philippines",id:4096,tag:"es-PH",version:"Release 10"},"es-pr":{language:"Spanish",location:"Puerto Rico",id:20490,tag:"es-PR",version:"Release B"},"es-es_tradnl":{language:"Spanish",location:"Spain",id:1034,tag:"es-ES_tradnl",version:"Release A"},"es-es":{language:"Spanish",location:"Spain",id:3082,tag:"es-ES",version:"Release A"},"es-us":{language:"Spanish",location:"UnitedStates",id:21514,tag:"es-US",version:"Release V"},"es-uy":{language:"Spanish",location:"Uruguay",id:14346,tag:"es-UY",version:"Release B"},zgh:Mh,"zgh-tfng-ma":{language:"Standard Moroccan Tamazight",location:"Morocco",id:4096,tag:"zgh-Tfng-MA",version:"Release 8.1"},"zgh-tfng":{language:"Standard Moroccan Tamazight",location:"Tifinagh",id:4096,tag:"zgh-Tfng",version:"Release 8.1"},ss:Th,"ss-za":{language:"Swati",location:"South Africa",id:4096,tag:"ss-ZA",version:"Release 10"},"ss-sz":{language:"Swati",location:"Swaziland",id:4096,tag:"ss-SZ",version:"Release 10"},sv:Ph,"sv-ax":{language:"Swedish",location:"Åland Islands",id:4096,tag:"sv-AX",version:"Release 10"},"sv-fi":{language:"Swedish",location:"Finland",id:2077,tag:"sv-FI",version:"Release B"},"sv-se":{language:"Swedish",location:"Sweden",id:1053,tag:"sv-SE",version:"Release A"},syr:Oh,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:Bh,"shi-tfng":{language:"Tachelhit",location:"Tifinagh",id:4096,tag:"shi-Tfng",version:"Release 10"},"shi-tfng-ma":{language:"Tachelhit",location:"Tifinagh, Morocco",id:4096,tag:"shi-Tfng-MA",version:"Release 10"},"shi-latn":{language:"Tachelhit (Latin)",location:null,id:4096,tag:"shi-Latn",version:"Release 10"},"shi-latn-ma":{language:"Tachelhit (Latin)",location:"Morocco",id:4096,tag:"shi-Latn-MA",version:"Release 10"},dav:Dh,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:Nh,"tg-cyrl":{language:"Tajik (Cyrillic)",location:null,id:31784,tag:"tg-Cyrl",version:"Windows 7"},"tg-cyrl-tj":{language:"Tajik (Cyrillic)",location:"Tajikistan",id:1064,tag:"tg-Cyrl-TJ",version:"Release V"},tzm:zh,"tzm-latn":{language:"Tamazight (Latin)",location:null,id:31839,tag:"tzm-Latn",version:"Windows 7"},"tzm-latn-dz":{language:"Tamazight (Latin)",location:"Algeria",id:2143,tag:"tzm-Latn-DZ",version:"Release V"},ta:jh,"ta-in":{language:"Tamil",location:"India",id:1097,tag:"ta-IN",version:"Release C"},"ta-my":{language:"Tamil",location:"Malaysia",id:4096,tag:"ta-MY",version:"Release 10"},"ta-sg":{language:"Tamil",location:"Singapore",id:4096,tag:"ta-SG",version:"Release 10"},"ta-lk":{language:"Tamil",location:"Sri Lanka",id:2121,tag:"ta-LK",version:"Release 8"},twq:Lh,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:Fh,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:Ih,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:Hh,"teo-ke":{language:"Teso",location:"Kenya",id:4096,tag:"teo-KE",version:"Release 10"},"teo-ug":{language:"Teso",location:"Uganda",id:4096,tag:"teo-UG",version:"Release 10"},th:Gh,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:Vh,"bo-in":{language:"Tibetan",location:"India",id:4096,tag:"bo-IN",version:"Release 10"},"bo-cn":{language:"Tibetan",location:"People's Republic of China",id:1105,tag:"bo-CN",version:"Release V"},tig:Uh,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:Wh,"ti-er":{language:"Tigrinya",location:"Eritrea",id:2163,tag:"ti-ER",version:"Release 8"},"ti-et":{language:"Tigrinya",location:"Ethiopia",id:1139,tag:"ti-ET",version:"Release 8"},to:qh,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:Kh,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:Yh,"tr-cy":{language:"Turkish",location:"Cyprus",id:4096,tag:"tr-CY",version:"Release 10"},"tr-tr":{language:"Turkish",location:"Turkey",id:1055,tag:"tr-TR",version:"Release A"},tk:Xh,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:Zh,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:$h,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:Jh,"ur-in":{language:"Urdu",location:"India",id:2080,tag:"ur-IN",version:"Release 8.1"},"ur-pk":{language:"Urdu",location:"Islamic Republic of Pakistan",id:1056,tag:"ur-PK",version:"Release C"},ug:Qh,"ug-cn":{language:"Uyghur",location:"People's Republic of China",id:1152,tag:"ug-CN",version:"Release V"},"uz-arab":{language:"Uzbek",location:"Perso-Arabic",id:4096,tag:"uz-Arab",version:"Release 10"},"uz-arab-af":{language:"Uzbek",location:"Perso-Arabic, Afghanistan",id:4096,tag:"uz-Arab-AF",version:"Release 10"},"uz-cyrl":{language:"Uzbek (Cyrillic)",location:null,id:30787,tag:"uz-Cyrl",version:"Windows 7"},"uz-cyrl-uz":{language:"Uzbek (Cyrillic)",location:"Uzbekistan",id:2115,tag:"uz-Cyrl-UZ",version:"Release C"},uz:td,"uz-latn":{language:"Uzbek (Latin)",location:null,id:31811,tag:"uz-Latn",version:"Windows7"},"uz-latn-uz":{language:"Uzbek (Latin)",location:"Uzbekistan",id:1091,tag:"uz-Latn-UZ",version:"Release C"},vai:ed,"vai-vaii":{language:"Vai",location:null,id:4096,tag:"vai-Vaii",version:"Release 10"},"vai-vaii-lr":{language:"Vai",location:"Liberia",id:4096,tag:"vai-Vaii-LR",version:"Release 10"},"vai-latn-lr":{language:"Vai (Latin)",location:"Liberia",id:4096,tag:"vai-Latn-LR",version:"Release 10"},"vai-latn":{language:"Vai (Latin)",location:null,id:4096,tag:"vai-Latn",version:"Release 10"},"ca-es-":{language:"Valencian",location:"Spain",id:2051,tag:"ca-ES-",version:"Release 8"},ve:nd,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:id,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:rd,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:ad,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:od,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:sd,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:ud,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:ld,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:cd,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:fd,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:hd,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:dd,"yo-bj":{language:"Yoruba",location:"Benin",id:4096,tag:"yo-BJ",version:"Release 10"},"yo-ng":{language:"Yoruba",location:"Nigeria",id:1130,tag:"yo-NG",version:"Release V"},dje:gd,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:pd,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var md={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var yd={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var _d={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var bd={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var wd={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var xd={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var kd={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var Sd={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var Cd={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var Ed={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var Ad={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var Rd={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var Md={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var Td={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Pd={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var Od={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Bd={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var Dd={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var Nd={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var zd={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var jd={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var Ld={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var Fd={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var Id={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Hd={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Gd={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var Vd={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Ud={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Wd={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var qd={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var Kd={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var Yd={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var Xd={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var Zd={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var $d={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var Jd={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var Qd={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var tg={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var eg={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var ng={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var ig={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var rg={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var ag={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var og={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var sg={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var ug={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var lg={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var cg={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var fg={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var hg={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var dg={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var gg={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var pg={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var vg={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var mg={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var yg={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var _g={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var bg={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var wg={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var xg={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var kg={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var Sg={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var Cg={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var Eg={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Ag={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var Rg={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var Mg={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var Tg={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var Pg={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var Og={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Bg={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var Dg={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var Ng={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var zg={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var jg={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var Lg={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var Fg={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Ig={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var Hg={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var Gg={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var Vg={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var Ug={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var Wg={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var qg={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var Kg={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var Yg={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var Xg={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var Zg={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var $g={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var Jg={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var Qg={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var tp={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var ep={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var np={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var ip={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var rp={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var ap={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var op={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var sp={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var up={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var lp={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var cp={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var fp={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var hp={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var dp={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var gp={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var pp={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var vp={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var mp={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var yp={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var _p={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var bp={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var wp={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var xp={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var kp={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var Sp={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Cp={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var Ep={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Ap={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var Rp={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var Mp={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var Tp={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var Pp={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var Op={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var Bp={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var Dp={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var Np={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var zp={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var jp={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var Lp={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var Fp={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var Ip={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Hp={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var Gp={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var Vp={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var Up={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var Wp={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var qp={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var Kp={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var Yp={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var Xp={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var Zp={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var $p={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var Jp={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var Qp={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var tv={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var ev={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var nv={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var iv={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var rv={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var av={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var ov={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var sv={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var uv={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var lv={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var cv={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var fv={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var hv={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var dv={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var gv={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var pv={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var vv={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var mv={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var yv={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var _v={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var bv={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var wv={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var xv={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var kv={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var Sv={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Cv={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var Ev={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Av={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var Rv={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var Mv={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var Tv={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var Pv={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var Ov={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var Bv={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var Dv={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var Nv={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var zv={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var jv={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Lv={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Fv={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var Iv={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var Hv={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Gv={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var Vv={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Uv={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var Wv={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var qv={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var Kv={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var Yv={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var Xv={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var Zv={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var $v={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var Jv={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var Qv={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var tm={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var em={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var nm={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var im={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var rm={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var am={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var om={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var sm={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var um={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var lm={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var cm={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var fm={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var hm={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var dm={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var gm={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var pm={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var vm={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var mm={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var ym={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var _m={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var bm={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var wm={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var xm={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var km={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var Sm={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var Cm={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var Em={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var Am={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var Rm={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var Mm={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var Tm={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var Pm={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var Om={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Bm={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var Dm={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var Nm={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var zm={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var jm={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var Lm={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var Fm={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var Im={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var Hm={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var Gm={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var Vm={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var Um={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var Wm={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var qm={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var Km={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var Ym={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var Xm={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var Zm={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var $m={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var Jm={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var Qm={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var ty={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var ey={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var ny={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var iy={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var ry={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var ay={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var oy={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var sy={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var uy={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var ly={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var cy={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var fy={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var hy={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var dy={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var gy={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var py={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var vy={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var my={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var yy={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var _y={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var by={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var wy={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var xy={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var ky={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Sy={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Cy={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var Ey={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var Ay={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var Ry={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var My={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var Ty={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var Py={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var Oy={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var By={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var Dy={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var Ny={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var zy={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var jy={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var Ly={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Fy={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Iy={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var Hy={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var Gy={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Vy={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var Uy={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var Wy={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var qy={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var Ky={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Yy={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var Xy={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var Zy={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var $y={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var Jy={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var Qy={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var t_={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var e_={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var n_={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var i_={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var r_={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var a_={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var o_={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var s_={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var u_={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var l_={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var c_={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var f_={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var h_={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var d_={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var g_={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var p_={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var v_={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var m_={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var y_={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var __={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var b_={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var w_={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var x_={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var k_={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var S_={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var C_={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var E_={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var A_={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var R_={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var M_={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var T_={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var P_={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var O_={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var B_={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var D_={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var N_={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var z_={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var j_={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var L_={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var F_={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var I_={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var H_={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var G_={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var V_={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var U_={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var W_={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var q_={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var K_={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var Y_={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var X_={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var Z_={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var $_={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var J_={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var Q_={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var tb={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var eb={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var nb={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var ib={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var rb={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var ab={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var ob={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var sb={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var ub={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var lb={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var cb={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var fb={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var hb={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var db={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var gb={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var pb={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var vb={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var mb={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var yb={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var _b={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var bb={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var wb={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var xb={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var kb={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var Sb={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var Cb={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var Eb={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var Ab={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var Rb={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var Mb={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var Tb={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var Pb={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var Ob={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var Bb={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var Db={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var Nb={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var zb={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var jb={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var Lb={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Fb={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ib={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var Hb={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Gb={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var Vb={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var Ub={Abkhazian:md,Achinese:yd,Acoli:_d,Adangme:bd,Adygei:wd,Adyghe:xd,Afar:kd,Afrihili:Sd,Afrikaans:Cd,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:Ed,Akan:Ad,Akkadian:Rd,Albanian:Md,Alemannic:Td,Aleut:Pd,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:Od,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:Bd,Angika:Dd,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:Nd,Aragonese:zd,Arapaho:jd,Arawak:Ld,Armenian:Fd,Aromanian:Id,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:Hd,Assamese:Gd,Asturian:Vd,Asturleonese:Ud,"Athapascan languages":{name:"Athapascan languages",names:["Athapascan languages"],"iso639-2":"ath","iso639-1":null},"Australian languages":{name:"Australian languages",names:["Australian languages"],"iso639-2":"aus","iso639-1":null},"Austronesian languages":{name:"Austronesian languages",names:["Austronesian languages"],"iso639-2":"map","iso639-1":null},Avaric:Wd,Avestan:qd,Awadhi:Kd,Aymara:Yd,Azerbaijani:Xd,Bable:Zd,Balinese:$d,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:Jd,Bambara:Qd,"Bamileke languages":{name:"Bamileke languages",names:["Bamileke languages"],"iso639-2":"bai","iso639-1":null},"Banda languages":{name:"Banda languages",names:["Banda languages"],"iso639-2":"bad","iso639-1":null},"Bantu languages":{name:"Bantu languages",names:["Bantu languages"],"iso639-2":"bnt","iso639-1":null},Basa:tg,Bashkir:eg,Basque:ng,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:ig,Beja:rg,Belarusian:ag,Bemba:og,Bengali:sg,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:ug,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:lg,Bilin:cg,Bini:fg,Bislama:hg,Blin:dg,Bliss:gg,Blissymbolics:pg,Blissymbols:vg,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:mg,Braj:yg,Breton:_g,Buginese:bg,Bulgarian:wg,Buriat:xg,Burmese:kg,Caddo:Sg,Castilian:Cg,Catalan:Eg,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:Ag,"Celtic languages":{name:"Celtic languages",names:["Celtic languages"],"iso639-2":"cel","iso639-1":null},"Central American Indian languages":{name:"Central American Indian languages",names:["Central American Indian languages"],"iso639-2":"cai","iso639-1":null},"Central Khmer":{name:"Central Khmer",names:["Central Khmer"],"iso639-2":"khm","iso639-1":"km"},Chagatai:Rg,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:Mg,Chechen:Tg,Cherokee:Pg,Chewa:Og,Cheyenne:Bg,Chibcha:Dg,Chichewa:Ng,Chinese:zg,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:jg,Choctaw:Lg,Chuang:Fg,"Church Slavic":{name:"Church Slavic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Church Slavonic":{name:"Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Chuukese:Ig,Chuvash:Hg,"Classical Nepal Bhasa":{name:"Classical Nepal Bhasa",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Newari":{name:"Classical Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Syriac":{name:"Classical Syriac",names:["Classical Syriac"],"iso639-2":"syc","iso639-1":null},"Cook Islands Maori":{name:"Cook Islands Maori",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null},Coptic:Gg,Cornish:Vg,Corsican:Ug,Cree:Wg,Creek:qg,"Creoles and pidgins":{name:"Creoles and pidgins",names:["Creoles and pidgins"],"iso639-2":"crp","iso639-1":null},"Creoles and pidgins, English based":{name:"Creoles and pidgins, English based",names:["Creoles and pidgins, English based"],"iso639-2":"cpe","iso639-1":null},"Creoles and pidgins, French-based":{name:"Creoles and pidgins, French-based",names:["Creoles and pidgins, French-based"],"iso639-2":"cpf","iso639-1":null},"Creoles and pidgins, Portuguese-based":{name:"Creoles and pidgins, Portuguese-based",names:["Creoles and pidgins, Portuguese-based"],"iso639-2":"cpp","iso639-1":null},"Crimean Tatar":{name:"Crimean Tatar",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},"Crimean Turkish":{name:"Crimean Turkish",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},Croatian:Kg,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:Yg,Dakota:Xg,Danish:Zg,Dargwa:$g,Delaware:Jg,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:Qg,Dimili:tp,Dimli:ep,Dinka:np,Divehi:ip,Dogri:rp,Dogrib:ap,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:op,Dutch:sp,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:up,Dzongkha:lp,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:cp,Efik:fp,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:hp,Elamite:dp,English:gp,"English, Middle (1100-1500)":{name:"English, Middle (1100-1500)",names:["English, Middle (1100-1500)"],"iso639-2":"enm","iso639-1":null},"English, Old (ca.450-1100)":{name:"English, Old (ca.450-1100)",names:["English, Old (ca.450-1100)"],"iso639-2":"ang","iso639-1":null},Erzya:pp,Esperanto:vp,Estonian:mp,Ewe:yp,Ewondo:_p,Fang:bp,Fanti:wp,Faroese:xp,Fijian:kp,Filipino:Sp,Finnish:Cp,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:Ep,Fon:Ap,French:Rp,"French, Middle (ca.1400-1600)":{name:"French, Middle (ca.1400-1600)",names:["French, Middle (ca.1400-1600)"],"iso639-2":"frm","iso639-1":null},"French, Old (842-ca.1400)":{name:"French, Old (842-ca.1400)",names:["French, Old (842-ca.1400)"],"iso639-2":"fro","iso639-1":null},Friulian:Mp,Fulah:Tp,Ga:Pp,Gaelic:Op,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:Bp,Ganda:Dp,Gayo:Np,Gbaya:zp,Geez:jp,Georgian:Lp,German:Fp,"German, Low":{name:"German, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"German, Middle High (ca.1050-1500)":{name:"German, Middle High (ca.1050-1500)",names:["German, Middle High (ca.1050-1500)"],"iso639-2":"gmh","iso639-1":null},"German, Old High (ca.750-1050)":{name:"German, Old High (ca.750-1050)",names:["German, Old High (ca.750-1050)"],"iso639-2":"goh","iso639-1":null},"Germanic languages":{name:"Germanic languages",names:["Germanic languages"],"iso639-2":"gem","iso639-1":null},Gikuyu:Ip,Gilbertese:Hp,Gondi:Gp,Gorontalo:Vp,Gothic:Up,Grebo:Wp,"Greek, Ancient (to 1453)":{name:"Greek, Ancient (to 1453)",names:["Greek, Ancient (to 1453)"],"iso639-2":"grc","iso639-1":null},"Greek, Modern (1453-)":{name:"Greek, Modern (1453-)",names:["Greek, Modern (1453-)"],"iso639-2":"gre/ell","iso639-1":"el"},Greenlandic:qp,Guarani:Kp,Gujarati:Yp,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:Xp,Haitian:Zp,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:$p,Hawaiian:Jp,Hebrew:Qp,Herero:tv,Hiligaynon:ev,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:nv,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:iv,Hmong:rv,Hungarian:av,Hupa:ov,Iban:sv,Icelandic:uv,Ido:lv,Igbo:cv,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:fv,"Imperial Aramaic (700-300 BCE)":{name:"Imperial Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},"Inari Sami":{name:"Inari Sami",names:["Inari Sami"],"iso639-2":"smn","iso639-1":null},"Indic languages":{name:"Indic languages",names:["Indic languages"],"iso639-2":"inc","iso639-1":null},"Indo-European languages":{name:"Indo-European languages",names:["Indo-European languages"],"iso639-2":"ine","iso639-1":null},Indonesian:hv,Ingush:dv,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:gv,Inuktitut:pv,Inupiaq:vv,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:mv,"Irish, Middle (900-1200)":{name:"Irish, Middle (900-1200)",names:["Irish, Middle (900-1200)"],"iso639-2":"mga","iso639-1":null},"Irish, Old (to 900)":{name:"Irish, Old (to 900)",names:["Irish, Old (to 900)"],"iso639-2":"sga","iso639-1":null},"Iroquoian languages":{name:"Iroquoian languages",names:["Iroquoian languages"],"iso639-2":"iro","iso639-1":null},Italian:yv,Japanese:_v,Javanese:bv,Jingpho:wv,"Judeo-Arabic":{name:"Judeo-Arabic",names:["Judeo-Arabic"],"iso639-2":"jrb","iso639-1":null},"Judeo-Persian":{name:"Judeo-Persian",names:["Judeo-Persian"],"iso639-2":"jpr","iso639-1":null},Kabardian:xv,Kabyle:kv,Kachin:Sv,Kalaallisut:Cv,Kalmyk:Ev,Kamba:Av,Kannada:Rv,Kanuri:Mv,Kapampangan:Tv,"Kara-Kalpak":{name:"Kara-Kalpak",names:["Kara-Kalpak"],"iso639-2":"kaa","iso639-1":null},"Karachay-Balkar":{name:"Karachay-Balkar",names:["Karachay-Balkar"],"iso639-2":"krc","iso639-1":null},Karelian:Pv,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:Ov,Kashubian:Bv,Kawi:Dv,Kazakh:Nv,Khasi:zv,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:jv,Kikuyu:Lv,Kimbundu:Fv,Kinyarwanda:Iv,Kirdki:Hv,Kirghiz:Gv,Kirmanjki:Vv,Klingon:Uv,Komi:Wv,Kongo:qv,Konkani:Kv,Korean:Yv,Kosraean:Xv,Kpelle:Zv,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:$v,Kumyk:Jv,Kurdish:Qv,Kurukh:tm,Kutenai:em,Kwanyama:nm,Kyrgyz:im,Ladino:rm,Lahnda:am,Lamba:om,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:sm,Latin:um,Latvian:lm,Leonese:cm,Letzeburgesch:fm,Lezghian:hm,Limburgan:dm,Limburger:gm,Limburgish:pm,Lingala:vm,Lithuanian:mm,Lojban:ym,"Low German":{name:"Low German",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Low Saxon":{name:"Low Saxon",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Lower Sorbian":{name:"Lower Sorbian",names:["Lower Sorbian"],"iso639-2":"dsb","iso639-1":null},Lozi:_m,"Luba-Katanga":{name:"Luba-Katanga",names:["Luba-Katanga"],"iso639-2":"lub","iso639-1":"lu"},"Luba-Lulua":{name:"Luba-Lulua",names:["Luba-Lulua"],"iso639-2":"lua","iso639-1":null},Luiseno:bm,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:wm,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:xm,Luxembourgish:km,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:Sm,Madurese:Cm,Magahi:Em,Maithili:Am,Makasar:Rm,Malagasy:Mm,Malay:Tm,Malayalam:Pm,Maldivian:Om,Maltese:Bm,Manchu:Dm,Mandar:Nm,Mandingo:zm,Manipuri:jm,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:Lm,Maori:Fm,Mapuche:Im,Mapudungun:Hm,Marathi:Gm,Mari:Vm,Marshallese:Um,Marwari:Wm,Masai:qm,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:Km,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:Ym,Minangkabau:Xm,Mirandese:Zm,Mohawk:$m,Moksha:Jm,Moldavian:Qm,Moldovan:ty,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:ey,Mongo:ny,Mongolian:iy,Montenegrin:ry,Mossi:ay,"Multiple languages":{name:"Multiple languages",names:["Multiple languages"],"iso639-2":"mul","iso639-1":null},"Munda languages":{name:"Munda languages",names:["Munda languages"],"iso639-2":"mun","iso639-1":null},"N'Ko":{name:"N'Ko",names:["N'Ko"],"iso639-2":"nqo","iso639-1":null},"Nahuatl languages":{name:"Nahuatl languages",names:["Nahuatl languages"],"iso639-2":"nah","iso639-1":null},Nauru:oy,Navaho:sy,Navajo:uy,"Ndebele, North":{name:"Ndebele, North",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Ndebele, South":{name:"Ndebele, South",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},Ndonga:ly,Neapolitan:cy,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:fy,Newari:hy,Nias:dy,"Niger-Kordofanian languages":{name:"Niger-Kordofanian languages",names:["Niger-Kordofanian languages"],"iso639-2":"nic","iso639-1":null},"Nilo-Saharan languages":{name:"Nilo-Saharan languages",names:["Nilo-Saharan languages"],"iso639-2":"ssa","iso639-1":null},Niuean:gy,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:py,"Norse, Old":{name:"Norse, Old",names:["Norse, Old"],"iso639-2":"non","iso639-1":null},"North American Indian languages":{name:"North American Indian languages",names:["North American Indian languages"],"iso639-2":"nai","iso639-1":null},"North Ndebele":{name:"North Ndebele",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Northern Frisian":{name:"Northern Frisian",names:["Northern Frisian"],"iso639-2":"frr","iso639-1":null},"Northern Sami":{name:"Northern Sami",names:["Northern Sami"],"iso639-2":"sme","iso639-1":"se"},"Northern Sotho":{name:"Northern Sotho",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},Norwegian:vy,"Norwegian Bokmål":{name:"Norwegian Bokmål",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},"Norwegian Nynorsk":{name:"Norwegian Nynorsk",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},"Not applicable":{name:"Not applicable",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},"Nubian languages":{name:"Nubian languages",names:["Nubian languages"],"iso639-2":"nub","iso639-1":null},Nuosu:my,Nyamwezi:yy,Nyanja:_y,Nyankole:by,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:wy,Nzima:xy,Occidental:ky,"Occitan (post 1500)":{name:"Occitan (post 1500)",names:["Occitan (post 1500)"],"iso639-2":"oci","iso639-1":"oc"},"Occitan, Old (to 1500)":{name:"Occitan, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},"Official Aramaic (700-300 BCE)":{name:"Official Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},Oirat:Sy,Ojibwa:Cy,"Old Bulgarian":{name:"Old Bulgarian",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Church Slavonic":{name:"Old Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Newari":{name:"Old Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Old Slavonic":{name:"Old Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Oriya:Ey,Oromo:Ay,Osage:Ry,Ossetian:My,Ossetic:Ty,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:Py,Palauan:Oy,Pali:By,Pampanga:Dy,Pangasinan:Ny,Panjabi:zy,Papiamento:jy,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:Ly,Pedi:Fy,Persian:Iy,"Persian, Old (ca.600-400 B.C.)":{name:"Persian, Old (ca.600-400 B.C.)",names:["Persian, Old (ca.600-400 B.C.)"],"iso639-2":"peo","iso639-1":null},"Philippine languages":{name:"Philippine languages",names:["Philippine languages"],"iso639-2":"phi","iso639-1":null},Phoenician:Hy,Pilipino:Gy,Pohnpeian:Vy,Polish:Uy,Portuguese:Wy,"Prakrit languages":{name:"Prakrit languages",names:["Prakrit languages"],"iso639-2":"pra","iso639-1":null},"Provençal, Old (to 1500)":{name:"Provençal, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},Punjabi:qy,Pushto:Ky,Quechua:Yy,Rajasthani:Xy,Rapanui:Zy,Rarotongan:$y,"Reserved for local use":{name:"Reserved for local use",names:["Reserved for local use"],"iso639-2":"qaa-qtz","iso639-1":null},"Romance languages":{name:"Romance languages",names:["Romance languages"],"iso639-2":"roa","iso639-1":null},Romanian:Jy,Romansh:Qy,Romany:t_,Rundi:e_,Russian:n_,Sakan:i_,"Salishan languages":{name:"Salishan languages",names:["Salishan languages"],"iso639-2":"sal","iso639-1":null},"Samaritan Aramaic":{name:"Samaritan Aramaic",names:["Samaritan Aramaic"],"iso639-2":"sam","iso639-1":null},"Sami languages":{name:"Sami languages",names:["Sami languages"],"iso639-2":"smi","iso639-1":null},Samoan:r_,Sandawe:a_,Sango:o_,Sanskrit:s_,Santali:u_,Sardinian:l_,Sasak:c_,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:f_,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:h_,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:d_,Serbian:g_,Serer:p_,Shan:v_,Shona:m_,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:y_,Sidamo:__,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:b_,Sindhi:w_,Sinhala:x_,Sinhalese:k_,"Sino-Tibetan languages":{name:"Sino-Tibetan languages",names:["Sino-Tibetan languages"],"iso639-2":"sit","iso639-1":null},"Siouan languages":{name:"Siouan languages",names:["Siouan languages"],"iso639-2":"sio","iso639-1":null},"Skolt Sami":{name:"Skolt Sami",names:["Skolt Sami"],"iso639-2":"sms","iso639-1":null},"Slave (Athapascan)":{name:"Slave (Athapascan)",names:["Slave (Athapascan)"],"iso639-2":"den","iso639-1":null},"Slavic languages":{name:"Slavic languages",names:["Slavic languages"],"iso639-2":"sla","iso639-1":null},Slovak:S_,Slovenian:C_,Sogdian:E_,Somali:A_,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:R_,"Sorbian languages":{name:"Sorbian languages",names:["Sorbian languages"],"iso639-2":"wen","iso639-1":null},"Sotho, Northern":{name:"Sotho, Northern",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},"Sotho, Southern":{name:"Sotho, Southern",names:["Sotho, Southern"],"iso639-2":"sot","iso639-1":"st"},"South American Indian languages":{name:"South American Indian languages",names:["South American Indian languages"],"iso639-2":"sai","iso639-1":null},"South Ndebele":{name:"South Ndebele",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},"Southern Altai":{name:"Southern Altai",names:["Southern Altai"],"iso639-2":"alt","iso639-1":null},"Southern Sami":{name:"Southern Sami",names:["Southern Sami"],"iso639-2":"sma","iso639-1":null},Spanish:M_,"Sranan Tongo":{name:"Sranan Tongo",names:["Sranan Tongo"],"iso639-2":"srn","iso639-1":null},"Standard Moroccan Tamazight":{name:"Standard Moroccan Tamazight",names:["Standard Moroccan Tamazight"],"iso639-2":"zgh","iso639-1":null},Sukuma:T_,Sumerian:P_,Sundanese:O_,Susu:B_,Swahili:D_,Swati:N_,Swedish:z_,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:j_,Tagalog:L_,Tahitian:F_,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:I_,Tamashek:H_,Tamil:G_,Tatar:V_,Telugu:U_,Tereno:W_,Tetum:q_,Thai:K_,Tibetan:Y_,Tigre:X_,Tigrinya:Z_,Timne:$_,Tiv:J_,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:Q_,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:tb,"Tonga (Nyasa)":{name:"Tonga (Nyasa)",names:["Tonga (Nyasa)"],"iso639-2":"tog","iso639-1":null},"Tonga (Tonga Islands)":{name:"Tonga (Tonga Islands)",names:["Tonga (Tonga Islands)"],"iso639-2":"ton","iso639-1":"to"},Tsimshian:eb,Tsonga:nb,Tswana:ib,Tumbuka:rb,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:ab,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:ob,Tuvalu:sb,Tuvinian:ub,Twi:lb,Udmurt:cb,Ugaritic:fb,Uighur:hb,Ukrainian:db,Umbundu:gb,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:pb,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:vb,Uyghur:mb,Uzbek:yb,Vai:_b,Valencian:bb,Venda:wb,Vietnamese:xb,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:kb,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:Sb,Waray:Cb,Washo:Eb,Welsh:Ab,"Western Frisian":{name:"Western Frisian",names:["Western Frisian"],"iso639-2":"fry","iso639-1":"fy"},"Western Pahari languages":{name:"Western Pahari languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Wolaitta:Rb,Wolaytta:Mb,Wolof:Tb,Xhosa:Pb,Yakut:Ob,Yao:Bb,Yapese:Db,Yiddish:Nb,Yoruba:zb,"Yupik languages":{name:"Yupik languages",names:["Yupik languages"],"iso639-2":"ypk","iso639-1":null},"Zande languages":{name:"Zande languages",names:["Zande languages"],"iso639-2":"znd","iso639-1":null},Zapotec:jb,Zaza:Lb,Zazaki:Fb,Zenaga:Ib,Zhuang:Hb,Zulu:Gb,Zuni:Vb};function Wb(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}var qb=[];var Kb=Object.keys(Ub);Object.keys(vd).map(function(t){var e=vd[t];var n=Kb.find(function(t){return t.toLowerCase()===e.language.toLowerCase()});if(e.location&&n){var i;qb.push((i={},Wb(i,"name",e.language),Wb(i,"location",e.location),Wb(i,"tag",e.tag),Wb(i,"lcid",e.id),Wb(i,"iso639-2",Ub[n]["iso639-2"]),Wb(i,"iso639-1",Ub[n]["iso639-1"]),i))}});var Yb={ar:"ar-SA",ca:"ca-ES",da:"da-DK",en:"en-US",ko:"ko-KR",pa:"pa-IN",pt:"pt-BR",sv:"sv-SE"};function Xb(e){if(typeof e!=="string"||e.length===5)return e;if(Yb[e])return Yb[e];var t=qb.filter(function(t){return t["iso639-1"]===e});if(!t.length)return e;else if(t.length===1)return t[0].tag;else if(t.find(function(t){return t.tag==="".concat(e,"-").concat(e.toUpperCase())}))return"".concat(e,"-").concat(e.toUpperCase());else return t[0].tag}function Zb(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function $b(){return"".concat(Zb()).concat(Zb(),"-").concat(Zb(),"-").concat(Zb(),"-").concat(Zb(),"-").concat(Zb()).concat(Zb()).concat(Zb())}var Jb="D3PLUS-COMMON-RESET";var Qb={and:"y",Back:"Atrás","Click to Expand":"Clic para Ampliar","Click to Hide":"Clic para Ocultar","Click to Highlight":"Clic para Resaltar","Click to Reset":"Clic para Restablecer",Download:"Descargar","Loading Visualization":"Cargando Visualización","No Data Available":"Datos No Disponibles","Powered by D3plus":"Funciona con D3plus",Share:"Porcentaje","Shift+Click to Hide":"Mayús+Clic para Ocultar",Total:"Total",Values:"Valores"};var tw={"es-ES":Qb};function ew(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function nw(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function iw(t,e,n){if(e)nw(t.prototype,e);if(n)nw(t,n);return t}function rw(t,e){if(Qu(t)){for(var n in t){if({}.hasOwnProperty.call(t,n)&&!n.startsWith("_")){var i=e&&Qu(e)?e[n]:undefined;if(t[n]===Jb){if(i)t[n]=i;else delete t[n]}else if(Qu(t[n])){rw(t[n],i)}}}}}function aw(t){var e=[];do{e=e.concat(Object.getOwnPropertyNames(t));t=Object.getPrototypeOf(t)}while(t&&t!==Object.prototype);return e.filter(function(t){return t.indexOf("_")!==0&&!["config","constructor","parent","render"].includes(t)})}var ow=function(){function t(){var i=this;ew(this,t);this._locale="en-US";this._on={};this._parent={};this._translate=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:i._locale;var n=tw[e];return n&&n[t]?n[t]:t};this._uuid=$b()}iw(t,[{key:"config",value:function n(t){var i=this;if(!this._configDefault){var n={};aw(this.__proto__).forEach(function(t){var e=i[t]();if(e!==i)n[t]=Qu(e)?el({},e):e});this._configDefault=n}if(arguments.length){for(var e in t){if({}.hasOwnProperty.call(t,e)&&e in this){var r=t[e];if(r===Jb){if(e==="on")this._on=this._configDefault[e];else this[e](this._configDefault[e])}else{rw(r,this._configDefault[e]);this[e](r)}}}return this}else{var a={};aw(this.__proto__).forEach(function(t){a[t]=i[t]()});return a}}},{key:"locale",value:function t(e){return arguments.length?(this._locale=Xb(e),this):this._locale}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"parent",value:function t(e){return arguments.length?(this._parent=e,this):this._parent}},{key:"translate",value:function t(e){return arguments.length?(this._translate=e,this):this._translate}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=el(this._shapeConfig,e),this):this._shapeConfig}}]);return t}();function sw(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!t||!(t instanceof Array)||!t.length)return undefined;return t.reduce(function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t})}function uw(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){uw=function t(e){return typeof e}}else{uw=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return uw(t)}function lw(){var a=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var o=function t(r){return function(t,e,n){var i;while(t.__d3plus__){if(i)t.__d3plusParent__=i;i=t;e=t.i;t=t.data||t.feature}return r.bind(a)(t,e,n||i)}};var s=function t(e,n){for(var i in n){if({}.hasOwnProperty.call(n,i)&&!i.includes(".")||i.includes(".".concat(r))){e.on[i]=o(n[i])}}};var u=function e(t){return t.map(function(t){if(t instanceof Array)return e(t);else if(uw(t)==="object")return i({},t);else if(typeof t==="function")return o(t);else return t})};var i=function t(e,n){for(var i in n){if({}.hasOwnProperty.call(n,i)){if(i==="on")s(e,n[i]);else if(typeof n[i]==="function"){e[i]=o(n[i])}else if(n[i]instanceof Array){e[i]=u(n[i])}else if(uw(n[i])==="object"){e[i]={on:{}};t(e[i],n[i])}else e[i]=n[i]}}};i(n,t);if(this._on)s(n,this._on);if(e&&t[e]){i(n,t[e]);if(t[e].on)s(n,t[e].on)}return n}function cw(e){return function t(){return e}}function fw(t,e){e=Object.assign({},{condition:true,enter:{},exit:{},parent:Yo("body"),transition:Uu().duration(0),update:{}},e);var n=/\.([^#]+)/g.exec(t),i=/#([^\.]+)/g.exec(t),r=/^([^.^#]+)/g.exec(t)[1];var a=e.parent.selectAll(t.includes(":")?t.split(":")[1]:t).data(e.condition?[null]:[]);var o=a.enter().append(r).call(nl,e.enter);if(i)o.attr("id",i[1]);if(n)o.attr("class",n[1]);a.exit().transition(e.transition).call(nl,e.exit).remove();var s=o.merge(a);s.transition(e.transition).call(nl,e.update);return s}function hw(t){return t.filter(function(t,e,n){return n.indexOf(t)===e})}function dw(r){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=hw(he(r.map(function(t){return Ke(t)}))),o={};t.forEach(function(e){var t;if(a[e])t=a[e](r,function(t){return t[e]});else{var n=r.map(function(t){return t[e]});var i=n.map(function(t){return t||t===false?t.constructor:t}).filter(function(t){return t!==void 0});if(!i.length)t=undefined;else if(i.indexOf(Array)>=0){t=he(n.map(function(t){return t instanceof Array?t:[t]}));t=hw(t);if(t.length===1)t=t[0]}else if(i.indexOf(String)>=0){t=hw(n);if(t.length===1)t=t[0]}else if(i.indexOf(Number)>=0)t=ge(n);else if(i.indexOf(Object)>=0){t=hw(n.filter(function(t){return t}));if(t.length===1)t=t[0];else t=dw(t)}else{t=hw(n.filter(function(t){return t!==void 0}));if(t.length===1)t=t[0]}}o[e]=t});return o}function gw(t){var r;if(typeof t==="number")r=[t];else r=t.split(/\s+/);if(r.length===1)r=[r[0],r[0],r[0],r[0]];else if(r.length===2)r=r.concat(r);else if(r.length===3)r.push(r[1]);return["top","right","bottom","left"].reduce(function(t,e,n){var i=parseFloat(r[n]);t[e]=i||0;return t},{})}function pw(){if("-webkit-transform"in document.body.style)return"-webkit-";else if("-moz-transform"in document.body.style)return"-moz-";else if("-ms-transform"in document.body.style)return"-ms-";else if("-o-transform"in document.body.style)return"-o-";else return""}function vw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.style(n,e[n])}}var mw={"en-GB":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["£",""]},"en-US":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-CL":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["$",""]},"es-MX":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-ES":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","mm","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["€",""]},"et-EE":{separator:" ",suffixes:["y","z","a","f","p","n","µ","m","","tuhat","miljonit","miljardit","triljonit","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["","eurot"]},"fr-FR":{suffixes:["y","z","a","f","p","n","µ","m","","k","m","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["€",""]}};function yw(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yw=function t(e){return typeof e}}else{yw=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return yw(t)}var _w=function t(e,n){return parseFloat(Math.round(e*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function bw(t,e,n){var i=0;if(t){if(t<0)t*=-1;i=1+Math.floor(1e-12+Math.log(t)/Math.LN10);i=Math.max(-24,Math.min(24,Math.floor((i-1)/3)*3))}var r=n[8+i/3];return{number:_w(r.scale(t),e),symbol:r.symbol}}function ww(t,e){var n=Math.pow(10,Math.abs(8-e)*3);return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function xw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(t))t*=1;else return"N/A";var i=t<0;var r=t.toString().split(".")[0].replace("-","").length,a=yw(e)==="object"?e:mw[e]||mw["en-US"],o=a.suffixes.map(ww);var s=a.delimiters.decimal||".",u=a.separator||"",l=a.delimiters.thousands||",";var c=Yi({currency:a.currency||["$",""],decimal:s,grouping:a.grouping||[3],thousands:l});var f;if(n)f=c.format(n)(t);else if(t===0)f="0";else if(r>=3){var h=bw(c.format(".3r")(t),2,o);var d=parseFloat(h.number).toString().replace(".",s);var g=h.symbol;f="".concat(d).concat(u).concat(g)}else if(r===3)f=c.format(",f")(t);else if(t<1&&t>-1)f=c.format(".2g")(t);else f=c.format(".3g")(t);return"".concat(i&&f.charAt(0)!=="-"?"-":"").concat(f).replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}function kw(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Sw(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function Cw(t,e,n){if(e)Sw(t.prototype,e);if(n)Sw(t,n);return t}var Ew=function(){function u(){kw(this,u);this._duration=600;this._height=$u("height");this._id=$u("id");this._opacity=cw(1);this._pointerEvents=cw("auto");this._select;this._url=$u("url");this._width=$u("width");this._x=$u("x",0);this._y=$u("y",0)}Cw(u,[{key:"render",value:function t(e){var n=this;if(this._select===void 0)this.select(Yo("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var i=this._select.selectAll(".d3plus-Image").data(this._data,this._id);var r=i.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",function(t,e){return n._x(t,e)+n._width(t,e)/2}).attr("y",function(t,e){return n._y(t,e)+n._height(t,e)/2});var a=Uu().duration(this._duration),o=this,s=r.merge(i);s.attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(a).attr("opacity",this._opacity).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).each(function(t,e){var n=Yo(this),i=o._url(t,e);var r=i.indexOf("http://")===0||i.indexOf("https://")===0;if(!r||i.indexOf(window.location.hostname)===0){var a=new u;a.src=i;a.crossOrigin="Anonymous";a.onload=function(){var t=document.createElement("canvas");t.width=this.width;t.height=this.height;var e=t.getContext("2d");e.drawImage(this,0,0);n.attr("xlink:href",t.toDataURL("image/png"))}}});i.exit().transition(a).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).attr("opacity",0).remove();if(e)setTimeout(e,this._duration+100);return this}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cw(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:cw(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cw(e),this):this._pointerEvents}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"url",value:function t(e){return arguments.length?(this._url=e,this):this._url}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cw(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cw(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cw(e),this):this._y}}]);return u}();function Aw(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Bn(t);e=Bn(e);var r=Math.abs(e.h*i-t.h*n);if(r>180)r-=360;var a=(Math.min(t.h,e.h)+r/2)%360;var o=t.l+(e.l*i-t.l*n)/2,s=t.s+(e.s*i-t.s*n)/2;if(a<0)a+=360;return Bn("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}var Rw={dark:"#444444",light:"#f7f7f7",missing:"#cccccc",off:"#b22200",on:"#224f20",scale:Je().range(["#b22200","#282f6b","#eace3f","#b35c1e","#224f20","#5f487c","#759143","#419391","#993c88","#e89c89","#ffee8d","#afd5e8","#f7ba77","#a5c697","#c5b5e5","#d1d392","#bbefd0","#e099cf"])};function Mw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return t in e?e[t]:t in Rw?Rw[t]:Rw.missing}function Tw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(t)>=0)return Mw("missing",e);else if(t===true)return Mw("on",e);else if(t===false)return Mw("off",e);var n=xn(t);if(!n)return Mw("scale",e)(t);return t.toString()}function Pw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t=En(t);var n=(t.r*299+t.g*587+t.b*114)/1e3;return n>=128?Mw("dark",e):Mw("light",e)}function Ow(t){t=Bn(t);if(t.l>.45){if(t.s>.8)t.s=.8;t.l=.45}return t.toString()}function Bw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;t=Bn(t);e*=1-t.l;t.l+=e;t.s-=e;return t.toString()}function Dw(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Bn(t);e=Bn(e);var r=e.h*i-t.h*n;if(Math.abs(r)>180)r-=360;var a=(t.h-r)%360;var o=t.l-(e.l*i-t.l*n)/2,s=t.s-(e.s*i-t.s*n)/2;if(a<0)a+=360;return Bn("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}var Nw=Math.PI,zw=2*Nw,jw=1e-6,Lw=zw-jw;function Fw(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function Iw(){return new Fw}Fw.prototype=Iw.prototype={constructor:Fw,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,i,r){this._+="Q"+ +e+","+ +n+","+(this._x1=+i)+","+(this._y1=+r)},bezierCurveTo:function t(e,n,i,r,a,o){this._+="C"+ +e+","+ +n+","+ +i+","+ +r+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function t(e,n,i,r,a){e=+e,n=+n,i=+i,r=+r,a=+a;var o=this._x1,s=this._y1,u=i-e,l=r-n,c=o-e,f=s-n,h=c*c+f*f;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=e)+","+(this._y1=n)}else if(!(h>jw));else if(!(Math.abs(f*u-l*c)>jw)||!a){this._+="L"+(this._x1=e)+","+(this._y1=n)}else{var d=i-o,g=r-s,p=u*u+l*l,v=d*d+g*g,m=Math.sqrt(p),y=Math.sqrt(h),_=a*Math.tan((Nw-Math.acos((p+h-v)/(2*m*y)))/2),b=_/y,w=_/m;if(Math.abs(b-1)>jw){this._+="L"+(e+b*c)+","+(n+b*f)}this._+="A"+a+","+a+",0,0,"+ +(f*d>c*g)+","+(this._x1=e+w*u)+","+(this._y1=n+w*l)}},arc:function t(e,n,i,r,a,o){e=+e,n=+n,i=+i,o=!!o;var s=i*Math.cos(r),u=i*Math.sin(r),l=e+s,c=n+u,f=1^o,h=o?r-a:a-r;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>jw||Math.abs(this._y1-c)>jw){this._+="L"+l+","+c}if(!i)return;if(h<0)h=h%zw+zw;if(h>Lw){this._+="A"+i+","+i+",0,1,"+f+","+(e-s)+","+(n-u)+"A"+i+","+i+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c)}else if(h>jw){this._+="A"+i+","+i+",0,"+ +(h>=Nw)+","+f+","+(this._x1=e+i*Math.cos(a))+","+(this._y1=n+i*Math.sin(a))}},rect:function t(e,n,i,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +r+"h"+-i+"Z"},toString:function t(){return this._}};function Hw(e){return function t(){return e}}var Gw=Math.abs;var Vw=Math.atan2;var Uw=Math.cos;var Ww=Math.max;var qw=Math.min;var Kw=Math.sin;var Yw=Math.sqrt;var Xw=1e-12;var Zw=Math.PI;var $w=Zw/2;var Jw=2*Zw;function Qw(t){return t>1?0:t<-1?Zw:Math.acos(t)}function tx(t){return t>=1?$w:t<=-1?-$w:Math.asin(t)}function ex(t){return t.innerRadius}function nx(t){return t.outerRadius}function ix(t){return t.startAngle}function rx(t){return t.endAngle}function ax(t){return t&&t.padAngle}function ox(t,e,n,i,r,a,o,s){var u=n-t,l=i-e,c=o-r,f=s-a,h=f*u-c*l;if(h*h<Xw)return;h=(c*(e-a)-f*(t-r))/h;return[t+h*u,e+h*l]}function sx(t,e,n,i,r,a,o){var s=t-n,u=e-i,l=(o?a:-a)/Yw(s*s+u*u),c=l*u,f=-l*s,h=t+c,d=e+f,g=n+c,p=i+f,v=(h+g)/2,m=(d+p)/2,y=g-h,_=p-d,b=y*y+_*_,w=r-a,x=h*p-g*d,k=(_<0?-1:1)*Yw(Ww(0,w*w*b-x*x)),S=(x*_-y*k)/b,C=(-x*y-_*k)/b,E=(x*_+y*k)/b,A=(-x*y+_*k)/b,R=S-v,M=C-m,T=E-v,P=A-m;if(R*R+M*M>T*T+P*P)S=E,C=A;return{cx:S,cy:C,x01:-c,y01:-f,x11:S*(r/w-1),y11:C*(r/w-1)}}function ux(){var L=ex,F=nx,I=Hw(0),H=null,G=ix,V=rx,U=ax,W=null;function e(){var t,e,n=+L.apply(this,arguments),i=+F.apply(this,arguments),r=G.apply(this,arguments)-$w,a=V.apply(this,arguments)-$w,o=Gw(a-r),s=a>r;if(!W)W=t=Iw();if(i<n)e=i,i=n,n=e;if(!(i>Xw))W.moveTo(0,0);else if(o>Jw-Xw){W.moveTo(i*Uw(r),i*Kw(r));W.arc(0,0,i,r,a,!s);if(n>Xw){W.moveTo(n*Uw(a),n*Kw(a));W.arc(0,0,n,a,r,s)}}else{var u=r,l=a,c=r,f=a,h=o,d=o,g=U.apply(this,arguments)/2,p=g>Xw&&(H?+H.apply(this,arguments):Yw(n*n+i*i)),v=qw(Gw(i-n)/2,+I.apply(this,arguments)),m=v,y=v,_,b;if(p>Xw){var w=tx(p/n*Kw(g)),x=tx(p/i*Kw(g));if((h-=w*2)>Xw)w*=s?1:-1,c+=w,f-=w;else h=0,c=f=(r+a)/2;if((d-=x*2)>Xw)x*=s?1:-1,u+=x,l-=x;else d=0,u=l=(r+a)/2}var k=i*Uw(u),S=i*Kw(u),C=n*Uw(f),E=n*Kw(f);if(v>Xw){var A=i*Uw(l),R=i*Kw(l),M=n*Uw(c),T=n*Kw(c),P;if(o<Zw&&(P=ox(k,S,M,T,A,R,C,E))){var O=k-P[0],B=S-P[1],D=A-P[0],N=R-P[1],z=1/Kw(Qw((O*D+B*N)/(Yw(O*O+B*B)*Yw(D*D+N*N)))/2),j=Yw(P[0]*P[0]+P[1]*P[1]);m=qw(v,(n-j)/(z-1));y=qw(v,(i-j)/(z+1))}}if(!(d>Xw))W.moveTo(k,S);else if(y>Xw){_=sx(M,T,k,S,i,y,s);b=sx(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(y<v)W.arc(_.cx,_.cy,y,Vw(_.y01,_.x01),Vw(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,Vw(_.y01,_.x01),Vw(_.y11,_.x11),!s);W.arc(0,0,i,Vw(_.cy+_.y11,_.cx+_.x11),Vw(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,y,Vw(b.y11,b.x11),Vw(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,i,u,l,!s);if(!(n>Xw)||!(h>Xw))W.lineTo(C,E);else if(m>Xw){_=sx(C,E,A,R,n,-m,s);b=sx(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m<v)W.arc(_.cx,_.cy,m,Vw(_.y01,_.x01),Vw(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,Vw(_.y01,_.x01),Vw(_.y11,_.x11),!s);W.arc(0,0,n,Vw(_.cy+_.y11,_.cx+_.x11),Vw(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,m,Vw(b.y11,b.x11),Vw(b.y01,b.x01),!s)}}else W.arc(0,0,n,f,c,s)}W.closePath();if(t)return W=null,t+""||null}e.centroid=function(){var t=(+L.apply(this,arguments)+ +F.apply(this,arguments))/2,e=(+G.apply(this,arguments)+ +V.apply(this,arguments))/2-Zw/2;return[Uw(e)*t,Kw(e)*t]};e.innerRadius=function(t){return arguments.length?(L=typeof t==="function"?t:Hw(+t),e):L};e.outerRadius=function(t){return arguments.length?(F=typeof t==="function"?t:Hw(+t),e):F};e.cornerRadius=function(t){return arguments.length?(I=typeof t==="function"?t:Hw(+t),e):I};e.padRadius=function(t){return arguments.length?(H=t==null?null:typeof t==="function"?t:Hw(+t),e):H};e.startAngle=function(t){return arguments.length?(G=typeof t==="function"?t:Hw(+t),e):G};e.endAngle=function(t){return arguments.length?(V=typeof t==="function"?t:Hw(+t),e):V};e.padAngle=function(t){return arguments.length?(U=typeof t==="function"?t:Hw(+t),e):U};e.context=function(t){return arguments.length?(W=t==null?null:t,e):W};return e}function lx(t){this._context=t}lx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function cx(t){return new lx(t)}function fx(t){return t[0]}function hx(t){return t[1]}function dx(){var o=fx,s=hx,u=Hw(true),l=null,c=cx,f=null;function e(t){var e,n=t.length,i,r=false,a;if(l==null)f=c(a=Iw());for(e=0;e<=n;++e){if(!(e<n&&u(i=t[e],e,t))===r){if(r=!r)f.lineStart();else f.lineEnd()}if(r)f.point(+o(i,e,t),+s(i,e,t))}if(a)return f=null,a+""||null}e.x=function(t){return arguments.length?(o=typeof t==="function"?t:Hw(+t),e):o};e.y=function(t){return arguments.length?(s=typeof t==="function"?t:Hw(+t),e):s};e.defined=function(t){return arguments.length?(u=typeof t==="function"?t:Hw(!!t),e):u};e.curve=function(t){return arguments.length?(c=t,l!=null&&(f=c(l)),e):c};e.context=function(t){return arguments.length?(t==null?l=f=null:f=c(l=t),e):l};return e}function gx(){var c=fx,f=null,h=Hw(0),d=hx,g=Hw(true),p=null,v=cx,m=null;function e(t){var e,n,i,r=t.length,a,o=false,s,u=new Array(r),l=new Array(r);if(p==null)m=v(s=Iw());for(e=0;e<=r;++e){if(!(e<r&&g(a=t[e],e,t))===o){if(o=!o){n=e;m.areaStart();m.lineStart()}else{m.lineEnd();m.lineStart();for(i=e-1;i>=n;--i){m.point(u[i],l[i])}m.lineEnd();m.areaEnd()}}if(o){u[e]=+c(a,e,t),l[e]=+h(a,e,t);m.point(f?+f(a,e,t):u[e],d?+d(a,e,t):l[e])}}if(s)return m=null,s+""||null}function t(){return dx().defined(g).curve(v).context(p)}e.x=function(t){return arguments.length?(c=typeof t==="function"?t:Hw(+t),f=null,e):c};e.x0=function(t){return arguments.length?(c=typeof t==="function"?t:Hw(+t),e):c};e.x1=function(t){return arguments.length?(f=t==null?null:typeof t==="function"?t:Hw(+t),e):f};e.y=function(t){return arguments.length?(h=typeof t==="function"?t:Hw(+t),d=null,e):h};e.y0=function(t){return arguments.length?(h=typeof t==="function"?t:Hw(+t),e):h};e.y1=function(t){return arguments.length?(d=t==null?null:typeof t==="function"?t:Hw(+t),e):d};e.lineX0=e.lineY0=function(){return t().x(c).y(h)};e.lineY1=function(){return t().x(c).y(d)};e.lineX1=function(){return t().x(f).y(h)};e.defined=function(t){return arguments.length?(g=typeof t==="function"?t:Hw(!!t),e):g};e.curve=function(t){return arguments.length?(v=t,p!=null&&(m=v(p)),e):v};e.context=function(t){return arguments.length?(t==null?p=m=null:m=v(p=t),e):p};return e}function px(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function vx(t){return t}function mx(){var g=vx,p=px,v=null,m=Hw(0),y=Hw(Jw),_=Hw(0);function e(n){var t,e=n.length,i,r,a=0,o=new Array(e),s=new Array(e),u=+m.apply(this,arguments),l=Math.min(Jw,Math.max(-Jw,y.apply(this,arguments)-u)),c,f=Math.min(Math.abs(l)/e,_.apply(this,arguments)),h=f*(l<0?-1:1),d;for(t=0;t<e;++t){if((d=s[o[t]=t]=+g(n[t],t,n))>0){a+=d}}if(p!=null)o.sort(function(t,e){return p(s[t],s[e])});else if(v!=null)o.sort(function(t,e){return v(n[t],n[e])});for(t=0,r=a?(l-e*h)/a:0;t<e;++t,u=c){i=o[t],d=s[i],c=u+(d>0?d*r:0)+h,s[i]={data:n[i],index:t,value:d,startAngle:u,endAngle:c,padAngle:f}}return s}e.value=function(t){return arguments.length?(g=typeof t==="function"?t:Hw(+t),e):g};e.sortValues=function(t){return arguments.length?(p=t,v=null,e):p};e.sort=function(t){return arguments.length?(v=t,p=null,e):v};e.startAngle=function(t){return arguments.length?(m=typeof t==="function"?t:Hw(+t),e):m};e.endAngle=function(t){return arguments.length?(y=typeof t==="function"?t:Hw(+t),e):y};e.padAngle=function(t){return arguments.length?(_=typeof t==="function"?t:Hw(+t),e):_};return e}var yx=bx(cx);function _x(t){this._curve=t}_x.prototype={areaStart:function t(){this._curve.areaStart()},areaEnd:function t(){this._curve.areaEnd()},lineStart:function t(){this._curve.lineStart()},lineEnd:function t(){this._curve.lineEnd()},point:function t(e,n){this._curve.point(n*Math.sin(e),n*-Math.cos(e))}};function bx(e){function t(t){return new _x(e(t))}t._curve=e;return t}function wx(t){var e=t.curve;t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;t.curve=function(t){return arguments.length?e(bx(t)):e()._curve};return t}function xx(){return wx(dx().curve(yx))}function kx(){var t=gx().curve(yx),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,a=t.lineY1;t.angle=t.x,delete t.x;t.startAngle=t.x0,delete t.x0;t.endAngle=t.x1,delete t.x1;t.radius=t.y,delete t.y;t.innerRadius=t.y0,delete t.y0;t.outerRadius=t.y1,delete t.y1;t.lineStartAngle=function(){return wx(n())},delete t.lineX0;t.lineEndAngle=function(){return wx(i())},delete t.lineX1;t.lineInnerRadius=function(){return wx(r())},delete t.lineY0;t.lineOuterRadius=function(){return wx(a())},delete t.lineY1;t.curve=function(t){return arguments.length?e(bx(t)):e()._curve};return t}function Sx(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}var Cx=Array.prototype.slice;function Ex(t){return t.source}function Ax(t){return t.target}function Rx(r){var a=Ex,o=Ax,s=fx,u=hx,l=null;function e(){var t,e=Cx.call(arguments),n=a.apply(this,e),i=o.apply(this,e);if(!l)l=t=Iw();r(l,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=i,e)),+u.apply(this,e));if(t)return l=null,t+""||null}e.source=function(t){return arguments.length?(a=t,e):a};e.target=function(t){return arguments.length?(o=t,e):o};e.x=function(t){return arguments.length?(s=typeof t==="function"?t:Hw(+t),e):s};e.y=function(t){return arguments.length?(u=typeof t==="function"?t:Hw(+t),e):u};e.context=function(t){return arguments.length?(l=t==null?null:t,e):l};return e}function Mx(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function Tx(t,e,n,i,r){t.moveTo(e,n);t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function Px(t,e,n,i,r){var a=Sx(e,n),o=Sx(e,n=(n+r)/2),s=Sx(i,n),u=Sx(i,r);t.moveTo(a[0],a[1]);t.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function Ox(){return Rx(Mx)}function Bx(){return Rx(Tx)}function Dx(){var t=Rx(Px);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}var Nx={draw:function t(e,n){var i=Math.sqrt(n/Zw);e.moveTo(i,0);e.arc(0,0,i,0,Jw)}};var zx={draw:function t(e,n){var i=Math.sqrt(n/5)/2;e.moveTo(-3*i,-i);e.lineTo(-i,-i);e.lineTo(-i,-3*i);e.lineTo(i,-3*i);e.lineTo(i,-i);e.lineTo(3*i,-i);e.lineTo(3*i,i);e.lineTo(i,i);e.lineTo(i,3*i);e.lineTo(-i,3*i);e.lineTo(-i,i);e.lineTo(-3*i,i);e.closePath()}};var jx=Math.sqrt(1/3),Lx=jx*2;var Fx={draw:function t(e,n){var i=Math.sqrt(n/Lx),r=i*jx;e.moveTo(0,-i);e.lineTo(r,0);e.lineTo(0,i);e.lineTo(-r,0);e.closePath()}};var Ix=.8908130915292852,Hx=Math.sin(Zw/10)/Math.sin(7*Zw/10),Gx=Math.sin(Jw/10)*Hx,Vx=-Math.cos(Jw/10)*Hx;var Ux={draw:function t(e,n){var i=Math.sqrt(n*Ix),r=Gx*i,a=Vx*i;e.moveTo(0,-i);e.lineTo(r,a);for(var o=1;o<5;++o){var s=Jw*o/5,u=Math.cos(s),l=Math.sin(s);e.lineTo(l*i,-u*i);e.lineTo(u*r-l*a,l*r+u*a)}e.closePath()}};var Wx={draw:function t(e,n){var i=Math.sqrt(n),r=-i/2;e.rect(r,r,i,i)}};var qx=Math.sqrt(3);var Kx={draw:function t(e,n){var i=-Math.sqrt(n/(qx*3));e.moveTo(0,i*2);e.lineTo(-qx*i,-i);e.lineTo(qx*i,-i);e.closePath()}};var Yx=-.5,Xx=Math.sqrt(3)/2,Zx=1/Math.sqrt(12),$x=(Zx/2+1)*3;var Jx={draw:function t(e,n){var i=Math.sqrt(n/$x),r=i/2,a=i*Zx,o=r,s=i*Zx+i,u=-o,l=s;e.moveTo(r,a);e.lineTo(o,s);e.lineTo(u,l);e.lineTo(Yx*r-Xx*a,Xx*r+Yx*a);e.lineTo(Yx*o-Xx*s,Xx*o+Yx*s);e.lineTo(Yx*u-Xx*l,Xx*u+Yx*l);e.lineTo(Yx*r+Xx*a,Yx*a-Xx*r);e.lineTo(Yx*o+Xx*s,Yx*s-Xx*o);e.lineTo(Yx*u+Xx*l,Yx*l-Xx*u);e.closePath()}};var Qx=[Nx,zx,Fx,Wx,Ux,Kx,Jx];function tk(){var e=Hw(Nx),n=Hw(64),i=null;function r(){var t;if(!i)i=t=Iw();e.apply(this,arguments).draw(i,+n.apply(this,arguments));if(t)return i=null,t+""||null}r.type=function(t){return arguments.length?(e=typeof t==="function"?t:Hw(t),r):e};r.size=function(t){return arguments.length?(n=typeof t==="function"?t:Hw(+t),r):n};r.context=function(t){return arguments.length?(i=t==null?null:t,r):i};return r}function ek(){}function nk(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function ik(t){this._context=t}ik.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 3:nk(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:nk(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function rk(t){return new ik(t)}function ak(t){this._context=t}ak.prototype={areaStart:ek,areaEnd:ek,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2);this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break}case 3:{this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4);break}}},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x2=e,this._y2=n;break;case 1:this._point=2;this._x3=e,this._y3=n;break;case 2:this._point=3;this._x4=e,this._y4=n;this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:nk(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function ok(t){return new ak(t)}function sk(t){this._context=t}sk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,r):this._context.moveTo(i,r);break;case 3:this._point=4;default:nk(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function uk(t){return new sk(t)}function lk(t,e){this._basis=new ik(t);this._beta=e}lk.prototype={lineStart:function t(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function t(){var e=this._x,n=this._y,i=e.length-1;if(i>0){var r=e[0],a=n[0],o=e[i]-r,s=n[i]-a,u=-1,l;while(++u<=i){l=u/i;this._basis.point(this._beta*e[u]+(1-this._beta)*(r+l*o),this._beta*n[u]+(1-this._beta)*(a+l*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};var ck=function e(n){function t(t){return n===1?new ik(t):new lk(t,n)}t.beta=function(t){return e(+t)};return t}(.85);function fk(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function hk(t,e){this._context=t;this._k=(1-e)/6}hk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fk(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;this._x1=e,this._y1=n;break;case 2:this._point=3;default:fk(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var dk=function e(n){function t(t){return new hk(t,n)}t.tension=function(t){return e(+t)};return t}(0);function gk(t,e){this._context=t;this._k=(1-e)/6}gk.prototype={areaStart:ek,areaEnd:ek,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:fk(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var pk=function e(n){function t(t){return new gk(t,n)}t.tension=function(t){return e(+t)};return t}(0);function vk(t,e){this._context=t;this._k=(1-e)/6}vk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fk(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var mk=function e(n){function t(t){return new vk(t,n)}t.tension=function(t){return e(+t)};return t}(0);function yk(t,e,n){var i=t._x1,r=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Xw){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u;r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>Xw){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/c;o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(i,r,a,o,t._x2,t._y2)}function _k(t,e){this._context=t;this._alpha=e}_k.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;if(this._point){var i=this._x2-e,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;default:yk(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var bk=function e(n){function t(t){return n?new _k(t,n):new hk(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function wk(t,e){this._context=t;this._alpha=e}wk.prototype={areaStart:ek,areaEnd:ek,lineStart:function t(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function t(e,n){e=+e,n=+n;if(this._point){var i=this._x2-e,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:yk(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var xk=function e(n){function t(t){return n?new wk(t,n):new gk(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function kk(t,e){this._context=t;this._alpha=e}kk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;if(this._point){var i=this._x2-e,r=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:yk(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Sk=function e(n){function t(t){return n?new kk(t,n):new vk(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function Ck(t){this._context=t}Ck.prototype={areaStart:ek,areaEnd:ek,lineStart:function t(){this._point=0},lineEnd:function t(){if(this._point)this._context.closePath()},point:function t(e,n){e=+e,n=+n;if(this._point)this._context.lineTo(e,n);else this._point=1,this._context.moveTo(e,n)}};function Ek(t){return new Ck(t)}function Ak(t){return t<0?-1:1}function Rk(t,e,n){var i=t._x1-t._x0,r=e-t._x1,a=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),s=(a*r+o*i)/(i+r);return(Ak(a)+Ak(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Mk(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Tk(t,e,n){var i=t._x0,r=t._y0,a=t._x1,o=t._y1,s=(a-i)/3;t._context.bezierCurveTo(i+s,r+s*e,a-s,o-s*n,a,o)}function Pk(t){this._context=t}Pk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Tk(this,this._t0,Mk(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){var i=NaN;e=+e,n=+n;if(e===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;Tk(this,Mk(this,i=Rk(this,e,n)),i);break;default:Tk(this,this._t0,i=Rk(this,e,n));break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n;this._t0=i}};function Ok(t){this._context=new Bk(t)}(Ok.prototype=Object.create(Pk.prototype)).point=function(t,e){Pk.prototype.point.call(this,e,t)};function Bk(t){this._context=t}Bk.prototype={moveTo:function t(e,n){this._context.moveTo(n,e)},closePath:function t(){this._context.closePath()},lineTo:function t(e,n){this._context.lineTo(n,e)},bezierCurveTo:function t(e,n,i,r,a,o){this._context.bezierCurveTo(n,e,r,i,o,a)}};function Dk(t){return new Pk(t)}function Nk(t){return new Ok(t)}function zk(t){this._context=t}zk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=[];this._y=[]},lineEnd:function t(){var e=this._x,n=this._y,i=e.length;if(i){this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]);if(i===2){this._context.lineTo(e[1],n[1])}else{var r=jk(e),a=jk(n);for(var o=0,s=1;s<i;++o,++s){this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[s],n[s])}}}if(this._line||this._line!==0&&i===1)this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};function jk(t){var e,n=t.length-1,i,r=new Array(n),a=new Array(n),o=new Array(n);r[0]=0,a[0]=2,o[0]=t[0]+2*t[1];for(e=1;e<n-1;++e){r[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1]}r[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n];for(e=1;e<n;++e){i=r[e]/a[e-1],a[e]-=i,o[e]-=i*o[e-1]}r[n-1]=o[n-1]/a[n-1];for(e=n-2;e>=0;--e){r[e]=(o[e]-r[e+1])/a[e]}a[n-1]=(t[n]+r[n-1])/2;for(e=0;e<n-1;++e){a[e]=2*t[e+1]-r[e+1]}return[r,a]}function Lk(t){return new zk(t)}function Fk(t,e){this._context=t;this._t=e}Fk.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=this._y=NaN;this._point=0},lineEnd:function t(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(e,n)}else{var i=this._x*(1-this._t)+e*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,n)}break}}this._x=e,this._y=n}};function Ik(t){return new Fk(t,.5)}function Hk(t){return new Fk(t,0)}function Gk(t){return new Fk(t,1)}function Vk(t,e){if(!((o=t.length)>1))return;for(var n=1,i,r,a=t[e[0]],o,s=a.length;n<o;++n){r=a,a=t[e[n]];for(i=0;i<s;++i){a[i][1]+=a[i][0]=isNaN(r[i][1])?r[i][0]:r[i][1]}}}function Uk(t){var e=t.length,n=new Array(e);while(--e>=0){n[e]=e}return n}function Wk(t,e){return t[e]}function qk(){var f=Hw([]),h=Uk,d=Vk,g=Wk;function e(t){var e=f.apply(this,arguments),n,i=t.length,r=e.length,a=new Array(r),o;for(n=0;n<r;++n){for(var s=e[n],u=a[n]=new Array(i),l=0,c;l<i;++l){u[l]=c=[0,+g(t[l],s,l,t)];c.data=t[l]}u.key=s}for(n=0,o=h(a);n<r;++n){a[o[n]].index=n}d(a,o);return a}e.keys=function(t){return arguments.length?(f=typeof t==="function"?t:Hw(Cx.call(t)),e):f};e.value=function(t){return arguments.length?(g=typeof t==="function"?t:Hw(+t),e):g};e.order=function(t){return arguments.length?(h=t==null?Uk:typeof t==="function"?t:Hw(Cx.call(t)),e):h};e.offset=function(t){return arguments.length?(d=t==null?Vk:t,e):d};return e}function Kk(t,e){if(!((i=t.length)>0))return;for(var n,i,r=0,a=t[0].length,o;r<a;++r){for(o=n=0;n<i;++n){o+=t[n][r][1]||0}if(o)for(n=0;n<i;++n){t[n][r][1]/=o}}Vk(t,e)}function Yk(t,e){if(!((u=t.length)>0))return;for(var n,i=0,r,a,o,s,u,l=t[e[0]].length;i<l;++i){for(o=s=0,n=0;n<u;++n){if((a=(r=t[e[n]][i])[1]-r[0])>0){r[0]=o,r[1]=o+=a}else if(a<0){r[1]=s,r[0]=s+=a}else{r[0]=0,r[1]=a}}}}function Xk(t,e){if(!((r=t.length)>0))return;for(var n=0,i=t[e[0]],r,a=i.length;n<a;++n){for(var o=0,s=0;o<r;++o){s+=t[o][n][1]||0}i[n][1]+=i[n][0]=-s/2}Vk(t,e)}function Zk(t,e){if(!((o=t.length)>0)||!((a=(r=t[e[0]]).length)>0))return;for(var n=0,i=1,r,a,o;i<a;++i){for(var s=0,u=0,l=0;s<o;++s){var c=t[e[s]],f=c[i][1]||0,h=c[i-1][1]||0,d=(f-h)/2;for(var g=0;g<s;++g){var p=t[e[g]],v=p[i][1]||0,m=p[i-1][1]||0;d+=v-m}u+=f,l+=d*f}r[i-1][1]+=r[i-1][0]=n;if(u)n-=l/u}r[i-1][1]+=r[i-1][0]=n;Vk(t,e)}function $k(t){var n=t.map(Jk);return Uk(t).sort(function(t,e){return n[t]-n[e]})}function Jk(t){var e=-1,n=0,i=t.length,r,a=-Infinity;while(++e<i){if((r=+t[e][1])>a)a=r,n=e}return n}function Qk(t){var n=t.map(tS);return Uk(t).sort(function(t,e){return n[t]-n[e]})}function tS(t){var e=0,n=-1,i=t.length,r;while(++n<i){if(r=+t[n][1])e+=r}return e}function eS(t){return Qk(t).reverse()}function nS(t){var e=t.length,n,i,r=t.map(tS),a=$k(t),o=0,s=0,u=[],l=[];for(n=0;n<e;++n){i=a[n];if(o<s){o+=r[i];u.push(i)}else{s+=r[i];l.push(i)}}return l.reverse().concat(u)}function iS(t){return Uk(t).reverse()}var rS=Object.freeze({__proto__:null,arc:ux,area:gx,line:dx,pie:mx,areaRadial:kx,radialArea:kx,lineRadial:xx,radialLine:xx,pointRadial:Sx,linkHorizontal:Ox,linkVertical:Bx,linkRadial:Dx,symbol:tk,symbols:Qx,symbolCircle:Nx,symbolCross:zx,symbolDiamond:Fx,symbolSquare:Wx,symbolStar:Ux,symbolTriangle:Kx,symbolWye:Jx,curveBasisClosed:ok,curveBasisOpen:uk,curveBasis:rk,curveBundle:ck,curveCardinalClosed:pk,curveCardinalOpen:mk,curveCardinal:dk,curveCatmullRomClosed:xk,curveCatmullRomOpen:Sk,curveCatmullRom:bk,curveLinearClosed:Ek,curveLinear:cx,curveMonotoneX:Dk,curveMonotoneY:Nk,curveNatural:Lk,curveStep:Ik,curveStepAfter:Gk,curveStepBefore:Hk,stack:qk,stackOffsetExpand:Kk,stackOffsetDiverging:Yk,stackOffsetNone:Vk,stackOffsetSilhouette:Xk,stackOffsetWiggle:Zk,stackOrderAppearance:$k,stackOrderAscending:Qk,stackOrderDescending:eS,stackOrderInsideOut:nS,stackOrderNone:Uk,stackOrderReverse:iS});function aS(t){if(t.replace(/\s+/g,"")==="")return t;var e=(new DOMParser).parseFromString(t.replace(/<[^>]+>/g,""),"text/html");return e.documentElement?e.documentElement.textContent:t}function oS(t,e){e=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},e);var n=document.createElement("canvas").getContext("2d");var i=[];i.push(e["font-style"]);i.push(e["font-variant"]);i.push(e["font-weight"]);i.push(typeof e["font-size"]==="string"?e["font-size"]:"".concat(e["font-size"],"px"));i.push(e["font-family"]);n.font=i.join(" ");if(t instanceof Array)return t.map(function(t){return n.measureText(aS(t)).width});return n.measureText(aS(t)).width}function sS(t){return t.toString().replace(/^\s+|\s+$/g,"")}function uS(t){return t.toString().replace(/^\s+/,"")}function lS(t){return t.toString().replace(/\s+$/,"")}var cS="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",fS={},hS=32;var dS,gS,pS,vS;var mS=function t(e){if(!dS){dS=oS(cS,{"font-family":"DejaVuSans","font-size":hS});gS=oS(cS,{"font-family":"-apple-system","font-size":hS});pS=oS(cS,{"font-family":"monospace","font-size":hS});vS=oS(cS,{"font-family":"sans-serif","font-size":hS})}if(!(e instanceof Array))e=e.split(",");e=e.map(function(t){return sS(t)});for(var n=0;n<e.length;n++){var i=e[n];if(fS[i]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(i))return i;else if(fS[i]===false)continue;var r=oS(cS,{"font-family":i,"font-size":hS});fS[i]=r!==pS;if(fS[i])fS[i]=r!==vS;if(gS&&fS[i])fS[i]=r!==gS;if(dS&&fS[i])fS[i]=r!==dS;if(fS[i])return i}return false};var yS=function t(){return Yo("html").attr("dir")==="rtl"||Yo("body").attr("dir")==="rtl"||Yo("html").style("direction")==="rtl"||Yo("body").style("direction")==="rtl"};function _S(t){if(t===void 0)t="undefined";else if(!(typeof t==="string"||t instanceof String))t=JSON.stringify(t);return t}var bS=[[/[\300-\305]/g,"A"],[/[\340-\345]/g,"a"],[/[\306]/g,"AE"],[/[\346]/g,"ae"],[/[\337]/g,"B"],[/[\307]/g,"C"],[/[\347]/g,"c"],[/[\320\336\376]/g,"D"],[/[\360]/g,"d"],[/[\310-\313]/g,"E"],[/[\350-\353]/g,"e"],[/[\314-\317]/g,"I"],[/[\354-\357]/g,"i"],[/[\321]/g,"N"],[/[\361]/g,"n"],[/[\u014c\322-\326\330]/g,"O"],[/[\u014d\362-\366\370]/g,"o"],[/[\u016a\331-\334]/g,"U"],[/[\u016b\371-\374]/g,"u"],[/[\327]/g,"x"],[/[\335]/g,"Y"],[/[\375\377]/g,"y"]];function wS(t){return"".concat(t).replace(/[^A-Za-z0-9\-_]/g,function(t){if(t===" ")return"-";var e=false;for(var n=0;n<bS.length;n++){if(new RegExp(bS[n][0]).test(t)){e=bS[n][1];break}}return e||""})}var xS=["u0903","u093B","u093E","u093F","u0940","u0949","u094A","u094B","u094C","u094E","u094F","u0982","u0983","u09BE","u09BF","u09C0","u09C7","u09C8","u09CB","u09CC","u09D7","u0A03","u0A3E","u0A3F","u0A40","u0A83","u0ABE","u0ABF","u0AC0","u0AC9","u0ACB","u0ACC","u0B02","u0B03","u0B3E","u0B40","u0B47","u0B48","u0B4B","u0B4C","u0B57","u0BBE","u0BBF","u0BC1","u0BC2","u0BC6","u0BC7","u0BC8","u0BCA","u0BCB","u0BCC","u0BD7","u0C01","u0C02","u0C03","u0C41","u0C42","u0C43","u0C44","u0C82","u0C83","u0CBE","u0CC0","u0CC1","u0CC2","u0CC3","u0CC4","u0CC7","u0CC8","u0CCA","u0CCB","u0CD5","u0CD6","u0D02","u0D03","u0D3E","u0D3F","u0D40","u0D46","u0D47","u0D48","u0D4A","u0D4B","u0D4C","u0D57","u0D82","u0D83","u0DCF","u0DD0","u0DD1","u0DD8","u0DD9","u0DDA","u0DDB","u0DDC","u0DDD","u0DDE","u0DDF","u0DF2","u0DF3","u0F3E","u0F3F","u0F7F","u102B","u102C","u1031","u1038","u103B","u103C","u1056","u1057","u1062","u1063","u1064","u1067","u1068","u1069","u106A","u106B","u106C","u106D","u1083","u1084","u1087","u1088","u1089","u108A","u108B","u108C","u108F","u109A","u109B","u109C","u17B6","u17BE","u17BF","u17C0","u17C1","u17C2","u17C3","u17C4","u17C5","u17C7","u17C8","u1923","u1924","u1925","u1926","u1929","u192A","u192B","u1930","u1931","u1933","u1934","u1935","u1936","u1937","u1938","u1A19","u1A1A","u1A55","u1A57","u1A61","u1A63","u1A64","u1A6D","u1A6E","u1A6F","u1A70","u1A71","u1A72","u1B04","u1B35","u1B3B","u1B3D","u1B3E","u1B3F","u1B40","u1B41","u1B43","u1B44","u1B82","u1BA1","u1BA6","u1BA7","u1BAA","u1BE7","u1BEA","u1BEB","u1BEC","u1BEE","u1BF2","u1BF3","u1C24","u1C25","u1C26","u1C27","u1C28","u1C29","u1C2A","u1C2B","u1C34","u1C35","u1CE1","u1CF2","u1CF3","u302E","u302F","uA823","uA824","uA827","uA880","uA881","uA8B4","uA8B5","uA8B6","uA8B7","uA8B8","uA8B9","uA8BA","uA8BB","uA8BC","uA8BD","uA8BE","uA8BF","uA8C0","uA8C1","uA8C2","uA8C3","uA952","uA953","uA983","uA9B4","uA9B5","uA9BA","uA9BB","uA9BD","uA9BE","uA9BF","uA9C0","uAA2F","uAA30","uAA33","uAA34","uAA4D","uAA7B","uAA7D","uAAEB","uAAEE","uAAEF","uAAF5","uABE3","uABE4","uABE6","uABE7","uABE9","uABEA","uABEC"];var kS=["u0300","u0301","u0302","u0303","u0304","u0305","u0306","u0307","u0308","u0309","u030A","u030B","u030C","u030D","u030E","u030F","u0310","u0311","u0312","u0313","u0314","u0315","u0316","u0317","u0318","u0319","u031A","u031B","u031C","u031D","u031E","u031F","u0320","u0321","u0322","u0323","u0324","u0325","u0326","u0327","u0328","u0329","u032A","u032B","u032C","u032D","u032E","u032F","u0330","u0331","u0332","u0333","u0334","u0335","u0336","u0337","u0338","u0339","u033A","u033B","u033C","u033D","u033E","u033F","u0340","u0341","u0342","u0343","u0344","u0345","u0346","u0347","u0348","u0349","u034A","u034B","u034C","u034D","u034E","u034F","u0350","u0351","u0352","u0353","u0354","u0355","u0356","u0357","u0358","u0359","u035A","u035B","u035C","u035D","u035E","u035F","u0360","u0361","u0362","u0363","u0364","u0365","u0366","u0367","u0368","u0369","u036A","u036B","u036C","u036D","u036E","u036F","u0483","u0484","u0485","u0486","u0487","u0591","u0592","u0593","u0594","u0595","u0596","u0597","u0598","u0599","u059A","u059B","u059C","u059D","u059E","u059F","u05A0","u05A1","u05A2","u05A3","u05A4","u05A5","u05A6","u05A7","u05A8","u05A9","u05AA","u05AB","u05AC","u05AD","u05AE","u05AF","u05B0","u05B1","u05B2","u05B3","u05B4","u05B5","u05B6","u05B7","u05B8","u05B9","u05BA","u05BB","u05BC","u05BD","u05BF","u05C1","u05C2","u05C4","u05C5","u05C7","u0610","u0611","u0612","u0613","u0614","u0615","u0616","u0617","u0618","u0619","u061A","u064B","u064C","u064D","u064E","u064F","u0650","u0651","u0652","u0653","u0654","u0655","u0656","u0657","u0658","u0659","u065A","u065B","u065C","u065D","u065E","u065F","u0670","u06D6","u06D7","u06D8","u06D9","u06DA","u06DB","u06DC","u06DF","u06E0","u06E1","u06E2","u06E3","u06E4","u06E7","u06E8","u06EA","u06EB","u06EC","u06ED","u0711","u0730","u0731","u0732","u0733","u0734","u0735","u0736","u0737","u0738","u0739","u073A","u073B","u073C","u073D","u073E","u073F","u0740","u0741","u0742","u0743","u0744","u0745","u0746","u0747","u0748","u0749","u074A","u07A6","u07A7","u07A8","u07A9","u07AA","u07AB","u07AC","u07AD","u07AE","u07AF","u07B0","u07EB","u07EC","u07ED","u07EE","u07EF","u07F0","u07F1","u07F2","u07F3","u0816","u0817","u0818","u0819","u081B","u081C","u081D","u081E","u081F","u0820","u0821","u0822","u0823","u0825","u0826","u0827","u0829","u082A","u082B","u082C","u082D","u0859","u085A","u085B","u08E3","u08E4","u08E5","u08E6","u08E7","u08E8","u08E9","u08EA","u08EB","u08EC","u08ED","u08EE","u08EF","u08F0","u08F1","u08F2","u08F3","u08F4","u08F5","u08F6","u08F7","u08F8","u08F9","u08FA","u08FB","u08FC","u08FD","u08FE","u08FF","u0900","u0901","u0902","u093A","u093C","u0941","u0942","u0943","u0944","u0945","u0946","u0947","u0948","u094D","u0951","u0952","u0953","u0954","u0955","u0956","u0957","u0962","u0963","u0981","u09BC","u09C1","u09C2","u09C3","u09C4","u09CD","u09E2","u09E3","u0A01","u0A02","u0A3C","u0A41","u0A42","u0A47","u0A48","u0A4B","u0A4C","u0A4D","u0A51","u0A70","u0A71","u0A75","u0A81","u0A82","u0ABC","u0AC1","u0AC2","u0AC3","u0AC4","u0AC5","u0AC7","u0AC8","u0ACD","u0AE2","u0AE3","u0B01","u0B3C","u0B3F","u0B41","u0B42","u0B43","u0B44","u0B4D","u0B56","u0B62","u0B63","u0B82","u0BC0","u0BCD","u0C00","u0C3E","u0C3F","u0C40","u0C46","u0C47","u0C48","u0C4A","u0C4B","u0C4C","u0C4D","u0C55","u0C56","u0C62","u0C63","u0C81","u0CBC","u0CBF","u0CC6","u0CCC","u0CCD","u0CE2","u0CE3","u0D01","u0D41","u0D42","u0D43","u0D44","u0D4D","u0D62","u0D63","u0DCA","u0DD2","u0DD3","u0DD4","u0DD6","u0E31","u0E34","u0E35","u0E36","u0E37","u0E38","u0E39","u0E3A","u0E47","u0E48","u0E49","u0E4A","u0E4B","u0E4C","u0E4D","u0E4E","u0EB1","u0EB4","u0EB5","u0EB6","u0EB7","u0EB8","u0EB9","u0EBB","u0EBC","u0EC8","u0EC9","u0ECA","u0ECB","u0ECC","u0ECD","u0F18","u0F19","u0F35","u0F37","u0F39","u0F71","u0F72","u0F73","u0F74","u0F75","u0F76","u0F77","u0F78","u0F79","u0F7A","u0F7B","u0F7C","u0F7D","u0F7E","u0F80","u0F81","u0F82","u0F83","u0F84","u0F86","u0F87","u0F8D","u0F8E","u0F8F","u0F90","u0F91","u0F92","u0F93","u0F94","u0F95","u0F96","u0F97","u0F99","u0F9A","u0F9B","u0F9C","u0F9D","u0F9E","u0F9F","u0FA0","u0FA1","u0FA2","u0FA3","u0FA4","u0FA5","u0FA6","u0FA7","u0FA8","u0FA9","u0FAA","u0FAB","u0FAC","u0FAD","u0FAE","u0FAF","u0FB0","u0FB1","u0FB2","u0FB3","u0FB4","u0FB5","u0FB6","u0FB7","u0FB8","u0FB9","u0FBA","u0FBB","u0FBC","u0FC6","u102D","u102E","u102F","u1030","u1032","u1033","u1034","u1035","u1036","u1037","u1039","u103A","u103D","u103E","u1058","u1059","u105E","u105F","u1060","u1071","u1072","u1073","u1074","u1082","u1085","u1086","u108D","u109D","u135D","u135E","u135F","u1712","u1713","u1714","u1732","u1733","u1734","u1752","u1753","u1772","u1773","u17B4","u17B5","u17B7","u17B8","u17B9","u17BA","u17BB","u17BC","u17BD","u17C6","u17C9","u17CA","u17CB","u17CC","u17CD","u17CE","u17CF","u17D0","u17D1","u17D2","u17D3","u17DD","u180B","u180C","u180D","u18A9","u1920","u1921","u1922","u1927","u1928","u1932","u1939","u193A","u193B","u1A17","u1A18","u1A1B","u1A56","u1A58","u1A59","u1A5A","u1A5B","u1A5C","u1A5D","u1A5E","u1A60","u1A62","u1A65","u1A66","u1A67","u1A68","u1A69","u1A6A","u1A6B","u1A6C","u1A73","u1A74","u1A75","u1A76","u1A77","u1A78","u1A79","u1A7A","u1A7B","u1A7C","u1A7F","u1AB0","u1AB1","u1AB2","u1AB3","u1AB4","u1AB5","u1AB6","u1AB7","u1AB8","u1AB9","u1ABA","u1ABB","u1ABC","u1ABD","u1B00","u1B01","u1B02","u1B03","u1B34","u1B36","u1B37","u1B38","u1B39","u1B3A","u1B3C","u1B42","u1B6B","u1B6C","u1B6D","u1B6E","u1B6F","u1B70","u1B71","u1B72","u1B73","u1B80","u1B81","u1BA2","u1BA3","u1BA4","u1BA5","u1BA8","u1BA9","u1BAB","u1BAC","u1BAD","u1BE6","u1BE8","u1BE9","u1BED","u1BEF","u1BF0","u1BF1","u1C2C","u1C2D","u1C2E","u1C2F","u1C30","u1C31","u1C32","u1C33","u1C36","u1C37","u1CD0","u1CD1","u1CD2","u1CD4","u1CD5","u1CD6","u1CD7","u1CD8","u1CD9","u1CDA","u1CDB","u1CDC","u1CDD","u1CDE","u1CDF","u1CE0","u1CE2","u1CE3","u1CE4","u1CE5","u1CE6","u1CE7","u1CE8","u1CED","u1CF4","u1CF8","u1CF9","u1DC0","u1DC1","u1DC2","u1DC3","u1DC4","u1DC5","u1DC6","u1DC7","u1DC8","u1DC9","u1DCA","u1DCB","u1DCC","u1DCD","u1DCE","u1DCF","u1DD0","u1DD1","u1DD2","u1DD3","u1DD4","u1DD5","u1DD6","u1DD7","u1DD8","u1DD9","u1DDA","u1DDB","u1DDC","u1DDD","u1DDE","u1DDF","u1DE0","u1DE1","u1DE2","u1DE3","u1DE4","u1DE5","u1DE6","u1DE7","u1DE8","u1DE9","u1DEA","u1DEB","u1DEC","u1DED","u1DEE","u1DEF","u1DF0","u1DF1","u1DF2","u1DF3","u1DF4","u1DF5","u1DFC","u1DFD","u1DFE","u1DFF","u20D0","u20D1","u20D2","u20D3","u20D4","u20D5","u20D6","u20D7","u20D8","u20D9","u20DA","u20DB","u20DC","u20E1","u20E5","u20E6","u20E7","u20E8","u20E9","u20EA","u20EB","u20EC","u20ED","u20EE","u20EF","u20F0","u2CEF","u2CF0","u2CF1","u2D7F","u2DE0","u2DE1","u2DE2","u2DE3","u2DE4","u2DE5","u2DE6","u2DE7","u2DE8","u2DE9","u2DEA","u2DEB","u2DEC","u2DED","u2DEE","u2DEF","u2DF0","u2DF1","u2DF2","u2DF3","u2DF4","u2DF5","u2DF6","u2DF7","u2DF8","u2DF9","u2DFA","u2DFB","u2DFC","u2DFD","u2DFE","u2DFF","u302A","u302B","u302C","u302D","u3099","u309A","uA66F","uA674","uA675","uA676","uA677","uA678","uA679","uA67A","uA67B","uA67C","uA67D","uA69E","uA69F","uA6F0","uA6F1","uA802","uA806","uA80B","uA825","uA826","uA8C4","uA8E0","uA8E1","uA8E2","uA8E3","uA8E4","uA8E5","uA8E6","uA8E7","uA8E8","uA8E9","uA8EA","uA8EB","uA8EC","uA8ED","uA8EE","uA8EF","uA8F0","uA8F1","uA926","uA927","uA928","uA929","uA92A","uA92B","uA92C","uA92D","uA947","uA948","uA949","uA94A","uA94B","uA94C","uA94D","uA94E","uA94F","uA950","uA951","uA980","uA981","uA982","uA9B3","uA9B6","uA9B7","uA9B8","uA9B9","uA9BC","uA9E5","uAA29","uAA2A","uAA2B","uAA2C","uAA2D","uAA2E","uAA31","uAA32","uAA35","uAA36","uAA43","uAA4C","uAA7C","uAAB0","uAAB2","uAAB3","uAAB4","uAAB7","uAAB8","uAABE","uAABF","uAAC1","uAAEC","uAAED","uAAF6","uABE5","uABE8","uABED","uFB1E","uFE00","uFE01","uFE02","uFE03","uFE04","uFE05","uFE06","uFE07","uFE08","uFE09","uFE0A","uFE0B","uFE0C","uFE0D","uFE0E","uFE0F","uFE20","uFE21","uFE22","uFE23","uFE24","uFE25","uFE26","uFE27","uFE28","uFE29","uFE2A","uFE2B","uFE2C","uFE2D","uFE2E","uFE2F"];var SS=xS.concat(kS);var CS=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var ES=["'","<","(","{","[","u00AB","u300A","u3008"];var AS=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(CS);var RS="က-ဪဿ-၉ၐ-ၕ";var MS="-ゟ゠-ヿ-+--}⦅-゚㐀-䶿";var TS="㐀-龿";var PS="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var OS=RS+TS+MS+PS;var BS=new RegExp("(\\".concat(CS.join("|\\"),")*[^\\s|\\").concat(CS.join("|\\"),"]*(\\").concat(CS.join("|\\"),")*"),"g");var DS=new RegExp("[".concat(OS,"]"));var NS=new RegExp("(\\".concat(ES.join("|\\"),")*[").concat(OS,"](\\").concat(AS.join("|\\"),"|\\").concat(SS.join("|\\"),")*|[a-z0-9]+"),"gi");function zS(t){if(!DS.test(t))return _S(t).match(BS).filter(function(t){return t.length});return he(_S(t).match(BS).map(function(t){if(DS.test(t))return t.match(NS);return[t]}))}function jS(){var d="sans-serif",g=10,p=400,v=200,m,y=null,_=false,b=zS,w=200;function e(t){t=_S(t);if(m===void 0)m=Math.ceil(g*1.4);var e=b(t);var n={"font-family":d,"font-size":g,"font-weight":p,"line-height":m};var i=1,r="",a=false,o=0;var s=[],u=oS(e,n),l=oS(" ",n);for(var c=0;c<e.length;c++){var f=e[c];var h=u[e.indexOf(f)];f+=t.slice(r.length+f.length).match("^( |\n)*","g")[0];if(r.slice(-1)==="\n"||o+h>w){if(!c&&!_){a=true;break}if(s.length>=i)s[i-1]=lS(s[i-1]);i++;if(m*i>v||h>w&&!_||y&&i>y){a=true;break}o=0;s.push(f)}else if(!c)s[0]=f;else s[i-1]+=f;r+=f;o+=h;o+=f.match(/[\s]*$/g)[0].length*l}return{lines:s,sentence:t,truncated:a,widths:oS(s,n),words:e}}e.fontFamily=function(t){return arguments.length?(d=t,e):d};e.fontSize=function(t){return arguments.length?(g=t,e):g};e.fontWeight=function(t){return arguments.length?(p=t,e):p};e.height=function(t){return arguments.length?(v=t,e):v};e.lineHeight=function(t){return arguments.length?(m=t,e):m};e.maxLines=function(t){return arguments.length?(y=t,e):y};e.overflow=function(t){return arguments.length?(_=t,e):_};e.split=function(t){return arguments.length?(b=t,e):b};e.width=function(t){return arguments.length?(w=t,e):w};return e}function LS(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){LS=function t(e){return typeof e}}else{LS=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return LS(t)}function FS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function IS(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function HS(t,e,n){if(e)IS(t.prototype,e);if(n)IS(t,n);return t}function GS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)VS(t,e)}function VS(t,e){VS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return VS(t,e)}function US(r){var a=KS();return function t(){var e=YS(r),n;if(a){var i=YS(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return WS(this,n)}}function WS(t,e){if(e&&(LS(e)==="object"||typeof e==="function")){return e}return qS(t)}function qS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function KS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function YS(t){YS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return YS(t)}var XS={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var ZS=function(t){GS(i,t);var e=US(i);function i(){var n;FS(this,i);n=e.call(this);n._ariaHidden=cw("false");n._delay=0;n._duration=0;n._ellipsis=function(t,e){return e?"".concat(t.replace(/\.|,$/g,""),"..."):""};n._fontColor=cw("black");n._fontFamily=cw(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=cw(50);n._fontMin=cw(8);n._fontOpacity=cw(1);n._fontResize=cw(false);n._fontSize=cw(10);n._fontStroke=cw("transparent");n._fontStrokeWidth=cw(0);n._fontWeight=cw(400);n._height=$u("height",200);n._html=XS;n._id=function(t,e){return t.id||"".concat(e)};n._lineHeight=function(t,e){return n._fontSize(t,e)*1.2};n._maxLines=cw(null);n._on={};n._overflow=cw(false);n._padding=cw(0);n._pointerEvents=cw("auto");n._rotate=cw(0);n._rotateAnchor=function(t){return[t.w/2,t.h/2]};n._split=zS;n._text=$u("text");n._textAnchor=cw("start");n._verticalAlign=cw("top");n._width=$u("width",200);n._x=$u("x",0);n._y=$u("y",0);return n}HS(i,[{key:"render",value:function t(e){var B=this;if(this._select===void 0)this.select(Yo("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var D=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(t,e,n){var i=B._text(e,n);if(i===void 0)return t;i=sS(i);var r=B._fontResize(e,n);var a=B._lineHeight(e,n)/B._fontSize(e,n);var o=r?B._fontMax(e,n):B._fontSize(e,n),s=r?o*a:B._lineHeight(e,n),u=1,l=[],c,f;var h={"font-family":mS(B._fontFamily(e,n)),"font-size":o,"font-weight":B._fontWeight(e,n),"line-height":s};var d=gw(B._padding(e,n));var g=B._height(e,n)-(d.top+d.bottom),p=B._width(e,n)-(d.left+d.right);var v=jS().fontFamily(h["font-family"]).fontSize(o).fontWeight(h["font-weight"]).lineHeight(s).maxLines(B._maxLines(e,n)).height(g).overflow(B._overflow(e,n)).width(p).split(B._split);var m=B._fontMax(e,n),y=B._fontMin(e,n),_=B._verticalAlign(e,n),b=B._split(i,n);function w(){var t=function t(){if(u<1)l=[D._ellipsis("",u)];else l[u-1]=D._ellipsis(l[u-1],u)};o=ce([o,y]);o=de([o,m]);if(r){s=o*a;v.fontSize(o).lineHeight(s);h["font-size"]=o;h["line-height"]=s}f=v(i);l=f.lines.filter(function(t){return t!==""});u=l.length;if(f.truncated){if(r){o--;if(o<y){o=y;t();return}else w()}else t()}}if(p>y&&(g>s||r&&g>y*a)){if(r){c=oS(b,h);var x=1.165+p/g*.1,k=p*g,S=ce(c),C=ge(c,function(t){return t*s})*x;if(S>p||C>k){var E=Math.sqrt(k/C),A=p/S;var R=de([E,A]);o=Math.floor(o*R)}var M=Math.floor(g*.8);if(o>M)o=M}w()}if(l.length){var T=u*s;var P=B._rotate(e,n);var O=P===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;O-=s*.1;t.push({aH:B._ariaHidden(e,n),data:e,i:n,lines:l,fC:B._fontColor(e,n),fStroke:B._fontStroke(e,n),fSW:B._fontStrokeWidth(e,n),fF:h["font-family"],fO:B._fontOpacity(e,n),fW:h["font-weight"],id:B._id(e,n),tA:B._textAnchor(e,n),vA:B._verticalAlign(e,n),widths:f.widths,fS:o,lH:s,w:p,h:g,r:P,x:B._x(e,n)+d.left,y:B._y(e,n)+O+d.top})}return t},[]),function(t){return B._id(t.data,t.i)});var r=Uu().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(r).attr("opacity",0).style("opacity",0)}function i(t){t.attr("transform",function(t,e){var n=D._rotateAnchor(t,e);return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.r,", ").concat(n[0],", ").concat(n[1],")")})}var a=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(t){return"d3plus-textBox-".concat(wS(t.id))}).call(i).merge(n);var o=yS();a.order().style("pointer-events",function(t){return B._pointerEvents(t.data,t.i)}).each(function(n){function t(t){t[D._html?"html":"text"](function(t){return lS(t).replace(/&([^\;&]*)/g,function(t,e){return e==="amp"?t:"&".concat(e)}).replace(/<([^A-z^/]+)/g,function(t,e){return"<".concat(e)}).replace(/<$/g,"<").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(t,e,n){return"".concat(e).concat(n).concat(e.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(t,e,n){return"".concat(n.replace("</","<")).concat(e).concat(n)}).replace(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g,function(t,e,n){var i=D._html[e]?'<tspan style="'.concat(D._html[e],'">'):"";return"".concat(i.length?i:"").concat(n).concat(i.length?"</tspan>":"")})})}function e(t){t.attr("aria-hidden",n.aH).attr("dir",o?"rtl":"ltr").attr("fill",n.fC).attr("stroke",n.fStroke).attr("stroke-width",n.fSW).attr("text-anchor",n.tA).attr("font-family",n.fF).style("font-family",n.fF).attr("font-size","".concat(n.fS,"px")).style("font-size","".concat(n.fS,"px")).attr("font-weight",n.fW).style("font-weight",n.fW).attr("x","".concat(n.tA==="middle"?n.w/2:o?n.tA==="start"?n.w:0:n.tA==="end"?n.w:2*Math.sin(Math.PI*n.r/180),"px")).attr("y",function(t,e){return n.r===0||n.vA==="top"?"".concat((e+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(e-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(e+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var i=Yo(this).selectAll("text").data(n.lines);if(D._duration===0){i.call(t).call(e);i.exit().remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(t).call(e).attr("opacity",n.fO).style("opacity",n.fO)}else{i.call(t).transition(r).call(e);i.exit().transition(r).attr("opacity",0).remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(t).call(e).merge(i).transition(r).delay(D._delay).call(e).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(r).call(i);var s=Object.keys(this._on),u=s.reduce(function(t,n){t[n]=function(t,e){return B._on[n](t.data,e)};return t},{});for(var l=0;l<s.length;l++){a.on(s[l],u[s[l]])}if(e)setTimeout(e,this._duration+100);return this}},{key:"ariaHidden",value:function t(e){return e!==undefined?(this._ariaHidden=typeof e==="function"?e:cw(e),this):this._ariaHidden}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"delay",value:function t(e){return arguments.length?(this._delay=e,this):this._delay}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"ellipsis",value:function t(e){return arguments.length?(this._ellipsis=typeof e==="function"?e:cw(e),this):this._ellipsis}},{key:"fontColor",value:function t(e){return arguments.length?(this._fontColor=typeof e==="function"?e:cw(e),this):this._fontColor}},{key:"fontFamily",value:function t(e){return arguments.length?(this._fontFamily=typeof e==="function"?e:cw(e),this):this._fontFamily}},{key:"fontMax",value:function t(e){return arguments.length?(this._fontMax=typeof e==="function"?e:cw(e),this):this._fontMax}},{key:"fontMin",value:function t(e){return arguments.length?(this._fontMin=typeof e==="function"?e:cw(e),this):this._fontMin}},{key:"fontOpacity",value:function t(e){return arguments.length?(this._fontOpacity=typeof e==="function"?e:cw(e),this):this._fontOpacity}},{key:"fontResize",value:function t(e){return arguments.length?(this._fontResize=typeof e==="function"?e:cw(e),this):this._fontResize}},{key:"fontSize",value:function t(e){return arguments.length?(this._fontSize=typeof e==="function"?e:cw(e),this):this._fontSize}},{key:"fontStroke",value:function t(e){return arguments.length?(this._fontStroke=typeof e==="function"?e:cw(e),this):this._fontStroke}},{key:"fontStrokeWidth",value:function t(e){return arguments.length?(this._fontStrokeWidth=typeof e==="function"?e:cw(e),this):this._fontStrokeWidth}},{key:"fontWeight",value:function t(e){return arguments.length?(this._fontWeight=typeof e==="function"?e:cw(e),this):this._fontWeight}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cw(e),this):this._height}},{key:"html",value:function t(e){return arguments.length?(this._html=typeof e==="boolean"?e?XS:false:e,this):this._html}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:cw(e),this):this._id}},{key:"lineHeight",value:function t(e){return arguments.length?(this._lineHeight=typeof e==="function"?e:cw(e),this):this._lineHeight}},{key:"maxLines",value:function t(e){return arguments.length?(this._maxLines=typeof e==="function"?e:cw(e),this):this._maxLines}},{key:"overflow",value:function t(e){return arguments.length?(this._overflow=typeof e==="function"?e:cw(e),this):this._overflow}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:cw(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cw(e),this):this._pointerEvents}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:cw(e),this):this._rotate}},{key:"rotateAnchor",value:function t(e){return arguments.length?(this._rotateAnchor=typeof e==="function"?e:cw(e),this):this._rotateAnchor}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"split",value:function t(e){return arguments.length?(this._split=e,this):this._split}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:cw(e),this):this._text}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:cw(e),this):this._textAnchor}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:cw(e),this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cw(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cw(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cw(e),this):this._y}}]);return i}(ow);var $S=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."];var JS=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];function QS(i){if(i===void 0)return"";var a=$S.map(function(t){return t.toLowerCase()});var o=JS.slice();o=o.concat(o.map(function(t){return"".concat(t,"s")}));var s=o.map(function(t){return t.toLowerCase()});var u=zS(i);return u.map(function(t,e){if(t){var n=t.toLowerCase();var i=AS.includes(n.charAt(n.length-1))?n.slice(0,-1):n;var r=s.indexOf(i);if(r>=0)return o[r];else if(a.includes(i)&&e!==0&&e!==u.length-1)return n;else return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}else return""}).reduce(function(t,e,n){if(n&&i.charAt(t.length)===" ")t+=" ";t+=e;return t},"")}var tC=function t(e,n){var i=n[0]-e[0],r=n[1]-e[1];return i*i+r*r};var eC=function t(e,n){return Math.sqrt(tC(e,n))};function nC(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){nC=function t(e){return typeof e}}else{nC=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return nC(t)}function iC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function rC(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function aC(t,e,n){if(e)rC(t.prototype,e);if(n)rC(t,n);return t}function oC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)sC(t,e)}function sC(t,e){sC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return sC(t,e)}function uC(r){var a=fC();return function t(){var e=hC(r),n;if(a){var i=hC(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return lC(this,n)}}function lC(t,e){if(e&&(nC(e)==="object"||typeof e==="function")){return e}return cC(t)}function cC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function fC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function hC(t){hC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return hC(t)}var dC=function(t){oC(n,t);var e=uC(n);function n(){var r;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";iC(this,n);r=e.call(this);r._activeOpacity=.25;r._activeStyle={stroke:function t(e,n){var i=r._fill(e,n);if(["transparent","none"].includes(i))i=r._stroke(e,n);return xn(i).darker(1)},"stroke-width":function t(e,n){var i=r._strokeWidth(e,n)||1;return i*3}};r._ariaLabel=cw("");r._backgroundImage=cw(false);r._backgroundImageClass=new Ew;r._data=[];r._duration=600;r._fill=cw("black");r._fillOpacity=cw(1);r._hoverOpacity=.5;r._hoverStyle={stroke:function t(e,n){var i=r._fill(e,n);if(["transparent","none"].includes(i))i=r._stroke(e,n);return xn(i).darker(.5)},"stroke-width":function t(e,n){var i=r._strokeWidth(e,n)||1;return i*2}};r._id=function(t,e){return t.id!==void 0?t.id:e};r._label=cw(false);r._labelClass=new ZS;r._labelConfig={fontColor:function t(e,n){return Pw(r._fill(e,n))},fontSize:12,padding:5};r._name="Shape";r._opacity=cw(1);r._pointerEvents=cw("visiblePainted");r._role=cw("presentation");r._rotate=cw(0);r._rx=cw(0);r._ry=cw(0);r._scale=cw(1);r._shapeRendering=cw("geometricPrecision");r._stroke=function(t,e){return xn(r._fill(t,e)).darker(1)};r._strokeDasharray=cw("0");r._strokeLinecap=cw("butt");r._strokeOpacity=cw(1);r._strokeWidth=cw(0);r._tagName=t;r._textAnchor=cw("start");r._vectorEffect=cw("non-scaling-stroke");r._verticalAlign=cw("top");r._x=$u("x",0);r._y=$u("y",0);return r}aC(n,[{key:"_aes",value:function t(){return{}}},{key:"_applyEvents",value:function t(e){var o=this;var s=Object.keys(this._on);var n=function t(a){e.on(s[a],function(t,e){if(!o._on[s[a]])return;if(t.i!==void 0)e=t.i;if(t.nested&&t.values){var n=function t(e,n){if(o._discrete==="x")return[o._x(e,n),i[1]];else if(o._discrete==="y")return[i[0],o._y(e,n)];else return[o._x(e,n),o._y(e,n)]};var i=$o(o._select.node()),r=t.values.map(function(t){return eC(i,n(t,e))});e=r.indexOf(de(r));t=t.values[e]}o._on[s[a]].bind(o)(t,e)})};for(var i=0;i<s.length;i++){n(i)}}},{key:"_updateStyle",value:function t(e,n){var i=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function r(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],i._data.indexOf(t.values[0])):this(t,e)}var a={};for(var o in n){if({}.hasOwnProperty.call(n,o)){a[o]=r.bind(n[o])}}e.transition().duration(0).call(nl,a)}},{key:"_applyStyle",value:function t(e){var n=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function i(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],n._data.indexOf(t.values[0])):this(t,e)}e.attr("fill",i.bind(this._fill)).attr("fill-opacity",i.bind(this._fillOpacity)).attr("rx",i.bind(this._rx)).attr("ry",i.bind(this._ry)).attr("stroke",i.bind(this._stroke)).attr("stroke-dasharray",i.bind(this._strokeDasharray)).attr("stroke-linecap",i.bind(this._strokeLinecap)).attr("stroke-opacity",i.bind(this._strokeOpacity)).attr("stroke-width",i.bind(this._strokeWidth)).attr("vector-effect",i.bind(this._vectorEffect))}},{key:"_applyTransform",value:function t(e){var n=this;e.attr("transform",function(t,e){return"\n translate(".concat(t.__d3plusShape__?t.translate?t.translate:"".concat(n._x(t.data,t.i),",").concat(n._y(t.data,t.i)):"".concat(n._x(t,e),",").concat(n._y(t,e)),")\n scale(").concat(t.__d3plusShape__?t.scale||n._scale(t.data,t.i):n._scale(t,e),")\n rotate(").concat(t.__d3plusShape__?t.rotate?t.rotate:n._rotate(t.data||t,t.i):n._rotate(t.data||t,t.i),")")})}},{key:"_nestWrapper",value:function t(n){return function(t,e){return n(t.__d3plusShape__?t.data:t,t.__d3plusShape__?t.i:e)}}},{key:"_renderActive",value:function t(){var r=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Yo(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=r._data.indexOf(t);var i=!r._active||typeof r._active!=="function"||!r._active(t,e)?n:r._activeGroup.node();if(i!==this.parentNode){i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)Yo(this).call(r._applyStyle.bind(r));else Yo(this).call(r._updateStyle.bind(r,Yo(this),r._activeStyle))}}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderHover",value:function t(){var r=this;this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text, g.d3plus-").concat(this._name,"-hover")).selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Yo(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=r._data.indexOf(t);var i=!r._hover||typeof r._hover!=="function"||!r._hover(t,e)?n:r._hoverGroup.node();if(i!==this.parentNode)i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)Yo(this).call(r._applyStyle.bind(r));else Yo(this).call(r._updateStyle.bind(r,Yo(this),r._hoverStyle))}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderImage",value:function t(){var l=this;var c=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=l._aes(t,e);if(n.r||n.width&&n.height){var i=t;if(t.nested&&t.key&&t.values){i=t.values[0];e=l._data.indexOf(i)}var r=n.r?n.r*2:n.height,a=l._backgroundImage(i,e),o=n.r?n.r*2:n.width;if(a){var s=i.__d3plusShape__?i.translate?i.translate[0]:l._x(i.data,i.i):l._x(i,e),u=i.__d3plusShape__?i.translate?i.translate[1]:l._y(i.data,i.i):l._y(i,e);if(n.x)s+=n.x;if(n.y)u+=n.y;if(i.__d3plusShape__){i=i.data;e=i.i}c.push({__d3plus__:true,data:i,height:r,i:e,id:l._id(i,e),url:a,width:o,x:s+-o/2,y:u+-r/2})}}});this._backgroundImageClass.data(c).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select(fw("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function t(){var h=this;var d=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=t;if(t.nested&&t.key&&t.values){n=t.values[0];e=h._data.indexOf(n)}var i=h._label(n,e);if(h._labelBounds&&i!==false&&i!==undefined&&i!==null){var r=h._labelBounds(n,e,h._aes(t,e));if(r){if(i.constructor!==Array)i=[i];var a=n.__d3plusShape__?n.translate?n.translate[0]:h._x(n.data,n.i):h._x(n,e),o=n.__d3plusShape__?n.translate?n.translate[1]:h._y(n.data,n.i):h._y(n,e);if(n.__d3plusShape__){n=n.data;e=n.i}for(var s=0;s<i.length;s++){var u=r.constructor===Array?r[s]:Object.assign({},r);var l=h._rotate(n,e);var c=n.labelConfig&&n.labelConfig.rotate?n.labelConfig.rotate:r.angle!==undefined?r.angle:0;c+=l;var f=l!==0?[u.x*-1||0,u.y*-1||0]:[u.width/2,u.height/2];d.push({__d3plus__:true,data:n,height:u.height,l:s,id:"".concat(h._id(n,e),"_").concat(s),r:c,rotateAnchor:f,text:i[s],width:u.width,x:a+u.x,y:o+u.y})}}}});this._labelClass.data(d).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate(function(t){return t.__d3plus__?t.r:t.data.r}).rotateAnchor(function(t){return t.__d3plus__?t.rotateAnchor:t.data.rotateAnchor}).select(fw("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(lw.bind(this)(this._labelConfig)).render()}},{key:"render",value:function t(e){var n=this;if(this._select===void 0){this.select(Yo("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=Uu().duration(this._duration);var i=this._data,r=this._id;if(this._dataFilter){i=this._dataFilter(i);if(i.key)r=i.key}if(this._sort){i=i.sort(function(t,e){while(t.__d3plusShape__||t.__d3plus__){t=t.data}while(e.__d3plusShape__||e.__d3plus__){e=e.data}return n._sort(t,e)})}Jo("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each(function(t){if(t&&t.parentNode)t.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=fw("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var a=this._update=fw("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(i,r);a.order();if(this._duration){a.transition(this._transition).call(this._applyTransform.bind(this))}else{a.call(this._applyTransform.bind(this))}var o=this._enter=a.enter().append(this._tagName).attr("class",function(t,e){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(wS(n._nestWrapper(n._id)(t,e)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(a);var u=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){u=u.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}u.attr("opacity",this._nestWrapper(this._opacity));var l=this._exit=a.exit();if(this._duration)l.transition().delay(this._duration).remove();else l.remove();this._renderImage();this._renderLabels();this._hoverGroup=fw("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=fw("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var c=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?i:[],r);c.order().call(this._applyTransform.bind(this));var f=this._name==="Line";f&&this._path.curve(rS["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var h=c.enter().append(f?"path":"rect").attr("class",function(t,e){return"d3plus-HitArea d3plus-id-".concat(wS(n._nestWrapper(n._id)(t,e)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var d=this;var g=c.merge(h).each(function(t){var e=d._data.indexOf(t);var n=d._hitArea(t,e,d._aes(t,e));return n&&!(d._name==="Line"&&parseFloat(d._strokeWidth(t,e))>10)?Yo(this).call(nl,n):Yo(this).remove()});c.exit().remove();this._applyEvents(this._hitArea?g:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(e)e()},this._duration+100);return this}},{key:"active",value:function t(e){if(!arguments.length||e===undefined)return this._active;this._active=e;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function t(e){return arguments.length?(this._activeOpacity=e,this):this._activeOpacity}},{key:"activeStyle",value:function t(e){return arguments.length?(this._activeStyle=el({},this._activeStyle,e),this):this._activeStyle}},{key:"ariaLabel",value:function t(e){return e!==undefined?(this._ariaLabel=typeof e==="function"?e:cw(e),this):this._ariaLabel}},{key:"backgroundImage",value:function t(e){return arguments.length?(this._backgroundImage=typeof e==="function"?e:cw(e),this):this._backgroundImage}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"fill",value:function t(e){return arguments.length?(this._fill=typeof e==="function"?e:cw(e),this):this._fill}},{key:"fillOpacity",value:function t(e){return arguments.length?(this._fillOpacity=typeof e==="function"?e:cw(e),this):this._fillOpacity}},{key:"hover",value:function t(e){if(!arguments.length||e===void 0)return this._hover;this._hover=e;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function t(e){return arguments.length?(this._hoverStyle=el({},this._hoverStyle,e),this):this._hoverStyle}},{key:"hoverOpacity",value:function t(e){return arguments.length?(this._hoverOpacity=e,this):this._hoverOpacity}},{key:"hitArea",value:function t(e){return arguments.length?(this._hitArea=typeof e==="function"?e:cw(e),this):this._hitArea}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cw(e),this):this._label}},{key:"labelBounds",value:function t(e){return arguments.length?(this._labelBounds=typeof e==="function"?e:cw(e),this):this._labelBounds}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=el(this._labelConfig,e),this):this._labelConfig}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:cw(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cw(e),this):this._pointerEvents}},{key:"role",value:function t(e){return e!==undefined?(this._role=typeof e==="function"?e:cw(e),this):this._role}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:cw(e),this):this._rotate}},{key:"rx",value:function t(e){return arguments.length?(this._rx=typeof e==="function"?e:cw(e),this):this._rx}},{key:"ry",value:function t(e){return arguments.length?(this._ry=typeof e==="function"?e:cw(e),this):this._ry}},{key:"scale",value:function t(e){return arguments.length?(this._scale=typeof e==="function"?e:cw(e),this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"shapeRendering",value:function t(e){return arguments.length?(this._shapeRendering=typeof e==="function"?e:cw(e),this):this._shapeRendering}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"stroke",value:function t(e){return arguments.length?(this._stroke=typeof e==="function"?e:cw(e),this):this._stroke}},{key:"strokeDasharray",value:function t(e){return arguments.length?(this._strokeDasharray=typeof e==="function"?e:cw(e),this):this._strokeDasharray}},{key:"strokeLinecap",value:function t(e){return arguments.length?(this._strokeLinecap=typeof e==="function"?e:cw(e),this):this._strokeLinecap}},{key:"strokeOpacity",value:function t(e){return arguments.length?(this._strokeOpacity=typeof e==="function"?e:cw(e),this):this._strokeOpacity}},{key:"strokeWidth",value:function t(e){return arguments.length?(this._strokeWidth=typeof e==="function"?e:cw(e),this):this._strokeWidth}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:cw(e),this):this._textAnchor}},{key:"vectorEffect",value:function t(e){return arguments.length?(this._vectorEffect=typeof e==="function"?e:cw(e),this):this._vectorEffect}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:cw(e),this):this._verticalAlign}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cw(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cw(e),this):this._y}}]);return n}(ow);function gC(t,e){var r=[];var a=[];function o(t,e){if(t.length===1){r.push(t[0]);a.push(t[0])}else{var n=Array(t.length-1);for(var i=0;i<n.length;i++){if(i===0){r.push(t[0])}if(i===n.length-1){a.push(t[i+1])}n[i]=[(1-e)*t[i][0]+e*t[i+1][0],(1-e)*t[i][1]+e*t[i+1][1]]}o(n,e)}}if(t.length){o(t,e)}return{left:r,right:a.reverse()}}function pC(t){var e={};if(t.length===4){e.x2=t[2][0];e.y2=t[2][1]}if(t.length>=3){e.x1=t[1][0];e.y1=t[1][1]}e.x=t[t.length-1][0];e.y=t[t.length-1][1];if(t.length===4){e.type="C"}else if(t.length===3){e.type="Q"}else{e.type="L"}return e}function vC(t,e){e=e||2;var n=[];var i=t;var r=1/e;for(var a=0;a<e-1;a++){var o=r/(1-r*a);var s=gC(i,o);n.push(s.left);i=s.right}n.push(i);return n}function mC(t,e,n){var i=[[t.x,t.y]];if(e.x1!=null){i.push([e.x1,e.y1])}if(e.x2!=null){i.push([e.x2,e.y2])}i.push([e.x,e.y]);return vC(i,n).map(pC)}var yC=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g;var _C={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(_C).forEach(function(t){_C[t.toLowerCase()]=_C[t]});function bC(t,e){var n=Array(t);for(var i=0;i<t;i++){n[i]=e}return n}function wC(e){return"".concat(e.type).concat(_C[e.type].map(function(t){return e[t]}).join(","))}function xC(i,r){var a={x1:"x",y1:"y",x2:"x",y2:"y"};var o=["xAxisRotation","largeArcFlag","sweepFlag"];if(i.type!==r.type&&r.type.toUpperCase()!=="M"){var s={};Object.keys(r).forEach(function(t){var e=r[t];var n=i[t];if(n===undefined){if(o.includes(t)){n=e}else{if(n===undefined&&a[t]){n=i[a[t]]}if(n===undefined){n=0}}}s[t]=n});s.type=r.type;i=s}return i}function kC(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C"){i=i.concat(mC(t,e,n))}else{var r=Object.assign({},t);if(r.type==="M"){r.type="L"}i=i.concat(bC(n-1).map(function(){return r}));i.push(e)}return i}function SC(a,t,o){var e=a.length-1;var n=t.length-1;var s=e/n;var i=bC(n).reduce(function(t,e,n){var i=Math.floor(s*n);if(o&&i<a.length-1&&o(a[i],a[i+1])){var r=s*n%1<.5;if(t[i]){if(r){if(i>0){i-=1}else if(i<a.length-1){i+=1}}else if(i<a.length-1){i+=1}else if(i>0){i-=1}}}t[i]=(t[i]||0)+1;return t},[]);var r=i.reduce(function(t,e,n){if(n===a.length-1){var i=bC(e,Object.assign({},a[a.length-1]));if(i[0].type==="M"){i.forEach(function(t){t.type="L"})}return t.concat(i)}return t.concat(kC(a[n],a[n+1],e))},[]);r.unshift(a[0]);return r}function CC(t){var e=(t||"").match(yC)||[];var n=[];var i;var r;for(var a=0;a<e.length;++a){i=_C[e[a]];if(i){r={type:e[a]};for(var o=0;o<i.length;++o){r[i[o]]=+e[a+o+1]}a+=i.length;n.push(r)}}return n}function EC(t,l,e){var c=t==null?[]:t.slice();var f=l==null?[]:l.slice();if(!c.length&&!f.length){return function t(){return[]}}var n=(c.length===0||c[c.length-1].type==="Z")&&(f.length===0||f[f.length-1].type==="Z");if(c.length>0&&c[c.length-1].type==="Z"){c.pop()}if(f.length>0&&f[f.length-1].type==="Z"){f.pop()}if(!c.length){c.push(f[0])}else if(!f.length){f.push(c[0])}var i=Math.abs(f.length-c.length);if(i!==0){if(f.length>c.length){c=SC(c,f,e)}else if(f.length<c.length){f=SC(f,c,e)}}c=c.map(function(t,e){return xC(t,f[e])});var h=c.map(function(t){return _objectSpread({},t)});if(n){h.push({type:"Z"})}return function t(e){if(e===1){return l==null?[]:l}if(e>0){for(var n=0;n<h.length;++n){var i=c[n];var r=f[n];var a=h[n];var o=_createForOfIteratorHelper(_C[a.type]),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;a[u]=(1-e)*i[u]+e*r[u];if(u==="largeArcFlag"||u==="sweepFlag"){a[u]=Math.round(a[u])}}}catch(t){o.e(t)}finally{o.f()}}}return h}}function AC(t,s,e){var n=CC(t);var i=CC(s);if(!n.length&&!i.length){return function t(){return""}}var u=EC(n,i,e);return function t(e){if(e===1){return s==null?"":s}var n=u(e);var i="";var r=_createForOfIteratorHelper(n),a;try{for(r.s();!(a=r.n()).done;){var o=a.value;i+=wC(o)}}catch(t){r.e(t)}finally{r.f()}return i}}function RC(t){var e=-1,n=t.length,i,r=t[n-1],a=0;while(++e<n){i=r;r=t[e];a+=i[1]*r[0]-i[0]*r[1]}return a/2}function MC(t){var e=-1,n=t.length,i=0,r=0,a,o=t[n-1],s,u=0;while(++e<n){a=o;o=t[e];u+=s=a[0]*o[1]-o[0]*a[1];i+=(a[0]+o[0])*s;r+=(a[1]+o[1])*s}return u*=3,[i/u,r/u]}function TC(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function PC(t,e){return t[0]-e[0]||t[1]-e[1]}function OC(t){var e=t.length,n=[0,1],i=2;for(var r=2;r<e;++r){while(i>1&&TC(t[n[i-2]],t[n[i-1]],t[r])<=0){--i}n[i++]=r}return n.slice(0,i)}function BC(t){if((n=t.length)<3)return null;var e,n,i=new Array(n),r=new Array(n);for(e=0;e<n;++e){i[e]=[+t[e][0],+t[e][1],e]}i.sort(PC);for(e=0;e<n;++e){r[e]=[i[e][0],-i[e][1]]}var a=OC(i),o=OC(r);var s=o[0]===a[0],u=o[o.length-1]===a[a.length-1],l=[];for(e=a.length-1;e>=0;--e){l.push(t[i[a[e]][2]])}for(e=+s;e<o.length-u;++e){l.push(t[i[o[e]][2]])}return l}function DC(t,e){var n=t.length,i=t[n-1],r=e[0],a=e[1],o=i[0],s=i[1],u,l,c=false;for(var f=0;f<n;++f){i=t[f],u=i[0],l=i[1];if(l>a!==s>a&&r<(o-u)*(a-l)/(s-l)+u)c=!c;o=u,s=l}return c}function NC(t,e,n,i){var r=1e-9;var a=t[0]-e[0],o=n[0]-i[0],s=t[1]-e[1],u=n[1]-i[1];var l=a*u-s*o;if(Math.abs(l)<r)return null;var c=t[0]*e[1]-t[1]*e[0],f=n[0]*i[1]-n[1]*i[0];var h=(c*o-f*a)/l,d=(c*u-f*s)/l;return[h,d]}function zC(t,e){return HC(t)||IC(t,e)||LC(t,e)||jC()}function jC(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function LC(t,e){if(!t)return;if(typeof t==="string")return FC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FC(t,e)}function FC(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function IC(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function HC(t){if(Array.isArray(t))return t}function GC(t,e,n){var i=1e-9,r=zC(n,2),a=r[0],o=r[1];return!(a<Math.min(t[0],e[0])-i||a>Math.max(t[0],e[0])+i||o<Math.min(t[1],e[1])-i||o>Math.max(t[1],e[1])+i)}function VC(t,e,n,i){var r=NC(t,e,n,i);if(!r)return false;return GC(t,e,r)&&GC(n,i,r)}function UC(t,e){var n=-1;var i=t.length;var r=e.length;var a=t[i-1];while(++n<i){var o=a;a=t[n];var s=-1;var u=e[r-1];while(++s<r){var l=u;u=e[s];if(VC(o,a,l,u))return false}}return DC(e,t[0])}function WC(t,e){return ZC(t)||XC(t,e)||KC(t,e)||qC()}function qC(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function KC(t,e){if(!t)return;if(typeof t==="string")return YC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(t,e)}function YC(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function XC(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function ZC(t){if(Array.isArray(t))return t}function $C(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=1e-9;e=[e[0]+i*Math.cos(n),e[1]+i*Math.sin(n)];var r=e,a=WC(r,2),o=a[0],s=a[1];var u=[o+Math.cos(n),s+Math.sin(n)];var l=0;if(Math.abs(u[0]-o)<i)l=1;var c=-1;var f=t.length;var h=t[f-1];var d=Number.MAX_VALUE;var g=Number.MAX_VALUE;var p=null;var v=null;while(++c<f){var m=h;h=t[c];var y=NC(e,u,m,h);if(y&&GC(m,h,y)){var _=tC(e,y);if(y[l]<e[l]){if(_<d){d=_;p=y}}else if(y[l]>e[l]){if(_<g){g=_;v=y}}}}return[p,v]}function JC(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];var i=Math.cos(e),r=Math.sin(e),a=t[0]-n[0],o=t[1]-n[1];return[i*a-r*o+n[0],r*a+i*o+n[1]]}var QC=function t(e,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return e.map(function(t){return JC(t,n,i)})};function tE(t,e,n){var i=e[0],r=e[1];var a=n[0]-i,o=n[1]-r;if(a!==0||o!==0){var s=((t[0]-i)*a+(t[1]-r)*o)/(a*a+o*o);if(s>1){i=n[0];r=n[1]}else if(s>0){i+=a*s;r+=o*s}}a=t[0]-i;o=t[1]-r;return a*a+o*o}function eE(t,e){var n,i=t[0];var r=[i];for(var a=1,o=t.length;a<o;a++){n=t[a];if(tC(n,i)>e){r.push(n);i=n}}if(i!==n)r.push(n);return r}function nE(t,e,n,i,r){var a,o=i;for(var s=e+1;s<n;s++){var u=tE(t[s],t[e],t[n]);if(u>o){a=s;o=u}}if(o>i){if(a-e>1)nE(t,e,a,i,r);r.push(t[a]);if(n-a>1)nE(t,a,n,i,r)}}function iE(t,e){var n=t.length-1;var i=[t[0]];nE(t,0,n,e,i);i.push(t[n]);return i}var rE=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(e.length<=2)return e;var r=n*n;e=i?e:eE(e,r);e=iE(e,r);return e};function aE(t,e){return cE(t)||lE(t,e)||sE(t,e)||oE()}function oE(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sE(t,e){if(!t)return;if(typeof t==="string")return uE(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uE(t,e)}function uE(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function lE(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function cE(t){if(Array.isArray(t))return t}var fE=.5;var hE=5;var dE={};function gE(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.length<3){if(e.verbose)console.error("polygon has to have at least 3 points",t);return null}var n=[];e=Object.assign({angle:le(-90,90+hE,hE),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},e);var i=e.angle instanceof Array?e.angle:typeof e.angle==="number"?[e.angle]:typeof e.angle==="string"&&!isNaN(e.angle)?[Number(e.angle)]:[];var r=e.aspectRatio instanceof Array?e.aspectRatio:typeof e.aspectRatio==="number"?[e.aspectRatio]:typeof e.aspectRatio==="string"&&!isNaN(e.aspectRatio)?[Number(e.aspectRatio)]:[];var a=e.origin&&e.origin instanceof Array?e.origin[0]instanceof Array?e.origin:[e.origin]:[];var o;if(e.cache){o=he(t).join(",");o+="-".concat(e.minAspectRatio);o+="-".concat(e.maxAspectRatio);o+="-".concat(e.minHeight);o+="-".concat(e.minWidth);o+="-".concat(i.join(","));o+="-".concat(a.join(","));if(dE[o])return dE[o]}var s=Math.abs(RC(t));if(s===0){if(e.verbose)console.error("polygon has 0 area",t);return null}var u=ue(t,function(t){return t[0]}),l=aE(u,2),c=l[0],f=l[1];var h=ue(t,function(t){return t[1]}),d=aE(h,2),g=d[0],p=d[1];var v=Math.min(f-c,p-g)*e.tolerance;if(v>0)t=rE(t,v);if(e.events)n.push({type:"simplify",poly:t});var m=ue(t,function(t){return t[0]});var y=aE(m,2);c=y[0];f=y[1];var _=ue(t,function(t){return t[1]});var b=aE(_,2);g=b[0];p=b[1];var w=f-c,x=p-g;var k=Math.min(w,x)/50;if(!a.length){var S=MC(t);if(!isFinite(S[0])){if(e.verbose)console.error("cannot find centroid",t);return null}if(DC(t,S))a.push(S);var C=e.nTries;while(C){var E=Math.random()*w+c;var A=Math.random()*x+g;var R=[E,A];if(DC(t,R)){a.push(R)}C--}}if(e.events)n.push({type:"origins",points:a});var M=0;var T=null;for(var P=0;P<i.length;P++){var O=i[P];var B=-O*Math.PI/180;if(e.events)n.push({type:"angle",angle:O});for(var D=0;D<a.length;D++){var N=a[D];var z=$C(t,N,B),j=aE(z,2),L=j[0],F=j[1];var I=$C(t,N,B+Math.PI/2),H=aE(I,2),G=H[0],V=H[1];var U=[];if(L&&F)U.push([(L[0]+F[0])/2,(L[1]+F[1])/2]);if(G&&V)U.push([(G[0]+V[0])/2,(G[1]+V[1])/2]);if(e.events)n.push({type:"modifOrigin",idx:D,p1W:L,p2W:F,p1H:G,p2H:V,modifOrigins:U});for(var W=0;W<U.length;W++){var q=U[W];if(e.events)n.push({type:"origin",cx:q[0],cy:q[1]});var K=$C(t,q,B),Y=aE(K,2),X=Y[0],Z=Y[1];if(X===null||Z===null)continue;var $=Math.min(tC(q,X),tC(q,Z));var J=2*Math.sqrt($);var Q=$C(t,q,B+Math.PI/2),tt=aE(Q,2),et=tt[0],nt=tt[1];if(et===null||nt===null)continue;var it=Math.min(tC(q,et),tC(q,nt));var rt=2*Math.sqrt(it);if(J*rt<M)continue;var at=r;if(!at.length){var ot=Math.max(e.minAspectRatio,e.minWidth/rt,M/(rt*rt));var st=Math.min(e.maxAspectRatio,J/e.minHeight,J*J/M);at=le(ot,st+fE,fE)}for(var ut=0;ut<at.length;ut++){var lt=at[ut];var ct=Math.max(e.minWidth,Math.sqrt(M*lt));var ft=Math.min(J,rt*lt);if(ft*rt<M)continue;if(e.events&&ft-ct>=k)n.push({type:"aRatio",aRatio:lt});while(ft-ct>=k){var ht=(ct+ft)/2;var dt=ht/lt;var gt=aE(q,2),pt=gt[0],vt=gt[1];var mt=[[pt-ht/2,vt-dt/2],[pt+ht/2,vt-dt/2],[pt+ht/2,vt+dt/2],[pt-ht/2,vt+dt/2]];mt=QC(mt,B,q);var yt=UC(mt,t);if(yt){M=ht*dt;mt.push(mt[0]);T={area:M,cx:pt,cy:vt,width:ht,height:dt,angle:-O,points:mt};ct=ht}else{ft=ht}if(e.events)n.push({type:"rectangle",areaFraction:ht*dt/s,cx:pt,cy:vt,width:ht,height:dt,angle:O,insidePoly:yt})}}}}}if(e.cache){dE[o]=T}return e.events?Object.assign(T||{},{events:n}):T}function pE(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){pE=function t(e){return typeof e}}else{pE=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return pE(t)}function vE(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function mE(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function yE(t,e,n){if(e)mE(t.prototype,e);if(n)mE(t,n);return t}function _E(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){_E=Reflect.get}else{_E=function t(e,n,i){var r=bE(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return _E(t,e,n||t)}function bE(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=AE(t);if(t===null)break}return t}function wE(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)xE(t,e)}function xE(t,e){xE=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return xE(t,e)}function kE(r){var a=EE();return function t(){var e=AE(r),n;if(a){var i=AE(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return SE(this,n)}}function SE(t,e){if(e&&(pE(e)==="object"||typeof e==="function")){return e}return CE(t)}function CE(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function EE(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function AE(t){AE=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return AE(t)}var RE=function(t){wE(a,t);var e=kE(a);function a(){var r;vE(this,a);r=e.call(this);r._curve="linear";r._defined=function(){return true};r._labelBounds=function(t,e,n){var i=gE(n.points);if(!i)return null;return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-r._x(t,e),y:i.cy-i.height/2-r._y(t,e)}};r._labelConfig=Object.assign(r._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});r._name="Area";r._x=$u("x");r._x0=$u("x");r._x1=null;r._y=cw(0);r._y0=cw(0);r._y1=$u("y");return r}yE(a,[{key:"_aes",value:function t(e){var n=this;var i=e.values.slice().sort(function(t,e){return n._y1?n._x(t)-n._x(e):n._y(t)-n._y(e)});var r=i.map(function(t,e){return[n._x0(t,e),n._y0(t,e)]});var a=i.reverse().map(function(t,e){return n._y1?[n._x(t,e),n._y1(t,e)]:[n._x1(t,e),n._y(t,e)]});var o=r.concat(a);if(r[0][1]>a[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function t(i){var r=this;var e=Fe().key(this._id).entries(i).map(function(t){t.data=dw(t.values);t.i=i.indexOf(t.values[0]);var e=ue(t.values.map(r._x).concat(t.values.map(r._x0)).concat(r._x1?t.values.map(r._x1):[]));t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=ue(t.values.map(r._y).concat(t.values.map(r._y0)).concat(r._y1?t.values.map(r._y1):[]));t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;_E(AE(a.prototype),"render",this).call(this,e);var i=this._path=gx().defined(this._defined).curve(rS["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1);var r=gx().defined(function(t){return t}).curve(rS["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).y(this._y).x0(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).x1(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).y0(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)}).y1(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)});this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return r(t.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(t){return AC(Yo(this).attr("d"),i(t.values))});this._update.select("path").transition(this._transition).attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attrTween("d",function(t){return AC(Yo(this).attr("d"),i(t.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(t){return AC(Yo(this).attr("d"),r(t.values))});return this}},{key:"curve",value:function t(e){return arguments.length?(this._curve=e,this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}},{key:"x",value:function t(e){if(!arguments.length)return this._x;this._x=typeof e==="function"?e:cw(e);this._x0=this._x;return this}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:cw(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:cw(e),this):this._x1}},{key:"y",value:function t(e){if(!arguments.length)return this._y;this._y=typeof e==="function"?e:cw(e);this._y0=this._y;return this}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:cw(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:cw(e),this):this._y1}}]);return a}(dC);function ME(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ME=function t(e){return typeof e}}else{ME=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return ME(t)}function TE(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function PE(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function OE(t,e,n){if(e)PE(t.prototype,e);if(n)PE(t,n);return t}function BE(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){BE=Reflect.get}else{BE=function t(e,n,i){var r=DE(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return BE(t,e,n||t)}function DE(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=HE(t);if(t===null)break}return t}function NE(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)zE(t,e)}function zE(t,e){zE=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zE(t,e)}function jE(r){var a=IE();return function t(){var e=HE(r),n;if(a){var i=HE(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return LE(this,n)}}function LE(t,e){if(e&&(ME(e)==="object"||typeof e==="function")){return e}return FE(t)}function FE(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function IE(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function HE(t){HE=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return HE(t)}var GE=function(t){NE(a,t);var e=jE(a);function a(){var i;TE(this,a);i=e.call(this,"rect");i._name="Bar";i._height=cw(10);i._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:i._x1!==null?i._getX(t,e):-n.width/2,y:i._x1===null?i._getY(t,e):-n.height/2}};i._width=cw(10);i._x=$u("x");i._x0=$u("x");i._x1=null;i._y=cw(0);i._y0=cw(0);i._y1=$u("y");return i}OE(a,[{key:"render",value:function t(e){var n=this;BE(HE(a.prototype),"render",this).call(this,e);var i=this._enter.attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0}).call(this._applyStyle.bind(this));var r=this._update;if(this._duration){i=i.transition(this._transition);r=r.transition(this._transition);this._exit.transition(this._transition).attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0})}i.call(this._applyPosition.bind(this));r.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{height:this._getHeight(e,n),width:this._getWidth(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._getWidth(t,e)}).attr("height",function(t,e){return n._getHeight(t,e)}).attr("x",function(t,e){return n._x1!==null?n._getX(t,e):-n._getWidth(t,e)/2}).attr("y",function(t,e){return n._x1===null?n._getY(t,e):-n._getHeight(t,e)/2})}},{key:"_getHeight",value:function t(e,n){if(this._x1!==null)return this._height(e,n);return Math.abs(this._y1(e,n)-this._y(e,n))}},{key:"_getWidth",value:function t(e,n){if(this._x1===null)return this._width(e,n);return Math.abs(this._x1(e,n)-this._x(e,n))}},{key:"_getX",value:function t(e,n){var i=this._x1===null?this._x(e,n):this._x1(e,n)-this._x(e,n);if(i<0)return i;else return 0}},{key:"_getY",value:function t(e,n){var i=this._x1!==null?this._y(e,n):this._y1(e,n)-this._y(e,n);if(i<0)return i;else return 0}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cw(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cw(e),this):this._width}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:cw(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:cw(e),this):this._x1}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:cw(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:cw(e),this):this._y1}}]);return a}(dC);function VE(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){VE=function t(e){return typeof e}}else{VE=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return VE(t)}function UE(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function WE(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function qE(t,e,n){if(e)WE(t.prototype,e);if(n)WE(t,n);return t}function KE(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){KE=Reflect.get}else{KE=function t(e,n,i){var r=YE(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return KE(t,e,n||t)}function YE(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=eA(t);if(t===null)break}return t}function XE(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)ZE(t,e)}function ZE(t,e){ZE=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return ZE(t,e)}function $E(r){var a=tA();return function t(){var e=eA(r),n;if(a){var i=eA(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return JE(this,n)}}function JE(t,e){if(e&&(VE(e)==="object"||typeof e==="function")){return e}return QE(t)}function QE(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function tA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function eA(t){eA=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return eA(t)}var nA=function(t){XE(r,t);var e=$E(r);function r(){var t;UE(this,r);t=e.call(this,"circle");t._labelBounds=function(t,e,n){return{width:n.r*1.5,height:n.r*1.5,x:-n.r*.75,y:-n.r*.75}};t._labelConfig=el(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});t._name="Circle";t._r=$u("r");return t}qE(r,[{key:"_applyPosition",value:function t(e){var n=this;e.attr("r",function(t,e){return n._r(t,e)}).attr("x",function(t,e){return-n._r(t,e)/2}).attr("y",function(t,e){return-n._r(t,e)/2})}},{key:"render",value:function t(e){KE(eA(r.prototype),"render",this).call(this,e);var n=this._enter.call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n.attr("r",0).attr("x",0).attr("y",0).transition(this._transition).call(this._applyPosition.bind(this));i=i.transition(this._transition);this._exit.transition(this._transition).attr("r",0).attr("x",0).attr("y",0)}else{n.call(this._applyPosition.bind(this))}i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{r:this._r(e,n)}}},{key:"r",value:function t(e){return arguments.length?(this._r=typeof e==="function"?e:cw(e),this):this._r}}]);return r}(dC);function iA(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){iA=function t(e){return typeof e}}else{iA=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return iA(t)}function rA(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function aA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function oA(t,e,n){if(e)aA(t.prototype,e);if(n)aA(t,n);return t}function sA(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){sA=Reflect.get}else{sA=function t(e,n,i){var r=uA(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return sA(t,e,n||t)}function uA(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=pA(t);if(t===null)break}return t}function lA(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)cA(t,e)}function cA(t,e){cA=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return cA(t,e)}function fA(r){var a=gA();return function t(){var e=pA(r),n;if(a){var i=pA(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return hA(this,n)}}function hA(t,e){if(e&&(iA(e)==="object"||typeof e==="function")){return e}return dA(t)}function dA(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function gA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function pA(t){pA=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return pA(t)}var vA=function(t){lA(r,t);var e=fA(r);function r(){var t;rA(this,r);t=e.call(this,"rect");t._height=$u("height");t._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}};t._name="Rect";t._width=$u("width");return t}oA(r,[{key:"render",value:function t(e){sA(pA(r.prototype),"render",this).call(this,e);var n=this._enter.attr("width",0).attr("height",0).attr("x",0).attr("y",0).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n=n.transition(this._transition);i=i.transition(this._transition);this._exit.transition(this._transition).attr("width",0).attr("height",0).attr("x",0).attr("y",0)}n.call(this._applyPosition.bind(this));i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{width:this._width(e,n),height:this._height(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return-n._width(t,e)/2}).attr("y",function(t,e){return-n._height(t,e)/2})}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cw(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cw(e),this):this._width}}]);return r}(dC);function mA(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){mA=function t(e){return typeof e}}else{mA=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return mA(t)}function yA(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function _A(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function bA(t,e,n){if(e)_A(t.prototype,e);if(n)_A(t,n);return t}function wA(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){wA=Reflect.get}else{wA=function t(e,n,i){var r=xA(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return wA(t,e,n||t)}function xA(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=MA(t);if(t===null)break}return t}function kA(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)SA(t,e)}function SA(t,e){SA=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return SA(t,e)}function CA(r){var a=RA();return function t(){var e=MA(r),n;if(a){var i=MA(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return EA(this,n)}}function EA(t,e){if(e&&(mA(e)==="object"||typeof e==="function")){return e}return AA(t)}function AA(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function RA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function MA(t){MA=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return MA(t)}var TA=function(t){kA(s,t);var e=CA(s);function s(){var n;yA(this,s);n=e.call(this);n._curve="linear";n._defined=function(t){return t};n._fill=cw("none");n._hitArea=cw({d:function t(e){return n._path(e.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=dx();n._stroke=cw("black");n._strokeWidth=cw(1);return n}bA(s,[{key:"_dataFilter",value:function t(i){var r=this;var e=Fe().key(this._id).entries(i).map(function(t){t.data=dw(t.values);t.i=i.indexOf(t.values[0]);var e=ue(t.values,r._x);t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=ue(t.values,r._y);t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;wA(MA(s.prototype),"render",this).call(this,e);var o=this;function i(t){t.initialLength=this.getTotalLength();var e=o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0])).split(" ").map(Number);if(e.length===1&&e[0]===0)e=[t.initialLength];else if(e.length===1)e.push(e[0]);else if(e.length%2)e=e.concat(e);var n=[];var i=0;while(i<t.initialLength){for(var r=0;r<e.length;r++){var a=e[r];i+=a;n.push(a);if(i>=t.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=t.initialLength-ge(n);if(n.length%2===0)n.push(0);t.initialStrokeArray=n.join(" ")}this._path.curve(rS["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var r=this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return n._path(t.values)}).call(this._applyStyle.bind(this));var a=this._update.select("path").attr("stroke-dasharray",function(t){return o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0]))});if(this._duration){r.each(i).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).attr("stroke-dashoffset",function(t){return t.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);a=a.transition(this._transition).attrTween("d",function(t){return AC(Yo(this).attr("d"),o._path(t.values))});this._exit.selectAll("path").each(i).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(t){return-t.initialLength})}else{a=a.attr("d",function(t){return o._path(t.values)})}a.attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function t(e,n){var i=this;return{points:e.values.map(function(t){return[i._x(t,n),i._y(t,n)]})}}},{key:"curve",value:function t(e){return arguments.length?(this._curve=e,this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}}]);return s}(dC);function PA(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){PA=function t(e){return typeof e}}else{PA=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return PA(t)}function OA(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function BA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function DA(t,e,n){if(e)BA(t.prototype,e);if(n)BA(t,n);return t}function NA(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)zA(t,e)}function zA(t,e){zA=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zA(t,e)}function jA(r){var a=IA();return function t(){var e=HA(r),n;if(a){var i=HA(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return LA(this,n)}}function LA(t,e){if(e&&(PA(e)==="object"||typeof e==="function")){return e}return FA(t)}function FA(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function IA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function HA(t){HA=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return HA(t)}var GA={Circle:nA,Rect:vA};var VA=function(t){NA(n,t);var e=jA(n);function n(){var t;OA(this,n);t=e.call(this);t._endpoint=$u("endpoint","Rect");t._endpointConfig={Circle:{r:$u("r",5)}};t._length=$u("length",25);t._lineConfig={};t._orient=$u("orient","top");t._x=$u("x",0);t._y=$u("y",0);return t}DA(n,[{key:"render",value:function t(e){var s=this;if(this._select===void 0){this.select(Yo("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var u=[];this._data.forEach(function(t,e){var n=s._orient(t,e);var i=s._x(t,e);var r=s._y(t,e);var a=i;if(n==="left")a-=s._length(t,e);else if(n==="right")a+=s._length(t,e);var o=r;if(n==="top")o-=s._length(t,e);else if(n==="bottom")o+=s._length(t,e);u.push({__d3plus__:true,data:t,i:e,id:e,x:i,y:r});u.push({__d3plus__:true,data:t,i:e,id:e,x:a,y:o})});this._line=(new TA).data(u).select(fw("g.d3plus-Whisker",{parent:this._select}).node()).config(lw.bind(this)(this._lineConfig,"shape")).render(e);var n=this._data.map(function(t,e){var n={};n.__d3plus__=true;n.data=t;n.i=e;n.endpoint=s._endpoint(t,e);n.length=s._length(t,e);n.orient=s._orient(t,e);var i=s._x(t,e);if(n.orient==="left")i-=n.length;else if(n.orient==="right")i+=n.length;var r=s._y(t,e);if(n.orient==="top")r-=n.length;else if(n.orient==="bottom")r+=n.length;n.x=i;n.y=r;return n});this._whiskerEndpoint=[];Fe().key(function(t){return t.endpoint}).entries(n).forEach(function(t){var e=t.key;s._whiskerEndpoint.push((new GA[e]).data(t.values).select(fw("g.d3plus-Whisker-Endpoint-".concat(e),{parent:s._select}).node()).config({height:function t(e){return e.orient==="top"||e.orient==="bottom"?5:20},width:function t(e){return e.orient==="top"||e.orient==="bottom"?20:5}}).config(lw.bind(s)(s._endpointConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._line)this._line.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"endpoint",value:function t(e){return arguments.length?(this._endpoint=typeof e==="function"?e:cw(e),this):this._endpoint}},{key:"endpointConfig",value:function t(e){return arguments.length?(this._endpointConfig=el(this._endpointConfig,e),this):this._endpointConfig}},{key:"hover",value:function t(e){if(this._line)this._line.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"length",value:function t(e){return arguments.length?(this._length=typeof e==="function"?e:cw(e),this):this._length}},{key:"lineConfig",value:function t(e){return arguments.length?(this._lineConfig=el(this._lineConfig,e),this):this._lineConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:cw(e),this):this._orient}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cw(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cw(e),this):this._y}}]);return n}(ow);function UA(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){UA=function t(e){return typeof e}}else{UA=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return UA(t)}function WA(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function qA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function KA(t,e,n){if(e)qA(t.prototype,e);if(n)qA(t,n);return t}function YA(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)XA(t,e)}function XA(t,e){XA=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return XA(t,e)}function ZA(r){var a=QA();return function t(){var e=tR(r),n;if(a){var i=tR(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return $A(this,n)}}function $A(t,e){if(e&&(UA(e)==="object"||typeof e==="function")){return e}return JA(t)}function JA(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function QA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function tR(t){tR=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return tR(t)}var eR={Circle:nA,Rect:vA};var nR=function(t){YA(n,t);var e=ZA(n);function n(){var i;WA(this,n);i=e.call(this);i._medianConfig={fill:cw("black")};i._orient=$u("orient","vertical");i._outlier=$u("outlier","Circle");i._outlierConfig={Circle:{r:$u("r",5)},Rect:{height:function t(e,n){return i._orient(e,n)==="vertical"?5:20},width:function t(e,n){return i._orient(e,n)==="vertical"?20:5}}};i._rectConfig={fill:cw("white"),stroke:cw("black"),strokeWidth:cw(1)};i._rectWidth=cw(50);i._whiskerConfig={};i._whiskerMode=["tukey","tukey"];i._x=$u("x",250);i._y=$u("y",250);return i}KA(n,[{key:"render",value:function t(){var a=this;if(this._select===void 0){this.select(Yo("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var e=Fe().key(function(t,e){return a._orient(t,e)==="vertical"?a._x(t,e):a._y(t,e)}).entries(this._data).map(function(r){r.data=dw(r.values);r.i=a._data.indexOf(r.values[0]);r.orient=a._orient(r.data,r.i);var t=r.values.map(r.orient==="vertical"?a._y:a._x);t.sort(function(t,e){return t-e});r.first=zt(t,.25);r.median=zt(t,.5);r.third=zt(t,.75);var e=a._whiskerMode;if(e[0]==="tukey"){r.lowerLimit=r.first-(r.third-r.first)*1.5;if(r.lowerLimit<de(t))r.lowerLimit=de(t)}else if(e[0]==="extent")r.lowerLimit=de(t);else if(typeof e[0]==="number")r.lowerLimit=zt(t,e[0]);if(e[1]==="tukey"){r.upperLimit=r.third+(r.third-r.first)*1.5;if(r.upperLimit>ce(t))r.upperLimit=ce(t)}else if(e[1]==="extent")r.upperLimit=ce(t);else if(typeof e[1]==="number")r.upperLimit=zt(t,e[1]);var n=r.third-r.first;if(r.orient==="vertical"){r.height=n;r.width=a._rectWidth(r.data,r.i);r.x=a._x(r.data,r.i);r.y=r.first+n/2}else if(r.orient==="horizontal"){r.height=a._rectWidth(r.data,r.i);r.width=n;r.x=r.first+n/2;r.y=a._y(r.data,r.i)}r.values.forEach(function(t,e){var n=r.orient==="vertical"?a._y(t,e):a._x(t,e);if(n<r.lowerLimit||n>r.upperLimit){var i={};i.__d3plus__=true;i.data=t;i.i=e;i.outlier=a._outlier(t,e);if(r.orient==="vertical"){i.x=r.x;i.y=n;o.push(i)}else if(r.orient==="horizontal"){i.y=r.y;i.x=n;o.push(i)}}});r.__d3plus__=true;return r});this._box=(new vA).data(e).x(function(t){return t.x}).y(function(t){return t.y}).select(fw("g.d3plus-Box",{parent:this._select}).node()).config(lw.bind(this)(this._rectConfig,"shape")).render();this._median=(new vA).data(e).x(function(t){return t.orient==="vertical"?t.x:t.median}).y(function(t){return t.orient==="vertical"?t.median:t.y}).height(function(t){return t.orient==="vertical"?1:t.height}).width(function(t){return t.orient==="vertical"?t.width:1}).select(fw("g.d3plus-Box-Median",{parent:this._select}).node()).config(lw.bind(this)(this._medianConfig,"shape")).render();var c=[];e.forEach(function(t,e){var n=t.x;var i=t.y;var r=t.first-t.lowerLimit;var a=t.upperLimit-t.third;if(t.orient==="vertical"){var o=i-t.height/2;var s=i+t.height/2;c.push({__d3plus__:true,data:t,i:e,x:n,y:o,length:r,orient:"top"},{__d3plus__:true,data:t,i:e,x:n,y:s,length:a,orient:"bottom"})}else if(t.orient==="horizontal"){var u=n+t.width/2;var l=n-t.width/2;c.push({__d3plus__:true,data:t,i:e,x:u,y:i,length:a,orient:"right"},{__d3plus__:true,data:t,i:e,x:l,y:i,length:r,orient:"left"})}});this._whisker=(new VA).data(c).select(fw("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(lw.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];Fe().key(function(t){return t.outlier}).entries(o).forEach(function(t){var e=t.key;a._whiskerEndpoint.push((new eR[e]).data(t.values).select(fw("g.d3plus-Box-Outlier-".concat(e),{parent:a._select}).node()).config(lw.bind(a)(a._outlierConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._box)this._box.active(e);if(this._median)this._median.active(e);if(this._whisker)this._whisker.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"hover",value:function t(e){if(this._box)this._box.hover(e);if(this._median)this._median.hover(e);if(this._whisker)this._whisker.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"medianConfig",value:function t(e){return arguments.length?(this._medianConfig=el(this._medianConfig,e),this):this._medianConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:cw(e),this):this._orient}},{key:"outlier",value:function t(e){return arguments.length?(this._outlier=typeof e==="function"?e:cw(e),this):this._outlier}},{key:"outlierConfig",value:function t(e){return arguments.length?(this._outlierConfig=el(this._outlierConfig,e),this):this._outlierConfig}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=el(this._rectConfig,e),this):this._rectConfig}},{key:"rectWidth",value:function t(e){return arguments.length?(this._rectWidth=typeof e==="function"?e:cw(e),this):this._rectWidth}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"whiskerConfig",value:function t(e){return arguments.length?(this._whiskerConfig=el(this._whiskerConfig,e),this):this._whiskerConfig}},{key:"whiskerMode",value:function t(e){return arguments.length?(this._whiskerMode=e instanceof Array?e:[e,e],this):this._whiskerMode}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:$u(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:$u(e),this):this._y}}]);return n}(ow);var iR=Math.PI;var rR=function t(e,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(e<0)e=iR*2+e;if(i==="square"){var r=45*(iR/180);var a=0,o=0;if(e<iR/2){var s=Math.tan(e);a+=e<r?n:n/s;o+=e<r?s*n:n}else if(e<=iR){var u=Math.tan(iR-e);a-=e<iR-r?n/u:n;o+=e<iR-r?n:u*n}else if(e<r+iR){a-=n;o-=Math.tan(e-iR)*n}else if(e<3*iR/2){a-=n/Math.tan(e-iR);o-=n}else if(e<2*iR-r){a+=n/Math.tan(2*iR-e);o-=n}else{a+=n;o-=Math.tan(2*iR-e)*n}return[a,o]}else if(i==="circle"){return[n*Math.cos(e),n*Math.sin(e)]}else return null};var aR=Math.PI;var oR=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var i=[],r=/([MLA])([^MLAZ]+)/gi;var a=r.exec(e);while(a!==null){if(["M","L"].includes(a[1]))i.push(a[2].split(",").map(Number));else if(a[1]==="A"){var o=a[2].split(",").map(Number);var s=o.slice(o.length-2,o.length),u=i[i.length-1],l=o[0],c=eC(u,s);var f=Math.acos((l*l+l*l-c*c)/(2*l*l));if(o[2])f=aR*2-f;var h=f/(f/(aR*2)*(l*aR*2)/n);var d=Math.atan2(-u[1],-u[0])-aR;var g=h;while(g<f){i.push(rR(o[4]?d+g:d-g,l));g+=h}i.push(s)}a=r.exec(e)}return i};function sR(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){sR=function t(e){return typeof e}}else{sR=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return sR(t)}function uR(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function lR(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function cR(t,e,n){if(e)lR(t.prototype,e);if(n)lR(t,n);return t}function fR(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){fR=Reflect.get}else{fR=function t(e,n,i){var r=hR(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return fR(t,e,n||t)}function hR(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=_R(t);if(t===null)break}return t}function dR(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)gR(t,e)}function gR(t,e){gR=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return gR(t,e)}function pR(r){var a=yR();return function t(){var e=_R(r),n;if(a){var i=_R(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return vR(this,n)}}function vR(t,e){if(e&&(sR(e)==="object"||typeof e==="function")){return e}return mR(t)}function mR(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function yR(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function _R(t){_R=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return _R(t)}var bR=function(t){dR(a,t);var e=pR(a);function a(){var r;uR(this,a);r=e.call(this,"path");r._d=$u("path");r._labelBounds=function(t,e,n){var i=gE(n.points,{angle:r._labelConfig.rotate?r._labelConfig.rotate(t,e):0});return i?{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2,y:i.cy-i.height/2}:false};r._name="Path";r._labelConfig=Object.assign(r._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});return r}cR(a,[{key:"_aes",value:function t(e,n){return{points:oR(this._d(e,n))}}},{key:"render",value:function t(e){fR(_R(a.prototype),"render",this).call(this,e);var n=this._enter.attr("d",this._d).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n.attr("opacity",0).transition(this._transition).attr("opacity",1);i=i.transition(this._transition);this._exit.transition(this._transition).attr("opacity",0)}i.call(this._applyStyle.bind(this)).attr("d",this._d);return this}},{key:"d",value:function t(e){return arguments.length?(this._d=typeof e==="function"?e:cw(e),this):this._d}}]);return a}(dC);var wR=Object.freeze({__proto__:null,Image:Ew,Shape:dC,Area:RE,Bar:GE,Box:nR,Circle:nA,Line:TA,Path:bR,Rect:vA,Whisker:VA,largestRect:gE,lineIntersection:NC,path2polygon:oR,pointDistance:eC,pointDistanceSquared:tC,pointRotate:JC,polygonInside:UC,polygonRayCast:$C,polygonRotate:QC,segmentBoxContains:GC,segmentsIntersect:VC,shapeEdgePoint:rR,simplify:rE});function xR(t){if(t.constructor===Date)return t;else if(t.constructor===Number&&"".concat(t).length>5&&t%1===0)return new Date(t);var e="".concat(t);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(e),i=new RegExp(/^[A-z]{1,3} [A-z]{1,3} \d{1,2} (-*\d{1,4}) \d{1,2}:\d{1,2}:\d{1,2} [A-z]{1,3}-*\d{1,4} \([A-z]{1,3}\)/g).exec(e);if(n){var r=n[1];if(r.indexOf("-")===0)e=e.replace(r,r.substr(1));var a=new Date(e);a.setFullYear(r);return a}else if(i){var o=i[1];if(o.indexOf("-")===0)e=e.replace(o,o.substr(1));var s=new Date(e);s.setFullYear(o);return s}else if(!e.includes("/")&&!e.includes(" ")&&(!e.includes("-")||!e.indexOf("-"))){var u=new Date("".concat(e,"/01/01"));u.setFullYear(t);return u}else return new Date(e)}var kR={"de-DE":{dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},"en-GB":{dateTime:"%a %e %b %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},"en-US":{dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},"es-ES":{dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"es-MX":{dateTime:"%x, %X",date:"%d/%m/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"fr-FR":{dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},"it-IT":{dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},"pt-BR":{dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}};function SR(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function CR(t){return MR(t)||RR(t)||AR(t)||ER()}function ER(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function AR(t,e){if(!t)return;if(typeof t==="string")return TR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TR(t,e)}function RR(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function MR(t){if(Array.isArray(t))return TR(t)}function TR(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function PR(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){PR=function t(e){return typeof e}}else{PR=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return PR(t)}function OR(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function BR(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function DR(t,e,n){if(e)BR(t.prototype,e);if(n)BR(t,n);return t}function NR(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)zR(t,e)}function zR(t,e){zR=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zR(t,e)}function jR(r){var a=IR();return function t(){var e=HR(r),n;if(a){var i=HR(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return LR(this,n)}}function LR(t,e){if(e&&(PR(e)==="object"||typeof e==="function")){return e}return FR(t)}function FR(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function IR(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function HR(t){HR=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return HR(t)}var GR=function(t){NR(i,t);var e=jR(i);function i(){var n;OR(this,i);n=e.call(this);n._align="middle";n._barConfig={stroke:"#000","stroke-width":1};n._domain=[0,10];n._duration=600;n._gridConfig={stroke:"#ccc","stroke-width":1};n._gridLog=false;n._height=400;n._labelOffset=true;n.orient("bottom");n._outerBounds={width:0,height:0,x:0,y:0};n._padding=5;n._paddingInner=.1;n._paddingOuter=.1;n._rotateLabels=false;n._scale="linear";n._scalePadding=.5;n._shape="Line";n._shapeConfig={fill:"#000",height:function t(e){return e.tick?8:0},label:function t(e){return e.text},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:"#000",fontFamily:(new ZS).fontFamily(),fontResize:false,fontSize:cw(10),padding:0,textAnchor:function t(){var e=yS();return n._orient==="left"?e?"start":"end":n._orient==="right"?e?"end":"start":n._rotateLabels?n._orient==="bottom"?"end":"start":"middle"},verticalAlign:function t(){return n._orient==="bottom"?"top":n._orient==="top"?"bottom":"middle"}},r:function t(e){return e.tick?4:0},stroke:"#000",strokeWidth:1,width:function t(e){return e.tick?8:0}};n._tickSize=5;n._tickSpecifier=undefined;n._tickSuffix="normal";n._tickUnit=0;n._timeLocale=undefined;n._titleClass=new ZS;n._titleConfig={fontSize:12,textAnchor:"middle"};n._width=400;return n}DR(i,[{key:"_barPosition",value:function t(e){var n=this._position,i=n.height,r=n.x,a=n.y,o=n.opposite,s=this._margin[o],u=["top","left"].includes(this._orient)?this._outerBounds[a]+this._outerBounds[i]-s:this._outerBounds[a]+s;var l=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var c=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var f=(this._d3Scale?this._d3Scale.domain():[]).concat(this._d3ScaleNegative?this._d3ScaleNegative.domain():[]);e.call(nl,this._barConfig).attr("".concat(r,"1"),this._getPosition(f[0])-l).attr("".concat(r,"2"),this._getPosition(f[f.length-1])+c).attr("".concat(a,"1"),u).attr("".concat(a,"2"),u)}},{key:"_getDomain",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.domain();if(this._d3Scale)e=e.concat(this._d3Scale.domain());var n=["band","ordinal","point"].includes(this._scale)?e:ue(e);return e[0]>e[1]?n.reverse():n}},{key:"_getPosition",value:function t(e){return e<0&&this._d3ScaleNegative?this._d3ScaleNegative(e):this._d3Scale(e)}},{key:"_getRange",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.range();if(this._d3Scale)e=e.concat(this._d3Scale.range());return e[0]>e[1]?ue(e).reverse():ue(e)}},{key:"_getTicks",value:function t(){var e=Er().domain([10,400]).range([10,50]);var n=[];if(this._d3ScaleNegative){var i=this._d3ScaleNegative.range();var r=i[1]-i[0];n=this._d3ScaleNegative.ticks(Math.floor(r/e(r)))}if(this._d3Scale){var a=this._d3Scale.range();var o=a[1]-a[0];n=n.concat(this._d3Scale.ticks(Math.floor(o/e(o))))}return n}},{key:"_gridPosition",value:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this._position,r=i.height,a=i.x,o=i.y,s=i.opposite,u=this._margin[s],l=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[r]-u:this._outerBounds[o]+u,c=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),f=["top","left"].includes(this._orient)?u:-u,h=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function t(e){return c(e.id)+h};e.call(nl,this._gridConfig).attr("".concat(a,"1"),d).attr("".concat(a,"2"),d).attr("".concat(o,"1"),l).attr("".concat(o,"2"),n?l:l+f)}},{key:"render",value:function t(e){var d=this,n;if(this._select===void 0){this.select(Yo("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var i=this._timeLocale||kR[this._locale]||kR["en-US"];Be(i).format();var s=Me("%a %d"),u=Me("%I %p"),l=Me(".%L"),c=Me("%I:%M"),f=Me("%b"),h=Me(":%S"),g=Me("%b %d"),p=Me("%Y");var r=this._position,a=r.width,v=r.height,m=r.x,y=r.y,_=r.horizontal,b=r.opposite,o="d3plus-Axis-clip-".concat(this._uuid),w=["top","left"].includes(this._orient),x=this._padding,k=this._select,C=[x,this["_".concat(a)]-x],S=Uu().duration(this._duration);var E=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[a]:this._shapeConfig.strokeWidth;var A=typeof E!=="function"?function(){return E}:E;var R=this._margin={top:0,right:0,bottom:0,left:0};var M,T,P;var O=this._tickFormat?this._tickFormat:function(t){if(d._scale==="time"){return(mt(t)<t?l:yt(t)<t?h:_t(t)<t?c:bt(t)<t?u:xt(t)<t?wt(t)<t?s:g:kt(t)<t?f:p)(t)}else if(["band","ordinal","point"].includes(d._scale)){return t}if(isNaN(t)){return t}else if(d._scale==="linear"&&d._tickSuffix==="smallest"){var e=PR(d._locale)==="object"?d._locale:mw[d._locale];var n=e.separator,i=e.suffixes;var r=t>=1e3?i[d._tickUnit+8]:"";var a=t/Math.pow(10,3*d._tickUnit);var o=xw(a,e,",.".concat(a.toString().length,"r"));return"".concat(o).concat(n).concat(r)}else{return xw(t,d._locale)}};function B(){var r=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;T=t?t.slice():[undefined,undefined];var e=C[0],n=C[1];if(this._range){if(this._range[0]!==undefined)e=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(T[0]===undefined||T[0]<e)T[0]=e;if(T[1]===undefined||T[1]>n)T[1]=n;var i=n-e;if(this._scale==="ordinal"&&this._domain.length>T.length){if(t===this._range){var a=this._domain.length+1;T=le(a).map(function(t){return T[0]+i*(t/(a-1))}).slice(1,a);T=T.map(function(t){return t-T[0]/2})}else{var o=this._domain.length;var s=T[1]-T[0];T=le(o).map(function(t){return T[0]+s*(t/(o-1))})}}else if(t===this._range){var u=Er().domain([10,400]).range([10,50]);var l=this._scale==="time"?this._domain.map(xR):this._domain;var c=vt(l[0],l[1],Math.floor(i/u(i)));P=(this._ticks?this._scale==="time"?this._ticks.map(xR):this._ticks:c).slice();M=(this._labels?this._scale==="time"?this._labels.map(xR):this._labels:c).slice();var f=M.length;if(f){var h=Math.ceil(i/f/2);T=[T[0]+h,T[1]-h]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=na[d]().domain(this._scale==="time"?this._domain.map(xR):this._domain).range(T);if(this._d3Scale.padding)this._d3Scale.padding(this._scalePadding);if(this._d3Scale.paddingInner)this._d3Scale.paddingInner(this._paddingInner);if(this._d3Scale.paddingOuter)this._d3Scale.paddingOuter(this._paddingOuter);this._d3ScaleNegative=null;if(this._scale==="log"){var g=this._d3Scale.domain();if(g[0]===0){g[0]=Math.abs(g[g.length-1])<=1?1e-6:1;if(g[g.length-1]<0)g[0]*=-1}else if(g[g.length-1]===0){g[g.length-1]=Math.abs(g[0])<=1?1e-6:1;if(g[0]<0)g[g.length-1]*=-1}var p=this._d3Scale.range();if(g[0]<0&&g[g.length-1]<0){this._d3ScaleNegative=this._d3Scale.copy().domain(g).range(p);this._d3Scale=null}else if(g[0]>0&&g[g.length-1]>0){this._d3Scale.domain(g).range(p)}else{var v=vr().domain([1,g[g[1]>0?1:0]]).range([0,1]);var m=v(Math.abs(g[g[1]<0?1:0]));var y=m/(m+1)*(p[1]-p[0]);if(g[0]>0)y=p[1]-p[0]-y;this._d3ScaleNegative=this._d3Scale.copy();(g[0]<0?this._d3Scale:this._d3ScaleNegative).domain([Math.sign(g[1]),g[1]]).range([p[0]+y,p[1]]);(g[0]<0?this._d3ScaleNegative:this._d3Scale).domain([g[0],Math.sign(g[0])]).range([p[0],p[0]+y])}}P=(this._ticks?this._scale==="time"?this._ticks.map(xR):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();M=(this._labels?this._scale==="time"?this._labels.map(xR):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():P).slice();if(this._scale==="log"){var _=M.filter(function(t,e){return!e||e===M.length-1||Math.abs(t).toString().charAt(0)==="1"&&(r._d3Scale?t!==-1:t!==1)});if(_.length>2){M=_}else if(M.length>=10){M=M.filter(function(t){return t%5===0||O(t).substr(-1)==="1"})}if(M.includes(-1)&&M.includes(1)&&M.some(function(t){return t>10||t<10})){M.splice(M.indexOf(-1),1)}}if(this._scale==="time"){P=P.map(Number);M=M.map(Number)}P=P.sort(function(t,e){return r._getPosition(t)-r._getPosition(e)});M=M.sort(function(t,e){return r._getPosition(t)-r._getPosition(e)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var b=M.filter(function(t){return t>=1e3});if(b.length>0){var w=Math.min.apply(Math,CR(b));var x=1;while(x&&x<7){var k=Math.pow(10,3*x);if(w/k>=1){this._tickUnit=x;x+=1}else{break}}}}var S=[];this._availableTicks=P;P.forEach(function(t,e){var n=A({id:t,tick:true},e);if(r._shape==="Circle")n*=2;var i=r._getPosition(t);if(!S.length||Math.abs(sw(i,S)-i)>n*2)S.push(i);else S.push(false)});P=P.filter(function(t,e){return S[e]!==false});this._visibleTicks=P}B.bind(this)();function D(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=t.i,i=t.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var r=n-e<0?V.length===1||!this._range?C[0]:(i-V[n+e].position)/2-i:i-(i-V[n-e].position)/2;var a=Math.abs(i-r);var o=n+e>V.length-1?V.length===1||!this._range?C[1]:(i-V[n-e].position)/2-i:i-(i-V[n+e].position)/2;var s=Math.abs(i-o);return de([a,s])*2}}if(this._title){var N=this._titleConfig,z=N.fontFamily,j=N.fontSize,L=N.lineHeight;var F=jS().fontFamily(typeof z==="function"?z():z).fontSize(typeof j==="function"?j():j).lineHeight(typeof L==="function"?L():L).width(T[T.length-1]-T[0]-x*2).height(this["_".concat(v)]-this._tickSize-x*2);var I=F(this._title).lines.length;R[this._orient]=I*F.lineHeight()+x}var H=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true}):this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[v]==="function"?this._shapeConfig[v]({tick:true}):this._shapeConfig[v]:this._tickSize,G=A({tick:true});if(typeof H==="function")H=ce(P.map(H));if(this._shape==="Rect")H/=2;if(typeof G==="function")G=ce(P.map(G));if(this._shape!=="Circle")G/=2;var V=M.map(function(t,e){var n=d._shapeConfig.labelConfig.fontFamily(t,e),i=d._shapeConfig.labelConfig.fontSize(t,e),r=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):i*1.4;return{d:t,i:e,fF:n,fS:i,lineHeight:a,position:r}});function U(t){var e=t.d,n=t.i,i=t.fF,r=t.fS,a=t.rotate,o=t.space;var s=a?"width":"height",u=a?"height":"width";var l=de([this._maxSize,this._width]);var c=de([this._maxSize,this._height]);var f=jS().fontFamily(i).fontSize(r).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(e,n):undefined)[u](_?o:l-H-x-this._margin.left-this._margin.right)[s](_?c-H-x-this._margin.top-this._margin.bottom:o);var h=f(O(e));h.lines=h.lines.filter(function(t){return t!==""});h.width=h.lines.length?Math.ceil(ce(h.widths))+r/4:0;if(h.width%2)h.width++;h.height=h.lines.length?Math.ceil(h.lines.length*f.lineHeight())+r/4:0;if(h.height%2)h.height++;return h}function W(){var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var a=0;r.forEach(function(t){var e=r[t.i-1];var n=t.rotate&&_||!t.rotate&&!_?"width":"height",i=t.rotate&&_||!t.rotate&&!_?"height":"width";if(!e){a=1}else if(e.position+e[i]/2>t.position-t[i]/2){if(a){t.offset=e[n];a=0}else a=1}})}V=V.map(function(t){t.rotate=d._labelRotation;t.space=D.bind(d)(t);var e=U.bind(d)(t);return Object.assign(e,t)});this._rotateLabels=_&&this._labelRotation===undefined?V.some(function(t){return t.truncated}):this._labelRotation;var q=this._labelOffset&&V.some(function(t){return t.truncated});if(this._rotateLabels){V=V.map(function(t){t.rotate=true;var e=U.bind(d)(t);return Object.assign(t,e)})}else if(q){V=V.map(function(t){t.space=D.bind(d)(t,2);var e=U.bind(d)(t);return Object.assign(t,e)});W.bind(this)(V)}var K=[0,0];for(var Y=0;Y<2;Y++){var X=V[Y?V.length-1:0];if(!X)break;var Z=X.height,$=X.position,J=X.rotate,Q=X.width;var tt=Y?C[1]:C[0];var et=(J||!_?Z:Q)/2;var nt=Y?$+et-tt:$-et-tt;K[Y]=nt}var it=T[0];var rt=T[T.length-1];var at=[it-K[0],rt-K[1]];if(this._range){if(this._range[0]!==undefined)at[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)at[1]=this._range[this._range.length-1]}if(at[0]!==it||at[1]!==rt){B.bind(this)(at);V=M.map(function(t,e){var n=d._shapeConfig.labelConfig.fontFamily(t,e),i=d._shapeConfig.labelConfig.fontSize(t,e),r=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):i*1.4;return{d:t,i:e,fF:n,fS:i,lineHeight:a,position:r}});V=V.map(function(t){t.rotate=d._rotateLabels;t.space=D.bind(d)(t,q?2:1);var e=U.bind(d)(t);return Object.assign(e,t)});W.bind(this)(V)}var ot=ce(V,function(t){return t.height})||0;this._rotateLabels=_&&this._labelRotation===undefined?V.some(function(t){var e=t.i,n=t.height,i=t.position,r=t.truncated;var a=V[e-1];return r||e&&a.position+a.height/2>i-n/2}):this._labelRotation;var st=this._labelOffset?ce(V,function(t){return t.offset||0}):0;V.forEach(function(t){return t.offset=t.offset?st:0});var ut=this._shape==="Line"?0:H;var lt=this._outerBounds=(n={},SR(n,v,(ce(V,function(t){return Math.ceil(t[t.rotate||!_?"width":"height"]+t.offset)})||0)+(V.length?x:0)),SR(n,a,C[C.length-1]-C[0]),SR(n,m,C[0]),n);lt[v]=ce([this._minSize,lt[v]]);R[this._orient]+=H;R[b]=this._gridSize!==undefined?ce([this._gridSize,ut]):this["_".concat(v)]-R[this._orient]-lt[v]-x;lt[v]+=R[b]+R[this._orient];lt[y]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(v)]-lt[v]-this._padding:this["_".concat(v)]/2-lt[v]/2;var ct=fw("g#d3plus-Axis-".concat(this._uuid),{parent:k});this._group=ct;var ft=fw("g.grid",{parent:ct}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?M:P:[]).map(function(t){return{id:t}}),function(t){return t.id});ft.exit().transition(S).attr("opacity",0).call(this._gridPosition.bind(this)).remove();ft.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(ft).transition(S).attr("opacity",1).call(this._gridPosition.bind(this));var ht=M.filter(function(t,e){return V[e].lines.length&&!P.includes(t)});var dt=V.some(function(t){return t.rotate});var gt=P.concat(ht).map(function(e){var t;var n=V.find(function(t){return t.d===e});var i=d._getPosition(e);var r=n?n.space:0;var a=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var u=_?r:lt.width-R[d._position.opposite]-H-R[d._orient]+x;var l=R[b],c=(H+s)*(w?-1:1),f=w?lt[y]+lt[v]-l:lt[y]+l;var h=(t={id:e,labelBounds:dt&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?c+x+(n.width-o*a)/2:c-x*2-(n.width+o*a)/2,width:n.width,height:n.height}:{x:_?-r/2:d._orient==="left"?-u-x+c:c+x,y:_?d._orient==="bottom"?c+x:c-x-ot:-r/2,width:_?r:u,height:_?ot:r},rotate:n?n.rotate:false,size:M.includes(e)?c:0,text:M.includes(e)?O(e):false,tick:P.includes(e)},SR(t,m,i+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),SR(t,y,f),t);return h});if(this._shape==="Line"){gt=gt.concat(gt.map(function(t){var e=Object.assign({},t);e[y]+=t.size;return e}))}(new wR[this._shape]).data(gt).duration(this._duration).labelConfig({ellipsis:function t(e){return e&&e.length?"".concat(e,"..."):""},rotate:function t(e){return e.rotate?-90:0}}).select(fw("g.ticks",{parent:ct}).node()).config(this._shapeConfig).render();var pt=ct.selectAll("line.bar").data([null]);pt.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(pt).transition(S).attr("opacity",1).call(this._barPosition.bind(this));this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(R[this._orient]).rotate(this._orient==="left"?-90:this._orient==="right"?90:0).select(fw("g.d3plus-Axis-title",{parent:ct}).node()).text(function(t){return t.text}).verticalAlign("middle").width(T[T.length-1]-T[0]).x(_?T[0]:this._orient==="left"?lt.x+R.left/2-(T[T.length-1]-T[0])/2:lt.x+lt.width-R.right/2-(T[T.length-1]-T[0])/2).y(_?this._orient==="bottom"?lt.y+lt.height-R.bottom:lt.y:T[0]+(T[T.length-1]-T[0])/2-R[this._orient]/2).config(this._titleConfig).render();this._lastScale=this._getPosition.bind(this);if(e)setTimeout(e,this._duration+100);return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"barConfig",value:function t(e){return arguments.length?(this._barConfig=Object.assign(this._barConfig,e),this):this._barConfig}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"grid",value:function t(e){return arguments.length?(this._grid=e,this):this._grid}},{key:"gridConfig",value:function t(e){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,e),this):this._gridConfig}},{key:"gridLog",value:function t(e){return arguments.length?(this._gridLog=e,this):this._gridLog}},{key:"gridSize",value:function t(e){return arguments.length?(this._gridSize=e,this):this._gridSize}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labels",value:function t(e){return arguments.length?(this._labels=e,this):this._labels}},{key:"labelOffset",value:function t(e){return arguments.length?(this._labelOffset=e,this):this._labelOffset}},{key:"labelRotation",value:function t(e){return arguments.length?(this._labelRotation=e,this):this._labelRotation}},{key:"maxSize",value:function t(e){return arguments.length?(this._maxSize=e,this):this._maxSize}},{key:"minSize",value:function t(e){return arguments.length?(this._minSize=e,this):this._minSize}},{key:"orient",value:function t(e){if(arguments.length){var n=["top","bottom"].includes(e),i={top:"bottom",right:"left",bottom:"top",left:"right"};this._position={horizontal:n,width:n?"width":"height",height:n?"height":"width",x:n?"x":"y",y:n?"y":"x",opposite:i[e]};return this._orient=e,this}return this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"range",value:function t(e){return arguments.length?(this._range=e,this):this._range}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"scalePadding",value:function t(e){return arguments.length?(this._scalePadding=e,this):this._scalePadding}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=e,this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=el(this._shapeConfig,e),this):this._shapeConfig}},{key:"tickFormat",value:function t(e){return arguments.length?(this._tickFormat=e,this):this._tickFormat}},{key:"ticks",value:function t(e){return arguments.length?(this._ticks=e,this):this._ticks}},{key:"tickSize",value:function t(e){return arguments.length?(this._tickSize=e,this):this._tickSize}},{key:"tickSpecifier",value:function t(e){return arguments.length?(this._tickSpecifier=e,this):this._tickSpecifier}},{key:"tickSuffix",value:function t(e){return arguments.length?(this._tickSuffix=e,this):this._tickSuffix}},{key:"timeLocale",value:function t(e){return arguments.length?(this._timeLocale=e,this):this._timeLocale}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,e),this):this._titleConfig}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return i}(ow);function VR(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){VR=function t(e){return typeof e}}else{VR=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return VR(t)}function UR(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function WR(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)qR(t,e)}function qR(t,e){qR=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return qR(t,e)}function KR(r){var a=ZR();return function t(){var e=$R(r),n;if(a){var i=$R(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return YR(this,n)}}function YR(t,e){if(e&&(VR(e)==="object"||typeof e==="function")){return e}return XR(t)}function XR(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ZR(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function $R(t){$R=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return $R(t)}var JR=function(t){WR(n,t);var e=KR(n);function n(){var t;UR(this,n);t=e.call(this);t.orient("bottom");return t}return n}(GR);function QR(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){QR=function t(e){return typeof e}}else{QR=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return QR(t)}function tM(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function eM(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)nM(t,e)}function nM(t,e){nM=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return nM(t,e)}function iM(r){var a=oM();return function t(){var e=sM(r),n;if(a){var i=sM(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return rM(this,n)}}function rM(t,e){if(e&&(QR(e)==="object"||typeof e==="function")){return e}return aM(t)}function aM(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function oM(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function sM(t){sM=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return sM(t)}var uM=function(t){eM(n,t);var e=iM(n);function n(){var t;tM(this,n);t=e.call(this);t.orient("left");return t}return n}(GR);function lM(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){lM=function t(e){return typeof e}}else{lM=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return lM(t)}function cM(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function fM(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)hM(t,e)}function hM(t,e){hM=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return hM(t,e)}function dM(r){var a=vM();return function t(){var e=mM(r),n;if(a){var i=mM(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return gM(this,n)}}function gM(t,e){if(e&&(lM(e)==="object"||typeof e==="function")){return e}return pM(t)}function pM(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function vM(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function mM(t){mM=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return mM(t)}var yM=function(t){fM(n,t);var e=dM(n);function n(){var t;cM(this,n);t=e.call(this);t.orient("right");return t}return n}(GR);function _M(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_M=function t(e){return typeof e}}else{_M=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _M(t)}function bM(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function wM(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)xM(t,e)}function xM(t,e){xM=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return xM(t,e)}function kM(r){var a=EM();return function t(){var e=AM(r),n;if(a){var i=AM(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return SM(this,n)}}function SM(t,e){if(e&&(_M(e)==="object"||typeof e==="function")){return e}return CM(t)}function CM(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function EM(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function AM(t){AM=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return AM(t)}var RM=function(t){wM(n,t);var e=kM(n);function n(){var t;bM(this,n);t=e.call(this);t.orient("top");return t}return n}(GR);var MM=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function TM(t,e,i){return i={path:e,exports:{},require:function t(e,n){return PM(e,n===undefined||n===null?i.path:n)}},t(i,i.exports),i.exports}function PM(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var OM=TM(function(e,t){(function(t){{e.exports=t()}})(function(){return function a(o,s,u){function l(n,t){if(!s[n]){if(!o[n]){var e=typeof PM=="function"&&PM;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[n]={exports:{}};o[n][0].call(r.exports,function(t){var e=o[n][1][t];return l(e?e:t)},r,r.exports,a,o,s,u)}return s[n].exports}var c=typeof PM=="function"&&PM;for(var t=0;t<u.length;t++){l(u[t])}return l}({1:[function(t,N,z){(function(D){(function(t){var e=_typeof2(z)=="object"&&z&&!z.nodeType&&z;var n=_typeof2(N)=="object"&&N&&!N.nodeType&&N;var i=_typeof2(D)=="object"&&D;if(i.global===i||i.window===i||i.self===i){t=i}var r,m=2147483647,y=36,_=1,b=26,a=38,o=700,w=72,x=128,k="-",s=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=y-_,S=Math.floor,C=String.fromCharCode,h;function E(t){throw new RangeError(c[t])}function d(t,e){var n=t.length;var i=[];while(n--){i[n]=e(t[n])}return i}function g(t,e){var n=t.split("@");var i="";if(n.length>1){i=n[0]+"@";t=n[1]}t=t.replace(l,".");var r=t.split(".");var a=d(r,e).join(".");return i+a}function A(t){var e=[],n=0,i=t.length,r,a;while(n<i){r=t.charCodeAt(n++);if(r>=55296&&r<=56319&&n<i){a=t.charCodeAt(n++);if((a&64512)==56320){e.push(((r&1023)<<10)+(a&1023)+65536)}else{e.push(r);n--}}else{e.push(r)}}return e}function v(t){return d(t,function(t){var e="";if(t>65535){t-=65536;e+=C(t>>>10&1023|55296);t=56320|t&1023}e+=C(t);return e}).join("")}function R(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return y}function M(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function T(t,e,n){var i=0;t=n?S(t/o):t>>1;t+=S(t/e);for(;t>f*b>>1;i+=y){t=S(t/f)}return S(i+(f+1)*t/(t+a))}function p(t){var e=[],n=t.length,i,r=0,a=x,o=w,s,u,l,c,f,h,d,g,p;s=t.lastIndexOf(k);if(s<0){s=0}for(u=0;u<s;++u){if(t.charCodeAt(u)>=128){E("not-basic")}e.push(t.charCodeAt(u))}for(l=s>0?s+1:0;l<n;){for(c=r,f=1,h=y;;h+=y){if(l>=n){E("invalid-input")}d=R(t.charCodeAt(l++));if(d>=y||d>S((m-r)/f)){E("overflow")}r+=d*f;g=h<=o?_:h>=o+b?b:h-o;if(d<g){break}p=y-g;if(f>S(m/p)){E("overflow")}f*=p}i=e.length+1;o=T(r-c,i,c==0);if(S(r/i)>m-a){E("overflow")}a+=S(r/i);r%=i;e.splice(r++,0,a)}return v(e)}function P(t){var e,n,i,r,a,o,s,u,l,c,f,h=[],d,g,p,v;t=A(t);d=t.length;e=x;n=0;a=w;for(o=0;o<d;++o){f=t[o];if(f<128){h.push(C(f))}}i=r=h.length;if(r){h.push(k)}while(i<d){for(s=m,o=0;o<d;++o){f=t[o];if(f>=e&&f<s){s=f}}g=i+1;if(s-e>S((m-n)/g)){E("overflow")}n+=(s-e)*g;e=s;for(o=0;o<d;++o){f=t[o];if(f<e&&++n>m){E("overflow")}if(f==e){for(u=n,l=y;;l+=y){c=l<=a?_:l>=a+b?b:l-a;if(u<c){break}v=u-c;p=y-c;h.push(C(M(c+v%p,0)));u=S(v/p)}h.push(C(M(u,0)));a=T(n,g,i==r);n=0;++i}}++n;++e}return h.join("")}function O(t){return g(t,function(t){return s.test(t)?p(t.slice(4).toLowerCase()):t})}function B(t){return g(t,function(t){return u.test(t)?"xn--"+P(t):t})}r={version:"1.3.2",ucs2:{decode:A,encode:v},decode:p,encode:P,toASCII:B,toUnicode:O};if(e&&n){if(N.exports==e){n.exports=r}else{for(h in r){r.hasOwnProperty(h)&&(e[h]=r[h])}}}else{t.punycode=r}})(this)}).call(this,typeof MM!=="undefined"?MM:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(t,e,n){var i=t("./log");function l(t,e,n){if(t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)){t.defaultView.scrollTo(e,n)}}function r(e,t){try{if(t){t.width=e.width;t.height=e.height;t.getContext("2d").putImageData(e.getContext("2d").getImageData(0,0,e.width,e.height),0,0)}}catch(t){i("Unable to copy canvas content from",e,t)}}function c(t,e){var n=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(false);var i=t.firstChild;while(i){if(e===true||i.nodeType!==1||i.nodeName!=="SCRIPT"){n.appendChild(c(i,e))}i=i.nextSibling}if(t.nodeType===1){n._scrollTop=t.scrollTop;n._scrollLeft=t.scrollLeft;if(t.nodeName==="CANVAS"){r(t,n)}else if(t.nodeName==="TEXTAREA"||t.nodeName==="SELECT"){n.value=t.value}}return n}function f(t){if(t.nodeType===1){t.scrollTop=t._scrollTop;t.scrollLeft=t._scrollLeft;var e=t.firstChild;while(e){f(e);e=e.nextSibling}}}e.exports=function(t,e,n,i,r,a,o){var s=c(t.documentElement,r.javascriptEnabled);var u=e.createElement("iframe");u.className="html2canvas-container";u.style.visibility="hidden";u.style.position="fixed";u.style.left="-10000px";u.style.top="0px";u.style.border="0";u.width=n;u.height=i;u.scrolling="no";e.body.appendChild(u);return new Promise(function(e){var n=u.contentWindow.document;u.contentWindow.onload=u.onload=function(){var t=setInterval(function(){if(n.body.childNodes.length>0){f(n.documentElement);clearInterval(t);if(r.type==="view"){u.contentWindow.scrollTo(a,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.contentWindow.scrollY!==o||u.contentWindow.scrollX!==a)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-a+"px";n.documentElement.style.position="absolute"}}e(u)}},50)};n.open();n.write("<!DOCTYPE html><html></html>");l(t,a,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(t,e,n){function i(t){this.r=0;this.g=0;this.b=0;this.a=null;var e=this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}i.prototype.darken=function(t){var e=1-t;return new i([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])};i.prototype.isTransparent=function(){return this.a===0};i.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};i.prototype.fromArray=function(t){if(Array.isArray(t)){this.r=Math.min(t[0],255);this.g=Math.min(t[1],255);this.b=Math.min(t[2],255);if(t.length>3){this.a=t[3]}}return Array.isArray(t)};var r=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(t){var e=null;if((e=t.match(r))!==null){this.r=parseInt(e[1][0]+e[1][0],16);this.g=parseInt(e[1][1]+e[1][1],16);this.b=parseInt(e[1][2]+e[1][2],16)}return e!==null};var a=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(t){var e=null;if((e=t.match(a))!==null){this.r=parseInt(e[1].substring(0,2),16);this.g=parseInt(e[1].substring(2,4),16);this.b=parseInt(e[1].substring(4,6),16)}return e!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(t){var e=null;if((e=t.match(o))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3])}return e!==null};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;i.prototype.rgba=function(t){var e=null;if((e=t.match(s))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3]);this.a=Number(e[4])}return e!==null};i.prototype.toString=function(){return this.a!==null&&this.a!==1?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"};i.prototype.namedColor=function(t){t=t.toLowerCase();var e=u[t];if(e){this.r=e[0];this.g=e[1];this.b=e[2]}else if(t==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!e};i.prototype.isColor=true;var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=i},{}],4:[function(t,e,n){var d=t("./support");var o=t("./renderers/canvas");var g=t("./imageloader");var p=t("./nodeparser");var i=t("./nodecontainer");var v=t("./log");var r=t("./utils");var a=t("./clone");var s=t("./proxy").loadUrlDocument;var m=r.getBounds;var f="data-html2canvas-node";var u=0;function l(t,e){var n=u++;e=e||{};if(e.logging){v.options.logging=true;v.options.start=Date.now()}e.async=typeof e.async==="undefined"?true:e.async;e.allowTaint=typeof e.allowTaint==="undefined"?false:e.allowTaint;e.removeContainer=typeof e.removeContainer==="undefined"?true:e.removeContainer;e.javascriptEnabled=typeof e.javascriptEnabled==="undefined"?false:e.javascriptEnabled;e.imageTimeout=typeof e.imageTimeout==="undefined"?1e4:e.imageTimeout;e.renderer=typeof e.renderer==="function"?e.renderer:o;e.strict=!!e.strict;if(typeof t==="string"){if(typeof e.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var i=e.width!=null?e.width:window.innerWidth;var r=e.height!=null?e.height:window.innerHeight;return s(k(t),e.proxy,document,i,r,e).then(function(t){return y(t.contentWindow.document.documentElement,t,e,i,r)})}var a=(t===undefined?[document.documentElement]:t.length?t:[t])[0];a.setAttribute(f+n,n);return h(a.ownerDocument,e,a.ownerDocument.defaultView.innerWidth,a.ownerDocument.defaultView.innerHeight,n).then(function(t){if(typeof e.onrendered==="function"){v("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");e.onrendered(t)}return t})}l.CanvasRenderer=o;l.NodeContainer=i;l.log=v;l.utils=r;var c=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:l;e.exports=c;function h(o,s,u,l,c){return a(o,o,u,l,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(t){v("Document cloned");var e=f+c;var n="["+e+"='"+c+"']";o.querySelector(n).removeAttribute(e);var i=t.contentWindow;var r=i.document.querySelector(n);var a=typeof s.onclone==="function"?Promise.resolve(s.onclone(i.document)):Promise.resolve(true);return a.then(function(){return y(r,t,s,u,l)})})}function y(e,n,i,t,r){var a=n.contentWindow;var o=new d(a.document);var s=new g(i,o);var u=m(e);var l=i.type==="view"?t:w(a.document);var c=i.type==="view"?r:x(a.document);var f=new i.renderer(l,c,s,i,document);var h=new p(e,f,o,s,i);return h.ready.then(function(){v("Finished rendering");var t;if(i.type==="view"){t=b(f.canvas,{width:f.canvas.width,height:f.canvas.height,top:0,left:0,x:0,y:0})}else if(e===a.document.body||e===a.document.documentElement||i.canvas!=null){t=f.canvas}else{t=b(f.canvas,{width:i.width!=null?i.width:u.width,height:i.height!=null?i.height:u.height,top:u.top,left:u.left,x:0,y:0})}_(n,i);return t})}function _(t,e){if(e.removeContainer){t.parentNode.removeChild(t);v("Cleaned up container")}}function b(t,e){var n=document.createElement("canvas");var i=Math.min(t.width-1,Math.max(0,e.left));var r=Math.min(t.width,Math.max(1,e.left+e.width));var a=Math.min(t.height-1,Math.max(0,e.top));var o=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width;n.height=e.height;var s=r-i;var u=o-a;v("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",u);v("Resulting crop with width",e.width,"and height",e.height,"with x",i,"and y",a);n.getContext("2d").drawImage(t,i,a,s,u,e.x,e.y,s,u);return n}function w(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function x(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function k(t){var e=document.createElement("a");e.href=t;e.href=e.href;return e}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){var i=t("./log");var r=t("./utils").smallImage;function a(t){this.src=t;i("DummyImageContainer for",t);if(!this.promise||!this.image){i("Initiating DummyImageContainer");a.prototype.image=new Image;var n=this.image;a.prototype.promise=new Promise(function(t,e){n.onload=t;n.onerror=e;n.src=r();if(n.complete===true){t(n)}})}}e.exports=a},{"./log":13,"./utils":26}],6:[function(t,e,n){var u=t("./utils").smallImage;function i(t,e){var n=document.createElement("div"),i=document.createElement("img"),r=document.createElement("span"),a="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=t;n.style.fontSize=e;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);i.src=u();i.width=1;i.height=1;i.style.margin=0;i.style.padding=0;i.style.verticalAlign="baseline";r.style.fontFamily=t;r.style.fontSize=e;r.style.margin=0;r.style.padding=0;r.appendChild(document.createTextNode(a));n.appendChild(r);n.appendChild(i);o=i.offsetTop-r.offsetTop+1;n.removeChild(r);n.appendChild(document.createTextNode(a));n.style.lineHeight="normal";i.style.verticalAlign="super";s=i.offsetTop-n.offsetTop+1;document.body.removeChild(n);this.baseline=o;this.lineWidth=1;this.middle=s}e.exports=i},{"./utils":26}],7:[function(t,e,n){var i=t("./font");function r(){this.data={}}r.prototype.getMetrics=function(t,e){if(this.data[t+"-"+e]===undefined){this.data[t+"-"+e]=new i(t,e)}return this.data[t+"-"+e]};e.exports=r},{"./font":6}],8:[function(a,t,e){var n=a("./utils");var o=n.getBounds;var r=a("./proxy").loadUrlDocument;function i(e,t,n){this.image=null;this.src=e;var i=this;var r=o(e);this.promise=(!t?this.proxyLoad(n.proxy,r,n):new Promise(function(t){if(e.contentWindow.document.URL==="about:blank"||e.contentWindow.document.documentElement==null){e.contentWindow.onload=e.onload=function(){t(e)}}else{t(e)}})).then(function(t){var e=a("./core");return e(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(t){return i.image=t})}i.prototype.proxyLoad=function(t,e,n){var i=this.src;return r(i.src,t,i.ownerDocument,e.width,e.height,n)};t.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function i(t){this.src=t.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(true)}i.TYPES={LINEAR:1,RADIAL:2};i.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i;e.exports=i},{}],10:[function(t,e,n){function i(n,i){this.src=n;this.image=new Image;var r=this;this.tainted=null;this.promise=new Promise(function(t,e){r.image.onload=t;r.image.onerror=e;if(i){r.image.crossOrigin="anonymous"}r.image.src=n;if(r.image.complete===true){t(r.image)}})}e.exports=i},{}],11:[function(t,e,n){var a=t("./log");var i=t("./imagecontainer");var r=t("./dummyimagecontainer");var o=t("./proxyimagecontainer");var s=t("./framecontainer");var u=t("./svgcontainer");var l=t("./svgnodecontainer");var c=t("./lineargradientcontainer");var f=t("./webkitgradientcontainer");var h=t("./utils").bind;function d(t,e){this.link=null;this.options=t;this.support=e;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(t){var e=[];t.reduce(function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t},[]).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.findBackgroundImage=function(t,e){e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.addImage=function(n,i){return function(e){e.args.forEach(function(t){if(!this.imageExists(n,t)){n.splice(0,0,i.call(this,e));a("Added image #"+n.length,typeof t==="string"?t.substring(0,100):t)}},this)}};d.prototype.hasImageBackground=function(t){return t.method!=="none"};d.prototype.loadImage=function(t){if(t.method==="url"){var e=t.args[0];if(this.isSVG(e)&&!this.support.svg&&!this.options.allowTaint){return new u(e)}else if(e.match(/data:image\/.*;base64,/i)){return new i(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(e)||this.options.allowTaint===true||this.isSVG(e)){return new i(e,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new i(e,true)}else if(this.options.proxy){return new o(e,this.options.proxy)}else{return new r(e)}}else if(t.method==="linear-gradient"){return new c(t)}else if(t.method==="gradient"){return new f(t)}else if(t.method==="svg"){return new l(t.args[0],this.support.svg)}else if(t.method==="IFRAME"){return new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options)}else{return new r(t)}};d.prototype.isSVG=function(t){return t.substring(t.length-3).toLowerCase()==="svg"||u.prototype.isInline(t)};d.prototype.imageExists=function(t,e){return t.some(function(t){return t.src===e})};d.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin};d.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));e.href=t;e.href=e.href;return e.protocol+e.hostname+e.port};d.prototype.getPromise=function(e){return this.timeout(e,this.options.imageTimeout)["catch"](function(){var t=new r(e.src);return t.promise.then(function(t){e.image=t})})};d.prototype.get=function(e){var n=null;return this.images.some(function(t){return(n=t).src===e})?n:null};d.prototype.fetch=function(t){this.images=t.reduce(h(this.findBackgroundImage,this),this.findImages(t));this.images.forEach(function(e,n){e.promise.then(function(){a("Succesfully loaded image #"+(n+1),e)},function(t){a("Failed loading image #"+(n+1),e,t)})});this.ready=Promise.all(this.images.map(this.getPromise,this));a("Finished searching images");return this};d.prototype.timeout=function(n,i){var r;var t=Promise.race([n.promise,new Promise(function(t,e){r=setTimeout(function(){a("Timed out loading image",n);e(n)},i)})]).then(function(t){clearTimeout(r);return t});t["catch"](function(){clearTimeout(r)});return t};e.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){var r=t("./gradientcontainer");var a=t("./color");function i(t){r.apply(this,arguments);this.type=r.TYPES.LINEAR;var e=i.REGEXP_DIRECTION.test(t.args[0])||!r.REGEXP_COLORSTOP.test(t.args[0]);if(e){t.args[0].split(/\s+/).reverse().forEach(function(t,e){switch(t){case"left":this.x0=0;this.x1=1;break;case"top":this.y0=0;this.y1=1;break;case"right":this.x0=1;this.x1=0;break;case"bottom":this.y0=1;this.y1=0;break;case"to":var n=this.y0;var i=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=i;this.y1=n;break;case"center":break;default:var r=parseFloat(t,10)*.01;if(isNaN(r)){break}if(e===0){this.y0=r;this.y1=1-this.y0}else{this.x0=r;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(r.REGEXP_COLORSTOP);var n=+e[2];var i=n===0?"%":e[3];return{color:new a(e[1]),stop:i==="%"?n/100:null}});if(this.colorStops[0].stop===null){this.colorStops[0].stop=0}if(this.colorStops[this.colorStops.length-1].stop===null){this.colorStops[this.colorStops.length-1].stop=1}this.colorStops.forEach(function(n,i){if(n.stop===null){this.colorStops.slice(i).some(function(t,e){if(t.stop!==null){n.stop=(t.stop-this.colorStops[i-1].stop)/(e+1)+this.colorStops[i-1].stop;return true}else{return false}},this)}},this)}i.prototype=Object.create(r.prototype);i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;e.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var i=function t(){if(t.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-t.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};i.options={logging:false};e.exports=i},{}],14:[function(t,e,n){var a=t("./color");var i=t("./utils");var r=i.getBounds;var o=i.parseBackgrounds;var s=i.offsetBounds;function u(t,e){this.node=t;this.parent=e;this.stack=null;this.bounds=null;this.borders=null;this.clip=[];this.backgroundClip=[];this.offsetBounds=null;this.visible=null;this.computedStyles=null;this.colors={};this.styles={};this.backgroundImages=null;this.transformData=null;this.transformMatrix=null;this.isPseudoElement=false;this.opacity=null}u.prototype.cloneTo=function(t){t.visible=this.visible;t.borders=this.borders;t.bounds=this.bounds;t.clip=this.clip;t.backgroundClip=this.backgroundClip;t.computedStyles=this.computedStyles;t.styles=this.styles;t.backgroundImages=this.backgroundImages;t.opacity=this.opacity};u.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};u.prototype.assignStack=function(t){this.stack=t;t.children.push(this)};u.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:this.css("display")!=="none"&&this.css("visibility")!=="hidden"&&!this.node.hasAttribute("data-html2canvas-ignore")&&(this.node.nodeName!=="INPUT"||this.node.getAttribute("type")!=="hidden")};u.prototype.css=function(t){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[t]||(this.styles[t]=this.computedStyles[t])};u.prototype.prefixedCss=function(e){var t=["webkit","moz","ms","o"];var n=this.css(e);if(n===undefined){t.some(function(t){n=this.css(t+e.substr(0,1).toUpperCase()+e.substr(1));return n!==undefined},this)}return n===undefined?null:n};u.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)};u.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e};u.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new a(this.css(t)))};u.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e};u.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal";break}return t};u.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);if(t){return{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}}return null};u.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};u.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");n=n[e||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],f(n[0])?"auto":n[0]]}return n};u.prototype.parseBackgroundSize=function(t,e,n){var i=this.cssList("backgroundSize",n);var r,a;if(f(i[0])){r=t.width*parseFloat(i[0])/100}else if(/contain|cover/.test(i[0])){var o=t.width/t.height,s=e.width/e.height;return o<s^i[0]==="contain"?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}else{r=parseInt(i[0],10)}if(i[0]==="auto"&&i[1]==="auto"){a=e.height}else if(i[1]==="auto"){a=r/e.width*e.height}else if(f(i[1])){a=t.height*parseFloat(i[1])/100}else{a=parseInt(i[1],10)}if(i[0]==="auto"){r=a/e.height*e.width}return{width:r,height:a}};u.prototype.parseBackgroundPosition=function(t,e,n,i){var r=this.cssList("backgroundPosition",n);var a,o;if(f(r[0])){a=(t.width-(i||e).width)*(parseFloat(r[0])/100)}else{a=parseInt(r[0],10)}if(r[1]==="auto"){o=a/e.width*e.height}else if(f(r[1])){o=(t.height-(i||e).height)*parseFloat(r[1])/100}else{o=parseInt(r[1],10)}if(r[0]==="auto"){a=o/e.height*e.width}return{left:a,top:o}};u.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]};u.prototype.parseTextShadows=function(){var t=this.css("textShadow");var e=[];if(t&&t!=="none"){var n=t.match(this.TEXT_SHADOW_PROPERTY);for(var i=0;n&&i<n.length;i++){var r=n[i].match(this.TEXT_SHADOW_VALUES);e.push({color:new a(r[0]),offsetX:r[1]?parseFloat(r[1].replace("px","")):0,offsetY:r[2]?parseFloat(r[2].replace("px","")):0,blur:r[3]?r[3].replace("px",""):0})}}return e};u.prototype.parseTransform=function(){if(!this.transformData){if(this.hasTransform()){var t=this.parseBounds();var e=this.prefixedCss("transformOrigin").split(" ").map(h).map(d);e[0]+=t.left;e[1]+=t.top;this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else{this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]}}}return this.transformData};u.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform");var e=t?c(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e?e:[1,0,0,1,0,0]}return this.transformMatrix};u.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):r(this.node))};u.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};u.prototype.getValue=function(){var t=this.node.value||"";if(this.node.tagName==="SELECT"){t=l(this.node)}else if(this.node.type==="password"){t=Array(t.length+1).join("•")}return t.length===0?this.node.placeholder||"":t};u.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;u.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;u.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;u.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;function l(t){var e=t.options[t.selectedIndex||0];return e?e.text||"":""}function c(t){if(t&&t[1]==="matrix"){return t[2].split(",").map(function(t){return parseFloat(t.trim())})}else if(t&&t[1]==="matrix3d"){var e=t[2].split(",").map(function(t){return parseFloat(t.trim())});return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function f(t){return t.toString().indexOf("%")!==-1}function h(t){return t.replace("px","")}function d(t){return parseFloat(t)}e.exports=u},{"./color":3,"./utils":26}],15:[function(t,e,n){var s=t("./log");var u=t("punycode");var l=t("./nodecontainer");var c=t("./textcontainer");var f=t("./pseudoelementcontainer");var h=t("./fontmetrics");var d=t("./color");var g=t("./stackingcontext");var i=t("./utils");var p=i.bind;var o=i.getBounds;var v=i.parseBackgrounds;var m=i.offsetBounds;function r(t,e,n,i,r){s("Starting NodeParser");this.renderer=e;this.options=r;this.range=null;this.support=n;this.renderQueue=[];this.stack=new g(true,1,t.ownerDocument,null);var a=new l(t,null);if(r.background){e.rectangle(0,0,e.width,e.height,new d(r.background))}if(t===t.ownerDocument.documentElement){var o=new l(a.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,o.color("backgroundColor"))}a.visibile=a.isElementVisible();this.createPseudoHideStyles(t.ownerDocument);this.disableAnimations(t.ownerDocument);this.nodes=X([a].concat(this.getChildren(a)).filter(function(t){return t.visible=t.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new h;s("Fetched nodes, total:",this.nodes.length);s("Calculate overflow clips");this.calculateOverflowClips();s("Start fetching images");this.images=i.fetch(this.nodes.filter(H));this.ready=this.images.ready.then(p(function(){s("Images loaded, starting parsing");s("Creating stacking contexts");this.createStackingContexts();s("Sorting stacking contexts");this.sortStackingContexts(this.stack);this.parse(this.stack);s("Render queue created with "+this.renderQueue.length+" items");return new Promise(p(function(t){if(!r.async){this.renderQueue.forEach(this.paint,this);t()}else if(typeof r.async==="function"){r.async.call(this,this.renderQueue,t)}else if(this.renderQueue.length>0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,t)}else{t()}},this))},this))}r.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(t){if(H(t)){if(G(t)){t.appendToDOM()}t.borders=this.parseBorders(t);var e=t.css("overflow")==="hidden"?[t.borders.clip]:[];var n=t.parseClip();if(n&&["absolute","fixed"].indexOf(t.css("position"))!==-1){e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}t.clip=a(t)?t.parent.clip.concat(e):e;t.backgroundClip=t.css("overflow")!=="hidden"?t.clip.concat([t.borders.clip]):t.clip;if(G(t)){t.cleanDOM()}}else if(V(t)){t.clip=a(t)?t.parent.clip:[]}if(!G(t)){t.bounds=null}},this)};function a(t){return t.parent&&t.parent.clip.length}r.prototype.asyncRenderer=function(t,e,n){n=n||Date.now();this.paint(t[this.renderIndex++]);if(t.length===this.renderIndex){e()}else if(n+20>Date.now()){this.asyncRenderer(t,e,n)}else{setTimeout(p(function(){this.asyncRenderer(t,e)},this),0)}};r.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};r.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; "+"-webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")};r.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e;t.body.appendChild(n)};r.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before");var i=this.getPseudoElement(t,":after");if(n){e.push(n)}if(i){e.push(i)}}return X(e)};function y(t){return t.replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","")})}r.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var i=Z(n.content);var r=i.substr(0,3)==="url";var a=document.createElement(r?"img":"html2canvaspseudoelement");var o=new f(a,t,e);for(var s=n.length-1;s>=0;s--){var u=y(n.item(s));a.style[u]=n[u]}a.className=f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(r){a.src=v(i)[0].args[0];return[o]}else{var l=document.createTextNode(i);a.appendChild(l);return[o,new c(l,o)]}};r.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,N).map(function(t){var e=[t.nodeType===Node.TEXT_NODE?new c(t,n):new l(t,n)].filter(Y);return t.nodeType===Node.ELEMENT_NODE&&e.length&&t.tagName!=="TEXTAREA"?e[0].isElementVisible()?e.concat(this.getChildren(e[0])):[]:e},this))};r.prototype.newStackingContext=function(t,e){var n=new g(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n);var i=e?n.getParentStack(this):n.parent.stack;i.contexts.push(n);t.stack=n};r.prototype.createStackingContexts=function(){this.nodes.forEach(function(t){if(H(t)&&(this.isRootElement(t)||W(t)||z(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())){this.newStackingContext(t,true)}else if(H(t)&&(j(t)&&M(t)||F(t)||L(t))){this.newStackingContext(t,false)}else{t.assignStack(t.parent.stack)}},this)};r.prototype.isBodyWithTransparentRoot=function(t){return t.node.nodeName==="BODY"&&t.parent.color("backgroundColor").isTransparent()};r.prototype.isRootElement=function(t){return t.parent===null};r.prototype.sortStackingContexts=function(t){t.contexts.sort(U(t.contexts.slice(0)));t.contexts.forEach(this.sortStackingContexts,this)};r.prototype.parseTextBounds=function(o){return function(t,e,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||t.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var i=n.slice(0,e).join("").length;return this.getRangeBounds(o.node,i,t.length)}else if(o.node&&typeof o.node.data==="string"){var r=o.node.splitText(t.length);var a=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=r;return a}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(t.length)}return{}}};r.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper");var i=t.parentNode,r=t.cloneNode(true);n.appendChild(t.cloneNode(true));i.replaceChild(n,t);var a=e?m(n):o(n);i.replaceChild(r,n);return a};r.prototype.getRangeBounds=function(t,e,n){var i=this.range||(this.range=t.ownerDocument.createRange());i.setStart(t,e);i.setEnd(t,e+n);return i.getBoundingClientRect()};function _(){}r.prototype.parse=function(t){var e=t.contexts.filter(A);var n=t.children.filter(H);var i=n.filter(I(L));var r=i.filter(I(j)).filter(I(T));var a=n.filter(I(j)).filter(L);var o=i.filter(I(j)).filter(T);var s=t.contexts.concat(i.filter(j)).filter(M);var u=t.children.filter(V).filter(O);var l=t.contexts.filter(R);e.concat(r).concat(a).concat(o).concat(s).concat(u).concat(l).forEach(function(t){this.renderQueue.push(t);if(P(t)){this.parse(t);this.renderQueue.push(new _)}},this)};r.prototype.paint=function(t){try{if(t instanceof _){this.renderer.ctx.restore()}else if(V(t)){if(G(t.parent)){t.parent.appendToDOM()}this.paintText(t);if(G(t.parent)){t.parent.cleanDOM()}}else{this.paintNode(t)}}catch(t){s(t);if(this.options.strict){throw t}}};r.prototype.paintNode=function(t){if(P(t)){this.renderer.setOpacity(t.opacity);this.renderer.ctx.save();if(t.hasTransform()){this.renderer.setTransform(t.parseTransform())}}if(t.node.nodeName==="INPUT"&&t.node.type==="checkbox"){this.paintCheckbox(t)}else if(t.node.nodeName==="INPUT"&&t.node.type==="radio"){this.paintRadio(t)}else{this.paintElement(t)}};r.prototype.paintElement=function(n){var i=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,i,n.borders.borders.map(K))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){switch(n.node.nodeName){case"svg":case"IFRAME":var t=this.images.get(n.node);if(t){this.renderer.renderImage(n,i,n.borders,t)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var e=this.images.get(n.node.src);if(e){this.renderer.renderImage(n,i,n.borders,e)}else{s("Error loading <img>",n.node.src)}break;case"CANVAS":this.renderer.renderImage(n,i,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n);break}},this)};r.prototype.paintCheckbox=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height);var i={width:n-1,height:n-1,top:e.top,left:e.left};var r=[3,3];var a=[r,r,r,r];var o=[1,1,1,1].map(function(t){return{color:new d("#A5A5A5"),width:t}});var s=k(i,a,o);this.renderer.clip(t.backgroundClip,function(){this.renderer.rectangle(i.left+1,i.top+1,i.width-2,i.height-2,new d("#DEDEDE"));this.renderer.renderBorders(w(o,i,s,a));if(t.node.checked){this.renderer.font(new d("#424242"),"normal","normal","bold",n-3+"px","arial");this.renderer.text("✔",i.left+n/6,i.top+n-1)}},this)};r.prototype.paintRadio=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(t.node.checked){this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};r.prototype.paintFormValue=function(e){var t=e.getValue();if(t.length>0){var n=e.node.ownerDocument;var i=n.createElement("html2canvaswrapper");var r=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];r.forEach(function(t){try{i.style[t]=e.css(t)}catch(t){s("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}});var a=e.parseBounds();i.style.position="fixed";i.style.left=a.left+"px";i.style.top=a.top+"px";i.textContent=t;n.body.appendChild(i);this.paintText(new c(i.firstChild,e));n.body.removeChild(i)}};r.prototype.paintText=function(n){n.applyTextTransform();var t=u.ucs2.decode(n.node.data);var i=(!this.options.letterRendering||B(n))&&!Q(n.node.data)?$(t):t.map(function(t){return u.ucs2.encode([t])});var e=n.parent.fontWeight();var r=n.parent.css("fontSize");var a=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),e,r,a);if(o.length){this.renderer.fontShadow(o[0].color,o[0].offsetX,o[0].offsetY,o[0].blur)}else{this.renderer.clearShadow()}this.renderer.clip(n.parent.clip,function(){i.map(this.parseTextBounds(n),this).forEach(function(t,e){if(t){this.renderer.text(i[e],t.left,t.bottom);this.renderTextDecoration(n.parent,t,this.fontMetrics.getMetrics(a,r))}},this)},this)};r.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};r.prototype.parseBorders=function(a){var t=a.parseBounds();var e=D(a);var n=["Top","Right","Bottom","Left"].map(function(t,e){var n=a.css("border"+t+"Style");var i=a.color("border"+t+"Color");if(n==="inset"&&i.isBlack()){i=new d([255,255,255,i.a])}var r=b[n]?b[n][e]:null;return{width:a.cssInt("border"+t+"Width"),color:r?i[r[0]](r[1]):i,args:null}});var i=k(t,e,n);return{clip:this.parseBackgroundClip(a,i,n,e,t),borders:w(n,t,i,e)}};function w(o,s,u,l){return o.map(function(t,e){if(t.width>0){var n=s.left;var i=s.top;var r=s.width;var a=s.height-o[2].width;switch(e){case 0:a=o[0].width;t.args=C({c1:[n,i],c2:[n+r,i],c3:[n+r-o[1].width,i+a],c4:[n+o[3].width,i+a]},l[0],l[1],u.topLeftOuter,u.topLeftInner,u.topRightOuter,u.topRightInner);break;case 1:n=s.left+s.width-o[1].width;r=o[1].width;t.args=C({c1:[n+r,i],c2:[n+r,i+a+o[2].width],c3:[n,i+a],c4:[n,i+o[0].width]},l[1],l[2],u.topRightOuter,u.topRightInner,u.bottomRightOuter,u.bottomRightInner);break;case 2:i=i+s.height-o[2].width;a=o[2].width;t.args=C({c1:[n+r,i+a],c2:[n,i+a],c3:[n+o[3].width,i],c4:[n+r-o[3].width,i]},l[2],l[3],u.bottomRightOuter,u.bottomRightInner,u.bottomLeftOuter,u.bottomLeftInner);break;case 3:r=o[3].width;t.args=C({c1:[n,i+a+o[2].width],c2:[n,i],c3:[n+r,i+o[0].width],c4:[n+r,i+a]},l[3],l[0],u.bottomLeftOuter,u.bottomLeftInner,u.topLeftOuter,u.topLeftInner);break}}return t})}r.prototype.parseBackgroundClip=function(t,e,n,i,r){var a=t.css("backgroundClip"),o=[];switch(a){case"content-box":case"padding-box":E(o,i[0],i[1],e.topLeftInner,e.topRightInner,r.left+n[3].width,r.top+n[0].width);E(o,i[1],i[2],e.topRightInner,e.bottomRightInner,r.left+r.width-n[1].width,r.top+n[0].width);E(o,i[2],i[3],e.bottomRightInner,e.bottomLeftInner,r.left+r.width-n[1].width,r.top+r.height-n[2].width);E(o,i[3],i[0],e.bottomLeftInner,e.topLeftInner,r.left+n[3].width,r.top+r.height-n[2].width);break;default:E(o,i[0],i[1],e.topLeftOuter,e.topRightOuter,r.left,r.top);E(o,i[1],i[2],e.topRightOuter,e.bottomRightOuter,r.left+r.width,r.top);E(o,i[2],i[3],e.bottomRightOuter,e.bottomLeftOuter,r.left+r.width,r.top+r.height);E(o,i[3],i[0],e.bottomLeftOuter,e.topLeftOuter,r.left,r.top+r.height);break}return o};function x(t,e,n,i){var r=4*((Math.sqrt(2)-1)/3);var a=n*r,o=i*r,s=t+n,u=e+i;return{topLeft:S({x:t,y:u},{x:t,y:u-o},{x:s-a,y:e},{x:s,y:e}),topRight:S({x:t,y:e},{x:t+a,y:e},{x:s,y:u-o},{x:s,y:u}),bottomRight:S({x:s,y:e},{x:s,y:e+o},{x:t+a,y:u},{x:t,y:u}),bottomLeft:S({x:s,y:u},{x:s-a,y:u},{x:t,y:e+o},{x:t,y:e})}}function k(t,e,n){var i=t.left,r=t.top,a=t.width,o=t.height,s=e[0][0]<a/2?e[0][0]:a/2,u=e[0][1]<o/2?e[0][1]:o/2,l=e[1][0]<a/2?e[1][0]:a/2,c=e[1][1]<o/2?e[1][1]:o/2,f=e[2][0]<a/2?e[2][0]:a/2,h=e[2][1]<o/2?e[2][1]:o/2,d=e[3][0]<a/2?e[3][0]:a/2,g=e[3][1]<o/2?e[3][1]:o/2;var p=a-l,v=o-h,m=a-f,y=o-g;return{topLeftOuter:x(i,r,s,u).topLeft.subdivide(.5),topLeftInner:x(i+n[3].width,r+n[0].width,Math.max(0,s-n[3].width),Math.max(0,u-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(i+p,r,l,c).topRight.subdivide(.5),topRightInner:x(i+Math.min(p,a+n[3].width),r+n[0].width,p>a+n[3].width?0:l-n[3].width,c-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(i+m,r+v,f,h).bottomRight.subdivide(.5),bottomRightInner:x(i+Math.min(m,a-n[3].width),r+Math.min(v,o+n[0].width),Math.max(0,f-n[1].width),h-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(i,r+y,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(i+n[3].width,r+y,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(u,l,c,f){var h=function t(e,n,i){return{x:e.x+(n.x-e.x)*i,y:e.y+(n.y-e.y)*i}};return{start:u,startControl:l,endControl:c,end:f,subdivide:function t(e){var n=h(u,l,e),i=h(l,c,e),r=h(c,f,e),a=h(n,i,e),o=h(i,r,e),s=h(a,o,e);return[S(u,n,a,s),S(s,o,r,f)]},curveTo:function t(e){e.push(["bezierCurve",l.x,l.y,c.x,c.y,f.x,f.y])},curveToReversed:function t(e){e.push(["bezierCurve",c.x,c.y,l.x,l.y,u.x,u.y])}}}function C(t,e,n,i,r,a,o){var s=[];if(e[0]>0||e[1]>0){s.push(["line",i[1].start.x,i[1].start.y]);i[1].curveTo(s)}else{s.push(["line",t.c1[0],t.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",a[0].start.x,a[0].start.y]);a[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",t.c2[0],t.c2[1]]);s.push(["line",t.c3[0],t.c3[1]])}if(e[0]>0||e[1]>0){s.push(["line",r[1].end.x,r[1].end.y]);r[1].curveToReversed(s)}else{s.push(["line",t.c4[0],t.c4[1]])}return s}function E(t,e,n,i,r,a,o){if(e[0]>0||e[1]>0){t.push(["line",i[0].start.x,i[0].start.y]);i[0].curveTo(t);i[1].curveTo(t)}else{t.push(["line",a,o])}if(n[0]>0||n[1]>0){t.push(["line",r[0].start.x,r[0].start.y])}}function A(t){return t.cssInt("zIndex")<0}function R(t){return t.cssInt("zIndex")>0}function M(t){return t.cssInt("zIndex")===0}function T(t){return["inline","inline-block","inline-table"].indexOf(t.css("display"))!==-1}function P(t){return t instanceof g}function O(t){return t.node.data.trim().length>0}function B(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function D(i){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var e=i.css("border"+t+"Radius");var n=e.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(q)})}function N(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function z(t){var e=t.css("position");var n=["absolute","relative","fixed"].indexOf(e)!==-1?t.css("zIndex"):"auto";return n!=="auto"}function j(t){return t.css("position")!=="static"}function L(t){return t.css("float")!=="none"}function F(t){return["inline-block","inline-table"].indexOf(t.css("display"))!==-1}function I(t){var e=this;return function(){return!t.apply(e,arguments)}}function H(t){return t.node.nodeType===Node.ELEMENT_NODE}function G(t){return t.isPseudoElement===true}function V(t){return t.node.nodeType===Node.TEXT_NODE}function U(n){return function(t,e){return t.cssInt("zIndex")+n.indexOf(t)/n.length-(e.cssInt("zIndex")+n.indexOf(e)/n.length)}}function W(t){return t.getOpacity()<1}function q(t){return parseInt(t,10)}function K(t){return t.width}function Y(t){return t.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)===-1}function X(t){return[].concat.apply([],t)}function Z(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function $(t){var e=[],n=0,i=false,r;while(t.length){if(J(t[n])===i){r=t.splice(0,n);if(r.length){e.push(u.ucs2.encode(r))}i=!i;n=0}else{n++}if(n>=t.length){r=t.splice(0,n);if(r.length){e.push(u.ucs2.encode(r))}}}return e}function J(t){return[32,13,10,9,45].indexOf(t)!==-1}function Q(t){return/[^\u0000-\u00ff]/.test(t)}e.exports=r},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,n){var o=t("./xhr");var i=t("./utils");var s=t("./log");var u=t("./clone");var l=i.decode64;function c(t,e,n){var i="withCredentials"in new XMLHttpRequest;if(!e){return Promise.reject("No proxy configured")}var r=h(i);var a=d(e,t,r);return i?o(a):f(n,a,r).then(function(t){return l(t.content)})}var r=0;function a(t,e,n){var i="crossOrigin"in new Image;var r=h(i);var a=d(e,t,r);return i?Promise.resolve(a):f(n,a,r).then(function(t){return"data:"+t.type+";base64,"+t.content})}function f(a,t,o){return new Promise(function(e,n){var i=a.createElement("script");var r=function t(){delete window.html2canvas.proxy[o];a.body.removeChild(i)};window.html2canvas.proxy[o]=function(t){r();e(t)};i.src=t;i.onerror=function(t){r();n(t)};a.body.appendChild(i)})}function h(t){return!t?"html2canvas_"+Date.now()+"_"+ ++r+"_"+Math.round(Math.random()*1e5):""}function d(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(a){return function(e){var t=new DOMParser,n;try{n=t.parseFromString(e,"text/html")}catch(t){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(e);n.close()}catch(t){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=e}}var i=n.querySelector("base");if(!i||!i.href.host){var r=n.createElement("base");r.href=a;n.head.insertBefore(r,n.head.firstChild)}return n}}function p(t,e,n,i,r,a){return new c(t,e,window.document).then(g(t)).then(function(t){return u(t,n,i,r,a,0,0)})}n.Proxy=c;n.ProxyURL=a;n.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){var a=t("./proxy").ProxyURL;function i(n,i){var t=document.createElement("a");t.href=n;n=t.href;this.src=n;this.image=new Image;var r=this;this.promise=new Promise(function(t,e){r.image.crossOrigin="Anonymous";r.image.onload=t;r.image.onerror=e;new a(n,i,document).then(function(t){r.image.src=t})["catch"](e)})}e.exports=i},{"./proxy":16}],18:[function(t,e,n){var i=t("./nodecontainer");function r(t,e,n){i.call(this,t,e);this.isPseudoElement=true;this.before=n===":before"}r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t);t.isPseudoElement=true;t.before=this.before};r.prototype=Object.create(i.prototype);r.prototype.appendToDOM=function(){if(this.before){this.parent.node.insertBefore(this.node,this.parent.node.firstChild)}else{this.parent.node.appendChild(this.node)}this.parent.node.className+=" "+this.getHideClass()};r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";e.exports=r},{"./nodecontainer":14}],19:[function(t,e,n){var u=t("./log");function i(t,e,n,i,r){this.width=t;this.height=e;this.images=n;this.options=i;this.document=r}i.prototype.renderImage=function(t,e,n,i){var r=t.cssInt("paddingLeft"),a=t.cssInt("paddingTop"),o=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),u=n.borders;var l=e.width-(u[1].width+u[3].width+r+o);var c=e.height-(u[0].width+u[2].width+a+s);this.drawImage(i,0,0,i.image.width||l,i.image.height||c,e.left+r+u[3].width,e.top+a+u[0].width,l,c)};i.prototype.renderBackground=function(t,e,n){if(e.height>0&&e.width>0){this.renderBackgroundColor(t,e);this.renderBackgroundImage(t,e,n)}};i.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");if(!n.isTransparent()){this.rectangle(e.left,e.top,e.width,e.height,n)}};i.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)};i.prototype.renderBorder=function(t){if(!t.color.isTransparent()&&t.args!==null){this.drawShape(t.args,t.color)}};i.prototype.renderBackgroundImage=function(a,o,s){var t=a.parseBackgroundImages();t.reverse().forEach(function(t,e,n){switch(t.method){case"url":var i=this.images.get(t.args[0]);if(i){this.renderBackgroundRepeating(a,o,i,n.length-(e+1),s)}else{u("Error loading background-image",t.args[0])}break;case"linear-gradient":case"gradient":var r=this.images.get(t.value);if(r){this.renderBackgroundGradient(r,o,s)}else{u("Error loading background-image",t.args[0])}break;case"none":break;default:u("Unknown background-image type",t.args[0])}},this)};i.prototype.renderBackgroundRepeating=function(t,e,n,i,r){var a=t.parseBackgroundSize(e,n.image,i);var o=t.parseBackgroundPosition(e,n.image,i,a);var s=t.parseBackgroundRepeat(i);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+r[3],e.top+o.top+r[0],99999,a.height,r);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+r[3],e.top+r[0],a.width,99999,r);break;case"no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+r[3],e.top+o.top+r[0],a.width,a.height,r);break;default:this.renderBackgroundRepeat(n,o,a,{top:e.top,left:e.left},r[3],r[0]);break}};e.exports=i},{"./log":13}],20:[function(t,e,n){var i=t("../renderer");var r=t("../lineargradientcontainer");var a=t("../log");function o(t,e){i.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=t;this.canvas.height=e}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};a("Initialized CanvasRenderer with size",t,"x",e)}o.prototype=Object.create(i.prototype);o.prototype.setFillStyle=function(t){this.ctx.fillStyle=_typeof2(t)==="object"&&!!t.isColor?t.toString():t;return this.ctx};o.prototype.rectangle=function(t,e,n,i,r){this.setFillStyle(r).fillRect(t,e,n,i)};o.prototype.circle=function(t,e,n,i){this.setFillStyle(i);this.ctx.beginPath();this.ctx.arc(t+n/2,e+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(t,e,n,i,r,a){this.circle(t,e,n,i);this.ctx.strokeStyle=a.toString();this.ctx.stroke()};o.prototype.drawShape=function(t,e){this.shape(t);this.setFillStyle(e).fill()};o.prototype.taints=function(e){if(e.tainted===null){this.taintCtx.drawImage(e.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);e.tainted=false}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d");e.tainted=true}}return e.tainted};o.prototype.drawImage=function(t,e,n,i,r,a,o,s,u){if(!this.taints(t)||this.options.allowTaint){this.ctx.drawImage(t.image,e,n,i,r,a,o,s,u)}};o.prototype.clip=function(t,e,n){this.ctx.save();t.filter(s).forEach(function(t){this.shape(t).clip()},this);e.call(n);this.ctx.restore()};o.prototype.shape=function(t){this.ctx.beginPath();t.forEach(function(t,e){if(t[0]==="rect"){this.ctx.rect.apply(this.ctx,t.slice(1))}else{this.ctx[e===0?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(t,e,n,i,r,a){this.setFillStyle(t).font=[e,n,i,r,a].join(" ").split(",")[0]};o.prototype.fontShadow=function(t,e,n,i){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",i)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(t){this.ctx.globalAlpha=t};o.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]);this.ctx.transform.apply(this.ctx,t.matrix);this.ctx.translate(-t.origin[0],-t.origin[1])};o.prototype.setVariable=function(t,e){if(this.variables[t]!==e){this.variables[t]=this.ctx[t]=e}return this};o.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)};o.prototype.backgroundRepeatShape=function(t,e,n,i,r,a,o,s,u){var l=[["line",Math.round(r),Math.round(a)],["line",Math.round(r+o),Math.round(a)],["line",Math.round(r+o),Math.round(s+a)],["line",Math.round(r),Math.round(s+a)]];this.clip([l],function(){this.renderBackgroundRepeat(t,e,n,i,u[3],u[0])},this)};o.prototype.renderBackgroundRepeat=function(t,e,n,i,r,a){var o=Math.round(i.left+e.left+r),s=Math.round(i.top+e.top+a);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(t,e){if(t instanceof r){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach(function(t){n.addColorStop(t.stop,t.color.toString())});this.rectangle(e.left,e.top,e.width,e.height,n)}};o.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height){return n}var i,r=document.createElement("canvas");r.width=e.width;r.height=e.height;i=r.getContext("2d");i.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height);return r};function s(t){return t.length>0}e.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){var r=t("./nodecontainer");function i(t,e,n,i){r.call(this,n,i);this.ownStacking=t;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*e}i.prototype=Object.create(r.prototype);i.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack};e.exports=i},{"./nodecontainer":14}],22:[function(t,e,n){function i(t){this.rangeBounds=this.testRangeBounds(t);this.cors=this.testCORS();this.svg=this.testSVG()}i.prototype.testRangeBounds=function(t){var e,n,i,r,a=false;if(t.createRange){e=t.createRange();if(e.getBoundingClientRect){n=t.createElement("boundtest");n.style.height="123px";n.style.display="block";t.body.appendChild(n);e.selectNode(n);i=e.getBoundingClientRect();r=i.height;if(r===123){a=true}t.body.removeChild(n)}}return a};i.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};i.prototype.testSVG=function(){var t=new Image;var e=document.createElement("canvas");var n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0);e.toDataURL()}catch(t){return false}return true};e.exports=i},{}],23:[function(t,e,n){var i=t("./xhr");var r=t("./utils").decode64;function a(t){this.src=t;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(t)?Promise.resolve(n.inlineFormatting(t)):i(t)}).then(function(e){return new Promise(function(t){window.html2canvas.svg.fabric.loadSVGFromString(e,n.createCanvas.call(n,t))})})}a.prototype.hasFabric=function(){return!window.html2canvas.svg||!window.html2canvas.svg.fabric?Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg")):Promise.resolve()};a.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)};a.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")};a.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)};a.prototype.createCanvas=function(i){var r=this;return function(t,e){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");r.image=n.lowerCanvasEl;n.setWidth(e.width).setHeight(e.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(t,e)).renderAll();i(n.lowerCanvasEl)}};a.prototype.decode64=function(t){return typeof window.atob==="function"?window.atob(t):r(t)};e.exports=a},{"./utils":26,"./xhr":28}],24:[function(t,e,n){var i=t("./svgcontainer");function r(n,t){this.src=n;this.image=null;var i=this;this.promise=t?new Promise(function(t,e){i.image=new Image;i.image.onload=t;i.image.onerror=e;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(i.image.complete===true){t(i.image)}}):this.hasFabric().then(function(){return new Promise(function(t){window.html2canvas.svg.fabric.parseSVGDocument(n,i.createCanvas.call(i,t))})})}r.prototype=Object.create(i.prototype);e.exports=r},{"./svgcontainer":23}],25:[function(t,e,n){var i=t("./nodecontainer");function r(t,e){i.call(this,t,e)}r.prototype=Object.create(i.prototype);r.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,a);case"uppercase":return e.toUpperCase();default:return e}};function a(t,e,n){if(t.length>0){return e+n.toUpperCase()}}e.exports=r},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function t(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(t,e){return function(){return t.apply(e,arguments)}};n.decode64=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=t.length,i,r,a,o,s,u,l,c;var f="";for(i=0;i<n;i+=4){r=e.indexOf(t[i]);a=e.indexOf(t[i+1]);o=e.indexOf(t[i+2]);s=e.indexOf(t[i+3]);u=r<<2|a>>4;l=(a&15)<<4|o>>2;c=(o&3)<<6|s;if(o===64){f+=String.fromCharCode(u)}else if(s===64||s===-1){f+=String.fromCharCode(u,l)}else{f+=String.fromCharCode(u,l,c)}}return f};n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect();var n=t.offsetWidth==null?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:t.offsetHeight==null?e.height:t.offsetHeight}}return{}};n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}};n.parseBackgrounds=function(t){var e=" \r\n\t",n,i,r,a,o,s=[],u=0,l=0,c,f;var h=function t(){if(n){if(i.substr(0,1)==='"'){i=i.substr(1,i.length-2)}if(i){f.push(i)}if(n.substr(0,1)==="-"&&(a=n.indexOf("-",1)+1)>0){r=n.substr(0,a);n=n.substr(a)}s.push({prefix:r,method:n.toLowerCase(),value:o,args:f,image:null})}f=[];n=r=i=o=""};f=[];n=r=i=o="";t.split("").forEach(function(t){if(u===0&&e.indexOf(t)>-1){return}switch(t){case'"':if(!c){c=t}else if(c===t){c=null}break;case"(":if(c){break}else if(u===0){u=1;o+=t;return}else{l++}break;case")":if(c){break}else if(u===1){if(l===0){u=0;o+=t;h();return}else{l--}}break;case",":if(c){break}else if(u===0){h();return}else if(u===1){if(l===0&&!n.match(/^url$/i)){f.push(i);i="";o+=t;return}}break}o+=t;if(u===0){n+=t}else{i+=t}});h();return s}},{}],27:[function(t,e,n){var i=t("./gradientcontainer");function r(t){i.apply(this,arguments);this.type=t.args[0]==="linear"?i.TYPES.LINEAR:i.TYPES.RADIAL}r.prototype=Object.create(i.prototype);e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,n){function i(i){return new Promise(function(t,e){var n=new XMLHttpRequest;n.open("GET",i);n.onload=function(){if(n.status===200){t(n.responseText)}else{e(new Error(n.statusText))}};n.onerror=function(){e(new Error("Network Error"))};n.send()})}e.exports=i},{}]},{},[4])(4)})});var BM=function t(e){this.ok=false;this.alpha=1;if(e.charAt(0)=="#"){e=e.substr(1,6)}e=e.replace(/ /g,"");e=e.toLowerCase();var c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=c[e]||e;var f=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function t(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function t(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}];for(var n=0;n<f.length;n++){var i=f[n].re;var r=f[n].process;var a=i.exec(e);if(a){var o=r(a);this.r=o[0];this.g=o[1];this.b=o[2];if(o.length>3){this.alpha=o[3]}this.ok=true}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r;this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g;this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b;this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha;this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"};this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"};this.toHex=function(){var t=this.r.toString(16);var e=this.g.toString(16);var n=this.b.toString(16);if(t.length==1)t="0"+t;if(e.length==1)e="0"+e;if(n.length==1)n="0"+n;return"#"+t+e+n};this.getHelpXML=function(){var t=new Array;for(var e=0;e<f.length;e++){var n=f[e].example;for(var i=0;i<n.length;i++){t[t.length]=n[i]}}for(var r in c){t[t.length]=r}var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(var e=0;e<t.length;e++){try{var o=document.createElement("li");var s=new RGBColor(t[e]);var u=document.createElement("div");u.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex();u.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[e]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(u);o.appendChild(l);a.appendChild(o)}catch(t){}}return a}};var DM=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var NM=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function zM(t,e,n,i){if(isNaN(i)||i<1)return;i|=0;var r,a,o,s,u,l,c,f,h,d,g,p,v,m,y,_,b,w,x,k,S,C,E,A;var R=i+i+1;var M=e-1;var T=n-1;var P=i+1;var O=P*(P+1)/2;var B=new jM;var D=B;for(o=1;o<R;o++){D=D.next=new jM;if(o==P)var N=D}D.next=B;var z=null;var j=null;c=l=0;var L=DM[i];var F=NM[i];for(a=0;a<n;a++){_=b=w=x=f=h=d=g=0;p=P*(k=t[l]);v=P*(S=t[l+1]);m=P*(C=t[l+2]);y=P*(E=t[l+3]);f+=O*k;h+=O*S;d+=O*C;g+=O*E;D=B;for(o=0;o<P;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}for(o=1;o<P;o++){s=l+((M<o?M:o)<<2);f+=(D.r=k=t[s])*(A=P-o);h+=(D.g=S=t[s+1])*A;d+=(D.b=C=t[s+2])*A;g+=(D.a=E=t[s+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next}z=B;j=N;for(r=0;r<e;r++){t[l+3]=E=g*L>>F;if(E!=0){E=255/E;t[l]=(f*L>>F)*E;t[l+1]=(h*L>>F)*E;t[l+2]=(d*L>>F)*E}else{t[l]=t[l+1]=t[l+2]=0}f-=p;h-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=c+((s=r+i+1)<M?s:M)<<2;_+=z.r=t[s];b+=z.g=t[s+1];w+=z.b=t[s+2];x+=z.a=t[s+3];f+=_;h+=b;d+=w;g+=x;z=z.next;p+=k=j.r;v+=S=j.g;m+=C=j.b;y+=E=j.a;_-=k;b-=S;w-=C;x-=E;j=j.next;l+=4}c+=e}for(r=0;r<e;r++){b=w=x=_=h=d=g=f=0;l=r<<2;p=P*(k=t[l]);v=P*(S=t[l+1]);m=P*(C=t[l+2]);y=P*(E=t[l+3]);f+=O*k;h+=O*S;d+=O*C;g+=O*E;D=B;for(o=0;o<P;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}u=e;for(o=1;o<=i;o++){l=u+r<<2;f+=(D.r=k=t[l])*(A=P-o);h+=(D.g=S=t[l+1])*A;d+=(D.b=C=t[l+2])*A;g+=(D.a=E=t[l+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next;if(o<T){u+=e}}l=r;z=B;j=N;for(a=0;a<n;a++){s=l<<2;t[s+3]=E=g*L>>F;if(E>0){E=255/E;t[s]=(f*L>>F)*E;t[s+1]=(h*L>>F)*E;t[s+2]=(d*L>>F)*E}else{t[s]=t[s+1]=t[s+2]=0}f-=p;h-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=r+((s=a+P)<T?s:T)*e<<2;f+=_+=z.r=t[s];h+=b+=z.g=t[s+1];d+=w+=z.b=t[s+2];g+=x+=z.a=t[s+3];z=z.next;p+=k=j.r;v+=S=j.g;m+=C=j.b;y+=E=j.a;_-=k;b-=S;w-=C;x-=E;j=j.next;l+=e}}}function jM(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var LM=zM;var FM=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var IM=new RegExp("[\\-\\.0-9"+FM.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var HM=new RegExp("^"+FM.source+IM.source+"*(?::"+FM.source+IM.source+"*)?$");var GM=0;var VM=1;var UM=2;var WM=3;var qM=4;var KM=5;var YM=6;var XM=7;function ZM(){}ZM.prototype={parse:function t(e,n,i){var r=this.domBuilder;r.startDocument();iT(n,n={});$M(e,n,i,r,this.errorHandler);r.endDocument()}};function $M(n,t,i,r,a){function o(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}else{return String.fromCharCode(t)}}function s(t){var e=t.slice(1,-1);if(e in i){return i[e]}else if(e.charAt(0)==="#"){return o(parseInt(e.substr(1).replace("x","0x")))}else{a.error("entity not found:"+t);return t}}function e(t){if(t>p){var e=n.substring(p,t).replace(/&#?\w+;/g,s);h&&u(p);r.characters(e,0,t-p);p=t}}function u(t,e){while(t>=c&&(e=f.exec(n))){l=e.index;c=l+e[0].length;h.lineNumber++}h.columnNumber=t-l+1}var l=0;var c=0;var f=/.*(?:\r\n?|\n)|.*$/g;var h=r.locator;var d=[{currentNSMap:t}];var g={};var p=0;while(true){try{var v=n.indexOf("<",p);if(v<0){if(!n.substr(p).match(/^\s*$/)){var m=r.doc;var y=m.createTextNode(n.substr(p));m.appendChild(y);r.currentElement=y}return}if(v>p){e(v)}switch(n.charAt(v+1)){case"/":var _=n.indexOf(">",v+3);var b=n.substring(v+2,_);var w=d.pop();if(_<0){b=n.substring(v+2).replace(/[\s<].*/,"");a.error("end tag name: "+b+" is not complete:"+w.tagName);_=v+1+b.length}else if(b.match(/\s</)){b=b.replace(/[\s<].*/,"");a.error("end tag name: "+b+" maybe not complete");_=v+1+b.length}var x=w.localNSMap;var k=w.tagName==b;var S=k||w.tagName&&w.tagName.toLowerCase()==b.toLowerCase();if(S){r.endElement(w.uri,w.localName,b);if(x){for(var C in x){r.endPrefixMapping(C)}}if(!k){a.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}}else{d.push(w)}_++;break;case"?":h&&u(v);_=aT(n,v,r);break;case"!":h&&u(v);_=rT(n,v,r,a);break;default:h&&u(v);var E=new oT;var A=d[d.length-1].currentNSMap;var _=QM(n,v,E,A,s,a);var R=E.length;if(!E.closed&&nT(n,_,E.tagName,g)){E.closed=true;if(!i.nbsp){a.warning("unclosed xml attribute")}}if(h&&R){var M=JM(h,{});for(var T=0;T<R;T++){var P=E[T];u(P.offset);P.locator=JM(h,{})}r.locator=M;if(tT(E,r,A)){d.push(E)}r.locator=h}else{if(tT(E,r,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=eT(n,_,E.tagName,s,r)}else{_++}}}catch(t){a.error("element parse error: "+t);_=-1}if(_>p){p=_}else{e(Math.max(v,p)+1)}}}function JM(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber;return e}function QM(t,e,n,i,r,a){var o;var s;var u=++e;var l=GM;while(true){var c=t.charAt(u);switch(c){case"=":if(l===VM){o=t.slice(e,u);l=WM}else if(l===UM){l=WM}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(l===WM||l===VM){if(l===VM){a.warning('attribute value must after "="');o=t.slice(e,u)}e=u+1;u=t.indexOf(c,e);if(u>0){s=t.slice(e,u).replace(/&#?\w+;/g,r);n.add(o,s,e-1);l=KM}else{throw new Error("attribute value no end '"+c+"' match")}}else if(l==qM){s=t.slice(e,u).replace(/&#?\w+;/g,r);n.add(o,s,e);a.warning('attribute "'+o+'" missed start quot('+c+")!!");e=u+1;l=KM}else{throw new Error('attribute value must after "="')}break;case"/":switch(l){case GM:n.setTagName(t.slice(e,u));case KM:case YM:case XM:l=XM;n.closed=true;case qM:case VM:case UM:break;default:throw new Error("attribute invalid close char('/')")}break;case"":a.error("unexpected end of input");if(l==GM){n.setTagName(t.slice(e,u))}return u;case">":switch(l){case GM:n.setTagName(t.slice(e,u));case KM:case YM:case XM:break;case qM:case VM:s=t.slice(e,u);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case UM:if(l===UM){s=o}if(l==qM){a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,r),e)}else{if(i[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,e)}break;case WM:throw new Error("attribute value missed!!")}return u;case"":c=" ";default:if(c<=" "){switch(l){case GM:n.setTagName(t.slice(e,u));l=YM;break;case VM:o=t.slice(e,u);l=UM;break;case qM:var s=t.slice(e,u).replace(/&#?\w+;/g,r);a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,e);case KM:l=YM;break}}else{switch(l){case UM:var f=n.tagName;if(i[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,e);e=u;l=VM;break;case KM:a.warning('attribute space is required"'+o+'"!!');case YM:l=VM;e=u;break;case WM:l=qM;e=u;break;case XM:throw new Error("elements closed character '/' and '>' must be connected to")}}}u++}}function tT(t,e,n){var i=t.tagName;var r=null;var a=t.length;while(a--){var o=t[a];var s=o.qName;var u=o.value;var l=s.indexOf(":");if(l>0){var c=o.prefix=s.slice(0,l);var f=s.slice(l+1);var h=c==="xmlns"&&f}else{f=s;c=null;h=s==="xmlns"&&""}o.localName=f;if(h!==false){if(r==null){r={};iT(n,n={})}n[h]=r[h]=u;o.uri="http://www.w3.org/2000/xmlns/";e.startPrefixMapping(h,u)}}var a=t.length;while(a--){o=t[a];var c=o.prefix;if(c){if(c==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(c!=="xmlns"){o.uri=n[c||""]}}}var l=i.indexOf(":");if(l>0){c=t.prefix=i.slice(0,l);f=t.localName=i.slice(l+1)}else{c=null;f=t.localName=i}var d=t.uri=n[c||""];e.startElement(d,f,i,t);if(t.closed){e.endElement(d,f,i);if(r){for(c in r){e.endPrefixMapping(c)}}}else{t.currentNSMap=n;t.localNSMap=r;return true}}function eT(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=t.indexOf("</"+n+">",e);var o=t.substring(e+1,a);if(/[&<]/.test(o)){if(/^script$/i.test(n)){r.characters(o,0,o.length);return a}o=o.replace(/&#?\w+;/g,i);r.characters(o,0,o.length);return a}}return e+1}function nT(t,e,n,i){var r=i[n];if(r==null){r=t.lastIndexOf("</"+n+">");if(r<e){r=t.lastIndexOf("</"+n)}i[n]=r}return r<e}function iT(t,e){for(var n in t){e[n]=t[n]}}function rT(t,e,n,i){var r=t.charAt(e+2);switch(r){case"-":if(t.charAt(e+3)==="-"){var a=t.indexOf("--\x3e",e+4);if(a>e){n.comment(t,e+4,a-e-4);return a+3}else{i.error("Unclosed comment");return-1}}else{return-1}default:if(t.substr(e+3,6)=="CDATA["){var a=t.indexOf("]]>",e+9);n.startCDATA();n.characters(t,e+9,a-e-9);n.endCDATA();return a+3}var o=uT(t,e);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0];var l=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var c=s>4&&o[4][0];var f=o[s-1];n.startDTD(u,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return f.index+f[0].length}}return-1}function aT(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){var a=r[0].length;n.processingInstruction(r[1],r[2]);return i+2}else{return-1}}return-1}function oT(t){}oT.prototype={setTagName:function t(e){if(!HM.test(e)){throw new Error("invalid tagName:"+e)}this.tagName=e},add:function t(e,n,i){if(!HM.test(e)){throw new Error("invalid attribute:"+e)}this[this.length++]={qName:e,value:n,offset:i}},length:0,getLocalName:function t(e){return this[e].localName},getLocator:function t(e){return this[e].locator},getQName:function t(e){return this[e].qName},getURI:function t(e){return this[e].uri},getValue:function t(e){return this[e].value}};function sT(t,e){t.__proto__=e;return t}if(!(sT({},sT.prototype)instanceof sT)){sT=function t(e,n){function i(){}i.prototype=n;i=new i;for(n in e){i[n]=e[n]}return i}}function uT(t,e){var n;var i=[];var r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=e;r.exec(t);while(n=r.exec(t)){i.push(n);if(n[1])return i}}var lT=ZM;var cT={XMLReader:lT};function fT(t,e){for(var n in t){e[n]=t[n]}}function hT(t,e){var n=t.prototype;if(Object.create){var i=Object.create(e.prototype);n.__proto__=i}if(!(n instanceof e)){var r=function t(){};r.prototype=e.prototype;r=new r;fT(n,r);t.prototype=n=r}if(n.constructor!=t){if(typeof t!="function"){console.error("unknow Class:"+t)}n.constructor=t}}var dT="http://www.w3.org/1999/xhtml";var gT={};var pT=gT.ELEMENT_NODE=1;var vT=gT.ATTRIBUTE_NODE=2;var mT=gT.TEXT_NODE=3;var yT=gT.CDATA_SECTION_NODE=4;var _T=gT.ENTITY_REFERENCE_NODE=5;var bT=gT.ENTITY_NODE=6;var wT=gT.PROCESSING_INSTRUCTION_NODE=7;var xT=gT.COMMENT_NODE=8;var kT=gT.DOCUMENT_NODE=9;var ST=gT.DOCUMENT_TYPE_NODE=10;var CT=gT.DOCUMENT_FRAGMENT_NODE=11;var ET=gT.NOTATION_NODE=12;var AT={};var RT={};var MT=AT.INDEX_SIZE_ERR=(RT[1]="Index size error",1);var TT=AT.DOMSTRING_SIZE_ERR=(RT[2]="DOMString size error",2);var PT=AT.HIERARCHY_REQUEST_ERR=(RT[3]="Hierarchy request error",3);var OT=AT.WRONG_DOCUMENT_ERR=(RT[4]="Wrong document",4);var BT=AT.INVALID_CHARACTER_ERR=(RT[5]="Invalid character",5);var DT=AT.NO_DATA_ALLOWED_ERR=(RT[6]="No data allowed",6);var NT=AT.NO_MODIFICATION_ALLOWED_ERR=(RT[7]="No modification allowed",7);var zT=AT.NOT_FOUND_ERR=(RT[8]="Not found",8);var jT=AT.NOT_SUPPORTED_ERR=(RT[9]="Not supported",9);var LT=AT.INUSE_ATTRIBUTE_ERR=(RT[10]="Attribute in use",10);var FT=AT.INVALID_STATE_ERR=(RT[11]="Invalid state",11);var IT=AT.SYNTAX_ERR=(RT[12]="Syntax error",12);var HT=AT.INVALID_MODIFICATION_ERR=(RT[13]="Invalid modification",13);var GT=AT.NAMESPACE_ERR=(RT[14]="Invalid namespace",14);var VT=AT.INVALID_ACCESS_ERR=(RT[15]="Invalid access",15);function UT(t,e){if(e instanceof Error){var n=e}else{n=this;Error.call(this,RT[t]);this.message=RT[t];if(Error.captureStackTrace)Error.captureStackTrace(this,UT)}n.code=t;if(e)this.message=this.message+": "+e;return n}UT.prototype=Error.prototype;fT(AT,UT);function WT(){}WT.prototype={length:0,item:function t(e){return this[e]||null},toString:function t(e,n){for(var i=[],r=0;r<this.length;r++){SP(this[r],i,e,n)}return i.join("")}};function qT(t,e){this._node=t;this._refresh=e;KT(this)}function KT(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);AP(t,"length",n.length);fT(n,t);t._inc=e}}qT.prototype.item=function(t){KT(this);return this[t]};hT(qT,WT);function YT(){}function XT(t,e){var n=t.length;while(n--){if(t[n]===e){return n}}}function ZT(t,e,n,i){if(i){e[XT(e,i)]=n}else{e[e.length++]=n}if(t){n.ownerElement=t;var r=t.ownerDocument;if(r){i&&rP(r,t,i);iP(r,t,n)}}}function $T(t,e,n){var i=XT(e,n);if(i>=0){var r=e.length-1;while(i<r){e[i]=e[++i]}e.length=r;if(t){var a=t.ownerDocument;if(a){rP(a,t,n);n.ownerElement=null}}}else{throw UT(zT,new Error(t.tagName+"@"+n))}}YT.prototype={length:0,item:WT.prototype.item,getNamedItem:function t(e){var n=this.length;while(n--){var i=this[n];if(i.nodeName==e){return i}}},setNamedItem:function t(e){var n=e.ownerElement;if(n&&n!=this._ownerElement){throw new UT(LT)}var i=this.getNamedItem(e.nodeName);ZT(this._ownerElement,this,e,i);return i},setNamedItemNS:function t(e){var n=e.ownerElement,i;if(n&&n!=this._ownerElement){throw new UT(LT)}i=this.getNamedItemNS(e.namespaceURI,e.localName);ZT(this._ownerElement,this,e,i);return i},removeNamedItem:function t(e){var n=this.getNamedItem(e);$T(this._ownerElement,this,n);return n},removeNamedItemNS:function t(e,n){var i=this.getNamedItemNS(e,n);$T(this._ownerElement,this,i);return i},getNamedItemNS:function t(e,n){var i=this.length;while(i--){var r=this[i];if(r.localName==n&&r.namespaceURI==e){return r}}return null}};function JT(t){this._features={};if(t){for(var e in t){this._features=t[e]}}}JT.prototype={hasFeature:function t(e,n){var i=this._features[e.toLowerCase()];if(i&&(!n||n in i)){return true}else{return false}},createDocument:function t(e,n,i){var r=new nP;r.implementation=this;r.childNodes=new WT;r.doctype=i;if(i){r.appendChild(i)}if(n){var a=r.createElementNS(e,n);r.appendChild(a)}return r},createDocumentType:function t(e,n,i){var r=new pP;r.name=e;r.nodeName=e;r.publicId=n;r.systemId=i;return r}};function QT(){}QT.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function t(e,n){return sP(this,e,n)},replaceChild:function t(e,n){this.insertBefore(e,n);if(n){this.removeChild(n)}},removeChild:function t(e){return oP(this,e)},appendChild:function t(e){return this.insertBefore(e,null)},hasChildNodes:function t(){return this.firstChild!=null},cloneNode:function t(e){return EP(this.ownerDocument||this,this,e)},normalize:function t(){var e=this.firstChild;while(e){var n=e.nextSibling;if(n&&n.nodeType==mT&&e.nodeType==mT){this.removeChild(n);e.appendData(n.data)}else{e.normalize();e=n}}},isSupported:function t(e,n){return this.ownerDocument.implementation.hasFeature(e,n)},hasAttributes:function t(){return this.attributes.length>0},lookupPrefix:function t(e){var n=this;while(n){var i=n._nsMap;if(i){for(var r in i){if(i[r]==e){return r}}}n=n.nodeType==vT?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function t(e){var n=this;while(n){var i=n._nsMap;if(i){if(e in i){return i[e]}}n=n.nodeType==vT?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function t(e){var n=this.lookupPrefix(e);return n==null}};function tP(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}fT(gT,QT);fT(gT,QT.prototype);function eP(t,e){if(e(t)){return true}if(t=t.firstChild){do{if(eP(t,e)){return true}}while(t=t.nextSibling)}}function nP(){}function iP(t,e,n){t&&t._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){e._nsMap[n.prefix?n.localName:""]=n.value}}function rP(t,e,n,i){t&&t._inc++;var r=n.namespaceURI;if(r=="http://www.w3.org/2000/xmlns/"){delete e._nsMap[n.prefix?n.localName:""]}}function aP(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n){i[i.length++]=n}else{var r=e.firstChild;var a=0;while(r){i[a++]=r;r=r.nextSibling}i.length=a}}}function oP(t,e){var n=e.previousSibling;var i=e.nextSibling;if(n){n.nextSibling=i}else{t.firstChild=i}if(i){i.previousSibling=n}else{t.lastChild=n}aP(t.ownerDocument,t);return e}function sP(t,e,n){var i=e.parentNode;if(i){i.removeChild(e)}if(e.nodeType===CT){var r=e.firstChild;if(r==null){return e}var a=e.lastChild}else{r=a=e}var o=n?n.previousSibling:t.lastChild;r.previousSibling=o;a.nextSibling=n;if(o){o.nextSibling=r}else{t.firstChild=r}if(n==null){t.lastChild=a}else{n.previousSibling=a}do{r.parentNode=t}while(r!==a&&(r=r.nextSibling));aP(t.ownerDocument||t,t);if(e.nodeType==CT){e.firstChild=e.lastChild=null}return e}function uP(t,e){var n=e.parentNode;if(n){var i=t.lastChild;n.removeChild(e);var i=t.lastChild}var i=t.lastChild;e.parentNode=t;e.previousSibling=i;e.nextSibling=null;if(i){i.nextSibling=e}else{t.firstChild=e}t.lastChild=e;aP(t.ownerDocument,t,e);return e}nP.prototype={nodeName:"#document",nodeType:kT,doctype:null,documentElement:null,_inc:1,insertBefore:function t(e,n){if(e.nodeType==CT){var i=e.firstChild;while(i){var r=i.nextSibling;this.insertBefore(i,n);i=r}return e}if(this.documentElement==null&&e.nodeType==pT){this.documentElement=e}return sP(this,e,n),e.ownerDocument=this,e},removeChild:function t(e){if(this.documentElement==e){this.documentElement=null}return oP(this,e)},importNode:function t(e,n){return CP(this,e,n)},getElementById:function t(e){var n=null;eP(this.documentElement,function(t){if(t.nodeType==pT){if(t.getAttribute("id")==e){n=t;return true}}});return n},createElement:function t(e){var n=new lP;n.ownerDocument=this;n.nodeName=e;n.tagName=e;n.childNodes=new WT;var i=n.attributes=new YT;i._ownerElement=n;return n},createDocumentFragment:function t(){var e=new _P;e.ownerDocument=this;e.childNodes=new WT;return e},createTextNode:function t(e){var n=new hP;n.ownerDocument=this;n.appendData(e);return n},createComment:function t(e){var n=new dP;n.ownerDocument=this;n.appendData(e);return n},createCDATASection:function t(e){var n=new gP;n.ownerDocument=this;n.appendData(e);return n},createProcessingInstruction:function t(e,n){var i=new bP;i.ownerDocument=this;i.tagName=i.target=e;i.nodeValue=i.data=n;return i},createAttribute:function t(e){var n=new cP;n.ownerDocument=this;n.name=e;n.nodeName=e;n.localName=e;n.specified=true;return n},createEntityReference:function t(e){var n=new yP;n.ownerDocument=this;n.nodeName=e;return n},createElementNS:function t(e,n){var i=new lP;var r=n.split(":");var a=i.attributes=new YT;i.childNodes=new WT;i.ownerDocument=this;i.nodeName=n;i.tagName=n;i.namespaceURI=e;if(r.length==2){i.prefix=r[0];i.localName=r[1]}else{i.localName=n}a._ownerElement=i;return i},createAttributeNS:function t(e,n){var i=new cP;var r=n.split(":");i.ownerDocument=this;i.nodeName=n;i.name=n;i.namespaceURI=e;i.specified=true;if(r.length==2){i.prefix=r[0];i.localName=r[1]}else{i.localName=n}return i}};hT(nP,QT);function lP(){this._nsMap={}}lP.prototype={nodeType:pT,hasAttribute:function t(e){return this.getAttributeNode(e)!=null},getAttribute:function t(e){var n=this.getAttributeNode(e);return n&&n.value||""},getAttributeNode:function t(e){return this.attributes.getNamedItem(e)},setAttribute:function t(e,n){var i=this.ownerDocument.createAttribute(e);i.value=i.nodeValue=""+n;this.setAttributeNode(i)},removeAttribute:function t(e){var n=this.getAttributeNode(e);n&&this.removeAttributeNode(n)},appendChild:function t(e){if(e.nodeType===CT){return this.insertBefore(e,null)}else{return uP(this,e)}},setAttributeNode:function t(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function t(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function t(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function t(e,n){var i=this.getAttributeNodeNS(e,n);i&&this.removeAttributeNode(i)},hasAttributeNS:function t(e,n){return this.getAttributeNodeNS(e,n)!=null},getAttributeNS:function t(e,n){var i=this.getAttributeNodeNS(e,n);return i&&i.value||""},setAttributeNS:function t(e,n,i){var r=this.ownerDocument.createAttributeNS(e,n);r.value=r.nodeValue=""+i;this.setAttributeNode(r)},getAttributeNodeNS:function t(e,n){return this.attributes.getNamedItemNS(e,n)},getElementsByTagName:function t(i){return new qT(this,function(e){var n=[];eP(e,function(t){if(t!==e&&t.nodeType==pT&&(i==="*"||t.tagName==i)){n.push(t)}});return n})},getElementsByTagNameNS:function t(i,r){return new qT(this,function(e){var n=[];eP(e,function(t){if(t!==e&&t.nodeType===pT&&(i==="*"||t.namespaceURI===i)&&(r==="*"||t.localName==r)){n.push(t)}});return n})}};nP.prototype.getElementsByTagName=lP.prototype.getElementsByTagName;nP.prototype.getElementsByTagNameNS=lP.prototype.getElementsByTagNameNS;hT(lP,QT);function cP(){}cP.prototype.nodeType=vT;hT(cP,QT);function fP(){}fP.prototype={data:"",substringData:function t(e,n){return this.data.substring(e,e+n)},appendData:function t(e){e=this.data+e;this.nodeValue=this.data=e;this.length=e.length},insertData:function t(e,n){this.replaceData(e,0,n)},appendChild:function t(e){throw new Error(RT[PT])},deleteData:function t(e,n){this.replaceData(e,n,"")},replaceData:function t(e,n,i){var r=this.data.substring(0,e);var a=this.data.substring(e+n);i=r+i+a;this.nodeValue=this.data=i;this.length=i.length}};hT(fP,QT);function hP(){}hP.prototype={nodeName:"#text",nodeType:mT,splitText:function t(e){var n=this.data;var i=n.substring(e);n=n.substring(0,e);this.data=this.nodeValue=n;this.length=n.length;var r=this.ownerDocument.createTextNode(i);if(this.parentNode){this.parentNode.insertBefore(r,this.nextSibling)}return r}};hT(hP,fP);function dP(){}dP.prototype={nodeName:"#comment",nodeType:xT};hT(dP,fP);function gP(){}gP.prototype={nodeName:"#cdata-section",nodeType:yT};hT(gP,fP);function pP(){}pP.prototype.nodeType=ST;hT(pP,QT);function vP(){}vP.prototype.nodeType=ET;hT(vP,QT);function mP(){}mP.prototype.nodeType=bT;hT(mP,QT);function yP(){}yP.prototype.nodeType=_T;hT(yP,QT);function _P(){}_P.prototype.nodeName="#document-fragment";_P.prototype.nodeType=CT;hT(_P,QT);function bP(){}bP.prototype.nodeType=wT;hT(bP,QT);function wP(){}wP.prototype.serializeToString=function(t,e,n){return xP.call(t,e,n)};QT.prototype.toString=xP;function xP(t,e){var n=[];var i=this.nodeType==9?this.documentElement:this;var r=i.prefix;var a=i.namespaceURI;if(a&&r==null){var r=i.lookupPrefix(a);if(r==null){var o=[{namespace:a,prefix:null}]}}SP(this,n,t,e,o);return n.join("")}function kP(t,e,n){var i=t.prefix||"";var r=t.namespaceURI;if(!i&&!r){return false}if(i==="xml"&&r==="http://www.w3.org/XML/1998/namespace"||r=="http://www.w3.org/2000/xmlns/"){return false}var a=n.length;while(a--){var o=n[a];if(o.prefix==i){return o.namespace!=r}}return true}function SP(t,e,n,i,r){if(i){t=i(t);if(t){if(typeof t=="string"){e.push(t);return}}else{return}}switch(t.nodeType){case pT:if(!r)r=[];var a=r.length;var o=t.attributes;var s=o.length;var u=t.firstChild;var l=t.tagName;n=dT===t.namespaceURI||n;e.push("<",l);for(var c=0;c<s;c++){var f=o.item(c);if(f.prefix=="xmlns"){r.push({prefix:f.localName,namespace:f.value})}else if(f.nodeName=="xmlns"){r.push({prefix:"",namespace:f.value})}}for(var c=0;c<s;c++){var f=o.item(c);if(kP(f,n,r)){var h=f.prefix||"";var d=f.namespaceURI;var g=h?" xmlns:"+h:" xmlns";e.push(g,'="',d,'"');r.push({prefix:h,namespace:d})}SP(f,e,n,i,r)}if(kP(t,n,r)){var h=t.prefix||"";var d=t.namespaceURI;var g=h?" xmlns:"+h:" xmlns";e.push(g,'="',d,'"');r.push({prefix:h,namespace:d})}if(u||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(l)){e.push(">");if(n&&/^script$/i.test(l)){while(u){if(u.data){e.push(u.data)}else{SP(u,e,n,i,r)}u=u.nextSibling}}else{while(u){SP(u,e,n,i,r);u=u.nextSibling}}e.push("</",l,">")}else{e.push("/>")}return;case kT:case CT:var u=t.firstChild;while(u){SP(u,e,n,i,r);u=u.nextSibling}return;case vT:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,tP),'"');case mT:return e.push(t.data.replace(/[<&]/g,tP));case yT:return e.push("<![CDATA[",t.data,"]]>");case xT:return e.push("\x3c!--",t.data,"--\x3e");case ST:var p=t.publicId;var v=t.systemId;e.push("<!DOCTYPE ",t.name);if(p){e.push(' PUBLIC "',p);if(v&&v!="."){e.push('" "',v)}e.push('">')}else if(v&&v!="."){e.push(' SYSTEM "',v,'">')}else{var m=t.internalSubset;if(m){e.push(" [",m,"]")}e.push(">")}return;case wT:return e.push("<?",t.target," ",t.data,"?>");case _T:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function CP(t,e,n){var i;switch(e.nodeType){case pT:i=e.cloneNode(false);i.ownerDocument=t;case CT:break;case vT:n=true;break}if(!i){i=e.cloneNode(false)}i.ownerDocument=t;i.parentNode=null;if(n){var r=e.firstChild;while(r){i.appendChild(CP(t,r,n));r=r.nextSibling}}return i}function EP(t,e,n){var i=new e.constructor;for(var r in e){var a=e[r];if(_typeof2(a)!="object"){if(a!=i[r]){i[r]=a}}}if(e.childNodes){i.childNodes=new WT}i.ownerDocument=t;switch(i.nodeType){case pT:var o=e.attributes;var s=i.attributes=new YT;var u=o.length;s._ownerElement=i;for(var l=0;l<u;l++){i.setAttributeNode(EP(t,o.item(l),true))}break;case vT:n=true}if(n){var c=e.firstChild;while(c){i.appendChild(EP(t,c,n));c=c.nextSibling}}return i}function AP(t,e,n){t[e]=n}try{if(Object.defineProperty){var RP=function t(e){switch(e.nodeType){case pT:case CT:var n=[];e=e.firstChild;while(e){if(e.nodeType!==7&&e.nodeType!==8){n.push(t(e))}e=e.nextSibling}return n.join("");default:return e.nodeValue}};Object.defineProperty(qT.prototype,"length",{get:function t(){KT(this);return this.$$length}});Object.defineProperty(QT.prototype,"textContent",{get:function t(){return RP(this)},set:function t(e){switch(this.nodeType){case pT:case CT:while(this.firstChild){this.removeChild(this.firstChild)}if(e||String(e)){this.appendChild(this.ownerDocument.createTextNode(e))}break;default:this.data=e;this.value=e;this.nodeValue=e}}});AP=function t(e,n,i){e["$$"+n]=i}}}catch(t){}var MP=JT;var TP=wP;var PP={DOMImplementation:MP,XMLSerializer:TP};var OP=TM(function(t,e){function n(t){this.options=t||{locator:{}}}n.prototype.parseFromString=function(t,e){var n=this.options;var i=new d;var r=n.domBuilder||new c;var a=n.errorHandler;var o=n.locator;var s=n.xmlns||{};var u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};if(o){r.setDocumentLocator(o)}i.errorHandler=l(a,r,o);i.domBuilder=n.domBuilder||r;if(/\/x?html?$/.test(e)){u.nbsp=" ";u.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(t){i.parse(t,s,u)}else{i.errorHandler.error("invalid doc source")}return r.doc};function l(i,t,r){if(!i){if(t instanceof c){return t}i=t}var a={};var o=i instanceof Function;r=r||{};function e(e){var n=i[e];if(!n&&o){n=i.length==2?function(t){i(e,t)}:i}a[e]=n&&function(t){n("[xmldom "+e+"]\t"+t+s(r))}||function(){}}e("warning");e("error");e("fatalError");return a}function c(){this.cdata=false}function f(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber}c.prototype={startDocument:function t(){this.doc=(new i).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function t(e,n,i,r){var a=this.doc;var o=a.createElementNS(e,i||n);var s=r.length;h(this,o);this.currentElement=o;this.locator&&f(this.locator,o);for(var u=0;u<s;u++){var e=r.getURI(u);var l=r.getValue(u);var i=r.getQName(u);var c=a.createAttributeNS(e,i);this.locator&&f(r.getLocator(u),c);c.value=c.nodeValue=l;o.setAttributeNode(c)}},endElement:function t(e,n,i){var r=this.currentElement;var a=r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function t(e,n){},endPrefixMapping:function t(e){},processingInstruction:function t(e,n){var i=this.doc.createProcessingInstruction(e,n);this.locator&&f(this.locator,i);h(this,i)},ignorableWhitespace:function t(e,n,i){},characters:function t(e,n,i){e=a.apply(this,arguments);if(e){if(this.cdata){var r=this.doc.createCDATASection(e)}else{var r=this.doc.createTextNode(e)}if(this.currentElement){this.currentElement.appendChild(r)}else if(/^\s*$/.test(e)){this.doc.appendChild(r)}this.locator&&f(this.locator,r)}},skippedEntity:function t(e){},endDocument:function t(){this.doc.normalize()},setDocumentLocator:function t(e){if(this.locator=e){e.lineNumber=0}},comment:function t(e,n,i){e=a.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&f(this.locator,r);h(this,r)},startCDATA:function t(){this.cdata=true},endCDATA:function t(){this.cdata=false},startDTD:function t(e,n,i){var r=this.doc.implementation;if(r&&r.createDocumentType){var a=r.createDocumentType(e,n,i);this.locator&&f(this.locator,a);h(this,a)}},warning:function t(e){console.warn("[xmldom warning]\t"+e,s(this.locator))},error:function t(e){console.error("[xmldom error]\t"+e,s(this.locator))},fatalError:function t(e){console.error("[xmldom fatalError]\t"+e,s(this.locator));throw e}};function s(t){if(t){return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}}function a(t,e,n){if(typeof t=="string"){return t.substr(e,n)}else{if(t.length>=e+n||e){return new java.lang.String(t,e,n)+""}return t}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){c.prototype[t]=function(){return null}});function h(t,e){if(!t.currentElement){t.doc.appendChild(e)}else{t.currentElement.appendChild(e)}}var d=cT.XMLReader;var i=e.DOMImplementation=PP.DOMImplementation;e.XMLSerializer=PP.XMLSerializer;e.DOMParser=n});function BP(t,e,n){if(t==null&&e==null&&n==null){var i=document.querySelectorAll("svg");for(var r=0;r<i.length;r++){var a=i[r];var o=document.createElement("canvas");o.width=a.clientWidth;o.height=a.clientHeight;a.parentNode.insertBefore(o,a);a.parentNode.removeChild(a);var s=document.createElement("div");s.appendChild(a);BP(o,s.innerHTML)}return}if(typeof t=="string"){t=document.getElementById(t)}if(t.svg!=null)t.svg.stop();var u=zP(n||{});if(!(t.childNodes.length==1&&t.childNodes[0].nodeName=="OBJECT"))t.svg=u;var l=t.getContext("2d");if(typeof e.documentElement!="undefined"){u.loadXmlDoc(l,e)}else if(e.substr(0,1)=="<"){u.loadXml(l,e)}else{u.load(l,e)}}function DP(){var t;if(typeof Element.prototype.matches!="undefined"){t=function t(e,n){return e.matches(n)}}else if(typeof Element.prototype.webkitMatchesSelector!="undefined"){t=function t(e,n){return e.webkitMatchesSelector(n)}}else if(typeof Element.prototype.mozMatchesSelector!="undefined"){t=function t(e,n){return e.mozMatchesSelector(n)}}else if(typeof Element.prototype.msMatchesSelector!="undefined"){t=function t(e,n){return e.msMatchesSelector(n)}}else if(typeof Element.prototype.oMatchesSelector!="undefined"){t=function t(e,n){return e.oMatchesSelector(n)}}else{if(typeof jQuery=="function"||typeof Zepto=="function"){t=function t(e,n){return $(e).is(n)}}if(typeof t=="undefined"){t=Sizzle.matchesSelector}}return t}function NP(r){var a=[0,0,0];var t=/(\[[^\]]+\])/g;var e=/(#[^\s\+>~\.\[:]+)/g;var n=/(\.[^\s\+>~\.\[:]+)/g;var i=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi;var o=/(:[\w-]+\([^\)]*\))/gi;var s=/(:[^\s\+>~\.\[:]+)/g;var u=/([^\s\+>~\.\[:]+)/g;var l=function t(e,n){var i=r.match(e);if(i==null){return}a[n]+=i.length;r=r.replace(e," ")};r=r.replace(/:not\(([^\)]*)\)/g," $1 ");r=r.replace(/{[^]*/gm," ");l(t,1);l(e,0);l(n,1);l(i,2);l(o,1);l(s,1);r=r.replace(/[\*\s\+>~]/g," ");r=r.replace(/[#\.]/g," ");l(u,2);return a.join("")}function zP(t){var O={opts:t};var l=DP();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(t,e,n,i,r,a){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:e,offsetY:n,scaleWidth:i,scaleHeight:r};for(var s in a){if(a.hasOwnProperty(s)){o[s]=a[s]}}BP(this.canvas,t,o)}}O.FRAMERATE=30;O.MAX_VIRTUAL_PIXELS=3e4;O.log=function(t){};if(O.opts.log==true&&typeof console!="undefined"){O.log=function(t){console.log(t)}}O.init=function(t){var e=0;O.UniqueId=function(){e++;return"canvg"+e};O.Definitions={};O.Styles={};O.StylesSpecificity={};O.Animations=[];O.Images=[];O.ctx=t;O.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})};this.RemoveCurrent=function(){this.viewPorts.pop()};this.Current=function(){return this.viewPorts[this.viewPorts.length-1]};this.width=function(){return this.Current().width};this.height=function(){return this.Current().height};this.ComputeSize=function(t){if(t!=null&&typeof t=="number")return t;if(t=="x")return this.width();if(t=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};O.init();O.ImagesLoaded=function(){for(var t=0;t<O.Images.length;t++){if(!O.Images[t].loaded)return false}return true};O.trim=function(t){return t.replace(/^\s+|\s+$/g,"")};O.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")};O.ajax=function(t){var e;if(window.XMLHttpRequest){e=new XMLHttpRequest}else{e=new ActiveXObject("Microsoft.XMLHTTP")}if(e){e.open("GET",t,false);e.send(null);return e.responseText}return null};O.parseXml=function(t){if(typeof Windows!="undefined"&&typeof Windows.Data!="undefined"&&typeof Windows.Data.Xml!="undefined"){var e=new Windows.Data.Xml.Dom.XmlDocument;var n=new Windows.Data.Xml.Dom.XmlLoadSettings;n.prohibitDtd=false;e.loadXml(t,n);return e}else if(window.DOMParser){var i=new DOMParser;return i.parseFromString(t,"text/xml")}else{t=t.replace(/<!DOCTYPE svg[^>]*>/,"");var e=new ActiveXObject("Microsoft.XMLDOM");e.async="false";e.loadXML(t);return e}};O.Property=function(t,e){this.name=t;this.value=e};O.Property.prototype.getValue=function(){return this.value};O.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};O.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);if((this.value+"").match(/%$/)){t=t/100}return t};O.Property.prototype.valueOrDefault=function(t){if(this.hasValue())return this.value;return t};O.Property.prototype.numValueOrDefault=function(t){if(this.hasValue())return this.numValue();return t};O.Property.prototype.addOpacity=function(t){var e=this.value;if(t.value!=null&&t.value!=""&&typeof this.value=="string"){var n=new BM(this.value);if(n.ok){e="rgba("+n.r+", "+n.g+", "+n.b+", "+t.numValue()+")"}}return new O.Property(this.name,e)};O.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);if(t){t=t[1]}if(!t){t=this.value}return O.Definitions[t]};O.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};O.Property.prototype.getFillStyleDefinition=function(t,e){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(O.ctx,t,e)}if(n!=null&&n.createPattern){if(n.getHrefAttribute().hasValue()){var i=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition();if(i.hasValue()){n.attribute("patternTransform",true).value=i.value}}return n.createPattern(O.ctx,t)}return null};O.Property.prototype.getDPI=function(t){return 96};O.Property.prototype.getEM=function(t){var e=12;var n=new O.Property("fontSize",O.Font.Parse(O.ctx.font).fontSize);if(n.hasValue())e=n.toPixels(t);return e};O.Property.prototype.getUnits=function(){var t=this.value+"";return t.replace(/[0-9\.\-]/g,"")};O.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(t);if(n.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(t);if(n.match(/%$/))return this.numValue()*O.ViewPort.ComputeSize(t);var i=this.numValue();if(e&&i<1)return i*O.ViewPort.ComputeSize(t);return i};O.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/s$/))return this.numValue()*1e3;if(t.match(/ms$/))return this.numValue();return this.numValue()};O.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/deg$/))return this.numValue()*(Math.PI/180);if(t.match(/grad$/))return this.numValue()*(Math.PI/200);if(t.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var e={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};O.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return e[this.value]};O.Font=new function(){this.Styles="normal|italic|oblique|inherit";this.Variants="normal|small-caps|inherit";this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";this.CreateFont=function(t,e,n,i,r,a){var o=a!=null?this.Parse(a):this.CreateFont("","","","","",O.ctx.font);return{fontFamily:r||o.fontFamily,fontSize:i||o.fontSize,fontStyle:t||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:e||o.fontVariant,toString:function t(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(t){var e={};var n=O.trim(O.compressSpaces(t||"")).split(" ");var i={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var r="";for(var a=0;a<n.length;a++){if(!i.fontStyle&&o.Styles.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontStyle=n[a];i.fontStyle=true}else if(!i.fontVariant&&o.Variants.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontVariant=n[a];i.fontStyle=i.fontVariant=true}else if(!i.fontWeight&&o.Weights.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontWeight=n[a];i.fontStyle=i.fontVariant=i.fontWeight=true}else if(!i.fontSize){if(n[a]!="inherit")e.fontSize=n[a].split("/")[0];i.fontStyle=i.fontVariant=i.fontWeight=i.fontSize=true}else{if(n[a]!="inherit")r+=n[a]}}if(r!="")e.fontFamily=r;return e}};O.ToNumberArray=function(t){var e=O.trim(O.compressSpaces((t||"").replace(/,/g," "))).split(" ");for(var n=0;n<e.length;n++){e[n]=parseFloat(e[n])}return e};O.Point=function(t,e){this.x=t;this.y=e};O.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)};O.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4];var n=this.x*t[1]+this.y*t[3]+t[5];this.x=e;this.y=n};O.CreatePoint=function(t){var e=O.ToNumberArray(t);return new O.Point(e[0],e[1])};O.CreatePath=function(t){var e=O.ToNumberArray(t);var n=[];for(var i=0;i<e.length;i+=2){n.push(new O.Point(e[i],e[i+1]))}return n};O.BoundingBox=function(t,e,n,i){this.x1=Number.NaN;this.y1=Number.NaN;this.x2=Number.NaN;this.y2=Number.NaN;this.x=function(){return this.x1};this.y=function(){return this.y1};this.width=function(){return this.x2-this.x1};this.height=function(){return this.y2-this.y1};this.addPoint=function(t,e){if(t!=null){if(isNaN(this.x1)||isNaN(this.x2)){this.x1=t;this.x2=t}if(t<this.x1)this.x1=t;if(t>this.x2)this.x2=t}if(e!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=e;this.y2=e}if(e<this.y1)this.y1=e;if(e>this.y2)this.y2=e}};this.addX=function(t){this.addPoint(t,null)};this.addY=function(t){this.addPoint(null,t)};this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1);this.addPoint(t.x2,t.y2)};this.addQuadraticCurve=function(t,e,n,i,r,a){var o=t+2/3*(n-t);var s=e+2/3*(i-e);var u=o+1/3*(r-t);var l=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,l,r,a)};this.addBezierCurve=function(t,e,n,i,r,a,o,s){var u=[t,e],l=[n,i],c=[r,a],f=[o,s];this.addPoint(u[0],u[1]);this.addPoint(f[0],f[1]);for(var h=0;h<=1;h++){var d=function t(e){return Math.pow(1-e,3)*u[h]+3*Math.pow(1-e,2)*e*l[h]+3*(1-e)*Math.pow(e,2)*c[h]+Math.pow(e,3)*f[h]};var g=6*u[h]-12*l[h]+6*c[h];var p=-3*u[h]+9*l[h]-9*c[h]+3*f[h];var v=3*l[h]-3*u[h];if(p==0){if(g==0)continue;var m=-v/g;if(0<m&&m<1){if(h==0)this.addX(d(m));if(h==1)this.addY(d(m))}continue}var y=Math.pow(g,2)-4*v*p;if(y<0)continue;var _=(-g+Math.sqrt(y))/(2*p);if(0<_&&_<1){if(h==0)this.addX(d(_));if(h==1)this.addY(d(_))}var b=(-g-Math.sqrt(y))/(2*p);if(0<b&&b<1){if(h==0)this.addX(d(b));if(h==1)this.addY(d(b))}}};this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2};this.addPoint(t,e);this.addPoint(n,i)};O.Transform=function(t){var e=this;this.Type={};this.Type.translate=function(t){this.p=O.CreatePoint(t);this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)};this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)};this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}};this.Type.rotate=function(t){var e=O.ToNumberArray(t);this.angle=new O.Property("angle",e[0]);this.cx=e[1]||0;this.cy=e[2]||0;this.apply=function(t){t.translate(this.cx,this.cy);t.rotate(this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.unapply=function(t){t.translate(this.cx,this.cy);t.rotate(-1*this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]);t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]);t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}};this.Type.scale=function(t){this.p=O.CreatePoint(t);this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)};this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)};this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}};this.Type.matrix=function(t){this.m=O.ToNumberArray(t);this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};this.unapply=function(t){var e=this.m[0];var n=this.m[2];var i=this.m[4];var r=this.m[1];var a=this.m[3];var o=this.m[5];var s=0;var u=0;var l=1;var c=1/(e*(a*l-o*u)-n*(r*l-o*s)+i*(r*u-a*s));t.transform(c*(a*l-o*u),c*(o*s-r*l),c*(i*u-n*l),c*(e*l-i*s),c*(n*o-i*a),c*(i*r-e*o))};this.applyToPoint=function(t){t.applyTransform(this.m)}};this.Type.SkewBase=function(t){this.base=e.Type.matrix;this.base(t);this.angle=new O.Property("angle",t)};this.Type.SkewBase.prototype=new this.Type.matrix;this.Type.skewX=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]};this.Type.skewX.prototype=new this.Type.SkewBase;this.Type.skewY=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]};this.Type.skewY.prototype=new this.Type.SkewBase;this.transforms=[];this.apply=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].apply(t)}};this.unapply=function(t){for(var e=this.transforms.length-1;e>=0;e--){this.transforms[e].unapply(t)}};this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].applyToPoint(t)}};var n=O.trim(O.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);for(var i=0;i<n.length;i++){var r=O.trim(n[i].split("(")[0]);var a=n[i].split("(")[1].replace(")","");var o=this.Type[r];if(typeof o!="undefined"){var s=new o(a);s.type=r;this.transforms.push(s)}}};O.AspectRatio=function(t,e,n,i,r,a,o,s,u,l){e=O.compressSpaces(e);e=e.replace(/^defer\s/,"");var c=e.split(" ")[0]||"xMidYMid";var f=e.split(" ")[1]||"meet";var h=n/i;var d=r/a;var g=Math.min(h,d);var p=Math.max(h,d);if(f=="meet"){i*=g;a*=g}if(f=="slice"){i*=p;a*=p}u=new O.Property("refX",u);l=new O.Property("refY",l);if(u.hasValue()&&l.hasValue()){t.translate(-g*u.toPixels("x"),-g*l.toPixels("y"))}else{if(c.match(/^xMid/)&&(f=="meet"&&g==d||f=="slice"&&p==d))t.translate(n/2-i/2,0);if(c.match(/YMid$/)&&(f=="meet"&&g==h||f=="slice"&&p==h))t.translate(0,r/2-a/2);if(c.match(/^xMax/)&&(f=="meet"&&g==d||f=="slice"&&p==d))t.translate(n-i,0);if(c.match(/YMax$/)&&(f=="meet"&&g==h||f=="slice"&&p==h))t.translate(0,r-a)}if(c=="none")t.scale(h,d);else if(f=="meet")t.scale(g,g);else if(f=="slice")t.scale(p,p);t.translate(o==null?0:-o,s==null?0:-s)};O.Element={};O.EmptyProperty=new O.Property("EMPTY","");O.Element.ElementBase=function(a){this.attributes={};this.styles={};this.stylesSpecificity={};this.children=[];this.attribute=function(t,e){var n=this.attributes[t];if(n!=null)return n;if(e==true){n=new O.Property(t,"");this.attributes[t]=n}return n||O.EmptyProperty};this.getHrefAttribute=function(){for(var t in this.attributes){if(t=="href"||t.match(/:href$/)){return this.attributes[t]}}return O.EmptyProperty};this.style=function(t,e,n){var i=this.styles[t];if(i!=null)return i;var r=this.attribute(t);if(r!=null&&r.hasValue()){this.styles[t]=r;return r}if(n!=true){var a=this.parent;if(a!=null){var o=a.style(t);if(o!=null&&o.hasValue()){return o}}}if(e==true){i=new O.Property(t,"");this.styles[t]=i}return i||O.EmptyProperty};this.render=function(t){if(this.style("display").value=="none")return;if(this.style("visibility").value=="hidden")return;t.save();if(this.style("mask").hasValue()){var e=this.style("mask").getDefinition();if(e!=null)e.apply(t,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();if(n!=null)n.apply(t,this)}else{this.setContext(t);this.renderChildren(t);this.clearContext(t)}t.restore()};this.setContext=function(t){};this.clearContext=function(t){};this.renderChildren=function(t){for(var e=0;e<this.children.length;e++){this.children[e].render(t)}};this.addChild=function(t,e){var n=t;if(e)n=O.CreateElement(t);n.parent=this;if(n.type!="title"){this.children.push(n)}};this.addStylesFromStyleDefinition=function(){for(var t in O.Styles){if(t[0]!="@"&&l(a,t)){var e=O.Styles[t];var n=O.StylesSpecificity[t];if(e!=null){for(var i in e){var r=this.stylesSpecificity[i];if(typeof r=="undefined"){r="000"}if(n>r){this.styles[i]=e[i];this.stylesSpecificity[i]=n}}}}}};if(a!=null&&a.nodeType==1){for(var t=0;t<a.attributes.length;t++){var e=a.attributes[t];this.attributes[e.nodeName]=new O.Property(e.nodeName,e.value)}this.addStylesFromStyleDefinition();if(this.attribute("style").hasValue()){var n=this.attribute("style").value.split(";");for(var t=0;t<n.length;t++){if(O.trim(n[t])!=""){var i=n[t].split(":");var r=O.trim(i[0]);var o=O.trim(i[1]);this.styles[r]=new O.Property(r,o)}}}if(this.attribute("id").hasValue()){if(O.Definitions[this.attribute("id").value]==null){O.Definitions[this.attribute("id").value]=this}}for(var t=0;t<a.childNodes.length;t++){var s=a.childNodes[t];if(s.nodeType==1)this.addChild(s,true);if(this.captureTextNodes&&(s.nodeType==3||s.nodeType==4)){var u=s.value||s.text||s.textContent||"";if(O.compressSpaces(u)!=""){this.addChild(new O.Element.tspan(s),false)}}}}};O.Element.RenderedElementBase=function(t){this.base=O.Element.ElementBase;this.base(t);this.setContext=function(t){if(this.style("fill").isUrlDefinition()){var e=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));if(e!=null)t.fillStyle=e}else if(this.style("fill").hasValue()){var n=this.style("fill");if(n.value=="currentColor")n.value=this.style("color").value;if(n.value!="inherit")t.fillStyle=n.value=="none"?"rgba(0,0,0,0)":n.value}if(this.style("fill-opacity").hasValue()){var n=new O.Property("fill",t.fillStyle);n=n.addOpacity(this.style("fill-opacity"));t.fillStyle=n.value}if(this.style("stroke").isUrlDefinition()){var e=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));if(e!=null)t.strokeStyle=e}else if(this.style("stroke").hasValue()){var i=this.style("stroke");if(i.value=="currentColor")i.value=this.style("color").value;if(i.value!="inherit")t.strokeStyle=i.value=="none"?"rgba(0,0,0,0)":i.value}if(this.style("stroke-opacity").hasValue()){var i=new O.Property("stroke",t.strokeStyle);i=i.addOpacity(this.style("stroke-opacity"));t.strokeStyle=i.value}if(this.style("stroke-width").hasValue()){var r=this.style("stroke-width").toPixels();t.lineWidth=r==0?.001:r}if(this.style("stroke-linecap").hasValue())t.lineCap=this.style("stroke-linecap").value;if(this.style("stroke-linejoin").hasValue())t.lineJoin=this.style("stroke-linejoin").value;if(this.style("stroke-miterlimit").hasValue())t.miterLimit=this.style("stroke-miterlimit").value;if(this.style("stroke-dasharray").hasValue()&&this.style("stroke-dasharray").value!="none"){var a=O.ToNumberArray(this.style("stroke-dasharray").value);if(typeof t.setLineDash!="undefined"){t.setLineDash(a)}else if(typeof t.webkitLineDash!="undefined"){t.webkitLineDash=a}else if(typeof t.mozDash!="undefined"&&!(a.length==1&&a[0]==0)){t.mozDash=a}var o=this.style("stroke-dashoffset").numValueOrDefault(1);if(typeof t.lineDashOffset!="undefined"){t.lineDashOffset=o}else if(typeof t.webkitLineDashOffset!="undefined"){t.webkitLineDashOffset=o}else if(typeof t.mozDashOffset!="undefined"){t.mozDashOffset=o}}if(typeof t.font!="undefined"){t.font=O.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()}if(this.style("transform",false,true).hasValue()){var s=new O.Transform(this.style("transform",false,true).value);s.apply(t)}if(this.style("clip-path",false,true).hasValue()){var u=this.style("clip-path",false,true).getDefinition();if(u!=null)u.apply(t)}if(this.style("opacity").hasValue()){t.globalAlpha=this.style("opacity").numValue()}}};O.Element.RenderedElementBase.prototype=new O.Element.ElementBase;O.Element.PathElementBase=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.path=function(t){if(t!=null)t.beginPath();return new O.BoundingBox};this.renderChildren=function(t){this.path(t);O.Mouse.checkPath(this,t);if(t.fillStyle!=""){if(this.style("fill-rule").valueOrDefault("inherit")!="inherit"){t.fill(this.style("fill-rule").value)}else{t.fill()}}if(t.strokeStyle!="")t.stroke();var e=this.getMarkers();if(e!=null){if(this.style("marker-start").isUrlDefinition()){var n=this.style("marker-start").getDefinition();n.render(t,e[0][0],e[0][1])}if(this.style("marker-mid").isUrlDefinition()){var n=this.style("marker-mid").getDefinition();for(var i=1;i<e.length-1;i++){n.render(t,e[i][0],e[i][1])}}if(this.style("marker-end").isUrlDefinition()){var n=this.style("marker-end").getDefinition();n.render(t,e[e.length-1][0],e[e.length-1][1])}}};this.getBoundingBox=function(){return this.path()};this.getMarkers=function(){return null}};O.Element.PathElementBase.prototype=new O.Element.RenderedElementBase;O.Element.svg=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.baseClearContext=this.clearContext;this.clearContext=function(t){this.baseClearContext(t);O.ViewPort.RemoveCurrent()};this.baseSetContext=this.setContext;this.setContext=function(t){t.strokeStyle="rgba(0,0,0,0)";t.lineCap="butt";t.lineJoin="miter";t.miterLimit=4;if(typeof t.font!="undefined"&&typeof window.getComputedStyle!="undefined"){t.font=window.getComputedStyle(t.canvas).getPropertyValue("font")}this.baseSetContext(t);if(!this.attribute("x").hasValue())this.attribute("x",true).value=0;if(!this.attribute("y").hasValue())this.attribute("y",true).value=0;t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var e=O.ViewPort.width();var n=O.ViewPort.height();if(!this.attribute("width").hasValue())this.attribute("width",true).value="100%";if(!this.attribute("height").hasValue())this.attribute("height",true).value="100%";if(typeof this.root=="undefined"){e=this.attribute("width").toPixels("x");n=this.attribute("height").toPixels("y");var i=0;var r=0;if(this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()){i=-this.attribute("refX").toPixels("x");r=-this.attribute("refY").toPixels("y")}if(this.attribute("overflow").valueOrDefault("hidden")!="visible"){t.beginPath();t.moveTo(i,r);t.lineTo(e,r);t.lineTo(e,n);t.lineTo(i,n);t.closePath();t.clip()}}O.ViewPort.SetCurrent(e,n);if(this.attribute("viewBox").hasValue()){var a=O.ToNumberArray(this.attribute("viewBox").value);var o=a[0];var s=a[1];e=a[2];n=a[3];O.AspectRatio(t,this.attribute("preserveAspectRatio").value,O.ViewPort.width(),e,O.ViewPort.height(),n,o,s,this.attribute("refX").value,this.attribute("refY").value);O.ViewPort.RemoveCurrent();O.ViewPort.SetCurrent(a[2],a[3])}}};O.Element.svg.prototype=new O.Element.RenderedElementBase;O.Element.rect=function(t){this.base=O.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");var a=this.attribute("rx").toPixels("x");var o=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue())o=a;if(this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue())a=o;a=Math.min(a,i/2);o=Math.min(o,r/2);if(t!=null){t.beginPath();t.moveTo(e+a,n);t.lineTo(e+i-a,n);t.quadraticCurveTo(e+i,n,e+i,n+o);t.lineTo(e+i,n+r-o);t.quadraticCurveTo(e+i,n+r,e+i-a,n+r);t.lineTo(e+a,n+r);t.quadraticCurveTo(e,n+r,e,n+r-o);t.lineTo(e,n+o);t.quadraticCurveTo(e,n,e+a,n);t.closePath()}return new O.BoundingBox(e,n,e+i,n+r)}};O.Element.rect.prototype=new O.Element.PathElementBase;O.Element.circle=function(t){this.base=O.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("cx").toPixels("x");var n=this.attribute("cy").toPixels("y");var i=this.attribute("r").toPixels();if(t!=null){t.beginPath();t.arc(e,n,i,0,Math.PI*2,true);t.closePath()}return new O.BoundingBox(e-i,n-i,e+i,n+i)}};O.Element.circle.prototype=new O.Element.PathElementBase;O.Element.ellipse=function(t){this.base=O.Element.PathElementBase;this.base(t);this.path=function(t){var e=4*((Math.sqrt(2)-1)/3);var n=this.attribute("rx").toPixels("x");var i=this.attribute("ry").toPixels("y");var r=this.attribute("cx").toPixels("x");var a=this.attribute("cy").toPixels("y");if(t!=null){t.beginPath();t.moveTo(r,a-i);t.bezierCurveTo(r+e*n,a-i,r+n,a-e*i,r+n,a);t.bezierCurveTo(r+n,a+e*i,r+e*n,a+i,r,a+i);t.bezierCurveTo(r-e*n,a+i,r-n,a+e*i,r-n,a);t.bezierCurveTo(r-n,a-e*i,r-e*n,a-i,r,a-i);t.closePath()}return new O.BoundingBox(r-n,a-i,r+n,a+i)}};O.Element.ellipse.prototype=new O.Element.PathElementBase;O.Element.line=function(t){this.base=O.Element.PathElementBase;this.base(t);this.getPoints=function(){return[new O.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new O.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]};this.path=function(t){var e=this.getPoints();if(t!=null){t.beginPath();t.moveTo(e[0].x,e[0].y);t.lineTo(e[1].x,e[1].y)}return new O.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)};this.getMarkers=function(){var t=this.getPoints();var e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}};O.Element.line.prototype=new O.Element.PathElementBase;O.Element.polyline=function(t){this.base=O.Element.PathElementBase;this.base(t);this.points=O.CreatePath(this.attribute("points").value);this.path=function(t){var e=new O.BoundingBox(this.points[0].x,this.points[0].y);if(t!=null){t.beginPath();t.moveTo(this.points[0].x,this.points[0].y)}for(var n=1;n<this.points.length;n++){e.addPoint(this.points[n].x,this.points[n].y);if(t!=null)t.lineTo(this.points[n].x,this.points[n].y)}return e};this.getMarkers=function(){var t=[];for(var e=0;e<this.points.length-1;e++){t.push([this.points[e],this.points[e].angleTo(this.points[e+1])])}if(t.length>0){t.push([this.points[this.points.length-1],t[t.length-1][1]])}return t}};O.Element.polyline.prototype=new O.Element.PathElementBase;O.Element.polygon=function(t){this.base=O.Element.polyline;this.base(t);this.basePath=this.path;this.path=function(t){var e=this.basePath(t);if(t!=null){t.lineTo(this.points[0].x,this.points[0].y);t.closePath()}return e}};O.Element.polygon.prototype=new O.Element.polyline;O.Element.path=function(t){this.base=O.Element.PathElementBase;this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var n=0;n<2;n++){e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");e=e.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");e=O.compressSpaces(e);e=O.trim(e);this.PathParser=new function(t){this.tokens=t.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new O.Point(0,0);this.control=new O.Point(0,0);this.current=new O.Point(0,0);this.points=[];this.angles=[]};this.isEnd=function(){return this.i>=this.tokens.length-1};this.isCommandOrEnd=function(){if(this.isEnd())return true;return this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null};this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return true}return false};this.getToken=function(){this.i++;return this.tokens[this.i]};this.getScalar=function(){return parseFloat(this.getToken())};this.nextCommand=function(){this.previousCommand=this.command;this.command=this.getToken()};this.getPoint=function(){var t=new O.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)};this.getAsControlPoint=function(){var t=this.getPoint();this.control=t;return t};this.getAsCurrentPoint=function(){var t=this.getPoint();this.current=t;return t};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var t=new O.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return t};this.makeAbsolute=function(t){if(this.isRelativeCommand()){t.x+=this.current.x;t.y+=this.current.y}return t};this.addMarker=function(t,e,n){if(n!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null){this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)}this.addMarkerAngle(t,e==null?null:e.angleTo(t))};this.addMarkerAngle=function(t,e){this.points.push(t);this.angles.push(e)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++){if(this.angles[t]==null){for(var e=t+1;e<this.angles.length;e++){if(this.angles[e]!=null){this.angles[t]=this.angles[e];break}}}}return this.angles}}(e);this.path=function(t){var e=this.PathParser;e.reset();var n=new O.BoundingBox;if(t!=null)t.beginPath();while(!e.isEnd()){e.nextCommand();switch(e.command){case"M":case"m":var i=e.getAsCurrentPoint();e.addMarker(i);n.addPoint(i.x,i.y);if(t!=null)t.moveTo(i.x,i.y);e.start=e.current;while(!e.isCommandOrEnd()){var i=e.getAsCurrentPoint();e.addMarker(i,e.start);n.addPoint(i.x,i.y);if(t!=null)t.lineTo(i.x,i.y)}break;case"L":case"l":while(!e.isCommandOrEnd()){var r=e.current;var i=e.getAsCurrentPoint();e.addMarker(i,r);n.addPoint(i.x,i.y);if(t!=null)t.lineTo(i.x,i.y)}break;case"H":case"h":while(!e.isCommandOrEnd()){var a=new O.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":while(!e.isCommandOrEnd()){var a=new O.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"S":case"s":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getReflectedControlPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"Q":case"q":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"T":case"t":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getReflectedControlPoint();e.control=u;var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"A":case"a":while(!e.isCommandOrEnd()){var o=e.current;var c=e.getScalar();var f=e.getScalar();var h=e.getScalar()*(Math.PI/180);var d=e.getScalar();var g=e.getScalar();var l=e.getAsCurrentPoint();var p=new O.Point(Math.cos(h)*(o.x-l.x)/2+Math.sin(h)*(o.y-l.y)/2,-Math.sin(h)*(o.x-l.x)/2+Math.cos(h)*(o.y-l.y)/2);var v=Math.pow(p.x,2)/Math.pow(c,2)+Math.pow(p.y,2)/Math.pow(f,2);if(v>1){c*=Math.sqrt(v);f*=Math.sqrt(v)}var m=(d==g?-1:1)*Math.sqrt((Math.pow(c,2)*Math.pow(f,2)-Math.pow(c,2)*Math.pow(p.y,2)-Math.pow(f,2)*Math.pow(p.x,2))/(Math.pow(c,2)*Math.pow(p.y,2)+Math.pow(f,2)*Math.pow(p.x,2)));if(isNaN(m))m=0;var y=new O.Point(m*c*p.y/f,m*-f*p.x/c);var _=new O.Point((o.x+l.x)/2+Math.cos(h)*y.x-Math.sin(h)*y.y,(o.y+l.y)/2+Math.sin(h)*y.x+Math.cos(h)*y.y);var b=function t(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))};var w=function t(e,n){return(e[0]*n[0]+e[1]*n[1])/(b(e)*b(n))};var x=function t(e,n){return(e[0]*n[1]<e[1]*n[0]?-1:1)*Math.acos(w(e,n))};var k=x([1,0],[(p.x-y.x)/c,(p.y-y.y)/f]);var S=[(p.x-y.x)/c,(p.y-y.y)/f];var C=[(-p.x-y.x)/c,(-p.y-y.y)/f];var E=x(S,C);if(w(S,C)<=-1)E=Math.PI;if(w(S,C)>=1)E=0;var A=1-g?1:-1;var R=k+A*(E/2);var M=new O.Point(_.x+c*Math.cos(R),_.y+f*Math.sin(R));e.addMarkerAngle(M,R-A*Math.PI/2);e.addMarkerAngle(l,R-A*Math.PI);n.addPoint(l.x,l.y);if(t!=null){var w=c>f?c:f;var T=c>f?1:c/f;var P=c>f?f/c:1;t.translate(_.x,_.y);t.rotate(h);t.scale(T,P);t.arc(0,0,w,k,k+E,1-g);t.scale(1/T,1/P);t.rotate(-h);t.translate(-_.x,-_.y)}}break;case"Z":case"z":if(t!=null)t.closePath();e.current=e.start}}return n};this.getMarkers=function(){var t=this.PathParser.getMarkerPoints();var e=this.PathParser.getMarkerAngles();var n=[];for(var i=0;i<t.length;i++){n.push([t[i],e[i]])}return n}};O.Element.path.prototype=new O.Element.PathElementBase;O.Element.pattern=function(t){this.base=O.Element.ElementBase;this.base(t);this.createPattern=function(t,e){var n=this.attribute("width").toPixels("x",true);var i=this.attribute("height").toPixels("y",true);var r=new O.Element.svg;r.attributes["viewBox"]=new O.Property("viewBox",this.attribute("viewBox").value);r.attributes["width"]=new O.Property("width",n+"px");r.attributes["height"]=new O.Property("height",i+"px");r.attributes["transform"]=new O.Property("transform",this.attribute("patternTransform").value);r.children=this.children;var a=document.createElement("canvas");a.width=n;a.height=i;var o=a.getContext("2d");if(this.attribute("x").hasValue()&&this.attribute("y").hasValue()){o.translate(this.attribute("x").toPixels("x",true),this.attribute("y").toPixels("y",true))}for(var s=-1;s<=1;s++){for(var u=-1;u<=1;u++){o.save();r.attributes["x"]=new O.Property("x",s*a.width);r.attributes["y"]=new O.Property("y",u*a.height);r.render(o);o.restore()}}var l=t.createPattern(a,"repeat");return l}};O.Element.pattern.prototype=new O.Element.ElementBase;O.Element.marker=function(t){this.base=O.Element.ElementBase;this.base(t);this.baseRender=this.render;this.render=function(t,e,n){t.translate(e.x,e.y);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(n);if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(t.lineWidth,t.lineWidth);t.save();var i=new O.Element.svg;i.attributes["viewBox"]=new O.Property("viewBox",this.attribute("viewBox").value);i.attributes["refX"]=new O.Property("refX",this.attribute("refX").value);i.attributes["refY"]=new O.Property("refY",this.attribute("refY").value);i.attributes["width"]=new O.Property("width",this.attribute("markerWidth").value);i.attributes["height"]=new O.Property("height",this.attribute("markerHeight").value);i.attributes["fill"]=new O.Property("fill",this.attribute("fill").valueOrDefault("black"));i.attributes["stroke"]=new O.Property("stroke",this.attribute("stroke").valueOrDefault("none"));i.children=this.children;i.render(t);t.restore();if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(1/t.lineWidth,1/t.lineWidth);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(-n);t.translate(-e.x,-e.y)}};O.Element.marker.prototype=new O.Element.ElementBase;O.Element.defs=function(t){this.base=O.Element.ElementBase;this.base(t);this.render=function(t){}};O.Element.defs.prototype=new O.Element.ElementBase;O.Element.GradientBase=function(t){this.base=O.Element.ElementBase;this.base(t);this.stops=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="stop")this.stops.push(n)}this.getGradient=function(){};this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")};this.attributesToInherit=["gradientUnits"];this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var n=this.attributesToInherit[e];if(!this.attribute(n).hasValue()&&t.attribute(n).hasValue()){this.attribute(n,true).value=t.attribute(n).value}}};this.createGradient=function(t,e,i){var n=this;if(this.getHrefAttribute().hasValue()){n=this.getHrefAttribute().getDefinition();this.inheritStopContainer(n)}var r=function t(e){if(i.hasValue()){var n=new O.Property("color",e);return n.addOpacity(i).value}return e};var a=this.getGradient(t,e);if(a==null)return r(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++){a.addColorStop(n.stops[o].offset,r(n.stops[o].color))}if(this.attribute("gradientTransform").hasValue()){var s=O.ViewPort.viewPorts[0];var u=new O.Element.rect;u.attributes["x"]=new O.Property("x",-O.MAX_VIRTUAL_PIXELS/3);u.attributes["y"]=new O.Property("y",-O.MAX_VIRTUAL_PIXELS/3);u.attributes["width"]=new O.Property("width",O.MAX_VIRTUAL_PIXELS);u.attributes["height"]=new O.Property("height",O.MAX_VIRTUAL_PIXELS);var l=new O.Element.g;l.attributes["transform"]=new O.Property("transform",this.attribute("gradientTransform").value);l.children=[u];var c=new O.Element.svg;c.attributes["x"]=new O.Property("x",0);c.attributes["y"]=new O.Property("y",0);c.attributes["width"]=new O.Property("width",s.width);c.attributes["height"]=new O.Property("height",s.height);c.children=[l];var f=document.createElement("canvas");f.width=s.width;f.height=s.height;var h=f.getContext("2d");h.fillStyle=a;c.render(h);return h.createPattern(f,"no-repeat")}return a}};O.Element.GradientBase.prototype=new O.Element.ElementBase;O.Element.linearGradient=function(t){this.base=O.Element.GradientBase;this.base(t);this.attributesToInherit.push("x1");this.attributesToInherit.push("y1");this.attributesToInherit.push("x2");this.attributesToInherit.push("y2");this.getGradient=function(t,e){var n=this.gradientUnits()=="objectBoundingBox"?e.getBoundingBox():null;if(!this.attribute("x1").hasValue()&&!this.attribute("y1").hasValue()&&!this.attribute("x2").hasValue()&&!this.attribute("y2").hasValue()){this.attribute("x1",true).value=0;this.attribute("y1",true).value=0;this.attribute("x2",true).value=1;this.attribute("y2",true).value=0}var i=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x");var r=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y");var a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x");var o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");if(i==a&&r==o)return null;return t.createLinearGradient(i,r,a,o)}};O.Element.linearGradient.prototype=new O.Element.GradientBase;O.Element.radialGradient=function(t){this.base=O.Element.GradientBase;this.base(t);this.attributesToInherit.push("cx");this.attributesToInherit.push("cy");this.attributesToInherit.push("r");this.attributesToInherit.push("fx");this.attributesToInherit.push("fy");this.getGradient=function(t,e){var n=e.getBoundingBox();if(!this.attribute("cx").hasValue())this.attribute("cx",true).value="50%";if(!this.attribute("cy").hasValue())this.attribute("cy",true).value="50%";if(!this.attribute("r").hasValue())this.attribute("r",true).value="50%";var i=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x");var r=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y");var a=i;var o=r;if(this.attribute("fx").hasValue()){a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")}if(this.attribute("fy").hasValue()){o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y")}var s=this.gradientUnits()=="objectBoundingBox"?(n.width()+n.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return t.createRadialGradient(a,o,0,i,r,s)}};O.Element.radialGradient.prototype=new O.Element.GradientBase;O.Element.stop=function(t){this.base=O.Element.ElementBase;this.base(t);this.offset=this.attribute("offset").numValue();if(this.offset<0)this.offset=0;if(this.offset>1)this.offset=1;var e=this.style("stop-color",true);if(e.value=="")e.value="#000";if(this.style("stop-opacity").hasValue())e=e.addOpacity(this.style("stop-opacity"));this.color=e.value};O.Element.stop.prototype=new O.Element.ElementBase;O.Element.AnimateBase=function(t){this.base=O.Element.ElementBase;this.base(t);O.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var t=this.attribute("attributeType").value;var e=this.attribute("attributeName").value;if(t=="CSS"){return this.parent.style(e,true)}return this.parent.attribute(e,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(t){if(this.initialValue==null){this.initialValue=this.getProperty().value;this.initialUnits=this.getProperty().getUnits()}if(this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite"){this.duration=0}else if(this.attribute("fill").valueOrDefault("remove")=="freeze"&&!this.frozen){this.frozen=true;this.parent.animationFrozen=true;this.parent.animationFrozenValue=this.getProperty().value}else if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed){this.removed=true;this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue;return true}return false}this.duration=this.duration+t;var e=false;if(this.begin<this.duration){var n=this.calcValue();if(this.attribute("type").hasValue()){var i=this.attribute("type").value;n=i+"("+n+")"}this.getProperty().value=n;e=true}return e};this.from=this.attribute("from");this.to=this.attribute("to");this.values=this.attribute("values");if(this.values.hasValue())this.values.value=this.values.value.split(";");this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1);var n=Math.floor(e),i=Math.ceil(e);t.from=new O.Property("from",parseFloat(this.values.value[n]));t.to=new O.Property("to",parseFloat(this.values.value[i]));t.progress=(e-n)/(i-n)}else{t.from=this.from;t.to=this.to}return t}};O.Element.AnimateBase.prototype=new O.Element.ElementBase;O.Element.animate=function(t){this.base=O.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return e+this.initialUnits}};O.Element.animate.prototype=new O.Element.AnimateBase;O.Element.animateColor=function(t){this.base=O.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=new BM(t.from.value);var n=new BM(t.to.value);if(e.ok&&n.ok){var i=e.r+(n.r-e.r)*t.progress;var r=e.g+(n.g-e.g)*t.progress;var a=e.b+(n.b-e.b)*t.progress;return"rgb("+parseInt(i,10)+","+parseInt(r,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}};O.Element.animateColor.prototype=new O.Element.AnimateBase;O.Element.animateTransform=function(t){this.base=O.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=O.ToNumberArray(t.from.value);var n=O.ToNumberArray(t.to.value);var i="";for(var r=0;r<e.length;r++){i+=e[r]+(n[r]-e[r])*t.progress+" "}return i}};O.Element.animateTransform.prototype=new O.Element.animate;O.Element.font=function(t){this.base=O.Element.ElementBase;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.isRTL=false;this.isArabic=false;this.fontFace=null;this.missingGlyph=null;this.glyphs=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="font-face"){this.fontFace=n;if(n.style("font-family").hasValue()){O.Definitions[n.style("font-family").value]=this}}else if(n.type=="missing-glyph")this.missingGlyph=n;else if(n.type=="glyph"){if(n.arabicForm!=""){this.isRTL=true;this.isArabic=true;if(typeof this.glyphs[n.unicode]=="undefined")this.glyphs[n.unicode]=[];this.glyphs[n.unicode][n.arabicForm]=n}else{this.glyphs[n.unicode]=n}}}};O.Element.font.prototype=new O.Element.ElementBase;O.Element.fontface=function(t){this.base=O.Element.ElementBase;this.base(t);this.ascent=this.attribute("ascent").value;this.descent=this.attribute("descent").value;this.unitsPerEm=this.attribute("units-per-em").numValue()};O.Element.fontface.prototype=new O.Element.ElementBase;O.Element.missingglyph=function(t){this.base=O.Element.path;this.base(t);this.horizAdvX=0};O.Element.missingglyph.prototype=new O.Element.path;O.Element.glyph=function(t){this.base=O.Element.path;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.unicode=this.attribute("unicode").value;this.arabicForm=this.attribute("arabic-form").value};O.Element.glyph.prototype=new O.Element.path;O.Element.text=function(t){this.captureTextNodes=true;this.base=O.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();if(e==null)e=this.style("alignment-baseline").toTextBaseline();if(e!=null)t.textBaseline=e};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.parent.style("font-size").numValueOrDefault(O.Font.Parse(O.ctx.font).fontSize);return new O.BoundingBox(t,e-n,t+Math.floor(n*2/3)*this.children[0].getText().length,e)};this.renderChildren=function(t){this.x=this.attribute("x").toPixels("x");this.y=this.attribute("y").toPixels("y");if(this.attribute("dx").hasValue())this.x+=this.attribute("dx").toPixels("x");if(this.attribute("dy").hasValue())this.y+=this.attribute("dy").toPixels("y");this.x+=this.getAnchorDelta(t,this,0);for(var e=0;e<this.children.length;e++){this.renderChild(t,this,this,e)}};this.getAnchorDelta=function(t,e,n){var i=this.style("text-anchor").valueOrDefault("start");if(i!="start"){var r=0;for(var a=n;a<e.children.length;a++){var o=e.children[a];if(a>n&&o.attribute("x").hasValue())break;r+=o.measureTextRecursive(t)}return-1*(i=="end"?r:r/2)}return 0};this.renderChild=function(t,e,n,i){var r=n.children[i];if(r.attribute("x").hasValue()){r.x=r.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,i);if(r.attribute("dx").hasValue())r.x+=r.attribute("dx").toPixels("x")}else{if(r.attribute("dx").hasValue())e.x+=r.attribute("dx").toPixels("x");r.x=e.x}e.x=r.x+r.measureText(t);if(r.attribute("y").hasValue()){r.y=r.attribute("y").toPixels("y");if(r.attribute("dy").hasValue())r.y+=r.attribute("dy").toPixels("y")}else{if(r.attribute("dy").hasValue())e.y+=r.attribute("dy").toPixels("y");r.y=e.y}e.y=r.y;r.render(t);for(var i=0;i<r.children.length;i++){e.renderChild(t,e,r,i)}}};O.Element.text.prototype=new O.Element.RenderedElementBase;O.Element.TextElementBase=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.getGlyph=function(t,e,n){var i=e[n];var r=null;if(t.isArabic){var a="isolated";if((n==0||e[n-1]==" ")&&n<e.length-2&&e[n+1]!=" ")a="terminal";if(n>0&&e[n-1]!=" "&&n<e.length-2&&e[n+1]!=" ")a="medial";if(n>0&&e[n-1]!=" "&&(n==e.length-1||e[n+1]==" "))a="initial";if(typeof t.glyphs[i]!="undefined"){r=t.glyphs[i][a];if(r==null&&t.glyphs[i].type=="glyph")r=t.glyphs[i]}}else{r=t.glyphs[i]}if(r==null)r=t.missingGlyph;return r};this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(O.Font.Parse(O.ctx.font).fontSize);var i=this.parent.style("font-style").valueOrDefault(O.Font.Parse(O.ctx.font).fontStyle);var r=this.getText();if(e.isRTL)r=r.split("").reverse().join("");var a=O.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<r.length;o++){var s=this.getGlyph(e,r,o);var u=n/e.fontFace.unitsPerEm;t.translate(this.x,this.y);t.scale(u,-u);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/n;if(i=="italic")t.transform(1,0,.4,1,0,0);s.render(t);if(i=="italic")t.transform(1,0,-.4,1,0,0);t.lineWidth=l;t.scale(1/u,-1/u);t.translate(-this.x,-this.y);this.x+=n*(s.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){this.x+=a[o]}}return}if(t.fillStyle!="")t.fillText(O.compressSpaces(this.getText()),this.x,this.y);if(t.strokeStyle!="")t.strokeText(O.compressSpaces(this.getText()),this.x,this.y)};this.getText=function(){};this.measureTextRecursive=function(t){var e=this.measureText(t);for(var n=0;n<this.children.length;n++){e+=this.children[n].measureTextRecursive(t)}return e};this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(O.Font.Parse(O.ctx.font).fontSize);var i=0;var r=this.getText();if(e.isRTL)r=r.split("").reverse().join("");var a=O.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<r.length;o++){var s=this.getGlyph(e,r,o);i+=(s.horizAdvX||e.horizAdvX)*n/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){i+=a[o]}}return i}var u=O.compressSpaces(this.getText());if(!t.measureText)return u.length*10;t.save();this.setContext(t);var l=t.measureText(u).width;t.restore();return l}};O.Element.TextElementBase.prototype=new O.Element.RenderedElementBase;O.Element.tspan=function(t){this.captureTextNodes=true;this.base=O.Element.TextElementBase;this.base(t);this.text=O.compressSpaces(t.value||t.text||t.textContent||"");this.getText=function(){if(this.children.length>0){return""}return this.text}};O.Element.tspan.prototype=new O.Element.TextElementBase;O.Element.tref=function(t){this.base=O.Element.TextElementBase;this.base(t);this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(t!=null)return t.children[0].getText()}};O.Element.tref.prototype=new O.Element.TextElementBase;O.Element.a=function(t){this.base=O.Element.TextElementBase;this.base(t);this.hasText=t.childNodes.length>0;for(var e=0;e<t.childNodes.length;e++){if(t.childNodes[e].nodeType!=3)this.hasText=false}this.text=this.hasText?t.childNodes[0].value:"";this.getText=function(){return this.text};this.baseRenderChildren=this.renderChildren;this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new O.Property("fontSize",O.Font.Parse(O.ctx.font).fontSize);O.Mouse.checkBoundingBox(this,new O.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(this.children.length>0){var n=new O.Element.g;n.children=this.children;n.parent=this;n.render(t)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){O.ctx.canvas.style.cursor="pointer"}};O.Element.a.prototype=new O.Element.TextElementBase;O.Element.image=function(t){this.base=O.Element.RenderedElementBase;this.base(t);var e=this.getHrefAttribute().value;if(e==""){return}var a=e.match(/\.svg$/);O.Images.push(this);this.loaded=false;if(!a){this.img=document.createElement("img");if(O.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){O.log('ERROR: image "'+e+'" not found');n.loaded=true};this.img.src=e}else{this.img=O.ajax(e);this.loaded=true}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");if(i==0||r==0)return;t.save();if(a){t.drawSvg(this.img,e,n,i,r)}else{t.translate(e,n);O.AspectRatio(t,this.attribute("preserveAspectRatio").value,i,this.img.width,r,this.img.height,0,0);t.drawImage(this.img,0,0)}t.restore()};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");return new O.BoundingBox(t,e,t+n,e+i)}};O.Element.image.prototype=new O.Element.RenderedElementBase;O.Element.g=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.getBoundingBox=function(){var t=new O.BoundingBox;for(var e=0;e<this.children.length;e++){t.addBoundingBox(this.children[e].getBoundingBox())}return t}};O.Element.g.prototype=new O.Element.RenderedElementBase;O.Element.symbol=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.render=function(t){}};O.Element.symbol.prototype=new O.Element.RenderedElementBase;O.Element.style=function(t){this.base=O.Element.ElementBase;this.base(t);var e="";for(var n=0;n<t.childNodes.length;n++){e+=t.childNodes[n].data}e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");e=O.compressSpaces(e);var i=e.split("}");for(var n=0;n<i.length;n++){if(O.trim(i[n])!=""){var r=i[n].split("{");var a=r[0].split(",");var o=r[1].split(";");for(var s=0;s<a.length;s++){var u=O.trim(a[s]);if(u!=""){var l=O.Styles[u]||{};for(var c=0;c<o.length;c++){var f=o[c].indexOf(":");var h=o[c].substr(0,f);var d=o[c].substr(f+1,o[c].length-f);if(h!=null&&d!=null){l[O.trim(h)]=new O.Property(O.trim(h),O.trim(d))}}O.Styles[u]=l;O.StylesSpecificity[u]=NP(u);if(u=="@font-face"){var g=l["font-family"].value.replace(/"/g,"");var p=l["src"].value.split(",");for(var v=0;v<p.length;v++){if(p[v].indexOf('format("svg")')>0){var m=p[v].indexOf("url");var y=p[v].indexOf(")",m);var _=p[v].substr(m+5,y-m-6);var b=O.parseXml(O.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;x<w.length;x++){var k=O.CreateElement(w[x]);O.Definitions[g]=k}}}}}}}}};O.Element.style.prototype=new O.Element.ElementBase;O.Element.use=function(t){this.base=O.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);if(this.attribute("x").hasValue())t.translate(this.attribute("x").toPixels("x"),0);if(this.attribute("y").hasValue())t.translate(0,this.attribute("y").toPixels("y"))};var i=this.getHrefAttribute().getDefinition();this.path=function(t){if(i!=null)i.path(t)};this.getBoundingBox=function(){if(i!=null)return i.getBoundingBox()};this.renderChildren=function(t){if(i!=null){var e=i;if(i.type=="symbol"){e=new O.Element.svg;e.type="svg";e.attributes["viewBox"]=new O.Property("viewBox",i.attribute("viewBox").value);e.attributes["preserveAspectRatio"]=new O.Property("preserveAspectRatio",i.attribute("preserveAspectRatio").value);e.attributes["overflow"]=new O.Property("overflow",i.attribute("overflow").value);e.children=i.children}if(e.type=="svg"){if(this.attribute("width").hasValue())e.attributes["width"]=new O.Property("width",this.attribute("width").value);if(this.attribute("height").hasValue())e.attributes["height"]=new O.Property("height",this.attribute("height").value)}var n=e.parent;e.parent=null;e.render(t);e.parent=n}}};O.Element.use.prototype=new O.Element.RenderedElementBase;O.Element.mask=function(t){this.base=O.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=this.attribute("x").toPixels("x");var i=this.attribute("y").toPixels("y");var r=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(r==0&&a==0){var o=new O.BoundingBox;for(var s=0;s<this.children.length;s++){o.addBoundingBox(this.children[s].getBoundingBox())}var n=Math.floor(o.x1);var i=Math.floor(o.y1);var r=Math.floor(o.width());var a=Math.floor(o.height())}var u=e.attribute("mask").value;e.attribute("mask").value="";var l=document.createElement("canvas");l.width=n+r;l.height=i+a;var c=l.getContext("2d");this.renderChildren(c);var f=document.createElement("canvas");f.width=n+r;f.height=i+a;var h=f.getContext("2d");e.render(h);h.globalCompositeOperation="destination-in";h.fillStyle=c.createPattern(l,"no-repeat");h.fillRect(0,0,n+r,i+a);t.fillStyle=h.createPattern(f,"no-repeat");t.fillRect(0,0,n+r,i+a);e.attribute("mask").value=u};this.render=function(t){}};O.Element.mask.prototype=new O.Element.ElementBase;O.Element.clipPath=function(t){this.base=O.Element.ElementBase;this.base(t);this.apply=function(t){var e=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var n=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){};e.call(t);for(var i=0;i<this.children.length;i++){var r=this.children[i];if(typeof r.path!="undefined"){var a=null;if(r.style("transform",false,true).hasValue()){a=new O.Transform(r.style("transform",false,true).value);a.apply(t)}r.path(t);CanvasRenderingContext2D.prototype.closePath=n;if(a){a.unapply(t)}}}n.call(t);t.clip();CanvasRenderingContext2D.prototype.beginPath=e;CanvasRenderingContext2D.prototype.closePath=n};this.render=function(t){}};O.Element.clipPath.prototype=new O.Element.ElementBase;O.Element.filter=function(t){this.base=O.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=e.getBoundingBox();var i=Math.floor(n.x1);var r=Math.floor(n.y1);var a=Math.floor(n.width());var o=Math.floor(n.height());var s=e.style("filter").value;e.style("filter").value="";var u=0,l=0;for(var c=0;c<this.children.length;c++){var f=this.children[c].extraFilterDistance||0;u=Math.max(u,f);l=Math.max(l,f)}var h=document.createElement("canvas");h.width=a+2*u;h.height=o+2*l;var d=h.getContext("2d");d.translate(-i+u,-r+l);e.render(d);for(var c=0;c<this.children.length;c++){if(typeof this.children[c].apply=="function"){this.children[c].apply(d,0,0,a+2*u,o+2*l)}}t.drawImage(h,0,0,a+2*u,o+2*l,i-u,r-l,a+2*u,o+2*l);e.style("filter",true).value=s};this.render=function(t){}};O.Element.filter.prototype=new O.Element.ElementBase;O.Element.feMorphology=function(t){this.base=O.Element.ElementBase;this.base(t);this.apply=function(t,e,n,i,r){}};O.Element.feMorphology.prototype=new O.Element.ElementBase;O.Element.feComposite=function(t){this.base=O.Element.ElementBase;this.base(t);this.apply=function(t,e,n,i,r){}};O.Element.feComposite.prototype=new O.Element.ElementBase;O.Element.feColorMatrix=function(t){this.base=O.Element.ElementBase;this.base(t);var i=O.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=i[0];i=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var r=i[0]*Math.PI/180;var n=function t(e,n,i){return e+Math.cos(r)*n+Math.sin(r)*i};i=[n(.213,.787,-.213),n(.715,-.715,-.715),n(.072,-.072,.928),0,0,n(.213,-.213,.143),n(.715,.285,.14),n(.072,-.072,-.283),0,0,n(.213,-.213,-.787),n(.715,-.715,.715),n(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}function c(t,e,n,i,r,a){return t[n*i*4+e*4+a]}function f(t,e,n,i,r,a,o){t[n*i*4+e*4+a]=o}function h(t,e){var n=i[t];return n*(n<0?e-255:e)}this.apply=function(t,e,n,i,r){var a=t.getImageData(0,0,i,r);for(var n=0;n<r;n++){for(var e=0;e<i;e++){var o=c(a.data,e,n,i,r,0);var s=c(a.data,e,n,i,r,1);var u=c(a.data,e,n,i,r,2);var l=c(a.data,e,n,i,r,3);f(a.data,e,n,i,r,0,h(0,o)+h(1,s)+h(2,u)+h(3,l)+h(4,1));f(a.data,e,n,i,r,1,h(5,o)+h(6,s)+h(7,u)+h(8,l)+h(9,1));f(a.data,e,n,i,r,2,h(10,o)+h(11,s)+h(12,u)+h(13,l)+h(14,1));f(a.data,e,n,i,r,3,h(15,o)+h(16,s)+h(17,u)+h(18,l)+h(19,1))}}t.clearRect(0,0,i,r);t.putImageData(a,0,0)}};O.Element.feColorMatrix.prototype=new O.Element.ElementBase;O.Element.feGaussianBlur=function(t){this.base=O.Element.ElementBase;this.base(t);this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue());this.extraFilterDistance=this.blurRadius;this.apply=function(t,e,n,i,r){if(typeof LM.canvasRGBA=="undefined"){O.log("ERROR: StackBlur.js must be included for blur to work");return}t.canvas.id=O.UniqueId();t.canvas.style.display="none";document.body.appendChild(t.canvas);LM.canvasRGBA(t.canvas.id,e,n,i,r,this.blurRadius);document.body.removeChild(t.canvas)}};O.Element.feGaussianBlur.prototype=new O.Element.ElementBase;O.Element.title=function(t){};O.Element.title.prototype=new O.Element.ElementBase;O.Element.desc=function(t){};O.Element.desc.prototype=new O.Element.ElementBase;O.Element.MISSING=function(t){O.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")};O.Element.MISSING.prototype=new O.Element.ElementBase;O.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var n=null;if(typeof O.Element[e]!="undefined"){n=new O.Element[e](t)}else{n=new O.Element.MISSING(t)}n.type=t.nodeName;return n};O.load=function(t,e){O.loadXml(t,O.ajax(e))};O.loadXml=function(t,e){O.loadXmlDoc(t,O.parseXml(e))};O.loadXmlDoc=function(o,s){O.init(o);var n=function t(e){var n=o.canvas;while(n){e.x-=n.offsetLeft;e.y-=n.offsetTop;n=n.offsetParent}if(window.scrollX)e.x+=window.scrollX;if(window.scrollY)e.y+=window.scrollY;return e};if(O.opts["ignoreMouse"]!=true){o.canvas.onclick=function(t){var e=n(new O.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));O.Mouse.onclick(e.x,e.y)};o.canvas.onmousemove=function(t){var e=n(new O.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));O.Mouse.onmousemove(e.x,e.y)}}var u=O.CreateElement(s.documentElement);u.root=true;u.addStylesFromStyleDefinition();var l=true;var i=function t(){O.ViewPort.Clear();if(o.canvas.parentNode)O.ViewPort.SetCurrent(o.canvas.parentNode.clientWidth,o.canvas.parentNode.clientHeight);if(O.opts["ignoreDimensions"]!=true){if(u.style("width").hasValue()){o.canvas.width=u.style("width").toPixels("x");o.canvas.style.width=o.canvas.width+"px"}if(u.style("height").hasValue()){o.canvas.height=u.style("height").toPixels("y");o.canvas.style.height=o.canvas.height+"px"}}var e=o.canvas.clientWidth||o.canvas.width;var n=o.canvas.clientHeight||o.canvas.height;if(O.opts["ignoreDimensions"]==true&&u.style("width").hasValue()&&u.style("height").hasValue()){e=u.style("width").toPixels("x");n=u.style("height").toPixels("y")}O.ViewPort.SetCurrent(e,n);if(O.opts["offsetX"]!=null)u.attribute("x",true).value=O.opts["offsetX"];if(O.opts["offsetY"]!=null)u.attribute("y",true).value=O.opts["offsetY"];if(O.opts["scaleWidth"]!=null||O.opts["scaleHeight"]!=null){var i=null,r=null,a=O.ToNumberArray(u.attribute("viewBox").value);if(O.opts["scaleWidth"]!=null){if(u.attribute("width").hasValue())i=u.attribute("width").toPixels("x")/O.opts["scaleWidth"];else if(!isNaN(a[2]))i=a[2]/O.opts["scaleWidth"]}if(O.opts["scaleHeight"]!=null){if(u.attribute("height").hasValue())r=u.attribute("height").toPixels("y")/O.opts["scaleHeight"];else if(!isNaN(a[3]))r=a[3]/O.opts["scaleHeight"]}if(i==null){i=r}if(r==null){r=i}u.attribute("width",true).value=O.opts["scaleWidth"];u.attribute("height",true).value=O.opts["scaleHeight"];u.style("transform",true,true).value+=" scale("+1/i+","+1/r+")"}if(O.opts["ignoreClear"]!=true){o.clearRect(0,0,e,n)}u.render(o);if(l){l=false;if(typeof O.opts["renderCallback"]=="function")O.opts["renderCallback"](s)}};var r=true;if(O.ImagesLoaded()){r=false;i()}O.intervalID=setInterval(function(){var t=false;if(r&&O.ImagesLoaded()){r=false;t=true}if(O.opts["ignoreMouse"]!=true){t=t|O.Mouse.hasEvents()}if(O.opts["ignoreAnimation"]!=true){for(var e=0;e<O.Animations.length;e++){t=t|O.Animations[e].update(1e3/O.FRAMERATE)}}if(typeof O.opts["forceRedraw"]=="function"){if(O.opts["forceRedraw"]()==true)t=true}if(t){i();O.Mouse.runEvents()}},1e3/O.FRAMERATE)};O.stop=function(){if(O.intervalID){clearInterval(O.intervalID)}};O.Mouse=new function(){this.events=[];this.hasEvents=function(){return this.events.length!=0};this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function t(e){if(e.onclick)e.onclick()}})};this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function t(e){if(e.onmousemove)e.onmousemove()}})};this.eventElements=[];this.checkPath=function(t,e){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(e.isPointInPath&&e.isPointInPath(i.x,i.y))this.eventElements[n]=t}};this.checkBoundingBox=function(t,e){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(e.isPointInBox(i.x,i.y))this.eventElements[n]=t}};this.runEvents=function(){O.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++){var e=this.events[t];var n=this.eventElements[t];while(n){e.run(n);n=n.parent}}this.events=[];this.eventElements=[]}};return O}var jP=BP;function LP(t){var e=t.attr("stroke-width");t.attr("stroke-width",!e?0:e);if(!e)t.attr("stroke","transparent");var n=["none","transparent"].includes(t.attr("fill"));var i=t.attr("fill-opacity");t.attr("fill-opacity",n?0:i);t.attr("aria-label",null)}function FP(t){t.selectAll("*").each(function(){var t=this.tagName.toLowerCase();if(!["option"].includes(t)){var e=Yo(this);var n=e.style("letter-spacing");e.style("letter-spacing",n==="normal"?"0.1px":n)}})}function IP(t,e){return WP(t)||UP(t,e)||GP(t,e)||HP()}function HP(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function GP(t,e){if(!t)return;if(typeof t==="string")return VP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return VP(t,e)}function VP(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function UP(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function WP(t){if(Array.isArray(t))return t}var qP={background:false,callback:function t(){},exclude:[],padding:0,scale:1};var KP={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function YP(t){var e=Yo(t).attr("transform");var n=1,i=0,r=0;if(e){n=e.match(/scale\(([^a-z]+)\)/i);if(n)n=parseFloat(n[1]);else n=1;var a=e.match(/translate\(([^a-z]+)\)/i);if(a){var o=a[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map(function(t){return parseFloat(t)*n});var s=IP(o,2);i=s[0];r=s[1]}}return[n,i,r]}function XP(t,K){if(!t)return;if(!(t instanceof Array))t=[t];K=Object.assign({},qP,K);var c=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);var Y=window?window.devicePixelRatio||1:1;var e=t[0];if(e.constructor===Object)e=e.element;var X=K.height||parseFloat(Yo(e).style("height"))+parseFloat(Yo(e).style("padding-top"))+parseFloat(Yo(e).style("padding-bottom")),Z=K.width||parseFloat(Yo(e).style("width"))+parseFloat(Yo(e).style("padding-left"))+parseFloat(Yo(e).style("padding-right"));var $,J,Q=0,tt=0;if(e.getBoundingClientRect){var n=e.getBoundingClientRect();Q=n.left;tt=n.top}else{Q=e.offsetLeft;tt=e.offsetTop}var f=K.canvas||document.createElement("canvas");f.width=(Z+K.padding*2)*K.scale*Y;f.height=(X+K.padding*2)*K.scale*Y;f.style.width=(Z+K.padding*2)*K.scale;f.style.height=(X+K.padding*2)*K.scale;var h=f.getContext("2d");h.scale(K.scale*Y,K.scale*Y);h.clearRect(0,0,f.width/Y,f.height/Y);if(K.background){h.beginPath();h.rect(0,0,f.width/Y,f.height/Y);h.fillStyle=K.background;h.fill()}var et=[];function i(t){var e=(this.tagName||"").toLowerCase();if(K.exclude.includes(this)||e==="foreignobject")return;var n=Object.assign({},t);if(this.tagName){var i=Yo(this).attr("opacity")||Yo(this).style("opacity");var r=Yo(this).style("display");var a=Yo(this).style("visibility");if(r==="none"||a==="hidden"||i&&parseFloat(i)===0)return;var o=this.tagName.toLowerCase();if(o.length&&["defs","title","desc"].includes(o))return;if(o==="svg"){if(!n.svg){var s=this.getBoundingClientRect(),u=s.left,l=s.top;n.x+=u-Q;n.y+=l-tt;n.svg=true}var c=Yo(this).attr("x");c=c?parseFloat(c)*n.scale:0;n.x+=c;var f=Yo(this).attr("y");f=f?parseFloat(f)*n.scale:0;n.y+=f;n.clip={height:parseFloat(Yo(this).attr("height")||Yo(this).style("height")),width:parseFloat(Yo(this).attr("width")||Yo(this).style("width")),x:c,y:f}}else{var h=Yo(this).attr("x");if(h)n.x+=parseFloat(h)*n.scale;var d=Yo(this).attr("y");if(d)n.y+=parseFloat(d)*n.scale}}if(!e.length){var g=(this.wholeText||"").replace(/\s/g,"");if(g.length){var p=this.nodeValue.replace(/^\s*/,"").replace(/^\n/,"").replace(/^\s*/,"").replace(/\n$/,"").replace(/\s*$/,"").replace(/\n$/,"");et.push({type:"text",style:this.parentNode,value:p,x:n.x,y:n.y})}}else if(e==="text"){var v=this.cloneNode(true);Yo(v).call(LP);et.push(Object.assign({},n,{type:"svg",value:v}))}else if(["image","img"].includes(e)){var m=Yo(this).attr("href")||Yo(this).attr("xlink:href");if(m.length){var y=parseFloat(Yo(this).attr("height"))*n.scale,_=parseFloat(Yo(this).attr("width"))*n.scale;var b={clip:n.clip,height:y,loaded:false,type:"img",width:_,x:n.x,y:n.y};et.push(b);var w=new Image;w.crossOrigin="Anonymous";w.onload=function(){var t=document.createElement("canvas");var e=t.getContext("2d");t.height=y*Y;t.width=_*Y;e.drawImage(this,0,0,_*Y,y*Y);var n=document.createElement("img");n.src=t.toDataURL("image/png");b.value=n;b.loaded=true};w.onerror=function(){b.loaded=true;b.value=false};w.src=m}}else if(!["svg","g","text"].includes(e)&&!Yo(this).selectAll("svg").size()){var x=K.scale*Y;var k={height:Math.floor(X+K.padding*2+tt),loaded:false,type:"html",width:Math.floor(Z+K.padding*2+Q),x:Math.floor($-Q),y:Math.floor(J-tt)};var S=document.createElement("canvas");S.width=k.width*x;S.height=k.height*x;S.style.width="".concat(k.width*x,"px");S.style.height="".concat(k.height*x,"px");var C=S.getContext("2d");C.scale(x,x);et.push(k);FP(Yo(this));OM(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(t){k.value=t;k.loaded=true})}else if(e!=="svg"&&this.childNodes.length>0&&!Yo(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);Yo(E).selectAll("*").each(function(){Yo(this).call(LP);if(Yo(this).attr("opacity")==="0")this.parentNode.removeChild(this)});et.push(Object.assign({},n,{type:"svg",value:E,tag:e}))}else if(this.childNodes.length>0){var A=YP(this),R=IP(A,3),M=R[0],T=R[1],P=R[2];n.scale*=M;n.x+=T;n.y+=P;nt(this,n)}else{var O=this.cloneNode(true);Yo(O).selectAll("*").each(function(){if(Yo(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(e==="line"){Yo(O).attr("x1",parseFloat(Yo(O).attr("x1"))+n.x);Yo(O).attr("x2",parseFloat(Yo(O).attr("x2"))+n.x);Yo(O).attr("y1",parseFloat(Yo(O).attr("y1"))+n.y);Yo(O).attr("y2",parseFloat(Yo(O).attr("y2"))+n.y)}else if(e==="path"){var B=YP(O),D=IP(B,3),N=D[0],z=D[1],j=D[2];if(Yo(O).attr("transform"))Yo(O).attr("transform","scale(".concat(N,")translate(").concat(z+n.x,",").concat(j+n.y,")"))}Yo(O).call(LP);var L=Yo(O).attr("fill");var F=L&&L.indexOf("url")===0;et.push(Object.assign({},n,{type:"svg",value:O,tag:e}));if(F){var I=Yo(L.slice(4,-1)).node().cloneNode(true);var H=(I.tagName||"").toLowerCase();if(H==="pattern"){var G=YP(O),V=IP(G,3),U=V[0],W=V[1],q=V[2];n.scale*=U;n.x+=W;n.y+=q;nt(I,n)}}}}function nt(t,e){Jo(t.childNodes).each(function(){i.bind(this)(e)})}for(var r=0;r<t.length;r++){var a=t[r],o={scale:1,x:0,y:0,svg:false};if(a.constructor===Object){o=Object.assign(o,a);a=a.element}$=o.x;J=o.y;i.bind(a)(o)}function s(){var t=true;for(var e=0;e<et.length;e++){if(et[e].loaded===false){t=false;break}}if(t)u();else setTimeout(s,500)}s();function u(){for(var t=0;t<et.length;t++){var e=et[t];var n=e.clip||{height:X,width:Z,x:0,y:0};switch(e.type){case"img":if(e.value){h.save();h.beginPath();h.translate(K.padding+n.x,K.padding+n.y);h.rect(0,0,n.width,n.height);h.clip();h.drawImage(e.value,e.x+n.x,e.y+n.y,e.width,e.height);h.restore()}break;case"html":h.save();h.beginPath();h.translate(K.padding,K.padding);h.drawImage(e.value,e.x,e.y,e.width,e.height);h.restore();break;case"text":var i=Yo(e.style);var r=e.value.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'");var a=i.style("color"),o=i.style("font-size");var s=i.style("font-family").split(",")[0];if(s.indexOf("'")!==0)s="'".concat(s,"'");var u="<text stroke='none' dy='".concat(o,"' fill='").concat(a,"' font-family=").concat(s," font-size='").concat(o,"'>").concat(r,"</text>");h.save();h.translate(K.padding,K.padding);jP(f,u,Object.assign({},KP,{offsetX:e.x,offsetY:e.y}));h.restore();break;case"svg":var l=c?(new XMLSerializer).serializeToString(e.value):e.value.outerHTML;h.save();h.translate(K.padding+n.x+e.x,K.padding+n.y+e.y);h.rect(0,0,n.width,n.height);h.clip();jP(f,l,Object.assign({},KP,{offsetX:e.x+n.x,offsetY:e.y+n.y}));h.restore();break;default:console.warn("uncaught",e);break}}K.callback(f)}}(function(t){var h=t.Uint8Array,e=t.HTMLCanvasElement,n=e&&e.prototype,u=/\s*;\s*base64\s*(?:;|$)/i,l="toDataURL",d,c=function t(e){var n=e.length,i=new h(n/4*3|0),r=0,a=0,o=[0,0],s=0,u=0,l,c,f;while(n--){c=e.charCodeAt(r++);l=d[c-43];if(l!==255&&l!==f){o[1]=o[0];o[0]=c;u=u<<6|l;s++;if(s===4){i[a++]=u>>>16;if(o[1]!==61){i[a++]=u>>>8}if(o[0]!==61){i[a++]=u}s=0}}}return i};if(h){d=new h([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])}if(e&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(t,e){if(!e){e="image/png"}if(this.mozGetAsFile){t(this.mozGetAsFile("canvas",e));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e)){t(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),i=this[l].apply(this,n),r=i.indexOf(","),a=i.substring(r+1),o=u.test(i.substring(0,r)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=a;s.size=a.length}else if(h){if(o){s=new Blob([c(a)],{type:e})}else{s=new Blob([decodeURIComponent(a)],{type:e})}}t(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){l="toDataURLHD";var t=this.toBlob();l="toDataURL";return t}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||MM.content||MM);var ZP=TM(function(t){var e=e||function(c){if(typeof c==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=c.document,f=function t(){return c.URL||c.webkitURL||c},h=t.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in h,g=function t(e){var n=new MouseEvent("click");e.dispatchEvent(n)},p=/constructor/i.test(c.HTMLElement)||c.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent),o=function t(e){(c.setImmediate||c.setTimeout)(function(){throw e},0)},m="application/octet-stream",i=1e3*40,y=function t(e){var n=function t(){if(typeof e==="string"){f().revokeObjectURL(e)}else{e.remove()}};setTimeout(n,i)},_=function t(e,n,i){n=[].concat(n);var r=n.length;while(r--){var a=e["on"+n[r]];if(typeof a==="function"){try{a.call(e,i||e)}catch(t){o(t)}}}},b=function t(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e},r=function t(i,e,n){if(!n){i=b(i)}var r=this,a=i.type,o=a===m,s,u=function t(){_(r,"writestart progress write writeend".split(" "))},l=function t(){if((v||o&&p)&&c.FileReader){var n=new FileReader;n.onloadend=function(){var t=v?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var e=c.open(t,"_blank");if(!e)c.location.href=t;t=undefined;r.readyState=r.DONE;u()};n.readAsDataURL(i);r.readyState=r.INIT;return}if(!s){s=f().createObjectURL(i)}if(o){c.location.href=s}else{var e=c.open(s,"_blank");if(!e){c.location.href=s}}r.readyState=r.DONE;u();y(s)};r.readyState=r.INIT;if(d){s=f().createObjectURL(i);setTimeout(function(){h.href=s;h.download=e;g(h);u();y(s);r.readyState=r.DONE});return}l()},e=r.prototype,n=function t(e,n,i){return new r(e,n||e.name||"download",i)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(t,e,n){e=e||t.name||"download";if(!n){t=b(t)}return navigator.msSaveOrOpenBlob(t,e)}}e.abort=function(){};e.readyState=e.INIT=0;e.WRITING=1;e.DONE=2;e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||MM.content);if(t.exports){t.exports.saveAs=e}});var $P={filename:"download",type:"png"};function JP(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!t)return;n=Object.assign({},$P,n);var e=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(t instanceof Array)&&n.type==="svg"){var r=e?(new XMLSerializer).serializeToString(t):t.outerHTML;ZP.saveAs(new Blob([r],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}XP(t,Object.assign({},i,{callback:function t(e){if(i.callback)i.callback(e);if(["jpg","png"].includes(n.type)){e.toBlob(function(t){return ZP.saveAs(t,"".concat(n.filename,".").concat(n.type))})}}}))}function QP(){Oo.preventDefault();Oo.stopImmediatePropagation()}function tO(t){var e=t.document.documentElement,n=Yo(t).on("dragstart.drag",QP,true);if("onselectstart"in e){n.on("selectstart.drag",QP,true)}else{e.__noselect=e.style.MozUserSelect;e.style.MozUserSelect="none"}}function eO(t,e){var n=t.document.documentElement,i=Yo(t).on("dragstart.drag",null);if(e){i.on("click.drag",QP,true);setTimeout(function(){i.on("click.drag",null)},0)}if("onselectstart"in n){i.on("selectstart.drag",null)}else{n.style.MozUserSelect=n.__noselect;delete n.__noselect}}function nO(t){return function(){return t}}function iO(t,e,n){this.target=t;this.type=e;this.transform=n}function rO(t,e,n){this.k=t;this.x=e;this.y=n}rO.prototype={constructor:rO,scale:function t(e){return e===1?this:new rO(this.k*e,this.x,this.y)},translate:function t(e,n){return e===0&n===0?this:new rO(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function t(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function t(e){return e*this.k+this.x},applyY:function t(e){return e*this.k+this.y},invert:function t(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function t(e){return(e-this.x)/this.k},invertY:function t(e){return(e-this.y)/this.k},rescaleX:function t(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function t(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function t(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var aO=new rO(1,0,0);oO.prototype=rO.prototype;function oO(t){while(!t.__zoom){if(!(t=t.parentNode))return aO}return t.__zoom}function sO(){Oo.stopImmediatePropagation()}function uO(){Oo.preventDefault();Oo.stopImmediatePropagation()}function lO(){return!Oo.ctrlKey&&!Oo.button}function cO(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function fO(){return this.__zoom||aO}function hO(){return-Oo.deltaY*(Oo.deltaMode===1?.05:Oo.deltaMode?1:.002)}function dO(){return navigator.maxTouchPoints||"ontouchstart"in this}function gO(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function pO(){var s=lO,f=cO,d=gO,a=hO,e=dO,o=[0,Infinity],g=[[-Infinity,-Infinity],[Infinity,Infinity]],u=250,h=bi,n=es("start","zoom","end"),p,l,c=500,v=150,m=0;function y(t){t.property("__zoom",fO).on("wheel.zoom",r).on("mousedown.zoom",S).on("dblclick.zoom",C).filter(e).on("touchstart.zoom",E).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(t,e,n){var i=t.selection?t.selection():t;i.property("__zoom",fO);if(t!==i){x(t,e,n)}else{i.interrupt().each(function(){k(this,arguments).start().zoom(null,typeof e==="function"?e.apply(this,arguments):e).end()})}};y.scaleBy=function(t,n,e){y.scaleTo(t,function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e},e)};y.scaleTo=function(t,a,o){y.transform(t,function(){var t=f.apply(this,arguments),e=this.__zoom,n=o==null?w(t):typeof o==="function"?o.apply(this,arguments):o,i=e.invert(n),r=typeof a==="function"?a.apply(this,arguments):a;return d(b(_(e,r),n,i),t,g)},o)};y.translateBy=function(t,e,n){y.transform(t,function(){return d(this.__zoom.translate(typeof e==="function"?e.apply(this,arguments):e,typeof n==="function"?n.apply(this,arguments):n),f.apply(this,arguments),g)})};y.translateTo=function(t,i,r,a){y.transform(t,function(){var t=f.apply(this,arguments),e=this.__zoom,n=a==null?w(t):typeof a==="function"?a.apply(this,arguments):a;return d(aO.translate(n[0],n[1]).scale(e.k).translate(typeof i==="function"?-i.apply(this,arguments):-i,typeof r==="function"?-r.apply(this,arguments):-r),t,g)},a)};function _(t,e){e=Math.max(o[0],Math.min(o[1],e));return e===t.k?t:new rO(e,t.x,t.y)}function b(t,e,n){var i=e[0]-n[0]*t.k,r=e[1]-n[1]*t.k;return i===t.x&&r===t.y?t:new rO(t.k,i,r)}function w(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,l,c){t.on("start.zoom",function(){k(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).end()}).tween("zoom",function(){var t=this,e=arguments,i=k(t,e),n=f.apply(t,e),r=c==null?w(n):typeof c==="function"?c.apply(t,e):c,a=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=t.__zoom,s=typeof l==="function"?l.apply(t,e):l,u=h(o.invert(r).concat(a/o.k),s.invert(r).concat(a/s.k));return function(t){if(t===1)t=s;else{var e=u(t),n=a/e[2];t=new rO(n,r[0]-e[0]*n,r[1]-e[1]*n)}i.zoom(null,t)}})}function k(t,e,n){return!n&&t.__zooming||new i(t,e)}function i(t,e){this.that=t;this.args=e;this.active=0;this.extent=f.apply(t,e);this.taps=0}i.prototype={start:function t(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function t(e,n){if(this.mouse&&e!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&e!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&e!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function t(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function t(e){Io(new iO(y,e,this.that.__zoom),n.apply,n,[e,this.that,this.args])}};function r(){if(!s.apply(this,arguments))return;var t=k(this,arguments),e=this.__zoom,n=Math.max(o[0],Math.min(o[1],e.k*Math.pow(2,a.apply(this,arguments)))),i=$o(this);if(t.wheel){if(t.mouse[0][0]!==i[0]||t.mouse[0][1]!==i[1]){t.mouse[1]=e.invert(t.mouse[0]=i)}clearTimeout(t.wheel)}else if(e.k===n)return;else{t.mouse=[i,e.invert(i)];Hs(this);t.start()}uO();t.wheel=setTimeout(r,v);t.zoom("mouse",d(b(_(e,n),t.mouse[0],t.mouse[1]),t.extent,g));function r(){t.wheel=null;t.end()}}function S(){if(l||!s.apply(this,arguments))return;var n=k(this,arguments,true),t=Yo(Oo.view).on("mousemove.zoom",a,true).on("mouseup.zoom",o,true),e=$o(this),i=Oo.clientX,r=Oo.clientY;tO(Oo.view);sO();n.mouse=[e,this.__zoom.invert(e)];Hs(this);n.start();function a(){uO();if(!n.moved){var t=Oo.clientX-i,e=Oo.clientY-r;n.moved=t*t+e*e>m}n.zoom("mouse",d(b(n.that.__zoom,n.mouse[0]=$o(n.that),n.mouse[1]),n.extent,g))}function o(){t.on("mousemove.zoom mouseup.zoom",null);eO(Oo.view,n.moved);uO();n.end()}}function C(){if(!s.apply(this,arguments))return;var t=this.__zoom,e=$o(this),n=t.invert(e),i=t.k*(Oo.shiftKey?.5:2),r=d(b(_(t,i),e,n),f.apply(this,arguments),g);uO();if(u>0)Yo(this).transition().duration(u).call(x,r,e);else Yo(this).call(y.transform,r)}function E(){if(!s.apply(this,arguments))return;var t=Oo.touches,e=t.length,n=k(this,arguments,Oo.changedTouches.length===e),i,r,a,o;sO();for(r=0;r<e;++r){a=t[r],o=Qo(this,t,a.identifier);o=[o,this.__zoom.invert(o),a.identifier];if(!n.touch0)n.touch0=o,i=true,n.taps=1+!!p;else if(!n.touch1&&n.touch0[2]!==o[2])n.touch1=o,n.taps=0}if(p)p=clearTimeout(p);if(i){if(n.taps<2)p=setTimeout(function(){p=null},c);Hs(this);n.start()}}function A(){if(!this.__zooming)return;var t=k(this,arguments),e=Oo.changedTouches,n=e.length,i,r,a,o;uO();if(p)p=clearTimeout(p);t.taps=0;for(i=0;i<n;++i){r=e[i],a=Qo(this,e,r.identifier);if(t.touch0&&t.touch0[2]===r.identifier)t.touch0[0]=a;else if(t.touch1&&t.touch1[2]===r.identifier)t.touch1[0]=a}r=t.that.__zoom;if(t.touch1){var s=t.touch0[0],u=t.touch0[1],l=t.touch1[0],c=t.touch1[1],f=(f=l[0]-s[0])*f+(f=l[1]-s[1])*f,h=(h=c[0]-u[0])*h+(h=c[1]-u[1])*h;r=_(r,Math.sqrt(f/h));a=[(s[0]+l[0])/2,(s[1]+l[1])/2];o=[(u[0]+c[0])/2,(u[1]+c[1])/2]}else if(t.touch0)a=t.touch0[0],o=t.touch0[1];else return;t.zoom("touch",d(b(r,a,o),t.extent,g))}function R(){if(!this.__zooming)return;var t=k(this,arguments),e=Oo.changedTouches,n=e.length,i,r;sO();if(l)clearTimeout(l);l=setTimeout(function(){l=null},c);for(i=0;i<n;++i){r=e[i];if(t.touch0&&t.touch0[2]===r.identifier)delete t.touch0;else if(t.touch1&&t.touch1[2]===r.identifier)delete t.touch1}if(t.touch1&&!t.touch0)t.touch0=t.touch1,delete t.touch1;if(t.touch0)t.touch0[1]=this.__zoom.invert(t.touch0[0]);else{t.end();if(t.taps===2){var a=Yo(this).on("dblclick.zoom");if(a)a.apply(this,arguments)}}}y.wheelDelta=function(t){return arguments.length?(a=typeof t==="function"?t:nO(+t),y):a};y.filter=function(t){return arguments.length?(s=typeof t==="function"?t:nO(!!t),y):s};y.touchable=function(t){return arguments.length?(e=typeof t==="function"?t:nO(!!t),y):e};y.extent=function(t){return arguments.length?(f=typeof t==="function"?t:nO([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):f};y.scaleExtent=function(t){return arguments.length?(o[0]=+t[0],o[1]=+t[1],y):[o[0],o[1]]};y.translateExtent=function(t){return arguments.length?(g[0][0]=+t[0][0],g[1][0]=+t[1][0],g[0][1]=+t[0][1],g[1][1]=+t[1][1],y):[[g[0][0],g[0][1]],[g[1][0],g[1][1]]]};y.constrain=function(t){return arguments.length?(d=t,y):d};y.duration=function(t){return arguments.length?(u=+t,y):u};y.interpolate=function(t){return arguments.length?(h=t,y):h};y.on=function(){var t=n.on.apply(n,arguments);return t===n?y:t};y.clickDistance=function(t){return arguments.length?(m=(t=+t)*t,y):Math.sqrt(m)};return y}function vO(){return new mO}function mO(){this.reset()}mO.prototype={constructor:mO,reset:function t(){this.s=this.t=0},add:function t(e){_O(yO,e,this.t);_O(this,yO.s,this.s);if(this.s)this.t+=yO.t;else this.s=yO.t},valueOf:function t(){return this.s}};var yO=new mO;function _O(t,e,n){var i=t.s=e+n,r=i-e,a=i-r;t.t=e-a+(n-r)}var bO=1e-6;var wO=1e-12;var xO=Math.PI;var kO=xO/2;var SO=xO/4;var CO=xO*2;var EO=180/xO;var AO=xO/180;var RO=Math.abs;var MO=Math.atan;var TO=Math.atan2;var PO=Math.cos;var OO=Math.ceil;var BO=Math.exp;var DO=Math.log;var NO=Math.pow;var zO=Math.sin;var jO=Math.sign||function(t){return t>0?1:t<0?-1:0};var LO=Math.sqrt;var FO=Math.tan;function IO(t){return t>1?0:t<-1?xO:Math.acos(t)}function HO(t){return t>1?kO:t<-1?-kO:Math.asin(t)}function GO(t){return(t=zO(t/2))*t}function VO(){}function UO(t,e){if(t&&qO.hasOwnProperty(t.type)){qO[t.type](t,e)}}var WO={Feature:function t(e,n){UO(e.geometry,n)},FeatureCollection:function t(e,n){var i=e.features,r=-1,a=i.length;while(++r<a){UO(i[r].geometry,n)}}};var qO={Sphere:function t(e,n){n.sphere()},Point:function t(e,n){e=e.coordinates;n.point(e[0],e[1],e[2])},MultiPoint:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){e=i[r],n.point(e[0],e[1],e[2])}},LineString:function t(e,n){KO(e.coordinates,n,0)},MultiLineString:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){KO(i[r],n,0)}},Polygon:function t(e,n){YO(e.coordinates,n)},MultiPolygon:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){YO(i[r],n)}},GeometryCollection:function t(e,n){var i=e.geometries,r=-1,a=i.length;while(++r<a){UO(i[r],n)}}};function KO(t,e,n){var i=-1,r=t.length-n,a;e.lineStart();while(++i<r){a=t[i],e.point(a[0],a[1],a[2])}e.lineEnd()}function YO(t,e){var n=-1,i=t.length;e.polygonStart();while(++n<i){KO(t[n],e,1)}e.polygonEnd()}function XO(t,e){if(t&&WO.hasOwnProperty(t.type)){WO[t.type](t,e)}else{UO(t,e)}}var ZO=vO();var $O=vO(),JO,QO,tB,eB,nB;var iB={point:VO,lineStart:VO,lineEnd:VO,polygonStart:function t(){ZO.reset();iB.lineStart=rB;iB.lineEnd=aB},polygonEnd:function t(){var e=+ZO;$O.add(e<0?CO+e:e);this.lineStart=this.lineEnd=this.point=VO},sphere:function t(){$O.add(CO)}};function rB(){iB.point=oB}function aB(){sB(JO,QO)}function oB(t,e){iB.point=sB;JO=t,QO=e;t*=AO,e*=AO;tB=t,eB=PO(e=e/2+SO),nB=zO(e)}function sB(t,e){t*=AO,e*=AO;e=e/2+SO;var n=t-tB,i=n>=0?1:-1,r=i*n,a=PO(e),o=zO(e),s=nB*o,u=eB*a+s*PO(r),l=s*i*zO(r);ZO.add(TO(l,u));tB=t,eB=a,nB=o}function uB(t){$O.reset();XO(t,iB);return $O*2}function lB(t){return[TO(t[1],t[0]),HO(t[2])]}function cB(t){var e=t[0],n=t[1],i=PO(n);return[i*PO(e),i*zO(e),zO(n)]}function fB(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function hB(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function dB(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function gB(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function pB(t){var e=LO(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var vB,mB,yB,_B,bB,wB,xB,kB,SB=vO(),CB,EB;var AB={point:RB,lineStart:TB,lineEnd:PB,polygonStart:function t(){AB.point=OB;AB.lineStart=BB;AB.lineEnd=DB;SB.reset();iB.polygonStart()},polygonEnd:function t(){iB.polygonEnd();AB.point=RB;AB.lineStart=TB;AB.lineEnd=PB;if(ZO<0)vB=-(yB=180),mB=-(_B=90);else if(SB>bO)_B=90;else if(SB<-bO)mB=-90;EB[0]=vB,EB[1]=yB},sphere:function t(){vB=-(yB=180),mB=-(_B=90)}};function RB(t,e){CB.push(EB=[vB=t,yB=t]);if(e<mB)mB=e;if(e>_B)_B=e}function MB(t,e){var n=cB([t*AO,e*AO]);if(kB){var i=hB(kB,n),r=[i[1],-i[0],0],a=hB(r,i);pB(a);a=lB(a);var o=t-bB,s=o>0?1:-1,u=a[0]*EO*s,l,c=RO(o)>180;if(c^(s*bB<u&&u<s*t)){l=a[1]*EO;if(l>_B)_B=l}else if(u=(u+360)%360-180,c^(s*bB<u&&u<s*t)){l=-a[1]*EO;if(l<mB)mB=l}else{if(e<mB)mB=e;if(e>_B)_B=e}if(c){if(t<bB){if(NB(vB,t)>NB(vB,yB))yB=t}else{if(NB(t,yB)>NB(vB,yB))vB=t}}else{if(yB>=vB){if(t<vB)vB=t;if(t>yB)yB=t}else{if(t>bB){if(NB(vB,t)>NB(vB,yB))yB=t}else{if(NB(t,yB)>NB(vB,yB))vB=t}}}}else{CB.push(EB=[vB=t,yB=t])}if(e<mB)mB=e;if(e>_B)_B=e;kB=n,bB=t}function TB(){AB.point=MB}function PB(){EB[0]=vB,EB[1]=yB;AB.point=RB;kB=null}function OB(t,e){if(kB){var n=t-bB;SB.add(RO(n)>180?n+(n>0?360:-360):n)}else{wB=t,xB=e}iB.point(t,e);MB(t,e)}function BB(){iB.lineStart()}function DB(){OB(wB,xB);iB.lineEnd();if(RO(SB)>bO)vB=-(yB=180);EB[0]=vB,EB[1]=yB;kB=null}function NB(t,e){return(e-=t)<0?e+360:e}function zB(t,e){return t[0]-e[0]}function jB(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function LB(t){var e,n,i,r,a,o,s;_B=yB=-(vB=mB=Infinity);CB=[];XO(t,AB);if(n=CB.length){CB.sort(zB);for(e=1,i=CB[0],a=[i];e<n;++e){r=CB[e];if(jB(i,r[0])||jB(i,r[1])){if(NB(i[0],r[1])>NB(i[0],i[1]))i[1]=r[1];if(NB(r[0],i[1])>NB(i[0],i[1]))i[0]=r[0]}else{a.push(i=r)}}for(o=-Infinity,n=a.length-1,e=0,i=a[n];e<=n;i=r,++e){r=a[e];if((s=NB(i[1],r[0]))>o)o=s,vB=r[0],yB=i[1]}}CB=EB=null;return vB===Infinity||mB===Infinity?[[NaN,NaN],[NaN,NaN]]:[[vB,mB],[yB,_B]]}var FB,IB,HB,GB,VB,UB,WB,qB,KB,YB,XB,ZB,$B,JB,QB,tD;var eD={sphere:VO,point:nD,lineStart:rD,lineEnd:sD,polygonStart:function t(){eD.lineStart=uD;eD.lineEnd=lD},polygonEnd:function t(){eD.lineStart=rD;eD.lineEnd=sD}};function nD(t,e){t*=AO,e*=AO;var n=PO(e);iD(n*PO(t),n*zO(t),zO(e))}function iD(t,e,n){++FB;HB+=(t-HB)/FB;GB+=(e-GB)/FB;VB+=(n-VB)/FB}function rD(){eD.point=aD}function aD(t,e){t*=AO,e*=AO;var n=PO(e);JB=n*PO(t);QB=n*zO(t);tD=zO(e);eD.point=oD;iD(JB,QB,tD)}function oD(t,e){t*=AO,e*=AO;var n=PO(e),i=n*PO(t),r=n*zO(t),a=zO(e),o=TO(LO((o=QB*a-tD*r)*o+(o=tD*i-JB*a)*o+(o=JB*r-QB*i)*o),JB*i+QB*r+tD*a);IB+=o;UB+=o*(JB+(JB=i));WB+=o*(QB+(QB=r));qB+=o*(tD+(tD=a));iD(JB,QB,tD)}function sD(){eD.point=nD}function uD(){eD.point=cD}function lD(){fD(ZB,$B);eD.point=nD}function cD(t,e){ZB=t,$B=e;t*=AO,e*=AO;eD.point=fD;var n=PO(e);JB=n*PO(t);QB=n*zO(t);tD=zO(e);iD(JB,QB,tD)}function fD(t,e){t*=AO,e*=AO;var n=PO(e),i=n*PO(t),r=n*zO(t),a=zO(e),o=QB*a-tD*r,s=tD*i-JB*a,u=JB*r-QB*i,l=LO(o*o+s*s+u*u),c=HO(l),f=l&&-c/l;KB+=f*o;YB+=f*s;XB+=f*u;IB+=c;UB+=c*(JB+(JB=i));WB+=c*(QB+(QB=r));qB+=c*(tD+(tD=a));iD(JB,QB,tD)}function hD(t){FB=IB=HB=GB=VB=UB=WB=qB=KB=YB=XB=0;XO(t,eD);var e=KB,n=YB,i=XB,r=e*e+n*n+i*i;if(r<wO){e=UB,n=WB,i=qB;if(IB<bO)e=HB,n=GB,i=VB;r=e*e+n*n+i*i;if(r<wO)return[NaN,NaN]}return[TO(n,e)*EO,HO(i/LO(r))*EO]}function dD(t){return function(){return t}}function gD(n,i){function t(t,e){return t=n(t,e),i(t[0],t[1])}if(n.invert&&i.invert)t.invert=function(t,e){return t=i.invert(t,e),t&&n.invert(t[0],t[1])};return t}function pD(t,e){return[RO(t)>xO?t+Math.round(-t/CO)*CO:t,e]}pD.invert=pD;function vD(t,e,n){return(t%=CO)?e||n?gD(yD(t),_D(e,n)):yD(t):e||n?_D(e,n):pD}function mD(n){return function(t,e){return t+=n,[t>xO?t-CO:t<-xO?t+CO:t,e]}}function yD(t){var e=mD(t);e.invert=mD(-t);return e}function _D(t,e){var s=PO(t),u=zO(t),l=PO(e),c=zO(e);function n(t,e){var n=PO(e),i=PO(t)*n,r=zO(t)*n,a=zO(e),o=a*s+i*u;return[TO(r*l-o*c,i*s-a*u),HO(o*l+r*c)]}n.invert=function(t,e){var n=PO(e),i=PO(t)*n,r=zO(t)*n,a=zO(e),o=a*l-r*c;return[TO(r*l+a*c,i*s+o*u),HO(o*s-i*u)]};return n}function bD(e){e=vD(e[0]*AO,e[1]*AO,e.length>2?e[2]*AO:0);function t(t){t=e(t[0]*AO,t[1]*AO);return t[0]*=EO,t[1]*=EO,t}t.invert=function(t){t=e.invert(t[0]*AO,t[1]*AO);return t[0]*=EO,t[1]*=EO,t};return t}function wD(t,e,n,i,r,a){if(!n)return;var o=PO(e),s=zO(e),u=i*n;if(r==null){r=e+i*CO;a=e-u/2}else{r=xD(o,r);a=xD(o,a);if(i>0?r<a:r>a)r+=i*CO}for(var l,c=r;i>0?c>a:c<a;c-=u){l=lB([o,-s*PO(c),-s*zO(c)]);t.point(l[0],l[1])}}function xD(t,e){e=cB(e),e[0]-=t;pB(e);var n=IO(-e[1]);return((-e[2]<0?-n:n)+CO-bO)%CO}function kD(){var i=dD([0,0]),r=dD(90),a=dD(6),o,s,u={point:t};function t(t,e){o.push(t=s(t,e));t[0]*=EO,t[1]*=EO}function e(){var t=i.apply(this,arguments),e=r.apply(this,arguments)*AO,n=a.apply(this,arguments)*AO;o=[];s=vD(-t[0]*AO,-t[1]*AO,0).invert;wD(u,e,n,1);t={type:"Polygon",coordinates:[o]};o=s=null;return t}e.center=function(t){return arguments.length?(i=typeof t==="function"?t:dD([+t[0],+t[1]]),e):i};e.radius=function(t){return arguments.length?(r=typeof t==="function"?t:dD(+t),e):r};e.precision=function(t){return arguments.length?(a=typeof t==="function"?t:dD(+t),e):a};return e}function SD(){var e=[],r;return{point:function t(e,n,i){r.push([e,n,i])},lineStart:function t(){e.push(r=[])},lineEnd:VO,rejoin:function t(){if(e.length>1)e.push(e.pop().concat(e.shift()))},result:function t(){var t=e;e=[];r=null;return t}}}function CD(t,e){return RO(t[0]-e[0])<bO&&RO(t[1]-e[1])<bO}function ED(t,e,n,i){this.x=t;this.z=e;this.o=n;this.e=i;this.v=false;this.n=this.p=null}function AD(t,e,n,i,a){var o=[],s=[],u,r;t.forEach(function(t){if((e=t.length-1)<=0)return;var e,n=t[0],i=t[e],r;if(CD(n,i)){if(!n[2]&&!i[2]){a.lineStart();for(u=0;u<e;++u){a.point((n=t[u])[0],n[1])}a.lineEnd();return}i[0]+=2*bO}o.push(r=new ED(n,t,null,true));s.push(r.o=new ED(n,null,r,false));o.push(r=new ED(i,t,null,false));s.push(r.o=new ED(i,null,r,true))});if(!o.length)return;s.sort(e);RD(o);RD(s);for(u=0,r=s.length;u<r;++u){s[u].e=n=!n}var l=o[0],c,f;while(1){var h=l,d=true;while(h.v){if((h=h.n)===l)return}c=h.z;a.lineStart();do{h.v=h.o.v=true;if(h.e){if(d){for(u=0,r=c.length;u<r;++u){a.point((f=c[u])[0],f[1])}}else{i(h.x,h.n.x,1,a)}h=h.n}else{if(d){c=h.p.z;for(u=c.length-1;u>=0;--u){a.point((f=c[u])[0],f[1])}}else{i(h.x,h.p.x,-1,a)}h=h.p}h=h.o;c=h.z;d=!d}while(!h.v);a.lineEnd()}}function RD(t){if(!(e=t.length))return;var e,n=0,i=t[0],r;while(++n<e){i.n=r=t[n];r.p=i;i=r}i.n=r=t[0];r.p=i}var MD=vO();function TD(t){if(RO(t[0])<=xO)return t[0];else return jO(t[0])*((RO(t[0])+xO)%CO-xO)}function PD(t,e){var n=TD(e),i=e[1],r=zO(i),a=[zO(n),-PO(n),0],o=0,s=0;MD.reset();if(r===1)i=kO+bO;else if(r===-1)i=-kO-bO;for(var u=0,l=t.length;u<l;++u){if(!(f=(c=t[u]).length))continue;var c,f,h=c[f-1],d=TD(h),g=h[1]/2+SO,p=zO(g),v=PO(g);for(var m=0;m<f;++m,d=_,p=w,v=x,h=y){var y=c[m],_=TD(y),b=y[1]/2+SO,w=zO(b),x=PO(b),k=_-d,S=k>=0?1:-1,C=S*k,E=C>xO,A=p*w;MD.add(TO(A*S*zO(C),v*x+A*PO(C)));o+=E?k+S*CO:k;if(E^d>=n^_>=n){var R=hB(cB(h),cB(y));pB(R);var M=hB(a,R);pB(M);var T=(E^k>=0?-1:1)*HO(M[2]);if(i>T||i===T&&(R[0]||R[1])){s+=E^k>=0?1:-1}}}}return(o<-bO||o<bO&&MD<-bO)^s&1}function OD(v,m,y,_){return function(s){var n=m(s),u=SD(),l=m(u),c=false,f,h,d;var i={point:r,lineStart:a,lineEnd:o,polygonStart:function t(){i.point=g;i.lineStart=e;i.lineEnd=p;h=[];f=[]},polygonEnd:function t(){i.point=r;i.lineStart=a;i.lineEnd=o;h=he(h);var e=PD(f,_);if(h.length){if(!c)s.polygonStart(),c=true;AD(h,DD,e,y,s)}else if(e){if(!c)s.polygonStart(),c=true;s.lineStart();y(null,null,1,s);s.lineEnd()}if(c)s.polygonEnd(),c=false;h=f=null},sphere:function t(){s.polygonStart();s.lineStart();y(null,null,1,s);s.lineEnd();s.polygonEnd()}};function r(t,e){if(v(t,e))s.point(t,e)}function t(t,e){n.point(t,e)}function a(){i.point=t;n.lineStart()}function o(){i.point=r;n.lineEnd()}function g(t,e){d.push([t,e]);l.point(t,e)}function e(){l.lineStart();d=[]}function p(){g(d[0][0],d[0][1]);l.lineEnd();var t=l.clean(),e=u.result(),n,i=e.length,r,a,o;d.pop();f.push(d);d=null;if(!i)return;if(t&1){a=e[0];if((r=a.length-1)>0){if(!c)s.polygonStart(),c=true;s.lineStart();for(n=0;n<r;++n){s.point((o=a[n])[0],o[1])}s.lineEnd()}return}if(i>1&&t&2)e.push(e.pop().concat(e.shift()));h.push(e.filter(BD))}return i}}function BD(t){return t.length>1}function DD(t,e){return((t=t.x)[0]<0?t[1]-kO-bO:kO-t[1])-((e=e.x)[0]<0?e[1]-kO-bO:kO-e[1])}var ND=OD(function(){return true},zD,LD,[-xO,-kO]);function zD(a){var o=NaN,s=NaN,u=NaN,l;return{lineStart:function t(){a.lineStart();l=1},point:function t(e,n){var i=e>0?xO:-xO,r=RO(e-o);if(RO(r-xO)<bO){a.point(o,s=(s+n)/2>0?kO:-kO);a.point(u,s);a.lineEnd();a.lineStart();a.point(i,s);a.point(e,s);l=0}else if(u!==i&&r>=xO){if(RO(o-u)<bO)o-=u*bO;if(RO(e-i)<bO)e-=i*bO;s=jD(o,s,e,n);a.point(u,s);a.lineEnd();a.lineStart();a.point(i,s);l=0}a.point(o=e,s=n);u=i},lineEnd:function t(){a.lineEnd();o=s=NaN},clean:function t(){return 2-l}}}function jD(t,e,n,i){var r,a,o=zO(t-n);return RO(o)>bO?MO((zO(e)*(a=PO(i))*zO(n)-zO(i)*(r=PO(e))*zO(t))/(r*a*o)):(e+i)/2}function LD(t,e,n,i){var r;if(t==null){r=n*kO;i.point(-xO,r);i.point(0,r);i.point(xO,r);i.point(xO,0);i.point(xO,-r);i.point(0,-r);i.point(-xO,-r);i.point(-xO,0);i.point(-xO,r)}else if(RO(t[0]-e[0])>bO){var a=t[0]<e[0]?xO:-xO;r=n*a/2;i.point(-a,r);i.point(0,r);i.point(a,r)}else{i.point(e[0],e[1])}}function FD(r){var T=PO(r),a=6*AO,g=T>0,p=RO(T)>bO;function t(t,e,n,i){wD(i,r,a,n,t,e)}function v(t,e){return PO(t)*PO(e)>T}function e(u){var l,c,f,h,d;return{lineStart:function t(){h=f=false;d=1},point:function t(e,n){var i=[e,n],r,a=v(e,n),o=g?a?0:y(e,n):a?y(e+(e<0?xO:-xO),n):0;if(!l&&(h=f=a))u.lineStart();if(a!==f){r=m(l,i);if(!r||CD(l,r)||CD(i,r))i[2]=1}if(a!==f){d=0;if(a){u.lineStart();r=m(i,l);u.point(r[0],r[1])}else{r=m(l,i);u.point(r[0],r[1],2);u.lineEnd()}l=r}else if(p&&l&&g^a){var s;if(!(o&c)&&(s=m(i,l,true))){d=0;if(g){u.lineStart();u.point(s[0][0],s[0][1]);u.point(s[1][0],s[1][1]);u.lineEnd()}else{u.point(s[1][0],s[1][1]);u.lineEnd();u.lineStart();u.point(s[0][0],s[0][1],3)}}}if(a&&(!l||!CD(l,i))){u.point(i[0],i[1])}l=i,f=a,c=o},lineEnd:function t(){if(f)u.lineEnd();l=null},clean:function t(){return d|(h&&f)<<1}}}function m(t,e,n){var i=cB(t),r=cB(e);var a=[1,0,0],o=hB(i,r),s=fB(o,o),u=o[0],l=s-u*u;if(!l)return!n&&t;var c=T*s/l,f=-T*u/l,h=hB(a,o),d=gB(a,c),g=gB(o,f);dB(d,g);var p=h,v=fB(d,p),m=fB(p,p),y=v*v-m*(fB(d,d)-1);if(y<0)return;var _=LO(y),b=gB(p,(-v-_)/m);dB(b,d);b=lB(b);if(!n)return b;var w=t[0],x=e[0],k=t[1],S=e[1],C;if(x<w)C=w,w=x,x=C;var E=x-w,A=RO(E-xO)<bO,R=A||E<bO;if(!A&&S<k)C=k,k=S,S=C;if(R?A?k+S>0^b[1]<(RO(b[0]-w)<bO?k:S):k<=b[1]&&b[1]<=S:E>xO^(w<=b[0]&&b[0]<=x)){var M=gB(p,(-v+_)/m);dB(M,d);return[b,lB(M)]}}function y(t,e){var n=g?r:xO-r,i=0;if(t<-n)i|=1;else if(t>n)i|=2;if(e<-n)i|=4;else if(e>n)i|=8;return i}return OD(v,e,t,g?[0,-r]:[-xO,r-xO])}function ID(t,e,n,i,r,a){var o=t[0],s=t[1],u=e[0],l=e[1],c=0,f=1,h=u-o,d=l-s,g;g=n-o;if(!h&&g>0)return;g/=h;if(h<0){if(g<c)return;if(g<f)f=g}else if(h>0){if(g>f)return;if(g>c)c=g}g=r-o;if(!h&&g<0)return;g/=h;if(h<0){if(g>f)return;if(g>c)c=g}else if(h>0){if(g<c)return;if(g<f)f=g}g=i-s;if(!d&&g>0)return;g/=d;if(d<0){if(g<c)return;if(g<f)f=g}else if(d>0){if(g>f)return;if(g>c)c=g}g=a-s;if(!d&&g<0)return;g/=d;if(d<0){if(g>f)return;if(g>c)c=g}else if(d>0){if(g<c)return;if(g<f)f=g}if(c>0)t[0]=o+c*h,t[1]=s+c*d;if(f<1)e[0]=o+f*h,e[1]=s+f*d;return true}var HD=1e9,GD=-HD;function VD(x,k,S,C){function E(t,e){return x<=t&&t<=S&&k<=e&&e<=C}function A(t,e,n,i){var r=0,a=0;if(t==null||(r=o(t,n))!==(a=o(e,n))||s(t,e)<0^n>0){do{i.point(r===0||r===3?x:S,r>1?C:k)}while((r=(r+n+4)%4)!==a)}else{i.point(e[0],e[1])}}function o(t,e){return RO(t[0]-x)<bO?e>0?0:3:RO(t[0]-S)<bO?e>0?2:1:RO(t[1]-k)<bO?e>0?1:0:e>0?3:2}function R(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),i=o(e,1);return n!==i?n-i:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(i){var a=i,t=SD(),r,f,o,s,u,l,c,h,d,g,p;var e={point:n,lineStart:_,lineEnd:b,polygonStart:m,polygonEnd:y};function n(t,e){if(E(t,e))a.point(t,e)}function v(){var t=0;for(var e=0,n=f.length;e<n;++e){for(var i=f[e],r=1,a=i.length,o=i[0],s,u,l=o[0],c=o[1];r<a;++r){s=l,u=c,o=i[r],l=o[0],c=o[1];if(u<=C){if(c>C&&(l-s)*(C-u)>(c-u)*(x-s))++t}else{if(c<=C&&(l-s)*(C-u)<(c-u)*(x-s))--t}}}return t}function m(){a=t,r=[],f=[],p=true}function y(){var t=v(),e=p&&t,n=(r=he(r)).length;if(e||n){i.polygonStart();if(e){i.lineStart();A(null,null,1,i);i.lineEnd()}if(n){AD(r,R,t,A,i)}i.polygonEnd()}a=i,r=f=o=null}function _(){e.point=w;if(f)f.push(o=[]);g=true;d=false;c=h=NaN}function b(){if(r){w(s,u);if(l&&d)t.rejoin();r.push(t.result())}e.point=n;if(d)a.lineEnd()}function w(t,e){var n=E(t,e);if(f)o.push([t,e]);if(g){s=t,u=e,l=n;g=false;if(n){a.lineStart();a.point(t,e)}}else{if(n&&d)a.point(t,e);else{var i=[c=Math.max(GD,Math.min(HD,c)),h=Math.max(GD,Math.min(HD,h))],r=[t=Math.max(GD,Math.min(HD,t)),e=Math.max(GD,Math.min(HD,e))];if(ID(i,r,x,k,S,C)){if(!d){a.lineStart();a.point(i[0],i[1])}a.point(r[0],r[1]);if(!n)a.lineEnd();p=false}else if(n){a.lineStart();a.point(t,e);p=false}}}c=t,h=e,d=n}return e}}function UD(){var n=0,i=0,r=960,a=500,o,s,u;return u={stream:function t(e){return o&&s===e?o:o=VD(n,i,r,a)(s=e)},extent:function t(e){return arguments.length?(n=+e[0][0],i=+e[0][1],r=+e[1][0],a=+e[1][1],o=s=null,u):[[n,i],[r,a]]}}}var WD=vO(),qD,KD,YD;var XD={sphere:VO,point:VO,lineStart:ZD,lineEnd:VO,polygonStart:VO,polygonEnd:VO};function ZD(){XD.point=JD;XD.lineEnd=$D}function $D(){XD.point=XD.lineEnd=VO}function JD(t,e){t*=AO,e*=AO;qD=t,KD=zO(e),YD=PO(e);XD.point=QD}function QD(t,e){t*=AO,e*=AO;var n=zO(e),i=PO(e),r=RO(t-qD),a=PO(r),o=zO(r),s=i*o,u=YD*n-KD*i*a,l=KD*n+YD*i*a;WD.add(TO(LO(s*s+u*u),l));qD=t,KD=n,YD=i}function tN(t){WD.reset();XO(t,XD);return+WD}var eN=[null,null],nN={type:"LineString",coordinates:eN};function iN(t,e){eN[0]=t;eN[1]=e;return tN(nN)}var rN={Feature:function t(e,n){return oN(e.geometry,n)},FeatureCollection:function t(e,n){var i=e.features,r=-1,a=i.length;while(++r<a){if(oN(i[r].geometry,n))return true}return false}};var aN={Sphere:function t(){return true},Point:function t(e,n){return sN(e.coordinates,n)},MultiPoint:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){if(sN(i[r],n))return true}return false},LineString:function t(e,n){return uN(e.coordinates,n)},MultiLineString:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){if(uN(i[r],n))return true}return false},Polygon:function t(e,n){return lN(e.coordinates,n)},MultiPolygon:function t(e,n){var i=e.coordinates,r=-1,a=i.length;while(++r<a){if(lN(i[r],n))return true}return false},GeometryCollection:function t(e,n){var i=e.geometries,r=-1,a=i.length;while(++r<a){if(oN(i[r],n))return true}return false}};function oN(t,e){return t&&aN.hasOwnProperty(t.type)?aN[t.type](t,e):false}function sN(t,e){return iN(t,e)===0}function uN(t,e){var n,i,r;for(var a=0,o=t.length;a<o;a++){i=iN(t[a],e);if(i===0)return true;if(a>0){r=iN(t[a],t[a-1]);if(r>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<wO*r)return true}n=i}return false}function lN(t,e){return!!PD(t.map(cN),fN(e))}function cN(t){return t=t.map(fN),t.pop(),t}function fN(t){return[t[0]*AO,t[1]*AO]}function hN(t,e){return(t&&rN.hasOwnProperty(t.type)?rN[t.type]:oN)(t,e)}function dN(t,e,n){var i=le(t,e-bO,n).concat(e);return function(e){return i.map(function(t){return[e,t]})}}function gN(t,e,n){var i=le(t,e-bO,n).concat(e);return function(e){return i.map(function(t){return[t,e]})}}function pN(){var e,n,i,r,a,o,s,u,l=10,c=l,f=90,h=360,d,g,p,v,m=2.5;function y(){return{type:"MultiLineString",coordinates:t()}}function t(){return le(OO(r/f)*f,i,f).map(p).concat(le(OO(u/h)*h,s,h).map(v)).concat(le(OO(n/l)*l,e,l).filter(function(t){return RO(t%f)>bO}).map(d)).concat(le(OO(o/c)*c,a,c).filter(function(t){return RO(t%h)>bO}).map(g))}y.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})};y.outline=function(){return{type:"Polygon",coordinates:[p(r).concat(v(s).slice(1),p(i).reverse().slice(1),v(u).reverse().slice(1))]}};y.extent=function(t){if(!arguments.length)return y.extentMinor();return y.extentMajor(t).extentMinor(t)};y.extentMajor=function(t){if(!arguments.length)return[[r,u],[i,s]];r=+t[0][0],i=+t[1][0];u=+t[0][1],s=+t[1][1];if(r>i)t=r,r=i,i=t;if(u>s)t=u,u=s,s=t;return y.precision(m)};y.extentMinor=function(t){if(!arguments.length)return[[n,o],[e,a]];n=+t[0][0],e=+t[1][0];o=+t[0][1],a=+t[1][1];if(n>e)t=n,n=e,e=t;if(o>a)t=o,o=a,a=t;return y.precision(m)};y.step=function(t){if(!arguments.length)return y.stepMinor();return y.stepMajor(t).stepMinor(t)};y.stepMajor=function(t){if(!arguments.length)return[f,h];f=+t[0],h=+t[1];return y};y.stepMinor=function(t){if(!arguments.length)return[l,c];l=+t[0],c=+t[1];return y};y.precision=function(t){if(!arguments.length)return m;m=+t;d=dN(o,a,90);g=gN(n,e,m);p=dN(u,s,90);v=gN(r,i,m);return y};return y.extentMajor([[-180,-90+bO],[180,90-bO]]).extentMinor([[-180,-80-bO],[180,80+bO]])}function vN(){return pN()()}function mN(t,e){var n=t[0]*AO,i=t[1]*AO,r=e[0]*AO,a=e[1]*AO,o=PO(i),s=zO(i),u=PO(a),l=zO(a),c=o*PO(n),f=o*zO(n),h=u*PO(r),d=u*zO(r),g=2*HO(LO(GO(a-i)+o*u*GO(r-n))),p=zO(g);var v=g?function(t){var e=zO(t*=g)/p,n=zO(g-t)/p,i=n*c+e*h,r=n*f+e*d,a=n*s+e*l;return[TO(r,i)*EO,TO(a,LO(i*i+r*r))*EO]}:function(){return[n*EO,i*EO]};v.distance=g;return v}function yN(t){return t}var _N=vO(),bN=vO(),wN,xN,kN,SN;var CN={point:VO,lineStart:VO,lineEnd:VO,polygonStart:function t(){CN.lineStart=EN;CN.lineEnd=MN},polygonEnd:function t(){CN.lineStart=CN.lineEnd=CN.point=VO;_N.add(RO(bN));bN.reset()},result:function t(){var e=_N/2;_N.reset();return e}};function EN(){CN.point=AN}function AN(t,e){CN.point=RN;wN=kN=t,xN=SN=e}function RN(t,e){bN.add(SN*t-kN*e);kN=t,SN=e}function MN(){RN(wN,xN)}var TN=Infinity,PN=TN,ON=-TN,BN=ON;var DN={point:NN,lineStart:VO,lineEnd:VO,polygonStart:VO,polygonEnd:VO,result:function t(){var e=[[TN,PN],[ON,BN]];ON=BN=-(PN=TN=Infinity);return e}};function NN(t,e){if(t<TN)TN=t;if(t>ON)ON=t;if(e<PN)PN=e;if(e>BN)BN=e}var zN=0,jN=0,LN=0,FN=0,IN=0,HN=0,GN=0,VN=0,UN=0,WN,qN,KN,YN;var XN={point:ZN,lineStart:$N,lineEnd:tz,polygonStart:function t(){XN.lineStart=ez;XN.lineEnd=nz},polygonEnd:function t(){XN.point=ZN;XN.lineStart=$N;XN.lineEnd=tz},result:function t(){var e=UN?[GN/UN,VN/UN]:HN?[FN/HN,IN/HN]:LN?[zN/LN,jN/LN]:[NaN,NaN];zN=jN=LN=FN=IN=HN=GN=VN=UN=0;return e}};function ZN(t,e){zN+=t;jN+=e;++LN}function $N(){XN.point=JN}function JN(t,e){XN.point=QN;ZN(KN=t,YN=e)}function QN(t,e){var n=t-KN,i=e-YN,r=LO(n*n+i*i);FN+=r*(KN+t)/2;IN+=r*(YN+e)/2;HN+=r;ZN(KN=t,YN=e)}function tz(){XN.point=ZN}function ez(){XN.point=iz}function nz(){rz(WN,qN)}function iz(t,e){XN.point=rz;ZN(WN=KN=t,qN=YN=e)}function rz(t,e){var n=t-KN,i=e-YN,r=LO(n*n+i*i);FN+=r*(KN+t)/2;IN+=r*(YN+e)/2;HN+=r;r=YN*t-KN*e;GN+=r*(KN+t);VN+=r*(YN+e);UN+=r*3;ZN(KN=t,YN=e)}function az(t){this._context=t}az.prototype={_radius:4.5,pointRadius:function t(e){return this._radius=e,this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._context.closePath();this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._context.moveTo(e,n);this._point=1;break}case 1:{this._context.lineTo(e,n);break}default:{this._context.moveTo(e+this._radius,n);this._context.arc(e,n,this._radius,0,CO);break}}},result:VO};var oz=vO(),sz,uz,lz,cz,fz;var hz={point:VO,lineStart:function t(){hz.point=dz},lineEnd:function t(){if(sz)gz(uz,lz);hz.point=VO},polygonStart:function t(){sz=true},polygonEnd:function t(){sz=null},result:function t(){var e=+oz;oz.reset();return e}};function dz(t,e){hz.point=gz;uz=cz=t,lz=fz=e}function gz(t,e){cz-=t,fz-=e;oz.add(LO(cz*cz+fz*fz));cz=t,fz=e}function pz(){this._string=[]}pz.prototype={_radius:4.5,_circle:vz(4.5),pointRadius:function t(e){if((e=+e)!==this._radius)this._radius=e,this._circle=null;return this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._string.push("Z");this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._string.push("M",e,",",n);this._point=1;break}case 1:{this._string.push("L",e,",",n);break}default:{if(this._circle==null)this._circle=vz(this._radius);this._string.push("M",e,",",n,this._circle);break}}},result:function t(){if(this._string.length){var t=this._string.join("");this._string=[];return t}else{return null}}};function vz(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function mz(e,n){var i=4.5,r,a;function o(t){if(t){if(typeof i==="function")a.pointRadius(+i.apply(this,arguments));XO(t,r(a))}return a.result()}o.area=function(t){XO(t,r(CN));return CN.result()};o.measure=function(t){XO(t,r(hz));return hz.result()};o.bounds=function(t){XO(t,r(DN));return DN.result()};o.centroid=function(t){XO(t,r(XN));return XN.result()};o.projection=function(t){return arguments.length?(r=t==null?(e=null,yN):(e=t).stream,o):e};o.context=function(t){if(!arguments.length)return n;a=t==null?(n=null,new pz):new az(n=t);if(typeof i!=="function")a.pointRadius(i);return o};o.pointRadius=function(t){if(!arguments.length)return i;i=typeof t==="function"?t:(a.pointRadius(+t),+t);return o};return o.projection(e).context(n)}function yz(t){return{stream:_z(t)}}function _z(i){return function(t){var e=new bz;for(var n in i){e[n]=i[n]}e.stream=t;return e}}function bz(){}bz.prototype={constructor:bz,point:function t(e,n){this.stream.point(e,n)},sphere:function t(){this.stream.sphere()},lineStart:function t(){this.stream.lineStart()},lineEnd:function t(){this.stream.lineEnd()},polygonStart:function t(){this.stream.polygonStart()},polygonEnd:function t(){this.stream.polygonEnd()}};function wz(t,e,n){var i=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(i!=null)t.clipExtent(null);XO(n,t.stream(DN));e(DN.result());if(i!=null)t.clipExtent(i);return t}function xz(o,s,t){return wz(o,function(t){var e=s[1][0]-s[0][0],n=s[1][1]-s[0][1],i=Math.min(e/(t[1][0]-t[0][0]),n/(t[1][1]-t[0][1])),r=+s[0][0]+(e-i*(t[1][0]+t[0][0]))/2,a=+s[0][1]+(n-i*(t[1][1]+t[0][1]))/2;o.scale(150*i).translate([r,a])},t)}function kz(t,e,n){return xz(t,[[0,0],e],n)}function Sz(a,o,t){return wz(a,function(t){var e=+o,n=e/(t[1][0]-t[0][0]),i=(e-n*(t[1][0]+t[0][0]))/2,r=-n*t[0][1];a.scale(150*n).translate([i,r])},t)}function Cz(a,o,t){return wz(a,function(t){var e=+o,n=e/(t[1][1]-t[0][1]),i=-n*t[0][0],r=(e-n*(t[1][1]+t[0][1]))/2;a.scale(150*n).translate([i,r])},t)}var Ez=16,Az=PO(30*AO);function Rz(t,e){return+e?Tz(t,e):Mz(t)}function Mz(i){return _z({point:function t(e,n){e=i(e,n);this.stream.point(e[0],e[1])}})}function Tz(M,T){function P(t,e,n,i,r,a,o,s,u,l,c,f,h,d){var g=o-t,p=s-e,v=g*g+p*p;if(v>4*T&&h--){var m=i+l,y=r+c,_=a+f,b=LO(m*m+y*y+_*_),w=HO(_/=b),x=RO(RO(_)-1)<bO||RO(n-u)<bO?(n+u)/2:TO(y,m),k=M(x,w),S=k[0],C=k[1],E=S-t,A=C-e,R=p*E-g*A;if(R*R/v>T||RO((g*E+p*A)/v-.5)>.3||i*l+r*c+a*f<Az){P(t,e,n,i,r,a,S,C,x,m/=b,y/=b,_,h,d);d.point(S,C);P(S,C,x,m,y,_,o,s,u,l,c,f,h,d)}}}return function(r){var n,i,a,o,s,u,l,c,f,h,d,g;var p={point:t,lineStart:e,lineEnd:m,polygonStart:function t(){r.polygonStart();p.lineStart=y},polygonEnd:function t(){r.polygonEnd();p.lineStart=e}};function t(t,e){t=M(t,e);r.point(t[0],t[1])}function e(){c=NaN;p.point=v;r.lineStart()}function v(t,e){var n=cB([t,e]),i=M(t,e);P(c,f,l,h,d,g,c=i[0],f=i[1],l=t,h=n[0],d=n[1],g=n[2],Ez,r);r.point(c,f)}function m(){p.point=t;r.lineEnd()}function y(){e();p.point=_;p.lineEnd=b}function _(t,e){v(n=t,e),i=c,a=f,o=h,s=d,u=g;p.point=v}function b(){P(c,f,l,h,d,g,i,a,n,o,s,u,Ez,r);p.lineEnd=m;m()}return p}}var Pz=_z({point:function t(e,n){this.stream.point(e*AO,n*AO)}});function Oz(r){return _z({point:function t(e,n){var i=r(e,n);return this.stream.point(i[0],i[1])}})}function Bz(n,i,r,a,o){function t(t,e){t*=a;e*=o;return[i+n*t,r-n*e]}t.invert=function(t,e){return[(t-i)/n*a,(r-e)/n*o]};return t}function Dz(t,n,i,r,a,e){var o=PO(e),s=zO(e),u=o*t,l=s*t,c=o/t,f=s/t,h=(s*i-o*n)/t,d=(s*n+o*i)/t;function g(t,e){t*=r;e*=a;return[u*t-l*e+n,i-l*t-u*e]}g.invert=function(t,e){return[r*(c*t-f*e+h),a*(d-f*t-c*e)]};return g}function Nz(t){return zz(function(){return t})()}function zz(t){var n,i=150,r=480,a=250,o=0,s=0,u=0,l=0,c=0,f,h=0,d=1,g=1,e=null,p=ND,v=null,m,y,_,b=yN,w=.5,x,k,S,C,E;function A(t){return S(t[0]*AO,t[1]*AO)}function R(t){t=S.invert(t[0],t[1]);return t&&[t[0]*EO,t[1]*EO]}A.stream=function(t){return C&&E===t?C:C=Pz(Oz(f)(p(x(b(E=t)))))};A.preclip=function(t){return arguments.length?(p=t,e=undefined,T()):p};A.postclip=function(t){return arguments.length?(b=t,v=m=y=_=null,T()):b};A.clipAngle=function(t){return arguments.length?(p=+t?FD(e=t*AO):(e=null,ND),T()):e*EO};A.clipExtent=function(t){return arguments.length?(b=t==null?(v=m=y=_=null,yN):VD(v=+t[0][0],m=+t[0][1],y=+t[1][0],_=+t[1][1]),T()):v==null?null:[[v,m],[y,_]]};A.scale=function(t){return arguments.length?(i=+t,M()):i};A.translate=function(t){return arguments.length?(r=+t[0],a=+t[1],M()):[r,a]};A.center=function(t){return arguments.length?(o=t[0]%360*AO,s=t[1]%360*AO,M()):[o*EO,s*EO]};A.rotate=function(t){return arguments.length?(u=t[0]%360*AO,l=t[1]%360*AO,c=t.length>2?t[2]%360*AO:0,M()):[u*EO,l*EO,c*EO]};A.angle=function(t){return arguments.length?(h=t%360*AO,M()):h*EO};A.reflectX=function(t){return arguments.length?(d=t?-1:1,M()):d<0};A.reflectY=function(t){return arguments.length?(g=t?-1:1,M()):g<0};A.precision=function(t){return arguments.length?(x=Rz(k,w=t*t),T()):LO(w)};A.fitExtent=function(t,e){return xz(A,t,e)};A.fitSize=function(t,e){return kz(A,t,e)};A.fitWidth=function(t,e){return Sz(A,t,e)};A.fitHeight=function(t,e){return Cz(A,t,e)};function M(){var t=Dz(i,0,0,d,g,h).apply(null,n(o,s)),e=(h?Dz:Bz)(i,r-t[0],a-t[1],d,g,h);f=vD(u,l,c);k=gD(n,e);S=gD(f,k);x=Rz(k,w);return T()}function T(){C=E=null;return A}return function(){n=t.apply(this,arguments);A.invert=n.invert&&R;return M()}}function jz(t){var e=0,n=xO/3,i=zz(t),r=i(e,n);r.parallels=function(t){return arguments.length?i(e=t[0]*AO,n=t[1]*AO):[e*EO,n*EO]};return r}function Lz(t){var n=PO(t);function e(t,e){return[t*n,zO(e)/n]}e.invert=function(t,e){return[t/n,HO(e*n)]};return e}function Fz(t,e){var n=zO(t),r=(n+zO(e))/2;if(RO(r)<bO)return Lz(t);var a=1+n*(2*r-n),o=LO(a)/r;function i(t,e){var n=LO(a-2*r*zO(e))/r;return[n*zO(t*=r),o-n*PO(t)]}i.invert=function(t,e){var n=o-e,i=TO(t,RO(n))*jO(n);if(n*r<0)i-=xO*jO(t)*jO(n);return[i/r,HO((a-(t*t+n*n)*r*r)/(2*r))]};return i}function Iz(){return jz(Fz).scale(155.424).center([0,33.6442])}function Hz(){return Iz().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Gz(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function Vz(){var e,n,a=Hz(),r,o=Iz().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s,u=Iz().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,i,c={point:function t(e,n){i=[e,n]}};function f(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)||(l.point(e,n),i)}f.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?o:r>=.166&&r<.234&&i>=-.214&&i<-.115?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=Gz([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t),u.precision(t);return h()};f.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t*.35),u.scale(t);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(c);s=o.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+bO,i+.12*e+bO],[n-.214*e-bO,i+.234*e-bO]]).stream(c);l=u.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+bO,i+.166*e+bO],[n-.115*e-bO,i+.234*e-bO]]).stream(c);return h()};f.fitExtent=function(t,e){return xz(f,t,e)};f.fitSize=function(t,e){return kz(f,t,e)};f.fitWidth=function(t,e){return Sz(f,t,e)};f.fitHeight=function(t,e){return Cz(f,t,e)};function h(){e=n=null;return f}return f.scale(1070)}function Uz(a){return function(t,e){var n=PO(t),i=PO(e),r=a(n*i);return[r*i*zO(t),r*zO(e)]}}function Wz(o){return function(t,e){var n=LO(t*t+e*e),i=o(n),r=zO(i),a=PO(i);return[TO(t*r,n*a),HO(n&&e*r/n)]}}var qz=Uz(function(t){return LO(2/(1+t))});qz.invert=Wz(function(t){return 2*HO(t/2)});function Kz(){return Nz(qz).scale(124.75).clipAngle(180-.001)}var Yz=Uz(function(t){return(t=IO(t))&&t/zO(t)});Yz.invert=Wz(function(t){return t});function Xz(){return Nz(Yz).scale(79.4188).clipAngle(180-.001)}function Zz(t,e){return[t,DO(FO((kO+e)/2))]}Zz.invert=function(t,e){return[t,2*MO(BO(e))-kO]};function $z(){return Jz(Zz).scale(961/CO)}function Jz(n){var i=Nz(n),e=i.center,r=i.scale,a=i.translate,o=i.clipExtent,s=null,u,l,c;i.scale=function(t){return arguments.length?(r(t),f()):r()};i.translate=function(t){return arguments.length?(a(t),f()):a()};i.center=function(t){return arguments.length?(e(t),f()):e()};i.clipExtent=function(t){return arguments.length?(t==null?s=u=l=c=null:(s=+t[0][0],u=+t[0][1],l=+t[1][0],c=+t[1][1]),f()):s==null?null:[[s,u],[l,c]]};function f(){var t=xO*r(),e=i(bD(i.rotate()).invert([0,0]));return o(s==null?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===Zz?[[Math.max(e[0]-t,s),u],[Math.min(e[0]+t,l),c]]:[[s,Math.max(e[1]-t,u)],[l,Math.min(e[1]+t,c)]])}return f()}function Qz(t){return FO((kO+t)/2)}function tj(t,e){var n=PO(t),a=t===e?zO(t):DO(n/PO(e))/DO(Qz(e)/Qz(t)),o=n*NO(Qz(t),a)/a;if(!a)return Zz;function i(t,e){if(o>0){if(e<-kO+bO)e=-kO+bO}else{if(e>kO-bO)e=kO-bO}var n=o/NO(Qz(e),a);return[n*zO(a*t),o-n*PO(a*t)]}i.invert=function(t,e){var n=o-e,i=jO(a)*LO(t*t+n*n),r=TO(t,RO(n))*jO(n);if(n*a<0)r-=xO*jO(t)*jO(n);return[r/a,2*MO(NO(o/i,1/a))-kO]};return i}function ej(){return jz(tj).scale(109.5).parallels([30,30])}function nj(t,e){return[t,e]}nj.invert=nj;function ij(){return Nz(nj).scale(152.63)}function rj(t,e){var n=PO(t),r=t===e?zO(t):(n-PO(e))/(e-t),a=n/r+t;if(RO(r)<bO)return nj;function i(t,e){var n=a-e,i=r*t;return[n*zO(i),a-n*PO(i)]}i.invert=function(t,e){var n=a-e,i=TO(t,RO(n))*jO(n);if(n*r<0)i-=xO*jO(t)*jO(n);return[i/r,a-jO(r)*LO(t*t+n*n)]};return i}function aj(){return jz(rj).scale(131.154).center([0,13.9389])}var oj=1.340264,sj=-.081106,uj=893e-6,lj=.003796,cj=LO(3)/2,fj=12;function hj(t,e){var n=HO(cj*zO(e)),i=n*n,r=i*i*i;return[t*PO(n)/(cj*(oj+3*sj*i+r*(7*uj+9*lj*i))),n*(oj+sj*i+r*(uj+lj*i))]}hj.invert=function(t,e){var n=e,i=n*n,r=i*i*i;for(var a=0,o,s,u;a<fj;++a){s=n*(oj+sj*i+r*(uj+lj*i))-e;u=oj+3*sj*i+r*(7*uj+9*lj*i);n-=o=s/u,i=n*n,r=i*i*i;if(RO(o)<wO)break}return[cj*t*(oj+3*sj*i+r*(7*uj+9*lj*i))/PO(n),HO(zO(n)/cj)]};function dj(){return Nz(hj).scale(177.158)}function gj(t,e){var n=PO(e),i=PO(t)*n;return[n*zO(t)/i,zO(e)/i]}gj.invert=Wz(MO);function pj(){return Nz(gj).scale(144.049).clipAngle(60)}function vj(){var e=1,r=0,a=0,n=1,i=1,o=0,s,u,l=null,c,f,h,d=1,g=1,p=_z({point:function t(e,n){var i=b([e,n]);this.stream.point(i[0],i[1])}}),v=yN,m,y;function _(){d=e*n;g=e*i;m=y=null;return b}function b(t){var e=t[0]*d,n=t[1]*g;if(o){var i=n*s-e*u;e=e*s+n*u;n=i}return[e+r,n+a]}b.invert=function(t){var e=t[0]-r,n=t[1]-a;if(o){var i=n*s+e*u;e=e*s-n*u;n=i}return[e/d,n/g]};b.stream=function(t){return m&&y===t?m:m=p(v(y=t))};b.postclip=function(t){return arguments.length?(v=t,l=c=f=h=null,_()):v};b.clipExtent=function(t){return arguments.length?(v=t==null?(l=c=f=h=null,yN):VD(l=+t[0][0],c=+t[0][1],f=+t[1][0],h=+t[1][1]),_()):l==null?null:[[l,c],[f,h]]};b.scale=function(t){return arguments.length?(e=+t,_()):e};b.translate=function(t){return arguments.length?(r=+t[0],a=+t[1],_()):[r,a]};b.angle=function(t){return arguments.length?(o=t%360*AO,u=zO(o),s=PO(o),_()):o*EO};b.reflectX=function(t){return arguments.length?(n=t?-1:1,_()):n<0};b.reflectY=function(t){return arguments.length?(i=t?-1:1,_()):i<0};b.fitExtent=function(t,e){return xz(b,t,e)};b.fitSize=function(t,e){return kz(b,t,e)};b.fitWidth=function(t,e){return Sz(b,t,e)};b.fitHeight=function(t,e){return Cz(b,t,e)};return b}function mj(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(-.013791+i*(.003971*n-.001529*i))),e*(1.007226+n*(.015085+i*(-.044475+.028874*n-.005916*i)))]}mj.invert=function(t,e){var n=e,i=25,r;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(RO(r)>bO&&--i>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function yj(){return Nz(mj).scale(175.295)}function _j(t,e){return[PO(e)*zO(t),zO(e)]}_j.invert=Wz(HO);function bj(){return Nz(_j).scale(249.5).clipAngle(90+bO)}function wj(t,e){var n=PO(e),i=1+PO(t)*n;return[n*zO(t)/i,zO(e)/i]}wj.invert=Wz(function(t){return 2*MO(t)});function xj(){return Nz(wj).scale(250).clipAngle(142)}function kj(t,e){return[DO(FO((kO+e)/2)),-t]}kj.invert=function(t,e){return[-e,2*MO(BO(t))-kO]};function Sj(){var t=Jz(kj),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var Cj=Object.freeze({__proto__:null,geoArea:uB,geoBounds:LB,geoCentroid:hD,geoCircle:kD,geoClipAntimeridian:ND,geoClipCircle:FD,geoClipExtent:UD,geoClipRectangle:VD,geoContains:hN,geoDistance:iN,geoGraticule:pN,geoGraticule10:vN,geoInterpolate:mN,geoLength:tN,geoPath:mz,geoAlbers:Hz,geoAlbersUsa:Vz,geoAzimuthalEqualArea:Kz,geoAzimuthalEqualAreaRaw:qz,geoAzimuthalEquidistant:Xz,geoAzimuthalEquidistantRaw:Yz,geoConicConformal:ej,geoConicConformalRaw:tj,geoConicEqualArea:Iz,geoConicEqualAreaRaw:Fz,geoConicEquidistant:aj,geoConicEquidistantRaw:rj,geoEqualEarth:dj,geoEqualEarthRaw:hj,geoEquirectangular:ij,geoEquirectangularRaw:nj,geoGnomonic:pj,geoGnomonicRaw:gj,geoIdentity:vj,geoProjection:Nz,geoProjectionMutator:zz,geoMercator:$z,geoMercatorRaw:Zz,geoNaturalEarth1:yj,geoNaturalEarth1Raw:mj,geoOrthographic:bj,geoOrthographicRaw:_j,geoStereographic:xj,geoStereographicRaw:wj,geoTransverseMercator:Sj,geoTransverseMercatorRaw:kj,geoRotation:bD,geoStream:XO,geoTransform:yz});var Ej=Math.abs;var Aj=Math.atan;var Rj=Math.atan2;var Mj=Math.cos;var Tj=Math.exp;var Pj=Math.floor;var Oj=Math.log;var Bj=Math.max;var Dj=Math.min;var Nj=Math.pow;var zj=Math.round;var jj=Math.sign||function(t){return t>0?1:t<0?-1:0};var Lj=Math.sin;var Fj=Math.tan;var Ij=1e-6;var Hj=1e-12;var Gj=Math.PI;var Vj=Gj/2;var Uj=Gj/4;var Wj=Math.SQRT1_2;var qj=tL(2);var Kj=tL(Gj);var Yj=Gj*2;var Xj=180/Gj;var Zj=Gj/180;function $j(t){return t?t/Math.sin(t):1}function Jj(t){return t>1?Vj:t<-1?-Vj:Math.asin(t)}function Qj(t){return t>1?0:t<-1?Gj:Math.acos(t)}function tL(t){return t>0?Math.sqrt(t):0}function eL(t){t=Tj(2*t);return(t-1)/(t+1)}function nL(t){return(Tj(t)-Tj(-t))/2}function iL(t){return(Tj(t)+Tj(-t))/2}function rL(t){return Oj(t+tL(t*t+1))}function aL(t){return Oj(t+tL(t*t-1))}function oL(h){var t=Fj(h/2),d=2*Oj(Mj(h/2))/(t*t);function e(t,e){var n=Mj(t),i=Mj(e),r=Lj(e),a=i*n,o=-((1-a?Oj((1+a)/2)/(1-a):-.5)+d/(1+a));return[o*i*Lj(t),o*r]}e.invert=function(t,e){var n=tL(t*t+e*e),i=-h/2,r=50,a;if(!n)return[0,0];do{var o=i/2,s=Mj(o),u=Lj(o),l=u/s,c=-Oj(Ej(s));i-=a=(2/l*c-d*l-n)/(-c/(u*u)+1-d/(2*s*s))*(s<0?.7:1)}while(Ej(a)>Ij&&--r>0);var f=Lj(i);return[Rj(t*f,n*Mj(i)),Jj(e*f/n)]};return e}function sL(){var e=Vj,n=zz(oL),t=n(e);t.radius=function(t){return arguments.length?n(e=t*Zj):e*Xj};return t.scale(179.976).clipAngle(147)}function uL(t,e){var n=Mj(e),i=$j(Qj(n*Mj(t/=2)));return[2*n*Lj(t)*i,Lj(e)*i]}uL.invert=function(t,e){if(t*t+4*e*e>Gj*Gj+Ij)return;var n=t,i=e,r=25;do{var a=Lj(n),o=Lj(n/2),s=Mj(n/2),u=Lj(i),l=Mj(i),c=Lj(2*i),f=u*u,h=l*l,d=o*o,g=1-h*s*s,p=g?Qj(l*s)*tL(v=1/g):v=0,v,m=2*p*l*o-t,y=p*u-e,_=v*(h*d+p*l*s*f),b=v*(.5*a*c-p*2*u*o),w=v*.25*(c*o-p*u*h*a),x=v*(f*s+p*d*l),k=b*w-x*_;if(!k)break;var S=(y*b-m*x)/k,C=(m*w-y*_)/k;n-=S,i-=C}while((Ej(S)>Ij||Ej(C)>Ij)&&--r>0);return[n,i]};function lL(){return Nz(uL).scale(152.63)}function cL(t){var _=Lj(t),b=Mj(t),w=t>=0?1:-1,x=Fj(w*t),k=(1+_-b)/2;function e(t,e){var n=Mj(e),i=Mj(t/=2);return[(1+n)*Lj(t),(w*e>-Rj(i,x)-.001?0:-w*10)+k+Lj(e)*b-(1+n)*_*i]}e.invert=function(t,e){var n=0,i=0,r=50;do{var a=Mj(n),o=Lj(n),s=Mj(i),u=Lj(i),l=1+s,c=l*o-t,f=k+u*b-l*_*a-e,h=l*a/2,d=-o*u,g=_*l*o/2,p=b*s+_*a*u,v=d*g-p*h,m=(f*d-c*p)/v/2,y=(c*g-f*h)/v;if(Ej(y)>2)y/=2;n-=m,i-=y}while((Ej(m)>Ij||Ej(y)>Ij)&&--r>0);return w*i>-Rj(Mj(n),x)-.001?[n*2,i]:null};return e}function fL(){var a=20*Zj,o=a>=0?1:-1,s=Fj(o*a),e=zz(cL),u=e(a),l=u.stream;u.parallel=function(t){if(!arguments.length)return a*Xj;s=Fj((o=(a=t*Zj)>=0?1:-1)*a);return e(a)};u.stream=function(t){var e=u.rotate(),n=l(t),i=(u.rotate([0,0]),l(t)),r=u.precision();u.rotate(e);n.sphere=function(){i.polygonStart(),i.lineStart();for(var t=o*-180;o*t<180;t+=o*90){i.point(t,o*90)}if(a)while(o*(t-=3*o*r)>=-180){i.point(t,o*-Rj(Mj(t*Zj/2),s)*Xj)}i.lineEnd(),i.polygonEnd()};return n};return u.scale(218.695).center([0,28.0974])}function hL(t,e){var n=Fj(e/2),i=tL(1-n*n),r=1+i*Mj(t/=2),a=Lj(t)*i/r,o=n/r,s=a*a,u=o*o;return[4/3*a*(3+s-3*u),4/3*o*(3+3*s-u)]}hL.invert=function(t,e){t*=3/8,e*=3/8;if(!t&&Ej(e)>1)return null;var n=t*t,i=e*e,r=1+n+i,a=tL((r-tL(r*r-4*e*e))/2),o=Jj(a)/3,s=a?aL(Ej(e/a))/3:rL(Ej(t))/3,u=Mj(o),l=iL(s),c=l*l-u*u;return[jj(t)*2*Rj(nL(s)*u,.25-c),jj(e)*2*Rj(l*Lj(o),.25+c)]};function dL(){return Nz(hL).scale(66.1603)}var gL=tL(8),pL=Oj(1+qj);function vL(t,e){var n=Ej(e);return n<Uj?[t,Oj(Fj(Uj+e/2))]:[t*Mj(n)*(2*qj-1/Lj(n)),jj(e)*(2*qj*(n-Uj)-Oj(Fj(n/2)))]}vL.invert=function(t,e){if((a=Ej(e))<pL)return[t,2*Aj(Tj(e))-Vj];var n=Uj,i=25,r,a;do{var o=Mj(n/2),s=Fj(n/2);n-=r=(gL*(n-Uj)-Oj(s)-a)/(gL-o*o/(2*s))}while(Ej(r)>Hj&&--i>0);return[t/(Mj(n)*(gL-1/Lj(n))),jj(e)*n]};function mL(){return Nz(vL).scale(112.314)}function yL(t){var u=2*Gj/t;function e(t,e){var n=Yz(t,e);if(Ej(t)>Vj){var i=Rj(n[1],n[0]),r=tL(n[0]*n[0]+n[1]*n[1]),a=u*zj((i-Vj)/u)+Vj,o=Rj(Lj(i-=a),2-Mj(i));i=a+Jj(Gj/r*Lj(o))-o;n[0]=r*Mj(i);n[1]=r*Lj(i)}return n}e.invert=function(t,e){var n=tL(t*t+e*e);if(n>Vj){var i=Rj(e,t),r=u*zj((i-Vj)/u)+Vj,a=i>r?-1:1,o=n*Mj(r-i),s=1/Fj(a*Qj((o-Gj)/tL(Gj*(Gj-2*o)+n*n)));i=r+2*Aj((s+a*tL(s*s-3))/3);t=n*Mj(i),e=n*Lj(i)}return Yz.invert(t,e)};return e}function _L(){var o=5,e=zz(yL),i=e(o),r=i.stream,s=.01,u=-Mj(s*Zj),l=Lj(s*Zj);i.lobes=function(t){return arguments.length?e(o=+t):o};i.stream=function(t){var e=i.rotate(),n=r(t),a=(i.rotate([0,0]),r(t));i.rotate(e);n.sphere=function(){a.polygonStart(),a.lineStart();for(var t=0,e=360/o,n=2*Gj/o,i=90-180/o,r=Vj;t<o;++t,i-=e,r-=n){a.point(Rj(l*Mj(r),u)*Xj,Jj(l*Lj(r))*Xj);if(i<-90){a.point(-90,-180-i-s);a.point(-90,-180-i+s)}else{a.point(90,i+s);a.point(90,i-s)}}a.lineEnd(),a.polygonEnd()};return n};return i.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function bL(i,r){if(arguments.length<2)r=i;if(r===1)return qz;if(r===Infinity)return wL;function t(t,e){var n=qz(t/r,e);n[0]*=i;return n}t.invert=function(t,e){var n=qz.invert(t/i,e);n[0]*=r;return n};return t}function wL(t,e){return[t*Mj(e)/Mj(e/=2),2*Lj(e)]}wL.invert=function(t,e){var n=2*Jj(e/2);return[t*Mj(n/2)/Mj(n),n]};function xL(){var e=2,n=zz(bL),t=n(e);t.coefficient=function(t){if(!arguments.length)return e;return n(e=+t)};return t.scale(169.529)}function kL(t,e,n){var i=100,r,a,o;n=n===undefined?0:+n;e=+e;do{a=t(n);o=t(n+Ij);if(a===o)o=a+Ij;n-=r=-1*Ij*(a-e)/(a-o)}while(i-- >0&&Ej(r)>Ij);return i<0?NaN:n}function SL(x,k,S){if(k===undefined)k=40;if(S===undefined)S=Hj;return function(t,e,n,i){var r,a,o;n=n===undefined?0:+n;i=i===undefined?0:+i;for(var s=0;s<k;s++){var u=x(n,i),l=u[0]-t,c=u[1]-e;if(Ej(l)<S&&Ej(c)<S)break;var f=l*l+c*c;if(f>r){n-=a/=2;i-=o/=2;continue}r=f;var h=(n>0?-1:1)*S,d=(i>0?-1:1)*S,g=x(n+h,i),p=x(n,i+d),v=(g[0]-u[0])/h,m=(g[1]-u[1])/h,y=(p[0]-u[0])/d,_=(p[1]-u[1])/d,b=_*v-m*y,w=(Ej(b)<.5?.5:1)/b;a=(c*y-l*_)*w;o=(l*m-c*v)*w;n+=a;i+=o;if(Ej(a)<S&&Ej(o)<S)break}return[n,i]}}function CL(){var a=bL(1.68,2),o=1.4,s=12;function t(t,e){if(t+e<-o){var n=(t-e+1.6)*(t+e+o)/8;t+=n;e-=.8*n*Lj(e+Gj/2)}var i=a(t,e);var r=(1-Mj(t*e))/s;if(i[1]<0){i[0]*=1+r}if(i[1]>0){i[1]*=1+r/1.5*i[0]*i[0]}return i}t.invert=SL(t);return t}function EL(){return Nz(CL()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function AL(t,e){var n=t*Lj(e),i=30,r;do{e-=r=(e+Lj(e)-n)/(1+Mj(e))}while(Ej(r)>Ij&&--i>0);return e/2}function RL(n,i,r){function t(t,e){return[n*t*Mj(e=AL(r,e)),i*Lj(e)]}t.invert=function(t,e){return e=Jj(e/i),[t/(n*Mj(e)),Jj((2*e+Lj(2*e))/r)]};return t}var ML=RL(qj/Vj,qj,Gj);function TL(){return Nz(ML).scale(169.529)}var PL=2.00276,OL=1.11072;function BL(t,e){var n=AL(Gj,e);return[PL*t/(1/Mj(e)+OL/Mj(n)),(e+qj*Lj(n))/PL]}BL.invert=function(t,e){var n=PL*e,i=e<0?-Uj:Uj,r=25,a,o;do{o=n-qj*Lj(i);i-=a=(Lj(2*i)+2*i-Gj*Lj(o))/(2*Mj(2*i)+2+Gj*Mj(o)*qj*Mj(i))}while(Ej(a)>Ij&&--r>0);o=n-qj*Lj(i);return[t*(1/Mj(o)+OL/Mj(i))/PL,o]};function DL(){return Nz(BL).scale(160.857)}function NL(t){var e=0,n=zz(t),i=n(e);i.parallel=function(t){return arguments.length?n(e=t*Zj):e*Xj};return i}function zL(t,e){return[t*Mj(e),e]}zL.invert=function(t,e){return[t/Mj(e),e]};function jL(){return Nz(zL).scale(152.63)}function LL(r){if(!r)return zL;var a=1/Fj(r);function t(t,e){var n=a+r-e,i=n?t*Mj(e)/n:n;return[n*Lj(i),a-n*Mj(i)]}t.invert=function(t,e){var n=tL(t*t+(e=a-e)*e),i=a+r-n;return[n/Mj(i)*Rj(t,e),i]};return t}function FL(){return NL(LL).scale(123.082).center([0,26.1441]).parallel(45)}function IL(o){function t(t,e){var n=Vj-e,i=n?t*o*Lj(n)/n:n;return[n*Lj(i)/o,Vj-n*Mj(i)]}t.invert=function(t,e){var n=t*o,i=Vj-e,r=tL(n*n+i*i),a=Rj(n,i);return[(r?r/Lj(r):1)*a/o,Vj-r]};return t}function HL(){var e=.5,n=zz(IL),t=n(e);t.fraction=function(t){return arguments.length?n(e=+t):e};return t.scale(158.837)}var GL=RL(1,4/Gj,Gj);function VL(){return Nz(GL).scale(152.63)}function UL(t,e,n,i,r,a){var o=Mj(a),s;if(Ej(t)>1||Ej(a)>1){s=Qj(n*r+e*i*o)}else{var u=Lj(t/2),l=Lj(a/2);s=2*Jj(tL(u*u+e*i*l*l))}return Ej(s)>Ij?[s,Rj(i*Lj(a),e*r-n*i*o)]:[0,0]}function WL(t,e,n){return Qj((t*t+e*e-n*n)/(2*t*e))}function qL(t){return t-2*Gj*Pj((t+Gj)/(2*Gj))}function KL(t,e,n){var c=[[t[0],t[1],Lj(t[1]),Mj(t[1])],[e[0],e[1],Lj(e[1]),Mj(e[1])],[n[0],n[1],Lj(n[1]),Mj(n[1])]];for(var i=c[2],r,a=0;a<3;++a,i=r){r=c[a];i.v=UL(r[1]-i[1],i[3],i[2],r[3],r[2],r[0]-i[0]);i.point=[0,0]}var o=WL(c[0].v[0],c[2].v[0],c[1].v[0]),f=WL(c[0].v[0],c[1].v[0],c[2].v[0]),h=Gj-o;c[2].point[1]=0;c[0].point[0]=-(c[1].point[0]=c[0].v[0]/2);var d=[c[2].point[0]=c[0].point[0]+c[2].v[0]*Mj(o),2*(c[0].point[1]=c[1].point[1]=c[2].v[0]*Lj(o))];function s(t,e){var n=Lj(e),i=Mj(e),r=new Array(3),a;for(a=0;a<3;++a){var o=c[a];r[a]=UL(e-o[1],o[3],o[2],i,n,t-o[0]);if(!r[a][0])return o.point;r[a][1]=qL(r[a][1]-o.v[1])}var s=d.slice();for(a=0;a<3;++a){var u=a==2?0:a+1;var l=WL(c[a].v[0],r[a][0],r[u][0]);if(r[a][1]<0)l=-l;if(!a){s[0]+=r[a][0]*Mj(l);s[1]-=r[a][0]*Lj(l)}else if(a==1){l=f-l;s[0]-=r[a][0]*Mj(l);s[1]-=r[a][0]*Lj(l)}else{l=h-l;s[0]+=r[a][0]*Mj(l);s[1]+=r[a][0]*Lj(l)}}s[0]/=3,s[1]/=3;return s}return s}function YL(t){return t[0]*=Zj,t[1]*=Zj,t}function XL(){return ZL([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function ZL(t,e,n){var i=hD({type:"MultiPoint",coordinates:[t,e,n]}),r=[-i[0],-i[1]],a=bD(r),o=KL(YL(a(t)),YL(a(e)),YL(a(n)));o.invert=SL(o);var s=Nz(o).rotate(r),u=s.center;delete s.rotate;s.center=function(t){return arguments.length?u(a(t)):a.invert(u())};return s.clipAngle(90)}function $L(t,e){var n=tL(1-Lj(e));return[2/Kj*t*n,Kj*(1-n)]}$L.invert=function(t,e){var n=(n=e/Kj-1)*n;return[n>0?t*tL(Gj/n)/2:0,Jj(1-n)]};function JL(){return Nz($L).scale(95.6464).center([0,30])}function QL(t){var i=Fj(t);function e(t,e){return[t,(t?t/Lj(t):1)*(Lj(e)*Mj(t)-i*Mj(e))]}e.invert=i?function(t,e){if(t)e*=Lj(t)/t;var n=Mj(t);return[t,2*Rj(tL(n*n+i*i-e*e)-n,i-e)]}:function(t,e){return[t,Jj(t?e*Fj(t)/t:e)]};return e}function tF(){return NL(QL).scale(249.828).clipAngle(90)}var eF=tL(3);function nF(t,e){return[eF*t*(2*Mj(2*e/3)-1)/Kj,eF*Kj*Lj(e/3)]}nF.invert=function(t,e){var n=3*Jj(e/(eF*Kj));return[Kj*t/(eF*(2*Mj(2*n/3)-1)),n]};function iF(){return Nz(nF).scale(156.19)}function rF(t){var n=Mj(t);function e(t,e){return[t*n,Lj(e)/n]}e.invert=function(t,e){return[t/n,Jj(e*n)]};return e}function aF(){return NL(rF).parallel(38.58).scale(195.044)}function oF(t){var n=Mj(t);function e(t,e){return[t*n,(1+n)*Fj(e/2)]}e.invert=function(t,e){return[t/n,Aj(e/(1+n))*2]};return e}function sF(){return NL(oF).scale(124.75)}function uF(t,e){var n=tL(8/(3*Gj));return[n*t*(1-Ej(e)/Gj),n*e]}uF.invert=function(t,e){var n=tL(8/(3*Gj)),i=e/n;return[t/(n*(1-Ej(i)/Gj)),i]};function lF(){return Nz(uF).scale(165.664)}function cF(t,e){var n=tL(4-3*Lj(Ej(e)));return[2/tL(6*Gj)*t*n,jj(e)*tL(2*Gj/3)*(2-n)]}cF.invert=function(t,e){var n=2-Ej(e)/tL(2*Gj/3);return[t*tL(6*Gj)/(2*n),jj(e)*Jj((4-n*n)/3)]};function fF(){return Nz(cF).scale(165.664)}function hF(t,e){var n=tL(Gj*(4+Gj));return[2/n*t*(1+tL(1-4*e*e/(Gj*Gj))),4/n*e]}hF.invert=function(t,e){var n=tL(Gj*(4+Gj))/2;return[t*n/(1+tL(1-e*e*(4+Gj)/(4*Gj))),e*n/2]};function dF(){return Nz(hF).scale(180.739)}function gF(t,e){var n=(2+Vj)*Lj(e);e/=2;for(var i=0,r=Infinity;i<10&&Ej(r)>Ij;i++){var a=Mj(e);e-=r=(e+Lj(e)*(a+2)-n)/(2*a*(1+a))}return[2/tL(Gj*(4+Gj))*t*(1+Mj(e)),2*tL(Gj/(4+Gj))*Lj(e)]}gF.invert=function(t,e){var n=e*tL((4+Gj)/Gj)/2,i=Jj(n),r=Mj(i);return[t/(2/tL(Gj*(4+Gj))*(1+r)),Jj((i+n*(r+2))/(2+Vj))]};function pF(){return Nz(gF).scale(180.739)}function vF(t,e){return[t*(1+Mj(e))/tL(2+Gj),2*e/tL(2+Gj)]}vF.invert=function(t,e){var n=tL(2+Gj),i=e*n/2;return[n*t/(1+Mj(i)),i]};function mF(){return Nz(vF).scale(173.044)}function yF(t,e){var n=(1+Vj)*Lj(e);for(var i=0,r=Infinity;i<10&&Ej(r)>Ij;i++){e-=r=(e+Lj(e)-n)/(1+Mj(e))}n=tL(2+Gj);return[t*(1+Mj(e))/n,2*e/n]}yF.invert=function(t,e){var n=1+Vj,i=tL(n/2);return[t*2*i/(1+Mj(e*=i)),Jj((e+Lj(e))/n)]};function _F(){return Nz(yF).scale(173.044)}var bF=3+2*qj;function wF(t,e){var n=Lj(t/=2),i=Mj(t),r=tL(Mj(e)),a=Mj(e/=2),o=Lj(e)/(a+qj*i*r),s=tL(2/(1+o*o)),u=tL((qj*a+(i+n)*r)/(qj*a+(i-n)*r));return[bF*(s*(u-1/u)-2*Oj(u)),bF*(s*o*(u+1/u)-2*Aj(o))]}wF.invert=function(t,e){if(!(a=hL.invert(t/1.2,e*1.065)))return null;var n=a[0],i=a[1],r=20,a;t/=bF,e/=bF;do{var o=n/2,s=i/2,u=Lj(o),l=Mj(o),c=Lj(s),f=Mj(s),h=Mj(i),d=tL(h),g=c/(f+qj*l*d),p=g*g,v=tL(2/(1+p)),m=qj*f+(l+u)*d,y=qj*f+(l-u)*d,_=m/y,b=tL(_),w=b-1/b,x=b+1/b,k=v*w-2*Oj(b)-t,S=v*g*x-2*Aj(g)-e,C=c&&Wj*d*u*p/c,E=(qj*l*f+d)/(2*(f+qj*l*d)*(f+qj*l*d)*d),A=-.5*g*v*v*v,R=A*C,M=A*E,T=(T=2*f+qj*d*(l-u))*T*b,P=(qj*l*f*d+h)/T,O=-(qj*u*c)/(d*T),B=w*R-2*P/b+v*(P+P/_),D=w*M-2*O/b+v*(O+O/_),N=g*x*R-2*C/(1+p)+v*x*C+v*g*(P-P/_),z=g*x*M-2*E/(1+p)+v*x*E+v*g*(O-O/_),j=D*N-z*B;if(!j)break;var L=(S*D-k*z)/j,F=(k*N-S*B)/j;n-=L;i=Bj(-Vj,Dj(Vj,i-F))}while((Ej(L)>Ij||Ej(F)>Ij)&&--r>0);return Ej(Ej(i)-Vj)<Ij?[0,i]:r&&[n,i]};function xF(){return Nz(wF).scale(62.5271)}var kF=Mj(35*Zj);function SF(t,e){var n=Fj(e/2);return[t*kF*tL(1-n*n),(1+kF)*n]}SF.invert=function(t,e){var n=e/(1+kF);return[t&&t/(kF*tL(1-n*n)),2*Aj(n)]};function CF(){return Nz(SF).scale(137.152)}function EF(t,e){var n=e/2,i=Mj(n);return[2*t/Kj*Mj(e)*i*i,Kj*Fj(n)]}EF.invert=function(t,e){var n=Aj(e/Kj),i=Mj(n),r=2*n;return[t*Kj/2/(Mj(r)*i*i),r]};function AF(){return Nz(EF).scale(135.264)}function RF(r){var a=1-r,t=i(Gj,0)[0]-i(-Gj,0)[0],e=i(0,Vj)[1]-i(0,-Vj)[1],o=tL(2*e/t);function i(t,e){var n=Mj(e),i=Lj(e);return[n/(a+r*n)*t,a*e+r*i]}function n(t,e){var n=i(t,e);return[n[0]*o,n[1]/o]}function s(t){return n(0,t)[1]}n.invert=function(t,e){var n=kL(s,e),i=t/o*(r+a/Mj(n));return[i,n]};return n}function MF(){var e=.5,n=zz(RF),t=n(e);t.alpha=function(t){return arguments.length?n(e=+t):e};return t.scale(168.725)}function TF(t){return[t[0]/2,Jj(Fj(t[1]/2*Zj))*Xj]}function PF(t){return[t[0]*2,2*Aj(Lj(t[1]*Zj))*Xj]}function OF(t){if(t==null)t=bj;var n=t(),r=ij().scale(Xj).precision(0).clipAngle(null).translate([0,0]);function e(t){return n(TF(t))}if(n.invert)e.invert=function(t){return PF(n.invert(t))};e.stream=function(t){var i=n.stream(t),e=r.stream({point:function t(e,n){i.point(e/2,Jj(Fj(-n/2*Zj))*Xj)},lineStart:function t(){i.lineStart()},lineEnd:function t(){i.lineEnd()},polygonStart:function t(){i.polygonStart()},polygonEnd:function t(){i.polygonEnd()}});e.sphere=i.sphere;return e};function i(t){e[t]=function(){return arguments.length?(n[t].apply(n,arguments),e):n[t]()}}e.rotate=function(t){return arguments.length?(r.rotate(t),e):r.rotate()};e.center=function(t){return arguments.length?(n.center(TF(t)),e):PF(n.center())};i("angle");i("clipAngle");i("clipExtent");i("fitExtent");i("fitHeight");i("fitSize");i("fitWidth");i("scale");i("translate");i("precision");return e.scale(249.5)}function BF(y,t){var _=2*Gj/t,b=y*y;function e(t,e){var n=Yz(t,e),i=n[0],r=n[1],a=i*i+r*r;if(a>b){var o=tL(a),s=Rj(r,i),u=_*zj(s/_),l=s-u,c=y*Mj(l),f=(y*Lj(l)-l*Lj(c))/(Vj-c),h=DF(l,f),d=(Gj-y)/NF(h,c,Gj);i=o;var g=50,p;do{i-=p=(y+NF(h,c,i)*d-o)/(h(i)*d)}while(Ej(p)>Ij&&--g>0);r=l*Lj(i);if(i<Vj)r-=f*(i-Vj);var v=Lj(u),m=Mj(u);n[0]=i*m-r*v;n[1]=i*v+r*m}return n}e.invert=function(t,e){var n=t*t+e*e;if(n>b){var i=tL(n),r=Rj(e,t),a=_*zj(r/_),o=r-a;t=i*Mj(o);e=i*Lj(o);var s=t-Vj,u=Lj(t),l=e/u,c=t<Vj?Infinity:0,f=10;while(true){var h=y*Lj(l),d=y*Mj(l),g=Lj(d),p=Vj-d,v=(h-l*g)/p,m=DF(l,v);if(Ej(c)<Hj||!--f)break;l-=c=(l*u-v*s-e)/(u-s*2*(p*(d+l*h*Mj(d)-g)-h*(h-l*g))/(p*p))}i=y+NF(m,d,t)*(Gj-y)/NF(m,d,Gj);r=a+l;t=i*Mj(r);e=i*Lj(r)}return Yz.invert(t,e)};return e}function DF(n,i){return function(t){var e=n*Mj(t);if(t<Vj)e-=i;return tL(1+e*e)}}function NF(t,e,n){var i=50,r=(n-e)/i,a=t(e)+t(n);for(var o=1,s=e;o<i;++o){a+=2*t(s+=r)}return a*.5*r}function zF(){var r=6,e=30*Zj,a=Mj(e),o=Lj(e),n=zz(BF),s=n(e,r),u=s.stream,t=.01,l=-Mj(t*Zj),c=Lj(t*Zj);s.radius=function(t){if(!arguments.length)return e*Xj;a=Mj(e=t*Zj);o=Lj(e);return n(e,r)};s.lobes=function(t){if(!arguments.length)return r;return n(e,r=+t)};s.stream=function(t){var e=s.rotate(),n=u(t),i=(s.rotate([0,0]),u(t));s.rotate(e);n.sphere=function(){i.polygonStart(),i.lineStart();for(var t=0,e=2*Gj/r,n=0;t<r;++t,n-=e){i.point(Rj(c*Mj(n),l)*Xj,Jj(c*Lj(n))*Xj);i.point(Rj(o*Mj(n-e/2),a)*Xj,Jj(o*Lj(n-e/2))*Xj)}i.lineEnd(),i.polygonEnd()};return n};return s.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function jF(D,N,z,j,L,F,I,H){if(arguments.length<8)H=0;function t(t,e){if(!e)return[D*t/Gj,0];var n=e*e,i=D+n*(N+n*(z+n*j)),r=e*(L-1+n*(F-H+n*I)),a=(i*i+r*r)/(2*r),o=t*Jj(i/a)/Gj;return[a*Lj(o),e*(1+n*H)+a*(1-Mj(o))]}t.invert=function(t,e){var n=Gj*t/D,i=e,r,a,o=50;do{var s=i*i,u=D+s*(N+s*(z+s*j)),l=i*(L-1+s*(F-H+s*I)),c=u*u+l*l,f=2*l,h=c/f,d=h*h,g=Jj(u/h)/Gj,p=n*g,v=u*u,m=(2*N+s*(4*z+s*6*j))*i,y=L+s*(3*F+s*5*I),_=2*(u*m+l*(y-1)),b=2*(y-1),w=(_*f-c*b)/(f*f),x=Mj(p),k=Lj(p),S=h*x,C=h*k,E=n/Gj*(1/tL(1-v/d))*(m*h-u*w)/d,A=C-t,R=i*(1+s*H)+h-S-e,M=w*k+S*E,T=S*g,P=1+w-(w*x-C*E),O=C*g,B=M*O-P*T;if(!B)break;n-=r=(R*M-A*P)/B;i-=a=(A*O-R*T)/B}while((Ej(r)>Ij||Ej(a)>Ij)&&--o>0);return[n,i]};return t}var LF=jF(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function FF(){return Nz(LF).scale(149.995)}var IF=jF(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function HF(){return Nz(IF).scale(153.93)}var GF=jF(5/6*Gj,-.62636,-.0344,0,1.3493,-.05524,0,.045);function VF(){return Nz(GF).scale(130.945)}function UF(t,e){var n=t*t,i=e*e;return[t*(1-.162388*i)*(.87-952426e-9*n*n),e*(1+i/12)]}UF.invert=function(t,e){var n=t,i=e,r=50,a;do{var o=i*i;i-=a=(i*(1+o/12)-e)/(1+o/4)}while(Ej(a)>Ij&&--r>0);r=50;t/=1-.162388*o;do{var s=(s=n*n)*s;n-=a=(n*(.87-952426e-9*s)-t)/(.87-.00476213*s)}while(Ej(a)>Ij&&--r>0);return[n,i]};function WF(){return Nz(UF).scale(131.747)}var qF=jF(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function KF(){return Nz(qF).scale(131.087)}function YF(a){var o=a(Vj,0)[0]-a(-Vj,0)[0];function t(t,e){var n=t>0?-.5:.5,i=a(t+n*Gj,e);i[0]-=n*o;return i}if(a.invert)t.invert=function(t,e){var n=t>0?-.5:.5,i=a.invert(t+n*o,e),r=i[0]-n*Gj;if(r<-Gj)r+=2*Gj;else if(r>Gj)r-=2*Gj;i[0]=r;return i};return t}function XF(t,e){var n=jj(t),i=jj(e),r=Mj(e),a=Mj(t)*r,o=Lj(t)*r,s=Lj(i*e);t=Ej(Rj(o,s));e=Jj(a);if(Ej(t-Vj)>Ij)t%=Vj;var u=ZF(t>Gj/4?Vj-t:t,e);if(t>Gj/4)s=u[0],u[0]=-u[1],u[1]=-s;return u[0]*=n,u[1]*=-i,u}XF.invert=function(t,e){if(Ej(t)>1)t=jj(t)*2-t;if(Ej(e)>1)e=jj(e)*2-e;var n=jj(t),i=jj(e),r=-n*t,a=-i*e,o=a/r<1,s=$F(o?a:r,o?r:a),u=s[0],l=s[1],c=Mj(l);if(o)u=-Vj-u;return[n*(Rj(Lj(u)*c,-Lj(l))+Gj),i*Jj(Mj(u)*c)]};function ZF(t,e){if(e===Vj)return[0,0];var n=Lj(e),i=n*n,r=i*i,a=1+r,o=1+3*r,s=1-r,u=Jj(1/tL(a)),l=s+i*a*u,c=(1-n)/l,f=tL(c),h=c*a,d=tL(h),g=f*s,p,v;if(t===0)return[0,-(g+i*d)];var m=Mj(e),y=1/m,_=2*n*m,b=(-3*i+u*o)*_,w=(-l*m-(1-n)*b)/(l*l),x=.5*w/f,k=s*x-2*i*f*_,S=i*a*w+c*o*_,C=-y*_,E=-y*S,A=-2*y*k,R=4*t/Gj,M;if(t>.222*Gj||e<Gj/4&&t>.175*Gj){p=(g+i*tL(h*(1+r)-g*g))/(1+r);if(t>Gj/4)return[p,p];var T=p,P=.5*p;p=.5*(P+T),v=50;do{var O=tL(h-p*p),B=p*(A+C*O)+E*Jj(p/d)-R;if(!B)break;if(B<0)P=p;else T=p;p=.5*(P+T)}while(Ej(T-P)>Ij&&--v>0)}else{p=Ij,v=25;do{var D=p*p,N=tL(h-D),z=A+C*N,j=p*z+E*Jj(p/d)-R,L=z+(E-C*D)/N;p-=M=N?j/L:0}while(Ej(M)>Ij&&--v>0)}return[p,-g-i*tL(h-p*p)]}function $F(t,e){var n=0,i=1,r=.5,a=50;while(true){var o=r*r,s=tL(r),u=Jj(1/tL(1+o)),l=1-o+r*(1+o)*u,c=(1-s)/l,f=tL(c),h=c*(1+o),d=f*(1-o),g=h-t*t,p=tL(g),v=e+d+r*p;if(Ej(i-n)<Hj||--a===0||v===0)break;if(v>0)n=r;else i=r;r=.5*(n+i)}if(!a)return null;var m=Jj(s),y=Mj(m),_=1/y,b=2*s*y,w=(-3*r+u*(1+3*o))*b,x=(-l*y-(1-s)*w)/(l*l),k=.5*x/f,S=(1-o)*k-2*r*f*b,C=-2*_*S,E=-_*b,A=-_*(r*(1+o)*x+c*(1+3*o)*b);return[Gj/4*(t*(C+E*p)+A*Jj(t/tL(h))),m]}function JF(){return Nz(YF(XF)).scale(239.75)}function QF(t,e,n){var i,r,a;if(!t){r=tI(e,1-n);return[[0,r[0]/r[1]],[1/r[1],0],[r[2]/r[1],0]]}i=tI(t,n);if(!e)return[[i[0],0],[i[1],0],[i[2],0]];r=tI(e,1-n);a=r[1]*r[1]+n*i[0]*i[0]*r[0]*r[0];return[[i[0]*r[2]/a,i[1]*i[2]*r[0]*r[1]/a],[i[1]*r[1]/a,-i[0]*i[2]*r[0]*r[2]/a],[i[2]*r[1]*r[2]/a,-n*i[0]*i[1]*r[0]/a]]}function tI(t,e){var n,i,r,a,o;if(e<Ij){a=Lj(t);i=Mj(t);n=e*(t-a*i)/4;return[a-n*i,i+n*a,1-e*a*a/2,t-n]}if(e>=1-Ij){n=(1-e)/4;i=iL(t);a=eL(t);r=1/i;o=i*nL(t);return[a+n*(o-t)/(i*i),r-n*a*r*(o-t),r+n*a*r*(o+t),2*Aj(Tj(t))-Vj+n*(o-t)/i]}var s=[1,0,0,0,0,0,0,0,0],u=[tL(e),0,0,0,0,0,0,0,0],l=0;i=tL(1-e);o=1;while(Ej(u[l]/s[l])>Ij&&l<8){n=s[l++];u[l]=(n-i)/2;s[l]=(n+i)/2;i=tL(n*i);o*=2}r=o*s[l]*t;do{a=u[l]*Lj(i=r)/s[l];r=(Jj(a)+r)/2}while(--l);return[Lj(r),a=Mj(r),a/Mj(r-i),r]}function eI(t,e,n){var i=Ej(t),r=Ej(e),a=nL(r);if(i){var o=1/Lj(i),s=1/(Fj(i)*Fj(i)),u=-(s+n*(a*a*o*o)-1+n),l=(n-1)*s,c=(-u+tL(u*u-4*l))/2;return[nI(Aj(1/tL(c)),n)*jj(t),nI(Aj(tL((c/s-1)/n)),1-n)*jj(e)]}return[0,nI(Aj(a),1-n)*jj(e)]}function nI(t,e){if(!e)return t;if(e===1)return Oj(Fj(t/2+Uj));var n=1,i=tL(1-e),r=tL(e);for(var a=0;Ej(r)>Ij;a++){if(t%Gj){var o=Aj(i*Fj(t)/n);if(o<0)o+=Gj;t+=o+~~(t/Gj)*Gj}else t+=t;r=(n+i)/2;i=tL(n*i);r=((n=r)-i)/2}return t/(Nj(2,a)*n)}function iI(t,e){var n=(qj-1)/(qj+1),i=tL(1-n*n),r=nI(Vj,i*i),a=-1,o=Oj(Fj(Gj/4+Ej(e)/2)),s=Tj(a*o)/tL(n),u=rI(s*Mj(a*t),s*Lj(a*t)),l=eI(u[0],u[1],i*i);return[-l[1],(e>=0?1:-1)*(.5*r-l[0])]}function rI(t,e){var n=t*t,i=e+1,r=1-n-e*e;return[.5*((t>=0?Vj:-Vj)-Rj(r,2*t)),-.25*Oj(r*r+4*n)+.5*Oj(i*i+n)]}function aI(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}iI.invert=function(t,e){var n=(qj-1)/(qj+1),i=tL(1-n*n),r=nI(Vj,i*i),a=-1,o=QF(.5*r-e,-t,i*i),s=aI(o[0],o[1]),u=Rj(s[1],s[0])/a;return[u,2*Aj(Tj(.5/a*Oj(n*s[0]*s[0]+n*s[1]*s[1])))-Vj]};function oI(){return Nz(YF(iI)).scale(151.496)}function sI(t){var f=Lj(t),l=Mj(t),h=uI(t);h.invert=uI(-t);function e(t,e){var n=h(t,e);t=n[0],e=n[1];var i=Lj(e),r=Mj(e),a=Mj(t),o=Qj(f*i+l*r*a),s=Lj(o),u=Ej(s)>Ij?o/s:1;return[u*l*Lj(t),(Ej(t)>Vj?u:-u)*(f*r-l*i*a)]}e.invert=function(t,e){var n=tL(t*t+e*e),i=-Lj(n),r=Mj(n),a=n*r,o=-e*i,s=n*f,u=tL(a*a+o*o-s*s),l=Rj(a*s+o*u,o*s-a*u),c=(n>Vj?-1:1)*Rj(t*i,n*Mj(l)*r+e*Lj(l)*i);return h.invert(c,l)};return e}function uI(t){var o=Lj(t),s=Mj(t);return function(t,e){var n=Mj(e),i=Mj(t)*n,r=Lj(t)*n,a=Lj(e);return[Rj(r,i*s-a*o),Jj(a*s+i*o)]}}function lI(){var n=0,i=zz(sI),r=i(n),e=r.rotate,t=r.stream,o=kD();r.parallel=function(t){if(!arguments.length)return n*Xj;var e=r.rotate();return i(n=t*Zj).rotate(e)};r.rotate=function(t){if(!arguments.length)return t=e.call(r),t[1]+=n*Xj,t;e.call(r,[t[0],t[1]-n*Xj]);o.center([-t[0],-t[1]]);return r};r.stream=function(a){a=t(a);a.sphere=function(){a.polygonStart();var t=.01,e=o.radius(90-t)().coordinates[0],n=e.length-1,i=-1,r;a.lineStart();while(++i<n){a.point((r=e[i])[0],r[1])}a.lineEnd();e=o.radius(90+t)().coordinates[0];n=e.length-1;a.lineStart();while(--i>=0){a.point((r=e[i])[0],r[1])}a.lineEnd();a.polygonEnd()};return a};return r.scale(79.4187).parallel(45).clipAngle(180-.001)}var cI=3,fI=Jj(1-1/cI)*Xj,hI=rF(0);function dI(a){var o=fI*Zj,s=$L(Gj,o)[0]-$L(-Gj,o)[0],u=hI(0,o)[1],l=$L(0,o)[1],c=Kj-l,f=Yj/a,h=4/Yj,d=u+c*c*4/Yj;function t(t,e){var n,i=Ej(e);if(i>o){var r=Dj(a-1,Bj(0,Pj((t+Gj)/f)));t+=Gj*(a-1)/a-r*f;n=$L(t,i);n[0]=n[0]*Yj/s-Yj*(a-1)/(2*a)+r*Yj/a;n[1]=u+(n[1]-l)*4*c/Yj;if(e<0)n[1]=-n[1]}else{n=hI(t,e)}n[0]*=h,n[1]/=d;return n}t.invert=function(t,e){t/=h,e*=d;var n=Ej(e);if(n>u){var i=Dj(a-1,Bj(0,Pj((t+Gj)/f)));t=(t+Gj*(a-1)/a-i*f)*s/Yj;var r=$L.invert(t,.25*(n-u)*Yj/c+l);r[0]-=Gj*(a-1)/a-i*f;if(e<0)r[1]=-r[1];return r}return hI.invert(t,e)};return t}function gI(t,e){return[t,e&1?90-Ij:fI]}function pI(t,e){return[t,e&1?-90+Ij:-fI]}function vI(t){return[t[0]*(1-Ij),t[1]]}function mI(t){var e=[].concat(le(-180,180+t/2,t).map(gI),le(180,-180-t/2,-t).map(pI));return{type:"Polygon",coordinates:[t===180?e.map(vI):e]}}function yI(){var r=4,e=zz(dI),a=e(r),o=a.stream;a.lobes=function(t){return arguments.length?e(r=+t):r};a.stream=function(t){var e=a.rotate(),n=o(t),i=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){XO(mI(180/r),i)};return n};return a.scale(239.75)}function _I(h){var d=1+h,t=Lj(1/d),g=Jj(t),p=2*tL(Gj/(v=Gj+4*g*d)),v,m=.5*p*(d+tL(h*(2+h))),y=h*h,_=d*d;function e(t,e){var n=1-Lj(e),i,r;if(n&&n<2){var a=Vj-e,o=25,s;do{var u=Lj(a),l=Mj(a),c=g+Rj(u,d-l),f=1+_-2*d*l;a-=s=(a-y*g-d*u+f*c-.5*n*v)/(2*d*u*c)}while(Ej(s)>Hj&&--o>0);i=p*tL(f);r=t*c/Gj}else{i=p*(h+n);r=t*g/Gj}return[i*Lj(r),m-i*Mj(r)]}e.invert=function(t,e){var n=t*t+(e-=m)*e,i=(1+_-n/(p*p))/(2*d),r=Qj(i),a=Lj(r),o=g+Rj(a,d-i);return[Jj(t/tL(n))*Gj/o,Jj(1-2*(r-y*g-d*a+(1+_-2*d*i)*o)/v)]};return e}function bI(){var e=1,n=zz(_I),t=n(e);t.ratio=function(t){return arguments.length?n(e=+t):e};return t.scale(167.774).center([0,18.67])}var wI=.7109889596207567;var xI=.0528035274542;function kI(t,e){return e>-wI?(t=ML(t,e),t[1]+=xI,t):zL(t,e)}kI.invert=function(t,e){return e>-wI?ML.invert(t,e-xI):zL.invert(t,e)};function SI(){return Nz(kI).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function CI(t,e){return Ej(e)>wI?(t=ML(t,e),t[1]-=e>0?xI:-xI,t):zL(t,e)}CI.invert=function(t,e){return Ej(e)>wI?ML.invert(t,e+(e>0?xI:-xI)):zL.invert(t,e)};function EI(){return Nz(CI).scale(152.63)}function AI(n,i,a,t){var o=tL(4*Gj/(2*a+(1+n-i/2)*Lj(2*a)+(n+i)/2*Lj(4*a)+i/2*Lj(6*a))),s=tL(t*Lj(a)*tL((1+n*Mj(2*a)+i*Mj(4*a))/(1+n+i))),u=a*c(1);function l(t){return tL(1+n*Mj(2*t)+i*Mj(4*t))}function c(t){var e=t*a;return(2*e+(1+n-i/2)*Lj(2*e)+(n+i)/2*Lj(4*e)+i/2*Lj(6*e))/a}function r(t){return l(t)*Lj(t)}var e=function t(e,n){var i=a*kL(c,u*Lj(n)/a,n/Gj);if(isNaN(i))i=a*jj(n);var r=o*l(i);return[r*s*e/Gj*Mj(i),r/s*Lj(i)]};e.invert=function(t,e){var n=kL(r,e*s/o);return[t*Gj/(Mj(n)*o*s*l(n)),Jj(a*c(n/a)/u)]};if(a===0){o=tL(t/Gj);e=function t(e,n){return[e*o,Lj(n)/o]};e.invert=function(t,e){return[t/o,Jj(e*o)]}}return e}function RI(){var e=1,n=0,i=45*Zj,r=2,a=zz(AI),t=a(e,n,i,r);t.a=function(t){return arguments.length?a(e=+t,n,i,r):e};t.b=function(t){return arguments.length?a(e,n=+t,i,r):n};t.psiMax=function(t){return arguments.length?a(e,n,i=+t*Zj,r):i*Xj};t.ratio=function(t){return arguments.length?a(e,n,i,r=+t):r};return t.scale(180.739)}function MI(t,e,n,i,r,a,o,s,u,l,c){if(c.nanEncountered){return NaN}var f,h,d,g,p,v,m,y,_,b;f=n-e;h=t(e+f*.25);d=t(n-f*.25);if(isNaN(h)){c.nanEncountered=true;return}if(isNaN(d)){c.nanEncountered=true;return}g=f*(i+4*h+r)/12;p=f*(r+4*d+a)/12;v=g+p;b=(v-o)/15;if(l>u){c.maxDepthCount++;return v+b}else if(Math.abs(b)<s){return v+b}else{m=e+f*.5;y=MI(t,e,m,i,h,r,g,s*.5,u,l+1,c);if(isNaN(y)){c.nanEncountered=true;return NaN}_=MI(t,m,n,r,d,a,p,s*.5,u,l+1,c);if(isNaN(_)){c.nanEncountered=true;return NaN}return y+_}}function TI(t,e,n,i,r){var a={maxDepthCount:0,nanEncountered:false};if(i===undefined){i=1e-8}if(r===undefined){r=20}var o=t(e);var s=t(.5*(e+n));var u=t(n);var l=(o+4*s+u)*(n-e)/6;var c=MI(t,e,n,o,s,u,l,i,r,1,a);return c}function PI(e,n,t){function a(t){return e+(1-e)*Nj(1-Nj(t,n),1/n)}function i(t){return TI(a,0,t,1e-4)}var r=1/i(1),o=1e3,s=(1+1e-8)*r,u=[];for(var l=0;l<=o;l++){u.push(i(l/o)*s)}function c(t){var e=0,n=o,i=o>>1;do{if(u[i]>t)n=i;else e=i;i=e+n>>1}while(i>e);var r=u[i+1]-u[i];if(r)r=(t-u[i+1])/r;return(i+1+r)/o}var f=2*c(1)/Gj*r/t;var h=function t(e,n){var i=c(Ej(Lj(n))),r=a(i)*e;i/=f;return[r,n>=0?i:-i]};h.invert=function(t,e){var n;e*=f;if(Ej(e)<1)n=jj(e)*Jj(i(Ej(e))*r);return[t/a(Ej(e)),n]};return h}function OI(){var e=0,n=2.5,i=1.183136,r=zz(PI),t=r(e,n,i);t.alpha=function(t){return arguments.length?r(e=+t,n,i):e};t.k=function(t){return arguments.length?r(e,n=+t,i):n};t.gamma=function(t){return arguments.length?r(e,n,i=+t):i};return t.scale(152.63)}function BI(t,e){return Ej(t[0]-e[0])<Ij&&Ej(t[1]-e[1])<Ij}function DI(t,e){var n=-1,i=t.length,r=t[0],a,o,s,u=[];while(++n<i){a=t[n];o=(a[0]-r[0])/e;s=(a[1]-r[1])/e;for(var l=0;l<e;++l){u.push([r[0]+l*o,r[1]+l*s])}r=a}u.push(a);return u}function NI(t){var e=[],n,i,r,a,o,s,u,l=t[0].length;for(u=0;u<l;++u){n=t[0][u];i=n[0][0],r=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(DI([[i+Ij,r+Ij],[i+Ij,a-Ij],[o-Ij,a-Ij],[o-Ij,s+Ij]],30))}for(u=t[1].length-1;u>=0;--u){n=t[1][u];i=n[0][0],r=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(DI([[o-Ij,s-Ij],[o-Ij,a+Ij],[i+Ij,a+Ij],[i+Ij,r-Ij]],30))}return{type:"Polygon",coordinates:[he(e)]}}function zI(u,l,t){var r,c;function f(t,e){var n=e<0?-1:+1,i=l[+(e<0)];for(var r=0,a=i.length-1;r<a&&t>i[r][2][0];++r){}var o=u(t-i[r][1][0],e);o[0]+=u(i[r][1][0],n*e>n*i[r][0][1]?i[r][0][1]:e)[0];return o}if(t){f.invert=t(f)}else if(u.invert){f.invert=function(t,e){var n=c[+(e<0)],i=l[+(e<0)];for(var r=0,a=n.length;r<a;++r){var o=n[r];if(o[0][0]<=t&&t<o[1][0]&&o[0][1]<=e&&e<o[1][1]){var s=u.invert(t-u(i[r][1][0],0)[0],e);s[0]+=i[r][1][0];return BI(f(s[0],s[1]),[t,e])?s:null}}}}var a=Nz(f),o=a.stream;a.stream=function(t){var e=a.rotate(),n=o(t),i=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){XO(r,i)};return n};a.lobes=function(t){if(!arguments.length)return l.map(function(t){return t.map(function(t){return[[t[0][0]*Xj,t[0][1]*Xj],[t[1][0]*Xj,t[1][1]*Xj],[t[2][0]*Xj,t[2][1]*Xj]]})});r=NI(t);l=t.map(function(t){return t.map(function(t){return[[t[0][0]*Zj,t[0][1]*Zj],[t[1][0]*Zj,t[1][1]*Zj],[t[2][0]*Zj,t[2][1]*Zj]]})});c=l.map(function(t){return t.map(function(t){var e=u(t[0][0],t[0][1])[0],n=u(t[2][0],t[2][1])[0],i=u(t[1][0],t[0][1])[1],r=u(t[1][0],t[1][1])[1],a;if(i>r)a=i,i=r,r=a;return[[e,i],[n,r]]})});return a};if(l!=null)a.lobes(l);return a}var jI=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function LI(){return zI(BL,jI).scale(160.857)}var FI=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function II(){return zI(CI,FI).scale(152.63)}var HI=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function GI(){return zI(ML,HI).scale(169.529)}var VI=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function UI(){return zI(ML,VI).scale(169.529).rotate([20,0])}var WI=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function qI(){return zI(kI,WI,SL).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var KI=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function YI(){return zI(zL,KI).scale(152.63).rotate([-20,0])}function XI(t,e){return[3/Yj*t*tL(Gj*Gj/3-e*e),e]}XI.invert=function(t,e){return[Yj/3*t/tL(Gj*Gj/3-e*e),e]};function ZI(){return Nz(XI).scale(158.837)}function $I(o){function t(t,e){if(Ej(Ej(e)-Vj)<Ij)return[0,e<0?-2:2];var n=Lj(e),i=Nj((1+n)/(1-n),o/2),r=.5*(i+1/i)+Mj(t*=o);return[2*Lj(t)/r,(i-1/i)/r]}t.invert=function(t,e){var n=Ej(e);if(Ej(n-2)<Ij)return t?null:[0,jj(e)*Vj];if(n>2)return null;t/=2,e/=2;var i=t*t,r=e*e,a=2*e/(1+i+r);a=Nj((1+a)/(1-a),1/o);return[Rj(2*t,1-i-r)/o,Jj((a-1)/(a+1))]};return t}function JI(){var e=.5,n=zz($I),t=n(e);t.spacing=function(t){return arguments.length?n(e=+t):e};return t.scale(124.75)}var QI=Gj/qj;function tH(t,e){return[t*(1+tL(Mj(e)))/2,e/(Mj(e/2)*Mj(t/6))]}tH.invert=function(t,e){var n=Ej(t),i=Ej(e),r=Ij,a=Vj;if(i<QI)a*=i/QI;else r+=6*Qj(QI/i);for(var o=0;o<25;o++){var s=Lj(a),u=tL(Mj(a)),l=Lj(a/2),c=Mj(a/2),f=Lj(r/6),h=Mj(r/6),d=.5*r*(1+u)-n,g=a/(c*h)-i,p=u?-.25*r*s/u:0,v=.5*(1+u),m=(1+.5*a*l/c)/(c*h),y=a/c*(f/6)/(h*h),_=p*y-m*v,b=(d*y-g*v)/_,w=(g*p-d*m)/_;a-=b;r-=w;if(Ej(b)<Ij&&Ej(w)<Ij)break}return[t<0?-r:r,e<0?-a:a]};function eH(){return Nz(tH).scale(97.2672)}function nH(t,e){var n=t*t,i=e*e;return[t*(.975534+i*(-.119161+n*-.0143059+i*-.0547009)),e*(1.00384+n*(.0802894+i*-.02855+n*199025e-9)+i*(.0998909+i*-.0491032))]}nH.invert=function(t,e){var n=jj(t)*Gj,i=e/2,r=50;do{var a=n*n,o=i*i,s=n*i,u=n*(.975534+o*(-.119161+a*-.0143059+o*-.0547009))-t,l=i*(1.00384+a*(.0802894+o*-.02855+a*199025e-9)+o*(.0998909+o*-.0491032))-e,c=.975534-o*(.119161+3*a*.0143059+o*.0547009),f=-s*(2*.119161+4*.0547009*o+2*.0143059*a),h=s*(2*.0802894+4*199025e-9*a+2*-.02855*o),d=1.00384+a*(.0802894+199025e-9*a)+o*(3*(.0998909-.02855*a)-5*.0491032*o),g=f*h-d*c,p=(l*f-u*d)/g,v=(u*h-l*c)/g;n-=p,i-=v}while((Ej(p)>Ij||Ej(v)>Ij)&&--r>0);return r&&[n,i]};function iH(){return Nz(nH).scale(139.98)}function rH(t,e){return[Lj(t)/Mj(e),Fj(e)*Mj(t)]}rH.invert=function(t,e){var n=t*t,i=e*e,r=i+1,a=n+r,o=t?Wj*tL((a-tL(a*a-4*n))/n):1/tL(r);return[Jj(t*o),jj(e)*Qj(o)]};function aH(){return Nz(rH).scale(144.049).clipAngle(90-.001)}function oH(r){var a=Mj(r),o=Fj(Uj+r/2);function t(t,e){var n=e-r,i=Ej(n)<Ij?t*a:Ej(i=Uj+e/2)<Ij||Ej(Ej(i)-Vj)<Ij?0:t*n/Oj(Fj(i)/o);return[i,n]}t.invert=function(t,e){var n,i=e+r;return[Ej(e)<Ij?t/a:Ej(n=Uj+i/2)<Ij||Ej(Ej(n)-Vj)<Ij?0:t*Oj(Fj(n)/o)/e,i]};return t}function sH(){return NL(oH).parallel(40).scale(158.837)}function uH(t,e){return[t,1.25*Oj(Fj(Uj+.4*e))]}uH.invert=function(t,e){return[t,2.5*Aj(Tj(.8*e))-.625*Gj]};function lH(){return Nz(uH).scale(108.318)}function cH(y){var _=y.length-1;function t(t,e){var n=Mj(e),i=2/(1+n*Mj(t)),r=i*n*Lj(t),a=i*Lj(e),o=_,s=y[o],u=s[0],l=s[1],c;while(--o>=0){s=y[o];u=s[0]+r*(c=u)-a*l;l=s[1]+r*l+a*c}u=r*(c=u)-a*l;l=r*l+a*c;return[u,l]}t.invert=function(t,e){var n=20,i=t,r=e;do{var a=_,o=y[a],s=o[0],u=o[1],l=0,c=0,f;while(--a>=0){o=y[a];l=s+i*(f=l)-r*c;c=u+i*c+r*f;s=o[0]+i*(f=s)-r*u;u=o[1]+i*u+r*f}l=s+i*(f=l)-r*c;c=u+i*c+r*f;s=i*(f=s)-r*u-t;u=i*u+r*f-e;var h=l*l+c*c,d,g;i-=d=(s*l+u*c)/h;r-=g=(u*l-s*c)/h}while(Ej(d)+Ej(g)>Ij*Ij&&--n>0);if(n){var p=tL(i*i+r*r),v=2*Aj(p*.5),m=Lj(v);return[Rj(i*m,p*Mj(v)),p?Jj(r*m/p):0]}};return t}var fH=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],hH=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],dH=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],gH=[[.9245,0],[0,0],[.01943,0]],pH=[[.721316,0],[0,0],[-.00881625,-.00617325]];function vH(){return wH(fH,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function mH(){return wH(hH,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function yH(){return wH(dH,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function _H(){return wH(gH,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function bH(){return wH(pH,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function wH(t,e){var n=Nz(cH(t)).rotate(e).clipAngle(90),i=bD(e),r=n.center;delete n.rotate;n.center=function(t){return arguments.length?r(i(t)):i.invert(r())};return n}var xH=tL(6),kH=tL(7);function SH(t,e){var n=Jj(7*Lj(e)/(3*xH));return[xH*t*(2*Mj(2*n/3)-1)/kH,9*Lj(n/3)/kH]}SH.invert=function(t,e){var n=3*Jj(e*kH/9);return[t*kH/(xH*(2*Mj(2*n/3)-1)),Jj(Lj(n)*3*xH/7)]};function CH(){return Nz(SH).scale(164.859)}function EH(t,e){var n=(1+Wj)*Lj(e),i=e;for(var r=0,a;r<25;r++){i-=a=(Lj(i/2)+Lj(i)-n)/(.5*Mj(i/2)+Mj(i));if(Ej(a)<Ij)break}return[t*(1+2*Mj(i)/Mj(i/2))/(3*qj),2*tL(3)*Lj(i/2)/tL(2+qj)]}EH.invert=function(t,e){var n=e*tL(2+qj)/(2*tL(3)),i=2*Jj(n);return[3*qj*t/(1+2*Mj(i)/Mj(i/2)),Jj((n+Lj(i))/(1+Wj))]};function AH(){return Nz(EH).scale(188.209)}function RH(t,e){var n=tL(6/(4+Gj)),i=(1+Gj/4)*Lj(e),r=e/2;for(var a=0,o;a<25;a++){r-=o=(r/2+Lj(r)-i)/(.5+Mj(r));if(Ej(o)<Ij)break}return[n*(.5+Mj(r))*t/1.5,n*r]}RH.invert=function(t,e){var n=tL(6/(4+Gj)),i=e/n;if(Ej(Ej(i)-Vj)<Ij)i=i<0?-Vj:Vj;return[1.5*t/(n*(.5+Mj(i))),Jj((i/2+Lj(i))/(1+Gj/4))]};function MH(){return Nz(RH).scale(166.518)}function TH(t,e){var n=e*e,i=n*n,r=n*i;return[t*(.84719-.13063*n+r*r*(-.04515+.05494*n-.02326*i+.00331*r)),e*(1.01183+i*i*(-.02625+.01926*n-.00396*i))]}TH.invert=function(t,e){var n=e,i=25,r,a,o,s;do{a=n*n;o=a*a;n-=r=(n*(1.01183+o*o*(-.02625+.01926*a-.00396*o))-e)/(1.01183+o*o*(9*-.02625+11*.01926*a+13*-.00396*o))}while(Ej(r)>Hj&&--i>0);a=n*n;o=a*a;s=a*o;return[t/(.84719-.13063*a+s*s*(-.04515+.05494*a-.02326*o+.00331*s)),n]};function PH(){return Nz(TH).scale(175.295)}function OH(t,e){return[t*(1+Mj(e))/2,2*(e-Fj(e/2))]}OH.invert=function(t,e){var n=e/2;for(var i=0,r=Infinity;i<10&&Ej(r)>Ij;++i){var a=Mj(e/2);e-=r=(e-Fj(e/2)-n)/(1-.5/(a*a))}return[2*t/(1+Mj(e)),e]};function BH(){return Nz(OH).scale(152.63)}var DH=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function NH(){return zI(bL(Infinity),DH).rotate([20,0]).scale(152.63)}function zH(t,e){var n=Lj(e),i=Mj(e),r=jj(t);if(t===0||Ej(e)===Vj)return[0,e];else if(e===0)return[t,0];else if(Ej(t)===Vj)return[t*i,Vj*n];var a=Gj/(2*t)-2*t/Gj,o=2*e/Gj,s=(1-o*o)/(n-o);var u=a*a,l=s*s,c=1+u/l,f=1+l/u;var h=(a*n/s-a/2)/c,d=(l*n/u+s/2)/f,g=h*h+i*i/c,p=d*d-(l*n*n/u+s*n-1)/f;return[Vj*(h+tL(g)*r),Vj*(d+tL(p<0?0:p)*jj(-e*a)*r)]}zH.invert=function(t,e){t/=Vj;e/=Vj;var n=t*t,i=e*e,r=n+i,a=Gj*Gj;return[t?(r-1+tL((1-r)*(1-r)+4*n))/(2*t)*Vj:0,kL(function(t){return r*(Gj*Lj(t)-2*t)*Gj+4*t*t*(e-Lj(t))+2*Gj*t-a*e},0)]};function jH(){return Nz(zH).scale(127.267)}var LH=1.0148,FH=.23185,IH=-.14499,HH=.02406,GH=LH,VH=5*FH,UH=7*IH,WH=9*HH,qH=1.790857183;function KH(t,e){var n=e*e;return[t,e*(LH+n*n*(FH+n*(IH+HH*n)))]}KH.invert=function(t,e){if(e>qH)e=qH;else if(e<-qH)e=-qH;var n=e,i;do{var r=n*n;n-=i=(n*(LH+r*r*(FH+r*(IH+HH*r)))-e)/(GH+r*r*(VH+r*(UH+WH*r)))}while(Ej(i)>Ij);return[t,n]};function YH(){return Nz(KH).scale(139.319)}function XH(t,e){if(Ej(e)<Ij)return[t,0];var n=Fj(e),i=t*Lj(e);return[Lj(i)/n,e+(1-Mj(i))/n]}XH.invert=function(t,e){if(Ej(e)<Ij)return[t,0];var n=t*t+e*e,i=e*.5,r=10,a;do{var o=Fj(i),s=1/Mj(i),u=n-2*e*i+i*i;i-=a=(o*u+2*(i-e))/(2+u*s*s+2*(i-e)*o)}while(Ej(a)>Ij&&--r>0);o=Fj(i);return[(Ej(e)<Ej(i+1/o)?Jj(t*o):jj(e)*jj(t)*(Qj(Ej(t*o))+Vj))/Lj(i),i]};function ZH(){return Nz(XH).scale(103.74)}function $H(t,e){var n=tG(t[1],t[0]),i=tG(e[1],e[0]),r=nG(n,i),a=eG(n)/eG(i);return QH([1,0,t[0][0],0,1,t[0][1]],QH([a,0,0,0,a,0],QH([Mj(r),Lj(r),0,-Lj(r),Mj(r),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function JH(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function QH(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function tG(t,e){return[t[0]-e[0],t[1]-e[1]]}function eG(t){return tL(t[0]*t[0]+t[1]*t[1])}function nG(t,e){return Rj(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}function iG(r,a,t){s(r,{transform:null});function s(e,t){e.edges=sG(e.face);if(t.face){var n=e.shared=oG(e.face,t.face),i=$H(n.map(t.project),n.map(e.project));e.transform=t.transform?QH(t.transform,i):i;var r=t.edges;for(var a=0,o=r.length;a<o;++a){if(aG(n[0],r[a][1])&&aG(n[1],r[a][0]))r[a]=e;if(aG(n[0],r[a][0])&&aG(n[1],r[a][1]))r[a]=e}r=e.edges;for(a=0,o=r.length;a<o;++a){if(aG(n[0],r[a][0])&&aG(n[1],r[a][1]))r[a]=t;if(aG(n[0],r[a][1])&&aG(n[1],r[a][0]))r[a]=t}}else{e.transform=t.transform}if(e.children){e.children.forEach(function(t){s(t,e)})}return e}function e(t,e){var n=a(t,e),i=n.project([t*Xj,e*Xj]),r;if(r=n.transform){return[r[0]*i[0]+r[1]*i[1]+r[2],-(r[3]*i[0]+r[4]*i[1]+r[5])]}i[1]=-i[1];return i}if(uG(r))e.invert=function(t,e){var n=l(r,[t,-e]);return n&&(n[0]*=Zj,n[1]*=Zj,n)};function l(t,e){var n=t.project.invert,i=t.transform,r=e;if(i){i=JH(i);r=[i[0]*r[0]+i[1]*r[1]+i[2],i[3]*r[0]+i[4]*r[1]+i[5]]}if(n&&t===c(a=n(r)))return a;var a,o=t.children;for(var s=0,u=o&&o.length;s<u;++s){if(a=l(o[s],e))return a}}function c(t){return a(t[0]*Zj,t[1]*Zj)}var o=Nz(e),u=o.stream;o.stream=function(t){var e=o.rotate(),n=u(t),i=(o.rotate([0,0]),u(t));o.rotate(e);n.sphere=function(){i.polygonStart();i.lineStart();rG(i,r);i.lineEnd();i.polygonEnd()};return n};return o.angle(t==null?-30:t*Xj)}function rG(t,e,n){var i,r=e.edges,a=r.length,o,s={type:"MultiPoint",coordinates:e.face},u=e.face.filter(function(t){return Ej(t[1])!==90}),l=LB({type:"MultiPoint",coordinates:u}),c=false,f=-1,h=l[1][0]-l[0][0];var d=h===180||h===360?[(l[0][0]+l[1][0])/2,(l[0][1]+l[1][1])/2]:hD(s);if(n)while(++f<a){if(r[f]===n)break}++f;for(var g=0;g<a;++g){o=r[(g+f)%a];if(Array.isArray(o)){if(!c){t.point((i=mN(o[0],d)(Ij))[0],i[1]);c=true}t.point((i=mN(o[1],d)(Ij))[0],i[1])}else{c=false;if(o!==n)rG(t,o,e)}}}function aG(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function oG(t,e){var n,i,r=t.length,a=null;for(var o=0;o<r;++o){n=t[o];for(var s=e.length;--s>=0;){i=e[s];if(n[0]===i[0]&&n[1]===i[1]){if(a)return[a,n];a=n}}}}function sG(t){var e=t.length,n=[];for(var i=t[e-1],r=0;r<e;++r){n.push([i,i=t[r]])}return n}function uG(t){return t.project.invert||t.children&&t.children.some(uG)}var lG=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];var cG=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return lG[t]})});function fG(e){e=e||function(t){var e=hD({type:"MultiPoint",coordinates:t});return pj().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var i=cG.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=i[t];n&&(n.children||(n.children=[])).push(i[e])});return iG(i[0],function(t,e){return i[t<-Gj/2?e<0?6:4:t<0?e<0?2:0:t<Gj/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var hG=2/tL(3);function dG(t,e){var n=$L(t,e);return[n[0]*hG,n[1]]}dG.invert=function(t,e){return $L.invert(t/hG,e)};function gG(e){e=e||function(t){var e=hD({type:"MultiPoint",coordinates:t});return Nz(dG).translate([0,0]).scale(1).rotate(e[1]>0?[-e[0],0]:[180-e[0],180])};var i=cG.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=i[t];n&&(n.children||(n.children=[])).push(i[e])});return iG(i[0],function(t,e){return i[t<-Gj/2?e<0?6:4:t<0?e<0?2:0:t<Gj/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function pG(e){e=e||function(t){var e=t.length===6?hD({type:"MultiPoint",coordinates:t}):t[0];return pj().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var o=cG.map(function(t){var e=t.map(_G),n=e.length,i=e[n-1],r,a=[];for(var o=0;o<n;++o){r=e[o];a.push(yG([i[0]*.9486832980505138+r[0]*.31622776601683794,i[1]*.9486832980505138+r[1]*.31622776601683794,i[2]*.9486832980505138+r[2]*.31622776601683794]),yG([r[0]*.9486832980505138+i[0]*.31622776601683794,r[1]*.9486832980505138+i[1]*.31622776601683794,r[2]*.9486832980505138+i[2]*.31622776601683794]));i=r}return a});var s=[];var u=[-1,0,0,1,0,1,4,5];o.forEach(function(t,e){var n=cG[e],i=n.length,r=s[e]=[];for(var a=0;a<i;++a){o.push([n[a],t[(a*2+2)%(2*i)],t[(a*2+1)%(2*i)]]);u.push(e);r.push(mG(_G(t[(a*2+2)%(2*i)]),_G(t[(a*2+1)%(2*i)])))}});var l=o.map(function(t){return{project:e(t),face:t}});u.forEach(function(t,e){var n=l[t];n&&(n.children||(n.children=[])).push(l[e])});function t(t,e){var n=Mj(e),i=[n*Mj(t),n*Lj(t),Lj(e)];var r=t<-Gj/2?e<0?6:4:t<0?e<0?2:0:t<Gj/2?e<0?3:1:e<0?7:5;var a=s[r];return l[vG(a[0],i)<0?8+3*r:vG(a[1],i)<0?8+3*r+1:vG(a[2],i)<0?8+3*r+2:r]}return iG(l[0],t).angle(-30).scale(110.625).center([0,45])}function vG(t,e){for(var n=0,i=t.length,r=0;n<i;++n){r+=t[n]*e[n]}return r}function mG(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function yG(t){return[Rj(t[1],t[0])*Xj,Jj(Bj(-1,Dj(1,t[2])))*Xj]}function _G(t){var e=t[0]*Zj,n=t[1]*Zj,i=Mj(n);return[i*Mj(e),i*Lj(e),Lj(n)]}function bG(){}function wG(t){if((n=t.length)<4)return false;var e=0,n,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++e<n){i+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1]}return i<=0}function xG(t,e){var n=e[0],i=e[1],r=false;for(var a=0,o=t.length,s=o-1;a<o;s=a++){var u=t[a],l=u[0],c=u[1],f=t[s],h=f[0],d=f[1];if(c>i^d>i&&n<(h-l)*(i-c)/(d-c)+l)r=!r}return r}function kG(t,e){var n=e.stream,i;if(!n)throw new Error("invalid projection");switch(t&&t.type){case"Feature":i=CG;break;case"FeatureCollection":i=SG;break;default:i=AG;break}return i(t,n)}function SG(t,e){return{type:"FeatureCollection",features:t.features.map(function(t){return CG(t,e)})}}function CG(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:AG(t.geometry,e)}}function EG(t,e){return{type:"GeometryCollection",geometries:t.geometries.map(function(t){return AG(t,e)})}}function AG(t,e){if(!t)return null;if(t.type==="GeometryCollection")return EG(t,e);var n;switch(t.type){case"Point":n=TG;break;case"MultiPoint":n=TG;break;case"LineString":n=PG;break;case"MultiLineString":n=PG;break;case"Polygon":n=OG;break;case"MultiPolygon":n=OG;break;case"Sphere":n=OG;break;default:return null}XO(t,e(n));return n.result()}var RG=[],MG=[];var TG={point:function t(e,n){RG.push([e,n])},result:function t(){var t=!RG.length?null:RG.length<2?{type:"Point",coordinates:RG[0]}:{type:"MultiPoint",coordinates:RG};RG=[];return t}};var PG={lineStart:bG,point:function t(e,n){RG.push([e,n])},lineEnd:function t(){if(RG.length)MG.push(RG),RG=[]},result:function t(){var t=!MG.length?null:MG.length<2?{type:"LineString",coordinates:MG[0]}:{type:"MultiLineString",coordinates:MG};MG=[];return t}};var OG={polygonStart:bG,lineStart:bG,point:function t(e,n){RG.push([e,n])},lineEnd:function t(){var e=RG.length;if(e){do{RG.push(RG[0].slice())}while(++e<4);MG.push(RG),RG=[]}},polygonEnd:bG,result:function t(){if(!MG.length)return null;var i=[],e=[];MG.forEach(function(t){if(wG(t))i.push([t]);else e.push(t)});e.forEach(function(e){var n=e[0];i.some(function(t){if(xG(t[0],n)){t.push(e);return true}})||i.push([e])});MG=[];return!i.length?null:i.length>1?{type:"MultiPolygon",coordinates:i}:{type:"Polygon",coordinates:i[0]}}};function BG(c){var f=c(Vj,0)[0]-c(-Vj,0)[0];function t(t,e){var n=Ej(t)<Vj,i=c(n?t:t>0?t-Gj:t+Gj,e),r=(i[0]-i[1])*Wj,a=(i[0]+i[1])*Wj;if(n)return[r,a];var o=f*Wj,s=r>0^a>0?-1:1;return[s*r-jj(a)*o,s*a-jj(r)*o]}if(c.invert)t.invert=function(t,e){var n=(t+e)*Wj,i=(e-t)*Wj,r=Ej(n)<.5*f&&Ej(i)<.5*f;if(!r){var a=f*Wj,o=n>0^i>0?-1:1,s=-o*t+(i>0?1:-1)*a,u=-o*e+(n>0?1:-1)*a;n=(-s-u)*Wj;i=(s-u)*Wj}var l=c.invert(n,i);if(!r)l[0]+=n>0?Gj:-Gj;return l};return Nz(t).rotate([-90,-90,45]).clipAngle(180-.001)}function DG(){return BG(XF).scale(176.423)}function NG(){return BG(iI).scale(111.48)}function zG(t,r){if(!(0<=(r=+r)&&r<=20))throw new Error("invalid digits");function a(t){var e=t.length,n=2,i=new Array(e);i[0]=+t[0].toFixed(r);i[1]=+t[1].toFixed(r);while(n<e){i[n]=t[n],++n}return i}function n(t){return t.map(a)}function i(t){var e=a(t[0]);var n=[e];for(var i=1;i<t.length;i++){var r=a(t[i]);if(r.length>2||r[0]!=e[0]||r[1]!=e[1]){n.push(r);e=r}}if(n.length===1&&t.length>1){n.push(a(t[t.length-1]))}return n}function o(t){return t.map(i)}function s(t){if(t==null)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(s)};break;case"Point":e={type:"Point",coordinates:a(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:i(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(o)};break;default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function e(t){var e={type:"Feature",properties:t.properties,geometry:s(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;return e}if(t!=null)switch(t.type){case"Feature":return e(t);case"FeatureCollection":{var u={type:"FeatureCollection",features:t.features.map(e)};if(t.bbox!=null)u.bbox=t.bbox;return u}default:return s(t)}return t}function jG(f){var h=Lj(f);function t(t,e){var n=h?Fj(t*h/2)/h:t/2;if(!e)return[2*n,-f];var i=2*Aj(n*Lj(e)),r=1/Fj(e);return[Lj(i)*r,e+(1-Mj(i))*r-f]}t.invert=function(t,e){if(Ej(e+=f)<Ij)return[h?2*Aj(h*t/2)/h:t,0];var n=t*t+e*e,i=0,r=10,a;do{var o=Fj(i),s=1/Mj(i),u=n-2*e*i+i*i;i-=a=(o*u+2*(i-e))/(2+u*s*s+2*(i-e)*o)}while(Ej(a)>Ij&&--r>0);var l=t*(o=Fj(i)),c=Fj(Ej(e)<Ej(i+1/o)?Jj(l)*.5:Qj(l)*.5+Gj/4)/Lj(i);return[h?2*Aj(h*c)/h:2*c,i]};return t}function LG(){return NL(jG).scale(131.215)}var FG=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];FG.forEach(function(t){t[1]*=1.0144});function IG(t,e){var n=Dj(18,Ej(e)*36/Gj),i=Pj(n),r=n-i,a=(f=FG[i])[0],o=f[1],s=(f=FG[++i])[0],u=f[1],l=(f=FG[Dj(19,++i)])[0],c=f[1],f;return[t*(s+r*(l-a)/2+r*r*(l-2*s+a)/2),(e>0?Vj:-Vj)*(u+r*(c-o)/2+r*r*(c-2*u+o)/2)]}IG.invert=function(t,e){var n=e/Vj,i=n*90,r=Dj(18,Ej(i/5)),a=Bj(0,Pj(r));do{var o=FG[a][1],s=FG[a+1][1],u=FG[Dj(19,a+2)][1],l=u-o,c=u-2*s+o,f=2*(Ej(n)-s)/l,h=c/l,d=f*(1-h*f*(1-2*h*f));if(d>=0||a===1){i=(e>=0?5:-5)*(d+r);var g=50,p;do{r=Dj(18,Ej(i)/5);a=Pj(r);d=r-a;o=FG[a][1];s=FG[a+1][1];u=FG[Dj(19,a+2)][1];i-=(p=(e>=0?Vj:-Vj)*(s+d*(u-o)/2+d*d*(u-2*s+o)/2)-e)*Xj}while(Ej(p)>Hj&&--g>0);break}}while(--a>=0);var v=FG[a][0],m=FG[a+1][0],y=FG[Dj(19,a+2)][0];return[t/(m+d*(y-v)/2+d*d*(y-2*m+v)/2),i*Zj]};function HG(){return Nz(IG).scale(152.63)}function GG(a){function t(t,e){var n=Mj(e),i=(a-1)/(a-n*Mj(t));return[i*n*Lj(t),i*Lj(e)]}t.invert=function(t,e){var n=t*t+e*e,i=tL(n),r=(a-tL(1-n*(a+1)/(a-1)))/((a-1)/i+i/(a-1));return[Rj(t*r,i*tL(1-r*r)),i?Jj(e*r/i):0]};return t}function VG(a,t){var o=GG(a);if(!t)return o;var s=Mj(t),u=Lj(t);function e(t,e){var n=o(t,e),i=n[1],r=i*u/(a-1)+s;return[n[0]*s/r,i/r]}e.invert=function(t,e){var n=(a-1)/(a-1-e*u);return o.invert(n*t,n*e*s)};return e}function UG(){var e=2,n=0,i=zz(VG),t=i(e,n);t.distance=function(t){if(!arguments.length)return e;return i(e=+t,n)};t.tilt=function(t){if(!arguments.length)return n*Xj;return i(e,n=t*Zj)};return t.scale(432.147).clipAngle(Qj(1/e)*Xj-1e-6)}var WG=1e-4,qG=1e4,KG=-180,YG=KG+WG,XG=180,ZG=XG-WG,$G=-90,JG=$G+WG,QG=90,tV=QG-WG;function eV(t){return t.length>0}function nV(t){return Math.floor(t*qG)/qG}function iV(t){return t===$G||t===QG?[0,t]:[KG,nV(t)]}function rV(t){var e=t[0],n=t[1],i=false;if(e<=YG)e=KG,i=true;else if(e>=ZG)e=XG,i=true;if(n<=JG)n=$G,i=true;else if(n>=tV)n=QG,i=true;return i?[e,n]:t}function aV(t){return t.map(rV)}function oV(t,e,n){for(var i=0,r=t.length;i<r;++i){var a=t[i].slice();n.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o<s;++o){var u=a[o],l=u[0],c=u[1];if(l<=YG||l>=ZG||c<=JG||c>=tV){a[o]=rV(u);for(var f=o+1;f<s;++f){var h=a[f],d=h[0],g=h[1];if(d>YG&&d<ZG&&g>JG&&g<tV)break}if(f===o+1)continue;if(o){var p={index:-1,polygon:e,ring:a.slice(0,o+1)};p.ring[p.ring.length-1]=iV(c);n[n.length-1]=p}else n.pop();if(f>=s)break;n.push({index:-1,polygon:e,ring:a=a.slice(f-1)});a[0]=iV(a[0][1]);o=-1;s=a.length}}}}function sV(t){var e,n=t.length;var i={},r={},a,o,s,u,l;for(e=0;e<n;++e){a=t[e];o=a.ring[0];u=a.ring[a.ring.length-1];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);t[e]=null;continue}a.index=e;i[o]=r[u]=a}for(e=0;e<n;++e){a=t[e];if(a){o=a.ring[0];u=a.ring[a.ring.length-1];s=r[o];l=i[u];delete i[o];delete r[u];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);continue}if(s){delete r[o];delete i[s.ring[0]];s.ring.pop();t[s.index]=null;a={index:-1,polygon:s.polygon,ring:s.ring.concat(a.ring)};if(s===l){a.polygon.push(a.ring)}else{a.index=n++;t.push(i[a.ring[0]]=r[a.ring[a.ring.length-1]]=a)}}else if(l){delete i[u];delete r[l.ring[l.ring.length-1]];a.ring.pop();a={index:n++,polygon:l.polygon,ring:a.ring.concat(l.ring)};t[l.index]=null;t.push(i[a.ring[0]]=r[a.ring[a.ring.length-1]]=a)}else{a.ring.push(a.ring[0]);a.polygon.push(a.ring)}}}}function uV(t){var e={type:"Feature",geometry:lV(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;if(t.properties!=null)e.properties=t.properties;return e}function lV(t){if(t==null)return t;var e,n,i,r;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(lV)};break;case"Point":e={type:"Point",coordinates:rV(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:aV(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(aV)};break;case"Polygon":{var a=[];oV(t.coordinates,a,n=[]);sV(n);e={type:"Polygon",coordinates:a};break}case"MultiPolygon":{n=[],i=-1,r=t.coordinates.length;var o=new Array(r);while(++i<r){oV(t.coordinates[i],o[i]=[],n)}sV(n);e={type:"MultiPolygon",coordinates:o.filter(eV)};break}default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function cV(t){if(t==null)return t;switch(t.type){case"Feature":return uV(t);case"FeatureCollection":{var e={type:"FeatureCollection",features:t.features.map(uV)};if(t.bbox!=null)e.bbox=t.bbox;return e}default:return lV(t)}}function fV(t,e){var n=Fj(e/2),i=Lj(Uj*n);return[t*(.74482-.34588*i*i),1.70711*n]}fV.invert=function(t,e){var n=e/1.70711,i=Lj(Uj*n);return[t/(.74482-.34588*i*i),2*Aj(n)]};function hV(){return Nz(fV).scale(146.153)}function dV(t,e,n){var i=mN(e,n),r=i(.5),a=bD([-r[0],-r[1]])(e),o=i.distance/2,s=-Jj(Lj(a[1]*Zj)/Lj(o)),u=[-r[0],-r[1],-(a[0]>0?Gj-s:s)*Xj],l=Nz(t(o)).rotate(u),c=bD(u),f=l.center;delete l.rotate;l.center=function(t){return arguments.length?f(c(t)):c.invert(f())};return l.clipAngle(90)}function gV(t){var i=Mj(t);function e(t,e){var n=gj(t,e);n[0]*=i;return n}e.invert=function(t,e){return gj.invert(t/i,e)};return e}function pV(){return vV([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function vV(t,e){return dV(gV,t,e)}function mV(a){if(!(a*=2))return Yz;var s=-a/2,u=-s,o=a*a,l=Fj(u),c=.5/Lj(u);function t(t,e){var n=Qj(Mj(e)*Mj(t-s)),i=Qj(Mj(e)*Mj(t-u)),r=e<0?-1:1;n*=n,i*=i;return[(n-i)/(2*a),r*tL(4*o*i-(o-n+i)*(o-n+i))/(2*a)]}t.invert=function(t,e){var n=e*e,i=Mj(tL(n+(a=t+s)*a)),r=Mj(tL(n+(a=t+u)*a)),a,o;return[Rj(o=i-r,a=(i+r)*l),(e<0?-1:1)*Qj(tL(a*a+o*o)*c)]};return t}function yV(){return _V([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function _V(t,e){return dV(mV,t,e)}function bV(t,e){if(Ej(e)<Ij)return[t,0];var n=Ej(e/Vj),i=Jj(n);if(Ej(t)<Ij||Ej(Ej(e)-Vj)<Ij)return[0,jj(e)*Gj*Fj(i/2)];var r=Mj(i),a=Ej(Gj/t-t/Gj)/2,o=a*a,s=r/(n+r-1),u=s*(2/n-1),l=u*u,c=l+o,f=s-l,h=o+s;return[jj(t)*Gj*(a*f+tL(o*f*f-c*(s*s-l)))/c,jj(e)*Gj*(u*h-a*tL((o+1)*c-h*h))/c]}bV.invert=function(t,e){if(Ej(e)<Ij)return[t,0];if(Ej(t)<Ij)return[0,Vj*Lj(2*Aj(e/Gj))];var n=(t/=Gj)*t,i=(e/=Gj)*e,r=n+i,a=r*r,o=-Ej(e)*(1+r),s=o-2*i+n,u=-2*o+1+2*i+a,l=i/u+(2*s*s*s/(u*u*u)-9*o*s/(u*u))/27,c=(o-s*s/(3*u))/u,f=2*tL(-c/3),h=Qj(3*l/(c*f))/3;return[Gj*(r-1+tL(1+2*(n-i)+a))/(2*t),jj(e)*Gj*(-f*Mj(h+Gj/3)-s/(3*u))]};function wV(){return Nz(bV).scale(79.4183)}function xV(t,e){if(Ej(e)<Ij)return[t,0];var n=Ej(e/Vj),i=Jj(n);if(Ej(t)<Ij||Ej(Ej(e)-Vj)<Ij)return[0,jj(e)*Gj*Fj(i/2)];var r=Mj(i),a=Ej(Gj/t-t/Gj)/2,o=a*a,s=r*(tL(1+o)-a*r)/(1+o*n*n);return[jj(t)*Gj*s,jj(e)*Gj*tL(1-s*(2*a+s))]}xV.invert=function(t,e){if(!t)return[0,Vj*Lj(2*Aj(e/Gj))];var n=Ej(t/Gj),i=(1-n*n-(e/=Gj)*e)/(2*n),r=i*i,a=tL(r+1);return[jj(t)*Gj*(a-i),jj(e)*Vj*Lj(2*Rj(tL((1-2*i*n)*(i+a)-n),tL(a+i+n)))]};function kV(){return Nz(xV).scale(79.4183)}function SV(t,e){if(Ej(e)<Ij)return[t,0];var n=e/Vj,i=Jj(n);if(Ej(t)<Ij||Ej(Ej(e)-Vj)<Ij)return[0,Gj*Fj(i/2)];var r=(Gj/t-t/Gj)/2,a=n/(1+Mj(i));return[Gj*(jj(t)*tL(r*r+1-a*a)-r),Gj*a]}SV.invert=function(t,e){if(!e)return[t,0];var n=e/Gj,i=(Gj*Gj*(1-n*n)-t*t)/(2*Gj*t);return[t?Gj*(jj(t)*tL(i*i+1)-i):0,Vj*Lj(2*Aj(n))]};function CV(){return Nz(SV).scale(79.4183)}function EV(t,e){if(!e)return[t,0];var n=Ej(e);if(!t||n===Vj)return[0,e];var i=n/Vj,r=i*i,a=(8*i-r*(r+2)-5)/(2*r*(i-1)),o=a*a,s=i*a,u=r+o+2*s,l=i+3*a,c=t/Vj,f=c+1/c,h=jj(Ej(t)-Vj)*tL(f*f-4),d=h*h,g=u*(r+o*d-1)+(1-r)*(r*(l*l+4*o)+12*s*o+4*o*o),p=(h*(u+o-1)+2*tL(g))/(4*u+d);return[jj(t)*Vj*p,jj(e)*Vj*tL(1+h*Ej(p)-p*p)]}EV.invert=function(t,e){var n;if(!t||!e)return[t,e];e/=Gj;var i=jj(t)*t/Vj,r=(i*i-1+4*e*e)/Ej(i),a=r*r,o=2*e,s=50;do{var u=o*o,l=(8*o-u*(u+2)-5)/(2*u*(o-1)),c=(3*o-u*o-10)/(2*u*o),f=l*l,h=o*l,d=o+l,g=d*d,p=o+3*l,v=g*(u+f*a-1)+(1-u)*(u*(p*p+4*f)+f*(12*h+4*f)),m=-2*d*(4*h*f+(1-4*u+3*u*u)*(1+c)+f*(-6+14*u-a+(-8+8*u-2*a)*c)+h*(-8+12*u+(-10+10*u-a)*c)),y=tL(v),_=r*(g+f-1)+2*y-i*(4*g+a),b=r*(2*l*c+2*d*(1+c))+m/y-8*d*(r*(-1+f+g)+2*y)*(1+c)/(a+4*g);o-=n=_/b}while(n>Ij&&--s>0);return[jj(t)*(tL(r*r+4)+r)*Gj/4,Vj*o]};function AV(){return Nz(EV).scale(127.16)}function RV(o,s,u,l,c){function t(t,e){var n=u*Lj(l*e),i=tL(1-n*n),r=tL(2/(1+i*Mj(t*=c)));return[o*i*r*Lj(t),s*n*r]}t.invert=function(t,e){var n=t/o,i=e/s,r=tL(n*n+i*i),a=2*Jj(r/2);return[Rj(t*Fj(a),o*r)/c,r&&Jj(e*Lj(a)/(s*u*r))/l]};return t}function MV(t,e,n,i){var r=Gj/3;t=Bj(t,Ij);e=Bj(e,Ij);t=Dj(t,Vj);e=Dj(e,Gj-Ij);n=Bj(n,0);n=Dj(n,100-Ij);i=Bj(i,Ij);var a=n/100+1;var o=i/100;var s=Qj(a*Mj(r))/r,u=Lj(t)/Lj(s*Vj),l=e/Gj,c=tL(o*Lj(t/2)/Lj(e/2)),f=c/tL(l*u*s),h=1/(c*tL(l*u*s));return RV(f,h,u,s,l)}function TV(){var e=65*Zj,n=60*Zj,i=20,r=200,a=zz(MV),t=a(e,n,i,r);t.poleline=function(t){return arguments.length?a(e=+t*Zj,n,i,r):e*Xj};t.parallels=function(t){return arguments.length?a(e,n=+t*Zj,i,r):n*Xj};t.inflation=function(t){return arguments.length?a(e,n,i=+t,r):i};t.ratio=function(t){return arguments.length?a(e,n,i,r=+t):r};return t.scale(163.775)}function PV(){return TV().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var OV=4*Gj+3*tL(3),BV=2*tL(2*Gj*tL(3)/OV);var DV=RL(BV*tL(3)/Gj,BV,OV/6);function NV(){return Nz(DV).scale(176.84)}function zV(t,e){return[t*tL(1-3*e*e/(Gj*Gj)),e]}zV.invert=function(t,e){return[t/tL(1-3*e*e/(Gj*Gj)),e]};function jV(){return Nz(zV).scale(152.63)}function LV(t,e){var n=Mj(e),i=Mj(t)*n,r=1-i,a=Mj(t=Rj(Lj(t)*n,-Lj(e))),o=Lj(t);n=tL(1-i*i);return[o*n-a*r,-a*n-o*r]}LV.invert=function(t,e){var n=(t*t+e*e)/-2,i=tL(-n*(2+n)),r=e*n+t*i,a=t*n-e*i,o=tL(a*a+r*r);return[Rj(i*r,o*(1+n)),o?-Jj(i*a/o):0]};function FV(){return Nz(LV).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function IV(t,e){var n=uL(t,e);return[(n[0]+t/Vj)/2,(n[1]+e)/2]}IV.invert=function(t,e){var n=t,i=e,r=25;do{var a=Mj(i),o=Lj(i),s=Lj(2*i),u=o*o,l=a*a,c=Lj(n),f=Mj(n/2),h=Lj(n/2),d=h*h,g=1-l*f*f,p=g?Qj(a*f)*tL(v=1/g):v=0,v,m=.5*(2*p*a*h+n/Vj)-t,y=.5*(p*o+i)-e,_=.5*v*(l*d+p*a*f*u)+.5/Vj,b=v*(c*s/4-p*o*h),w=.125*v*(s*h-p*o*l*c),x=.5*v*(u*f+p*d*a)+.5,k=b*w-x*_,S=(y*b-m*x)/k,C=(m*w-y*_)/k;n-=S,i-=C}while((Ej(S)>Ij||Ej(C)>Ij)&&--r>0);return[n,i]};function HV(){return Nz(IV).scale(158.837)}var GV=Object.freeze({__proto__:null,geoAiry:sL,geoAiryRaw:oL,geoAitoff:lL,geoAitoffRaw:uL,geoArmadillo:fL,geoArmadilloRaw:cL,geoAugust:dL,geoAugustRaw:hL,geoBaker:mL,geoBakerRaw:vL,geoBerghaus:_L,geoBerghausRaw:yL,geoBertin1953:EL,geoBertin1953Raw:CL,geoBoggs:DL,geoBoggsRaw:BL,geoBonne:FL,geoBonneRaw:LL,geoBottomley:HL,geoBottomleyRaw:IL,geoBromley:VL,geoBromleyRaw:GL,geoChamberlin:ZL,geoChamberlinRaw:KL,geoChamberlinAfrica:XL,geoCollignon:JL,geoCollignonRaw:$L,geoCraig:tF,geoCraigRaw:QL,geoCraster:iF,geoCrasterRaw:nF,geoCylindricalEqualArea:aF,geoCylindricalEqualAreaRaw:rF,geoCylindricalStereographic:sF,geoCylindricalStereographicRaw:oF,geoEckert1:lF,geoEckert1Raw:uF,geoEckert2:fF,geoEckert2Raw:cF,geoEckert3:dF,geoEckert3Raw:hF,geoEckert4:pF,geoEckert4Raw:gF,geoEckert5:mF,geoEckert5Raw:vF,geoEckert6:_F,geoEckert6Raw:yF,geoEisenlohr:xF,geoEisenlohrRaw:wF,geoFahey:CF,geoFaheyRaw:SF,geoFoucaut:AF,geoFoucautRaw:EF,geoFoucautSinusoidal:MF,geoFoucautSinusoidalRaw:RF,geoGilbert:OF,geoGingery:zF,geoGingeryRaw:BF,geoGinzburg4:FF,geoGinzburg4Raw:LF,geoGinzburg5:HF,geoGinzburg5Raw:IF,geoGinzburg6:VF,geoGinzburg6Raw:GF,geoGinzburg8:WF,geoGinzburg8Raw:UF,geoGinzburg9:KF,geoGinzburg9Raw:qF,geoGringorten:JF,geoGringortenRaw:XF,geoGuyou:oI,geoGuyouRaw:iI,geoHammer:xL,geoHammerRaw:bL,geoHammerRetroazimuthal:lI,geoHammerRetroazimuthalRaw:sI,geoHealpix:yI,geoHealpixRaw:dI,geoHill:bI,geoHillRaw:_I,geoHomolosine:EI,geoHomolosineRaw:CI,geoHufnagel:RI,geoHufnagelRaw:AI,geoHyperelliptical:OI,geoHyperellipticalRaw:PI,geoInterrupt:zI,geoInterruptedBoggs:LI,geoInterruptedHomolosine:II,geoInterruptedMollweide:GI,geoInterruptedMollweideHemispheres:UI,geoInterruptedSinuMollweide:qI,geoInterruptedSinusoidal:YI,geoKavrayskiy7:ZI,geoKavrayskiy7Raw:XI,geoLagrange:JI,geoLagrangeRaw:$I,geoLarrivee:eH,geoLarriveeRaw:tH,geoLaskowski:iH,geoLaskowskiRaw:nH,geoLittrow:aH,geoLittrowRaw:rH,geoLoximuthal:sH,geoLoximuthalRaw:oH,geoMiller:lH,geoMillerRaw:uH,geoModifiedStereographic:wH,geoModifiedStereographicRaw:cH,geoModifiedStereographicAlaska:vH,geoModifiedStereographicGs48:mH,geoModifiedStereographicGs50:yH,geoModifiedStereographicMiller:_H,geoModifiedStereographicLee:bH,geoMollweide:TL,geoMollweideRaw:ML,geoMtFlatPolarParabolic:CH,geoMtFlatPolarParabolicRaw:SH,geoMtFlatPolarQuartic:AH,geoMtFlatPolarQuarticRaw:EH,geoMtFlatPolarSinusoidal:MH,geoMtFlatPolarSinusoidalRaw:RH,geoNaturalEarth:yj,geoNaturalEarthRaw:mj,geoNaturalEarth2:PH,geoNaturalEarth2Raw:TH,geoNellHammer:BH,geoNellHammerRaw:OH,geoInterruptedQuarticAuthalic:NH,geoNicolosi:jH,geoNicolosiRaw:zH,geoPatterson:YH,geoPattersonRaw:KH,geoPolyconic:ZH,geoPolyconicRaw:XH,geoPolyhedral:iG,geoPolyhedralButterfly:fG,geoPolyhedralCollignon:gG,geoPolyhedralWaterman:pG,geoProject:kG,geoGringortenQuincuncial:DG,geoPeirceQuincuncial:NG,geoPierceQuincuncial:NG,geoQuantize:zG,geoQuincuncial:BG,geoRectangularPolyconic:LG,geoRectangularPolyconicRaw:jG,geoRobinson:HG,geoRobinsonRaw:IG,geoSatellite:UG,geoSatelliteRaw:VG,geoSinuMollweide:SI,geoSinuMollweideRaw:kI,geoSinusoidal:jL,geoSinusoidalRaw:zL,geoStitch:cV,geoTimes:hV,geoTimesRaw:fV,geoTwoPointAzimuthal:vV,geoTwoPointAzimuthalRaw:gV,geoTwoPointAzimuthalUsa:pV,geoTwoPointEquidistant:_V,geoTwoPointEquidistantRaw:mV,geoTwoPointEquidistantUsa:yV,geoVanDerGrinten:wV,geoVanDerGrintenRaw:bV,geoVanDerGrinten2:kV,geoVanDerGrinten2Raw:xV,geoVanDerGrinten3:CV,geoVanDerGrinten3Raw:SV,geoVanDerGrinten4:AV,geoVanDerGrinten4Raw:EV,geoWagner:TV,geoWagner7:PV,geoWagnerRaw:MV,geoWagner4:NV,geoWagner4Raw:DV,geoWagner6:jV,geoWagner6Raw:zV,geoWiechel:FV,geoWiechelRaw:LV,geoWinkel3:HV,geoWinkel3Raw:IV});var VV=1e-6;function UV(){}var WV=Infinity,qV=WV,KV=-WV,YV=KV;var XV={point:ZV,lineStart:UV,lineEnd:UV,polygonStart:UV,polygonEnd:UV,result:function t(){var e=[[WV,qV],[KV,YV]];KV=YV=-(qV=WV=Infinity);return e}};function ZV(t,e){if(t<WV)WV=t;if(t>KV)KV=t;if(e<qV)qV=e;if(e>YV)YV=e}function $V(t,e,n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(a!=null)t.clipExtent(null);XO(n,t.stream(XV));var o=XV.result(),s=Math.min(i/(o[1][0]-o[0][0]),r/(o[1][1]-o[0][1])),u=+e[0][0]+(i-s*(o[1][0]+o[0][0]))/2,l=+e[0][1]+(r-s*(o[1][1]+o[0][1]))/2;if(a!=null)t.clipExtent(a);return t.scale(s*150).translate([u,l])}function JV(t,e,n){return $V(t,[[0,0],e],n)}function QV(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function tU(){var e,n,l=Hz(),r,a=Iz().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=Iz().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,i,c={point:function t(e,n){i=[e,n]}};function f(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(o.point(e,n),i)||(u.point(e,n),i)}f.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?a:r>=.166&&r<.234&&i>=-.214&&i<-.115?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=QV([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length)return l.precision();l.precision(t),a.precision(t),s.precision(t);return h()};f.scale=function(t){if(!arguments.length)return l.scale();l.scale(t),a.scale(t*.35),s.scale(t);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],i=+t[1];r=l.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(c);o=a.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+VV,i+.12*e+VV],[n-.214*e-VV,i+.234*e-VV]]).stream(c);u=s.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+VV,i+.166*e+VV],[n-.115*e-VV,i+.234*e-VV]]).stream(c);return h()};f.fitExtent=function(t,e){return $V(f,t,e)};f.fitSize=function(t,e){return JV(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-102.91,26.3]);var n=l([-104,27.5]);var i=l([-108,29.1]);var r=l([-110,29.1]);var a=l([-110,26.7]);var o=l([-112.8,27.6]);var s=l([-114.3,30.6]);var u=l([-119.3,30.1]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return f.scale(1070)}function eU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function nU(){var e,n,w=Hz(),r,a=Iz().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=Iz().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,l=Iz().rotate([66,0]).center([0,18]).parallels([8,18]),c,f=ij().rotate([173,14]),h,d=ij().rotate([-145,-16.8]),g,i,p={point:function t(e,n){i=[e,n]}};function v(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(o.point(e,n),i)||(u.point(e,n),i)||(c.point(e,n),i)||(h.point(e,n),i)||(g.point(e,n),i)}v.invert=function(t){var e=w.scale(),n=w.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?a:r>=.166&&r<.234&&i>=-.214&&i<-.115?s:r>=.2064&&r<.2413&&i>=.312&&i<.385?l:r>=.09&&r<.1197&&i>=-.4243&&i<-.3232?f:r>=-.0518&&r<.0895&&i>=-.4243&&i<-.3824?d:w).invert(t)};v.stream=function(t){return e&&n===t?e:e=eU([w.stream(n=t),a.stream(t),s.stream(t),l.stream(t),f.stream(t),d.stream(t)])};v.precision=function(t){if(!arguments.length){return w.precision()}w.precision(t);a.precision(t);s.precision(t);l.precision(t);f.precision(t);d.precision(t);return m()};v.scale=function(t){if(!arguments.length){return w.scale()}w.scale(t);a.scale(t*.35);s.scale(t);l.scale(t);f.scale(t*2);d.scale(t);return v.translate(w.translate())};v.translate=function(t){if(!arguments.length){return w.translate()}var e=w.scale(),n=+t[0],i=+t[1];r=w.translate(t).clipExtent([[n-.455*e,i-.238*e],[n+.455*e,i+.238*e]]).stream(p);o=a.translate([n-.307*e,i+.201*e]).clipExtent([[n-.425*e+VV,i+.12*e+VV],[n-.214*e-VV,i+.233*e-VV]]).stream(p);u=s.translate([n-.205*e,i+.212*e]).clipExtent([[n-.214*e+VV,i+.166*e+VV],[n-.115*e-VV,i+.233*e-VV]]).stream(p);c=l.translate([n+.35*e,i+.224*e]).clipExtent([[n+.312*e+VV,i+.2064*e+VV],[n+.385*e-VV,i+.233*e-VV]]).stream(p);h=f.translate([n-.492*e,i+.09*e]).clipExtent([[n-.4243*e+VV,i+.0903*e+VV],[n-.3233*e-VV,i+.1197*e-VV]]).stream(p);g=d.translate([n-.408*e,i+.018*e]).clipExtent([[n-.4244*e+VV,i-.0519*e+VV],[n-.3824*e-VV,i+.0895*e-VV]]).stream(p);return m()};v.fitExtent=function(t,e){return $V(v,t,e)};v.fitSize=function(t,e){return JV(v,t,e)};function m(){e=n=null;return v}v.drawCompositionBorders=function(t){var e=w([-110.4641,28.2805]);var n=w([-104.0597,28.9528]);var i=w([-103.7049,25.1031]);var r=w([-109.8337,24.4531]);var a=w([-124.4745,28.1407]);var o=w([-110.931,30.8844]);var s=w([-109.8337,24.4531]);var u=w([-122.4628,21.8562]);var l=w([-76.8579,25.1544]);var c=w([-72.429,24.2097]);var f=w([-72.8265,22.7056]);var h=w([-77.1852,23.6392]);var d=w([-125.0093,29.7791]);var g=w([-118.5193,31.3262]);var p=w([-118.064,29.6912]);var v=w([-124.4369,28.169]);var m=w([-128.1314,37.4582]);var y=w([-125.2132,38.214]);var _=w([-122.3616,30.5115]);var b=w([-125.0315,29.8211]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath();t.moveTo(d[0],d[1]);t.lineTo(g[0],g[1]);t.lineTo(p[0],p[1]);t.lineTo(p[0],p[1]);t.lineTo(v[0],v[1]);t.closePath();t.moveTo(m[0],m[1]);t.lineTo(y[0],y[1]);t.lineTo(_[0],_[1]);t.lineTo(_[0],_[1]);t.lineTo(b[0],b[1]);t.closePath()};v.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return v.scale(1070)}function iU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function rU(){var e,n,a=ej().rotate([5,-38.6]).parallels([0,60]),r,o=ej().rotate([5,-38.6]).parallels([0,60]),s,i,u={point:function t(e,n){i=[e,n]}};function l(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)}l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.05346&&r<.0897&&i>=-.13388&&i<-.0322?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=iU([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.06857*e,i-.1288*e],[n+.13249*e,i+.06*e]]).stream(u);s=o.translate([n+.1*e,i-.094*e]).clipExtent([[n-.1331*e+VV,i+.053457*e+VV],[n-.0354*e-VV,i+.08969*e-VV]]).stream(u);return c()};l.fitExtent=function(t,e){return $V(l,t,e)};l.fitSize=function(t,e){return JV(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-14.034675,34.965007]);var n=a([-7.4208899,35.536988]);var i=a([-7.3148275,33.54359]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1])};l.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return l.scale(2700)}function aU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function oU(){var e,n,l=ej().rotate([10,-39.3]).parallels([0,60]),r,a=ej().rotate([17,-32.7]).parallels([0,60]),o,s=ej().rotate([27.8,-38.6]).parallels([0,60]),u,i,c={point:function t(e,n){i=[e,n]}};function f(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(o.point(e,n),i)||(u.point(e,n),i)}f.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.0093&&r<.03678&&i>=-.03875&&i<-.0116?a:r>=-.0412&&r<.0091&&i>=-.07782&&i<-.01166?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=aU([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.6);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],i=+t[1];r=l.translate(t).clipExtent([[n-.0115*e,i-.1138*e],[n+.2105*e,i+.0673*e]]).stream(c);o=a.translate([n-.0265*e,i+.025*e]).clipExtent([[n-.0388*e+VV,i+.0093*e+VV],[n-.0116*e-VV,i+.0368*e-VV]]).stream(c);u=s.translate([n-.045*e,i+-.02*e]).clipExtent([[n-.0778*e+VV,i-.0413*e+VV],[n-.0117*e-VV,i+.0091*e-VV]]).stream(c);return h()};f.fitExtent=function(t,e){return $V(f,t,e)};f.fitSize=function(t,e){return JV(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-12.8351,38.7113]);var n=l([-10.8482,38.7633]);var i=l([-10.8181,37.2072]);var r=l([-12.7345,37.1573]);var a=l([-16.0753,41.4436]);var o=l([-10.9168,41.6861]);var s=l([-10.8557,38.7747]);var u=l([-15.6728,38.5505]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath()};f.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return f.scale(4200)}function sU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function uU(){var e,n,a=$z().rotate([80,1.5]),r,o=$z().rotate([90.73,1]),s,i,u={point:function t(e,n){i=[e,n]}};function l(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)}l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0676&&r<-.026&&i>=-.0857&&i<-.0263?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=sU([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.0262*e,i-.0734*e],[n+.1741*e,i+.079*e]]).stream(u);s=o.translate([n-.06*e,i-.04*e]).clipExtent([[n-.0857*e+VV,i-.0676*e+VV],[n-.0263*e-VV,i-.026*e-VV]]).stream(u);return c()};l.fitExtent=function(t,e){return $V(l,t,e)};l.fitSize=function(t,e){return JV(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-84.9032,2.3757]);var n=a([-81.5047,2.3708]);var i=a([-81.5063,-.01]);var r=a([-84.9086,-.005]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath()};l.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return l.scale(3500)}function lU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function cU(){var e,n,d=Sj().rotate([72,37]),r,a=xj().rotate([72,0]),o,s=$z().rotate([80,33.5]),u,l=$z().rotate([110,25]),c,i,f={point:function t(e,n){i=[e,n]}};function h(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(o.point(e,n),i)||(u.point(e,n),i)||(c.point(e,n),i)}h.invert=function(t){var e=d.scale(),n=d.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.2582&&r<.32&&i>=-.1036&&i<-.087?a:r>=-.01298&&r<.0133&&i>=-.11396&&i<-.05944?s:r>=.01539&&r<.03911&&i>=-.089&&i<-.0588?l:d).invert(t)};h.stream=function(t){return e&&n===t?e:e=lU([d.stream(n=t),a.stream(t),s.stream(t),l.stream(t)])};h.precision=function(t){if(!arguments.length){return d.precision()}d.precision(t);a.precision(t);s.precision(t);l.precision(t);return g()};h.scale=function(t){if(!arguments.length){return d.scale()}d.scale(t);a.scale(t*.15);s.scale(t*1.5);l.scale(t*1.5);return h.translate(d.translate())};h.translate=function(t){if(!arguments.length){return d.translate()}var e=d.scale(),n=+t[0],i=+t[1];r=d.translate(t).clipExtent([[n-.059*e,i-.3835*e],[n+.4498*e,i+.3375*e]]).stream(f);o=a.translate([n-.087*e,i+.17*e]).clipExtent([[n-.1166*e+VV,i+.2582*e+VV],[n-.06*e-VV,i+.32*e-VV]]).stream(f);u=s.translate([n-.092*e,i-0*e]).clipExtent([[n-.114*e+VV,i-.013*e+VV],[n-.0594*e-VV,i+.0133*e-VV]]).stream(f);c=l.translate([n-.089*e,i-.0265*e]).clipExtent([[n-.089*e+VV,i+.0154*e+VV],[n-.0588*e-VV,i+.0391*e-VV]]).stream(f);return g()};h.fitExtent=function(t,e){return $V(h,t,e)};h.fitSize=function(t,e){return JV(h,t,e)};function g(){e=n=null;return h}h.drawCompositionBorders=function(t){var e=d([-82.6999,-51.3043]);var n=d([-77.5442,-51.6631]);var i=d([-78.0254,-55.186]);var r=d([-83.6106,-54.7785]);var a=d([-80.0638,-35.984]);var o=d([-76.2153,-36.1811]);var s=d([-76.2994,-37.6839]);var u=d([-80.2231,-37.4757]);var l=d([-78.442,-37.706]);var c=d([-76.263,-37.8054]);var f=d([-76.344,-39.1595]);var h=d([-78.5638,-39.0559]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath()};h.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return h.scale(700)}function fU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function hU(){var e,n,l=aj().rotate([-136,-22]).parallels([40,34]),r,a=aj().rotate([-146,-26]).parallels([40,34]),o,s=aj().rotate([-126,-19]).parallels([40,34]),u,i,c={point:function t(e,n){i=[e,n]}};function f(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(o.point(e,n),i)||(u.point(e,n),i)}f.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.10925&&r<-.02701&&i>=-.135&&i<-.0397?a:r>=.04713&&r<.11138&&i>=-.03986&&i<.051?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=fU([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.7);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],i=+t[1];r=l.translate(t).clipExtent([[n-.1352*e,i-.1091*e],[n+.117*e,i+.098*e]]).stream(c);o=a.translate([n-.0425*e,i-.005*e]).clipExtent([[n-.135*e+VV,i-.1093*e+VV],[n-.0397*e-VV,i-.027*e-VV]]).stream(c);u=s.translate(t).clipExtent([[n-.0399*e+VV,i+.0471*e+VV],[n+.051*e-VV,i+.1114*e-VV]]).stream(c);return h()};f.fitExtent=function(t,e){return $V(f,t,e)};f.fitSize=function(t,e){return JV(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([126.01320483689143,41.621090310215585]);var n=l([133.04304387025903,42.15087523707186]);var i=l([133.3021766080688,37.43975444725098]);var r=l([126.87889168628224,36.95488945159779]);var a=l([132.9,29.8]);var o=l([134,33]);var s=l([139.3,33.2]);var u=l([139.16,30.5]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return f.scale(2200)}function dU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function gU(){var e,n,a=ej().rotate([-3,-46.2]).parallels([0,60]),r,o=$z().center([-53.2,3.9]),s,u=$z().center([-61.03,14.67]),l,c=$z().center([-61.46,16.14]),f,h=$z().center([-62.85,17.92]),d,g=$z().center([-56.23,46.93]),p,v=$z().center([45.16,-12.8]),m,y=$z().center([55.52,-21.13]),_,b=$z().center([165.8,-21.07]),w,x=$z().center([-178.1,-14.3]),k,S=$z().center([-150.55,-17.11]),C,E=$z().center([-150.55,-17.11]),A,i,R={point:function t(e,n){i=[e,n]}};function M(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)||(l.point(e,n),i)||(f.point(e,n),i)||(d.point(e,n),i)||(p.point(e,n),i)||(m.point(e,n),i)||(_.point(e,n),i)||(w.point(e,n),i)||(k.point(e,n),i)||(C.point(e,n),i)||(A.point(e,n),i)}M.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.029&&r<.0864&&i>=-.14&&i<-.0996?o:r>=0&&r<.029&&i>=-.14&&i<-.0996?u:r>=-.032&&r<0&&i>=-.14&&i<-.0996?c:r>=-.052&&r<-.032&&i>=-.14&&i<-.0996?h:r>=-.076&&r<.052&&i>=-.14&&i<-.0996?g:r>=-.076&&r<-.052&&i>=.0967&&i<.1371?v:r>=-.052&&r<-.02&&i>=.0967&&i<.1371?y:r>=-.02&&r<.012&&i>=.0967&&i<.1371?b:r>=.012&&r<.033&&i>=.0967&&i<.1371?x:r>=.033&&r<.0864&&i>=.0967&&i<.1371?S:a).invert(t)};M.stream=function(t){return e&&n===t?e:e=dU([a.stream(n=t),o.stream(t),u.stream(t),c.stream(t),h.stream(t),g.stream(t),v.stream(t),y.stream(t),b.stream(t),x.stream(t),S.stream(t),E.stream(t)])};M.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);c.precision(t);h.precision(t);g.precision(t);v.precision(t);y.precision(t);b.precision(t);x.precision(t);S.precision(t);E.precision(t);return T()};M.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.6);u.scale(t*1.6);c.scale(t*1.4);h.scale(t*5);g.scale(t*1.3);v.scale(t*1.6);y.scale(t*1.2);b.scale(t*.3);x.scale(t*2.7);S.scale(t*.5);E.scale(t*.06);return M.translate(a.translate())};M.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.0996*e,i-.0908*e],[n+.0967*e,i+.0864*e]]).stream(R);s=o.translate([n-.12*e,i+.0575*e]).clipExtent([[n-.14*e+VV,i+.029*e+VV],[n-.0996*e-VV,i+.0864*e-VV]]).stream(R);l=u.translate([n-.12*e,i+.013*e]).clipExtent([[n-.14*e+VV,i+0*e+VV],[n-.0996*e-VV,i+.029*e-VV]]).stream(R);f=c.translate([n-.12*e,i-.014*e]).clipExtent([[n-.14*e+VV,i-.032*e+VV],[n-.0996*e-VV,i+0*e-VV]]).stream(R);d=h.translate([n-.12*e,i-.044*e]).clipExtent([[n-.14*e+VV,i-.052*e+VV],[n-.0996*e-VV,i-.032*e-VV]]).stream(R);p=g.translate([n-.12*e,i-.065*e]).clipExtent([[n-.14*e+VV,i-.076*e+VV],[n-.0996*e-VV,i-.052*e-VV]]).stream(R);m=v.translate([n+.117*e,i-.064*e]).clipExtent([[n+.0967*e+VV,i-.076*e+VV],[n+.1371*e-VV,i-.052*e-VV]]).stream(R);_=y.translate([n+.116*e,i-.0355*e]).clipExtent([[n+.0967*e+VV,i-.052*e+VV],[n+.1371*e-VV,i-.02*e-VV]]).stream(R);w=b.translate([n+.116*e,i-.0048*e]).clipExtent([[n+.0967*e+VV,i-.02*e+VV],[n+.1371*e-VV,i+.012*e-VV]]).stream(R);k=x.translate([n+.116*e,i+.022*e]).clipExtent([[n+.0967*e+VV,i+.012*e+VV],[n+.1371*e-VV,i+.033*e-VV]]).stream(R);A=E.translate([n+.11*e,i+.045*e]).clipExtent([[n+.0967*e+VV,i+.033*e+VV],[n+.1371*e-VV,i+.06*e-VV]]).stream(R);C=S.translate([n+.115*e,i+.075*e]).clipExtent([[n+.0967*e+VV,i+.06*e+VV],[n+.1371*e-VV,i+.0864*e-VV]]).stream(R);return T()};M.fitExtent=function(t,e){return $V(M,t,e)};M.fitSize=function(t,e){return JV(M,t,e)};function T(){e=n=null;return M}M.drawCompositionBorders=function(t){var e,n,i,r;e=a([-7.938886725111036,43.7219460918835]);n=a([-4.832080896458295,44.12930268549372]);i=a([-4.205299743793263,40.98096346967365]);r=a([-7.071796453126152,40.610037319181444]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([-8.42751373617692,45.32889452553031]);n=a([-5.18599305777107,45.7566442062976]);i=a([-4.832080905154431,44.129302726751426]);r=a([-7.938886737126192,43.72194613263854]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([-9.012656899657046,47.127733821030176]);n=a([-5.6105244772793155,47.579777861410626]);i=a([-5.185993067168585,45.756644248170346]);r=a([-8.427513749141811,45.32889456686326]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([-9.405747558985553,48.26506375557457]);n=a([-5.896175018439575,48.733352850851624]);i=a([-5.610524487556043,47.57977790393761]);r=a([-9.012656913808351,47.127733862971255]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([-9.908436061346974,49.642448789505856]);n=a([-6.262026716233124,50.131426841787174]);i=a([-5.896175029331232,48.73335289377258]);r=a([-9.40574757396393,48.26506379787767]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([11.996907706504462,50.16039028163579]);n=a([15.649907879773343,49.68279246765253]);i=a([15.156712840526632,48.30371557625831]);r=a([11.64122661754411,48.761078240546816]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([11.641226606955788,48.7610781975889]);n=a([15.156712825832164,48.30371553390465]);i=a([14.549932166241172,46.4866532486199]);r=a([11.204443787952183,46.91899233914248]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([11.204443778297161,46.918992296823646]);n=a([14.549932152815039,46.486653206856396]);i=a([13.994409796764009,44.695833444323256]);r=a([10.805306599253848,45.105133870684924]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([10.805306590412085,45.10513382903308]);n=a([13.99440978444733,44.695833403183606]);i=a([13.654633799024392,43.53552468558152]);r=a([10.561516803980956,43.930671459798624]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([10.561516795617383,43.93067141859757]);n=a([13.654633787361952,43.5355246448671]);i=a([12.867691604239901,40.640701985019405]);r=a([9.997809515987688,41.00288343254471]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([10.8,42.4]);n=a([12.8,42.13]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1])};M.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return M.scale(2700)}function pU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function vU(){var e,n,a=ej().rotate([-10,-53]).parallels([0,60]),r,o=$z().center([-61.46,16.14]),s,u=$z().center([-53.2,3.9]),l,c=ej().rotate([27.8,-38.9]).parallels([0,60]),f,h=ej().rotate([25.43,-37.398]).parallels([0,60]),d,g=ej().rotate([31.17,-39.539]).parallels([0,60]),p,v=ej().rotate([17,-32.7]).parallels([0,60]),m,y=ej().rotate([16,-28.5]).parallels([0,60]),_,b=$z().center([-61.03,14.67]),w,x=$z().center([45.16,-12.8]),k,S=$z().center([55.52,-21.13]),C,E=ej().rotate([-14.4,-35.95]).parallels([0,60]),A,i,R={point:function t(e,n){i=[e,n]}};function M(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(l.point(e,n),i)||(w.point(e,n),i)||(s.point(e,n),i)||(_.point(e,n),i)||(m.point(e,n),i)||(k.point(e,n),i)||(C.point(e,n),i)||(A.point(e,n),i)||(f.point(e,n),i)||(d.point(e,n),i)||(p.point(e,n),i)}M.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-(n[0]+.08*e))/e,r=(t[1]-n[1])/e;return(r>=-.31&&r<-.24&&i>=.14&&i<.24?o:r>=-.24&&r<-.17&&i>=.14&&i<.24?u:r>=-.17&&r<-.12&&i>=.21&&i<.24?h:r>=-.17&&r<-.14&&i>=.14&&i<.165?g:r>=-.17&&r<-.1&&i>=.14&&i<.24?c:r>=-.1&&r<-.03&&i>=.14&&i<.24?v:r>=-.03&&r<.04&&i>=.14&&i<.24?y:r>=-.31&&r<-.24&&i>=.24&&i<.34?b:r>=-.24&&r<-.17&&i>=.24&&i<.34?x:r>=-.17&&r<-.1&&i>=.24&&i<.34?S:r>=-.1&&r<-.03&&i>=.24&&i<.34?E:a).invert(t)};M.stream=function(t){return e&&n===t?e:e=pU([a.stream(n=t),u.stream(t),b.stream(t),o.stream(t),y.stream(t),v.stream(t),x.stream(t),S.stream(t),E.stream(t),c.stream(t),h.stream(t),g.stream(t)])};M.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);u.precision(t);b.precision(t);o.precision(t);y.precision(t);v.precision(t);x.precision(t);S.precision(t);E.precision(t);c.precision(t);h.precision(t);g.precision(t);return T()};M.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*3);u.scale(t*.8);b.scale(t*3.5);S.scale(t*2.7);c.scale(t*2);h.scale(t*2);g.scale(t*2);v.scale(t*3);y.scale(t);x.scale(t*5.5);E.scale(t*6);return M.translate(a.translate())};M.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate([n-.08*e,i]).clipExtent([[n-.51*e,i-.33*e],[n+.5*e,i+.33*e]]).stream(R);s=o.translate([n+.19*e,i-.275*e]).clipExtent([[n+.14*e+VV,i-.31*e+VV],[n+.24*e-VV,i-.24*e-VV]]).stream(R);l=u.translate([n+.19*e,i-.205*e]).clipExtent([[n+.14*e+VV,i-.24*e+VV],[n+.24*e-VV,i-.17*e-VV]]).stream(R);f=c.translate([n+.19*e,i-.135*e]).clipExtent([[n+.14*e+VV,i-.17*e+VV],[n+.24*e-VV,i-.1*e-VV]]).stream(R);d=h.translate([n+.225*e,i-.147*e]).clipExtent([[n+.21*e+VV,i-.17*e+VV],[n+.24*e-VV,i-.12*e-VV]]).stream(R);p=g.translate([n+.153*e,i-.15*e]).clipExtent([[n+.14*e+VV,i-.17*e+VV],[n+.165*e-VV,i-.14*e-VV]]).stream(R);m=v.translate([n+.19*e,i-.065*e]).clipExtent([[n+.14*e+VV,i-.1*e+VV],[n+.24*e-VV,i-.03*e-VV]]).stream(R);_=y.translate([n+.19*e,i+.005*e]).clipExtent([[n+.14*e+VV,i-.03*e+VV],[n+.24*e-VV,i+.04*e-VV]]).stream(R);w=b.translate([n+.29*e,i-.275*e]).clipExtent([[n+.24*e+VV,i-.31*e+VV],[n+.34*e-VV,i-.24*e-VV]]).stream(R);k=x.translate([n+.29*e,i-.205*e]).clipExtent([[n+.24*e+VV,i-.24*e+VV],[n+.34*e-VV,i-.17*e-VV]]).stream(R);C=S.translate([n+.29*e,i-.135*e]).clipExtent([[n+.24*e+VV,i-.17*e+VV],[n+.34*e-VV,i-.1*e-VV]]).stream(R);A=E.translate([n+.29*e,i-.065*e]).clipExtent([[n+.24*e+VV,i-.1*e+VV],[n+.34*e-VV,i-.03*e-VV]]).stream(R);return T()};M.fitExtent=function(t,e){return $V(M,t,e)};M.fitSize=function(t,e){return JV(M,t,e)};function T(){e=n=null;return M}M.drawCompositionBorders=function(t){var e,n,i,r;e=a([42.45755610828648,63.343658547914934]);n=a([52.65837266667029,59.35045080290929]);i=a([47.19754502247785,56.12653496548117]);r=a([37.673034273363044,59.61638268506111]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([59.41110754003403,62.35069727399336]);n=a([66.75050228640794,57.11797303636038]);i=a([60.236065725110436,54.63331433818992]);r=a([52.65837313153311,59.350450804599355]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([48.81091130080243,66.93353402634641]);n=a([59.41110730654679,62.35069740653086]);i=a([52.6583728974441,59.3504509222445]);r=a([42.45755631675751,63.34365868805821]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([31.054198418446475,52.1080673766184]);n=a([39.09869284884117,49.400700047190554]);i=a([36.0580811499175,46.02944174908498]);r=a([28.690508588835726,48.433126979386415]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([33.977877745912025,55.849945501331]);n=a([42.75328432167726,52.78455122462353]);i=a([39.09869297540224,49.400700176148625]);r=a([31.05419851807008,52.10806751810923]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([52.658372900759296,59.35045068526415]);n=a([60.23606549583304,54.63331423800264]);i=a([54.6756370953122,51.892298789399455]);r=a([47.19754524788189,56.126534861222794]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([47.19754506082455,56.126534735591456]);n=a([54.675636900123514,51.892298681337095]);i=a([49.94448648951486,48.98775484983285]);r=a([42.75328468716108,52.78455126060818]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([42.75328453416769,52.78455113209101]);n=a([49.94448632339758,48.98775473706457]);i=a([45.912339990394315,45.99361784987003]);r=a([39.09869317356607,49.40070009378711]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([47.197544835420544,56.126534839849846]);i=a([42.75328447467064,52.78455135314068]);r=a([33.977877870363905,55.849945644671145]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([44.56748486446032,57.26489367845818]);i=a([43.9335791193588,53.746540942601726]);r=a([43,56]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([40.25902691953466,58.83002044222639]);i=a([38.458270492742024,57.26232178028002]);r=a([35.97754948030156,58.00266637992386]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath()};M.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return M.scale(750)}function mU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function yU(){var e,n,a=$z().center([105.25,4]),r,o=$z().center([118.65,2.86]),s,i,u={point:function t(e,n){i=[e,n]}};function l(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)}l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0521&&r<.0229&&i>=-.0111&&i<.1?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=mU([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.615);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.11*e,i-.0521*e],[n-.0111*e,i+.0521*e]]).stream(u);s=o.translate([n+.09*e,i-0*e]).clipExtent([[n-.0111*e+VV,i-.0521*e+VV],[n+.1*e-VV,i+.024*e-VV]]).stream(u);return c()};l.fitExtent=function(t,e){return $V(l,t,e)};l.fitSize=function(t,e){return JV(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([106.3214,2.0228]);var n=a([105.1843,2.3761]);var i=a([104.2151,3.3618]);var r=a([104.215,4.5651]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1])};l.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return l.scale(4800)}function _U(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function bU(){var e,n,a=$z().rotate([-9.5,-1.5]),r,o=$z().rotate([-8.6,-3.5]),s,u=$z().rotate([-5.6,1.45]),l,i,c={point:function t(e,n){i=[e,n]}};function f(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)||(l.point(e,n),i)}f.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.02&&r<0&&i>=-.038&&i<-.005?o:r>=0&&r<.02&&i>=-.038&&i<-.005?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=_U([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);return h()};f.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*1.5);u.scale(t*4);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.005*e,i-.02*e],[n+.038*e,i+.02*e]]).stream(c);s=o.translate([n-.025*e,i-.01*e]).clipExtent([[n-.038*e+VV,i-.02*e+VV],[n-.005*e-VV,i+0*e-VV]]).stream(c);l=u.translate([n-.025*e,i+.01*e]).clipExtent([[n-.038*e+VV,i-0*e+VV],[n-.005*e-VV,i+.02*e-VV]]).stream(c);return h()};f.fitExtent=function(t,e){return $V(f,t,e)};f.fitSize=function(t,e){return JV(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e,n,i,r;e=a([9.21327272751682,2.645820439454123]);n=a([11.679126293239872,2.644755519268689]);i=a([11.676845389029227,.35307824637606433]);r=a([9.213572917774014,.35414205204417754]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([7.320873711543669,2.64475551449975]);n=a([9.213272722738658,2.645820434679803]);i=a([9.213422896480349,1.4999812505283054]);r=a([7.322014760520787,1.4989168878985566]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath();e=a([7.3220147605302905,1.4989168783492766]);n=a([9.213422896481598,1.499981240979021]);i=a([9.213572912999604,.354142056817247]);r=a([7.323154615739809,.353078251154504]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath()};f.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return f.scale(12e3)}function wU(r){var a=r.length;return{point:function t(e,n){var i=-1;while(++i<a){r[i].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){r[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){r[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){r[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){r[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){r[e].polygonEnd()}}}}function xU(){var e,n,a=Hz().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),r,o=Hz().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),s,i,u={point:function t(e,n){i=[e,n]}};function l(t){var e=t[0],n=t[1];return i=null,(r.point(e,n),i)||(s.point(e,n),i)}l.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.089&&r<.06&&i>=.029&&i<.046?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=wU([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t);return c()};l.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],i=+t[1];r=a.translate(t).clipExtent([[n-.065*e,i-.089*e],[n+.075*e,i+.089*e]]).stream(u);s=o.translate([n+.01*e,i+.025*e]).clipExtent([[n+.029*e+VV,i-.089*e+VV],[n+.046*e-VV,i-.06*e-VV]]).stream(u);return c()};l.fitExtent=function(t,e){return $V(l,t,e)};l.fitSize=function(t,e){return JV(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e,n,i,r;e=a([-1.113205870242365,59.64920050773357]);n=a([.807899092399606,59.59085836472269]);i=a([.5778611961420386,57.93467822832577]);r=a([-1.25867782078448,57.99029450085142]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(i[0],i[1]);t.lineTo(r[0],r[1]);t.closePath()};l.getCompositionBorders=function(){var t=Iw();this.drawCompositionBorders(t);return t.toString()};return l.scale(2800)}var kU=Object.freeze({__proto__:null,geoAlbersUsa:tU,geoAlbersUsaTerritories:nU,geoConicConformalSpain:rU,geoConicConformalPortugal:oU,geoMercatorEcuador:uU,geoTransverseMercatorChile:cU,geoConicEquidistantJapan:hU,geoConicConformalFrance:gU,geoConicConformalEurope:vU,geoMercatorMalaysia:yU,geoMercatorEquatorialGuinea:bU,geoAlbersUk:xU});function SU(t){return t.k}function CU(t){return[t.x,t.y]}function EU(t){return function(){return t}}function AU(){var g=0,p=0,v=960,m=500;var y=true,_=true;var b=256;var w=SU;var x=CU;var k=0;function e(){var t=+w.apply(this,arguments);var e=x.apply(this,arguments);var n=Math.log2(t/b);var i=Math.round(Math.max(n+k,0));var r=Math.pow(2,n-i)*b;var a=+e[0]-t/2;var o=+e[1]-t/2;var s=Math.max(y?0:-Infinity,Math.floor((g-a)/r));var u=Math.min(y?1<<i:Infinity,Math.ceil((v-a)/r));var l=Math.max(_?0:-Infinity,Math.floor((p-o)/r));var c=Math.min(_?1<<i:Infinity,Math.ceil((m-o)/r));var f=[];for(var h=l;h<c;++h){for(var d=s;d<u;++d){f.push([d,h,i])}}f.translate=[a/r,o/r];f.scale=r;return f}e.size=function(t){return arguments.length?(g=p=0,v=+t[0],m=+t[1],e):[v-g,m-p]};e.extent=function(t){return arguments.length?(g=+t[0][0],p=+t[0][1],v=+t[1][0],m=+t[1][1],e):[[g,p],[v,m]]};e.scale=function(t){return arguments.length?(w=typeof t==="function"?t:EU(+t),e):w};e.translate=function(t){return arguments.length?(x=typeof t==="function"?t:EU([+t[0],+t[1]]),e):x};e.zoomDelta=function(t){return arguments.length?(k=+t,e):k};e.tileSize=function(t){return arguments.length?(b=+t,e):b};e.clamp=function(t){return arguments.length?(y=_=!!t,e):y&&_};e.clampX=function(t){return arguments.length?(y=!!t,e):y};e.clampY=function(t){return arguments.length?(_=!!t,e):_};return e}function RU(t){return t}function MU(t){if(t==null)return RU;var a,o,s=t.scale[0],u=t.scale[1],l=t.translate[0],c=t.translate[1];return function(t,e){if(!e)a=o=0;var n=2,i=t.length,r=new Array(i);r[0]=(a+=t[0])*s+l;r[1]=(o+=t[1])*u+c;while(n<i){r[n]=t[n],++n}return r}}function TU(t,e){var n,i=t.length,r=i-e;while(r<--i){n=t[r],t[r++]=t[i],t[i]=n}}function PU(e,t){if(typeof t==="string")t=e.objects[t];return t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(t){return OU(e,t)})}:OU(e,t)}function OU(t,e){var n=e.id,i=e.bbox,r=e.properties==null?{}:e.properties,a=BU(t,e);return n==null&&i==null?{type:"Feature",properties:r,geometry:a}:i==null?{type:"Feature",id:n,properties:r,geometry:a}:{type:"Feature",id:n,bbox:i,properties:r,geometry:a}}function BU(t,e){var a=MU(t.transform),o=t.arcs;function r(t,e){if(e.length)e.pop();for(var n=o[t<0?~t:t],i=0,r=n.length;i<r;++i){e.push(a(n[i],i))}if(t<0)TU(e,r)}function i(t){return a(t)}function s(t){var e=[];for(var n=0,i=t.length;n<i;++n){r(t[n],e)}if(e.length<2)e.push(e[0]);return e}function n(t){var e=s(t);while(e.length<4){e.push(e[0])}return e}function u(t){return t.map(n)}function l(t){var e=t.type,n;switch(e){case"GeometryCollection":return{type:e,geometries:t.geometries.map(l)};case"Point":n=i(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(i);break;case"LineString":n=s(t.arcs);break;case"MultiLineString":n=t.arcs.map(s);break;case"Polygon":n=u(t.arcs);break;case"MultiPolygon":n=t.arcs.map(u);break;default:return null}return{type:e,coordinates:n}}return l(e)}var DU=function t(e){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return e.reduce(function(t,e){var n=[];if(Array.isArray(e)){n=e}else{if(e[i]){n=e[i]}else{console.warn('d3plus-viz: Please implement a "dataFormat" callback to concat the arrays manually (consider using the d3plus.dataConcat method in your callback). Currently unable to concatenate (using key: "'.concat(i,'") the following response:'),e)}}return t.concat(n)},[])};var NU=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return e[n].map(function(i){return e[r].reduce(function(t,e,n){return t[e]=i[n],t},{})})};function zU(r,t){var a,o=es("beforesend","progress","load","error"),s,u=Le(),l=new XMLHttpRequest,c=null,f=null,i,h,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(r))l=new XDomainRequest;"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){l.readyState>3&&e(t)};function e(t){var e=l.status,n;if(!e&&LU(l)||e>=200&&e<300||e===304){if(i){try{n=i.call(a,l)}catch(t){o.call("error",a,t);return}}else{n=l}o.call("load",a,n)}else{o.call("error",a,t)}}l.onprogress=function(t){o.call("progress",a,t)};a={header:function t(e,n){e=(e+"").toLowerCase();if(arguments.length<2)return u.get(e);if(n==null)u.remove(e);else u.set(e,n+"");return a},mimeType:function t(e){if(!arguments.length)return s;s=e==null?null:e+"";return a},responseType:function t(e){if(!arguments.length)return h;h=e;return a},timeout:function t(e){if(!arguments.length)return d;d=+e;return a},user:function t(e){return arguments.length<1?c:(c=e==null?null:e+"",a)},password:function t(e){return arguments.length<1?f:(f=e==null?null:e+"",a)},response:function t(e){i=e;return a},get:function t(e,n){return a.send("GET",e,n)},post:function t(e,n){return a.send("POST",e,n)},send:function t(e,n,i){l.open(e,r,true,c,f);if(s!=null&&!u.has("accept"))u.set("accept",s+",*/*");if(l.setRequestHeader)u.each(function(t,e){l.setRequestHeader(e,t)});if(s!=null&&l.overrideMimeType)l.overrideMimeType(s);if(h!=null)l.responseType=h;if(d>0)l.timeout=d;if(i==null&&typeof n==="function")i=n,n=null;if(i!=null&&i.length===1)i=jU(i);if(i!=null)a.on("error",i).on("load",function(t){i(null,t)});o.call("beforesend",a,l);l.send(n==null?null:n);return a},abort:function t(){l.abort();return a},on:function t(){var e=o.on.apply(o,arguments);return e===o?a:e}};if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return a.get(t)}return a}function jU(n){return function(t,e){n(t==null?e:null)}}function LU(t){var e=t.responseType;return e&&e!=="text"?t.response:t.responseText}function FU(i,r){return function(t,e){var n=zU(t).mimeType(i).response(r);if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return n.get(e)}return n}}var IU=FU("application/json",function(t){return JSON.parse(t.responseText)});var HU=FU("text/plain",function(t){return t.responseText});var GU={},VU={},UU=34,WU=10,qU=13;function KU(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function YU(n,i){var r=KU(n);return function(t,e){return i(r(t),e,n)}}function XU(t){var n=Object.create(null),i=[];t.forEach(function(t){for(var e in t){if(!(e in n)){i.push(n[e]=e)}}});return i}function ZU(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function $U(t){return t<0?"-"+ZU(-t,6):t>9999?"+"+ZU(t,6):ZU(t,4)}function JU(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":$U(t.getUTCFullYear())+"-"+ZU(t.getUTCMonth()+1,2)+"-"+ZU(t.getUTCDate(),2)+(r?"T"+ZU(e,2)+":"+ZU(n,2)+":"+ZU(i,2)+"."+ZU(r,3)+"Z":i?"T"+ZU(e,2)+":"+ZU(n,2)+":"+ZU(i,2)+"Z":n||e?"T"+ZU(e,2)+":"+ZU(n,2)+"Z":"")}function QU(i){var e=new RegExp('["'+i+"\n\r]"),f=i.charCodeAt(0);function t(t,n){var i,r,e=a(t,function(t,e){if(i)return i(t,e-1);r=t,i=n?YU(t,n):KU(t)});e.columns=r||[];return e}function a(i,t){var e=[],r=i.length,a=0,n=0,o,s=r<=0,u=false;if(i.charCodeAt(r-1)===WU)--r;if(i.charCodeAt(r-1)===qU)--r;function l(){if(s)return VU;if(u)return u=false,GU;var t,e=a,n;if(i.charCodeAt(e)===UU){while(a++<r&&i.charCodeAt(a)!==UU||i.charCodeAt(++a)===UU){}if((t=a)>=r)s=true;else if((n=i.charCodeAt(a++))===WU)u=true;else if(n===qU){u=true;if(i.charCodeAt(a)===WU)++a}return i.slice(e+1,t-1).replace(/""/g,'"')}while(a<r){if((n=i.charCodeAt(t=a++))===WU)u=true;else if(n===qU){u=true;if(i.charCodeAt(a)===WU)++a}else if(n!==f)continue;return i.slice(e,t)}return s=true,i.slice(e,r)}while((o=l())!==VU){var c=[];while(o!==GU&&o!==VU){c.push(o),o=l()}if(t&&(c=t(c,n++))==null)continue;e.push(c)}return e}function n(t,n){return t.map(function(e){return n.map(function(t){return l(e[t])}).join(i)})}function r(t,e){if(e==null)e=XU(t);return[e.map(l).join(i)].concat(n(t,e)).join("\n")}function o(t,e){if(e==null)e=XU(t);return n(t,e).join("\n")}function s(t){return t.map(u).join("\n")}function u(t){return t.map(l).join(i)}function l(t){return t==null?"":t instanceof Date?JU(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:t,parseRows:a,format:r,formatBody:o,formatRows:s,formatRow:u,formatValue:l}}var tW=QU(",");var eW=tW.parse;var nW=QU("\t");var iW=nW.parse;function rW(r,a){return function(t,e,n){if(arguments.length<3)n=e,e=null;var i=zU(t).mimeType(r);i.row=function(t){return arguments.length?i.response(aW(a,e=t)):e};i.row(e);return n?i.get(n):i}}function aW(e,n){return function(t){return e(t.responseText,n)}}var oW=rW("text/csv",eW);var sW=rW("text/tab-separated-values",iW);function uW(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){uW=function t(e){return typeof e}}else{uW=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return uW(t)}function lW(a,o,s,u){var l=this;var c;var f=function t(e){var n=e.slice(e.length-4);switch(n){case".csv":return oW;case".tsv":return sW;case".txt":return HU;default:return IU}};var h=function t(e,n,i){if(n!==IU&&!e&&i&&i instanceof Array){i.forEach(function(t){for(var e in t){if(!isNaN(t[e]))t[e]=parseFloat(t[e]);else if(t[e].toLowerCase()==="false")t[e]=false;else if(t[e].toLowerCase()==="true")t[e]=true;else if(t[e].toLowerCase()==="null")t[e]=null;else if(t[e].toLowerCase()==="undefined")t[e]=undefined}})}return i};var d=function t(e){return e.reduce(function(t,e){return e?t+1:t},0)};var g=function t(e,n){return n.indexOf(e)};if(!(a instanceof Array))a=[a];var n=function t(e){return typeof e==="string"||uW(e)==="object"&&e.url&&e.headers};var t=a.find(n);var p=new Array(a.length);var v=[];if(t){a.forEach(function(t,e){if(n(t))v.push(t);else p[e]=t})}else{p[0]=a}var m=d(p);v.forEach(function(t){var e={},i=t;if(uW(t)==="object"){i=t.url;e=t.headers}c=f(i);var n=c(i);for(var r in e){if({}.hasOwnProperty.call(e,r)){n.header(r,e[r])}}n.get(function(t,e){e=t?[]:e;if(e&&!(e instanceof Array)&&e.data&&e.headers)e=NU(e);e=h(t,c,e);p[g(i,a)]=e;if(d(p)-m===v.length){e=d(p)===1?p[0]:p;if(l._cache)l._lrucache.set("".concat(s,"_").concat(i),e);if(o){var n=o(d(p)===1?p[0]:p);if(s==="data"&&!(n instanceof Array)){e=n.data;delete n.data;l.config(n)}else e=n}else if(s==="data"){e=DU(p,"data")}if(s&&"_".concat(s)in l)l["_".concat(s)]=e;if(u)u(t,e)}})});if(v.length===0){p=p.map(function(t){if(t&&!(t instanceof Array)&&t.data&&t.headers)t=NU(t);return t});var e=d(p)===1?p[0]:p;if(o){var i=o(d(p)===1?p[0]:p);if(s==="data"&&!(i instanceof Array)){e=i.data;delete i.data;this.config(i)}else e=i}else if(s==="data"){e=DU(p,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=e;if(u)u(null,e)}}function cW(t){return function(){return t}}function fW(t,e,n){this.target=t;this.type=e;this.selection=n}function hW(){Oo.stopImmediatePropagation()}function dW(){Oo.preventDefault();Oo.stopImmediatePropagation()}var gW={name:"drag"},pW={name:"space"},vW={name:"handle"},mW={name:"center"};function yW(t){return[+t[0],+t[1]]}function _W(t){return[yW(t[0]),yW(t[1])]}function bW(e){return function(t){return Qo(t,Oo.touches,e)}}var wW={name:"x",handles:["w","e"].map(MW),input:function t(e,n){return e==null?null:[[+e[0],n[0][1]],[+e[1],n[1][1]]]},output:function t(e){return e&&[e[0][0],e[1][0]]}};var xW={name:"y",handles:["n","s"].map(MW),input:function t(e,n){return e==null?null:[[n[0][0],+e[0]],[n[1][0],+e[1]]]},output:function t(e){return e&&[e[0][1],e[1][1]]}};var kW={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(MW),input:function t(e){return e==null?null:_W(e)},output:function t(e){return e}};var SW={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"};var CW={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var EW={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var AW={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var RW={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function MW(t){return{type:t}}function TW(){return!Oo.ctrlKey&&!Oo.button}function PW(){var t=this.ownerSVGElement||this;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function OW(){return navigator.maxTouchPoints||"ontouchstart"in this}function BW(t){while(!t.__brush){if(!(t=t.parentNode))return}return t.__brush}function DW(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function NW(){return jW(wW)}function zW(){return jW(kW)}function jW(L){var e=PW,F=TW,i=OW,I=true,n=es("start","brush","end"),r=6,H;function a(t){var e=t.property("__brush",c).selectAll(".overlay").data([MW("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",SW.overlay).merge(e).each(function(){var t=BW(this).extent;Yo(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])});t.selectAll(".selection").data([MW("selection")]).enter().append("rect").attr("class","selection").attr("cursor",SW.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(L.handles,function(t){return t.type});n.exit().remove();n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return SW[t.type]});t.each(G).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(i).on("touchstart.brush",s).on("touchmove.brush",u).on("touchend.brush touchcancel.brush",l).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}a.move=function(t,s){if(t.selection){t.on("start.brush",function(){V(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){V(this,arguments).end()}).tween("brush",function(){var e=this,n=e.__brush,i=V(e,arguments),t=n.selection,r=L.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),a=Qn(t,r);function o(t){n.selection=t===1&&r===null?null:a(t);G.call(e);i.brush()}return t!==null&&r!==null?o:o(1)})}else{t.each(function(){var t=this,e=arguments,n=t.__brush,i=L.input(typeof s==="function"?s.apply(t,e):s,n.extent),r=V(t,e).beforestart();Hs(t);n.selection=i===null?null:i;G.call(t);r.start().brush().end()})}};a.clear=function(t){a.move(t,null)};function G(){var t=Yo(this),e=BW(this).selection;if(e){t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]);t.selectAll(".handle").style("display",null).attr("x",function(t){return t.type[t.type.length-1]==="e"?e[1][0]-r/2:e[0][0]-r/2}).attr("y",function(t){return t.type[0]==="s"?e[1][1]-r/2:e[0][1]-r/2}).attr("width",function(t){return t.type==="n"||t.type==="s"?e[1][0]-e[0][0]+r:r}).attr("height",function(t){return t.type==="e"||t.type==="w"?e[1][1]-e[0][1]+r:r})}else{t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function V(t,e,n){var i=t.__brush.emitter;return i&&(!n||!i.clean)?i:new o(t,e,n)}function o(t,e,n){this.that=t;this.args=e;this.state=t.__brush;this.active=0;this.clean=n}o.prototype={beforestart:function t(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function t(){if(this.starting)this.starting=false,this.emit("start");else this.emit("brush");return this},brush:function t(){this.emit("brush");return this},end:function t(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function t(e){Io(new fW(a,e,L.output(this.state.selection)),n.apply,n,[e,this.that,this.args])}};function s(){if(H&&!Oo.touches)return;if(!F.apply(this,arguments))return;var e=this,n=Oo.target.__data__.type,i=(I&&Oo.metaKey?n="overlay":n)==="selection"?gW:I&&Oo.altKey?mW:vW,r=L===xW?null:AW[n],a=L===wW?null:RW[n],o=BW(e),t=o.extent,s=o.selection,u=t[0][0],l,c,f=t[0][1],h,d,g=t[1][0],p,v,m=t[1][1],y,_,b=0,w=0,x,k=r&&a&&I&&Oo.shiftKey,S,C,E=Oo.touches?bW(Oo.changedTouches[0].identifier):$o,A=E(e),R=A,M=V(e,arguments,true).beforestart();if(n==="overlay"){if(s)x=true;o.selection=s=[[l=L===xW?u:A[0],h=L===wW?f:A[1]],[p=L===xW?g:l,y=L===wW?m:h]]}else{l=s[0][0];h=s[0][1];p=s[1][0];y=s[1][1]}c=l;d=h;v=p;_=y;var T=Yo(e).attr("pointer-events","none");var P=T.selectAll(".overlay").attr("cursor",SW[n]);if(Oo.touches){M.moved=B;M.ended=N}else{var O=Yo(Oo.view).on("mousemove.brush",B,true).on("mouseup.brush",N,true);if(I)O.on("keydown.brush",z,true).on("keyup.brush",j,true);tO(Oo.view)}hW();Hs(e);G.call(e);M.start();function B(){var t=E(e);if(k&&!S&&!C){if(Math.abs(t[0]-R[0])>Math.abs(t[1]-R[1]))C=true;else S=true}R=t;x=true;dW();D()}function D(){var t;b=R[0]-A[0];w=R[1]-A[1];switch(i){case pW:case gW:{if(r)b=Math.max(u-l,Math.min(g-p,b)),c=l+b,v=p+b;if(a)w=Math.max(f-h,Math.min(m-y,w)),d=h+w,_=y+w;break}case vW:{if(r<0)b=Math.max(u-l,Math.min(g-l,b)),c=l+b,v=p;else if(r>0)b=Math.max(u-p,Math.min(g-p,b)),c=l,v=p+b;if(a<0)w=Math.max(f-h,Math.min(m-h,w)),d=h+w,_=y;else if(a>0)w=Math.max(f-y,Math.min(m-y,w)),d=h,_=y+w;break}case mW:{if(r)c=Math.max(u,Math.min(g,l-b*r)),v=Math.max(u,Math.min(g,p+b*r));if(a)d=Math.max(f,Math.min(m,h-w*a)),_=Math.max(f,Math.min(m,y+w*a));break}}if(v<c){r*=-1;t=l,l=p,p=t;t=c,c=v,v=t;if(n in CW)P.attr("cursor",SW[n=CW[n]])}if(_<d){a*=-1;t=h,h=y,y=t;t=d,d=_,_=t;if(n in EW)P.attr("cursor",SW[n=EW[n]])}if(o.selection)s=o.selection;if(S)c=s[0][0],v=s[1][0];if(C)d=s[0][1],_=s[1][1];if(s[0][0]!==c||s[0][1]!==d||s[1][0]!==v||s[1][1]!==_){o.selection=[[c,d],[v,_]];G.call(e);M.brush()}}function N(){hW();if(Oo.touches){if(Oo.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{eO(Oo.view,x);O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}T.attr("pointer-events","all");P.attr("cursor",SW.overlay);if(o.selection)s=o.selection;if(DW(s))o.selection=null,G.call(e);M.end()}function z(){switch(Oo.keyCode){case 16:{k=r&&a;break}case 18:{if(i===vW){if(r)p=v-b*r,l=c+b*r;if(a)y=_-w*a,h=d+w*a;i=mW;D()}break}case 32:{if(i===vW||i===mW){if(r<0)p=v-b;else if(r>0)l=c-b;if(a<0)y=_-w;else if(a>0)h=d-w;i=pW;P.attr("cursor",SW.selection);D()}break}default:return}dW()}function j(){switch(Oo.keyCode){case 16:{if(k){S=C=k=false;D()}break}case 18:{if(i===mW){if(r<0)p=v;else if(r>0)l=c;if(a<0)y=_;else if(a>0)h=d;i=vW;D()}break}case 32:{if(i===pW){if(Oo.altKey){if(r)p=v-b*r,l=c+b*r;if(a)y=_-w*a,h=d+w*a;i=mW}else{if(r<0)p=v;else if(r>0)l=c;if(a<0)y=_;else if(a>0)h=d;i=vW}P.attr("cursor",SW[n]);D()}break}default:return}dW()}}function u(){V(this,arguments).moved()}function l(){V(this,arguments).ended()}function c(){var t=this.__brush||{selection:null};t.extent=_W(e.apply(this,arguments));t.dim=L;return t}a.extent=function(t){return arguments.length?(e=typeof t==="function"?t:cW(_W(t)),a):e};a.filter=function(t){return arguments.length?(F=typeof t==="function"?t:cW(!!t),a):F};a.touchable=function(t){return arguments.length?(i=typeof t==="function"?t:cW(!!t),a):i};a.handleSize=function(t){return arguments.length?(r=+t,a):r};a.keyModifiers=function(t){return arguments.length?(I=!!t,a):I};a.on=function(){var t=n.on.apply(n,arguments);return t===n?a:t};return a}var LW=[].slice;var FW={};function IW(t){this._size=t;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}IW.prototype=qW.prototype={constructor:IW,defer:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=LW.call(arguments,1);n.push(e);++this._waiting,this._tasks.push(n);HW(this);return this},abort:function t(){if(this._error==null)UW(this,new Error("abort"));return this},await:function t(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(t,e){n.apply(null,[t].concat(e))};WW(this);return this},awaitAll:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=e;WW(this);return this}};function HW(e){if(!e._start){try{GW(e)}catch(t){if(e._tasks[e._ended+e._active-1])UW(e,t);else if(!e._data)throw t}}}function GW(t){while(t._start=t._waiting&&t._active<t._size){var e=t._ended+t._active,n=t._tasks[e],i=n.length-1,r=n[i];n[i]=VW(t,e);--t._waiting,++t._active;n=r.apply(null,n);if(!t._tasks[e])continue;t._tasks[e]=n||FW}}function VW(n,i){return function(t,e){if(!n._tasks[i])return;--n._active,++n._ended;n._tasks[i]=null;if(n._error!=null)return;if(t!=null){UW(n,t)}else{n._data[i]=e;if(n._waiting)HW(n);else WW(n)}}}function UW(t,e){var n=t._tasks.length,i;t._error=e;t._data=undefined;t._waiting=NaN;while(--n>=0){if(i=t._tasks[n]){t._tasks[n]=null;if(i.abort){try{i.abort()}catch(e){}}}}t._active=NaN;WW(t)}function WW(t){if(!t._active&&t._call){var e=t._data;t._data=undefined;t._call(t._error,e)}}function qW(t){if(t==null)t=Infinity;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new IW(t)}var KW=TM(function(n){(function(t,e){{n.exports=e()}})((typeof window==="undefined"?"undefined":_typeof2(window))==="object"?window:MM,function(){var r=void 0;function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new n(t)}var t=e.prototype;t.get=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return;o(e.linkedList,n);return e.data[t]};t.set=function(t,e){var n=this._LRUCacheState;var i=n.hash[t];if(e===r)return this;if(!i){n.hash[t]=new a(t);n.linkedList.length+=1;i=n.hash[t]}o(n.linkedList,i);n.data[t]=e;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};t.update=function(t,e){if(this.has(t))this.set(t,e(this.get(t)));return this};t.remove=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return this;if(n===e.linkedList.head)e.linkedList.head=n.p;if(n===e.linkedList.end)e.linkedList.end=n.n;s(n.n,n.p);delete e.hash[t];delete e.data[t];e.linkedList.length-=1;return this};t.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};t.info=function(){var t=this._LRUCacheState;return{capacity:t.capacity,length:t.linkedList.length}};t.keys=function(){var t=[];var e=this._LRUCacheState.linkedList.head;while(e){t.push(e.key);e=e.p}return t};t.has=function(t){return!!this._LRUCacheState.hash[t]};t.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};t.popStale=function(){var t=this.staleKey();if(!t)return null;var e=[t,this._LRUCacheState.data[t]];this.remove(t);return e};function n(t){this.capacity=t>0?+t:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE;this.data=Object.create?Object.create(null):{};this.hash=Object.create?Object.create(null):{};this.linkedList=new i}function i(){this.length=0;this.head=null;this.end=null}function a(t){this.key=t;this.p=null;this.n=null}function o(t,e){if(e===t.head)return;if(!t.end){t.end=e}else if(t.end===e){t.end=e.n}s(e.n,e.p);s(e,t.head);t.head=e;t.head.n=null}function s(t,e){if(t===e)return;if(t)t.p=e;if(e)e.n=t}return e})});function YW(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){YW=function t(e){return typeof e}}else{YW=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return YW(t)}function XW(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ZW(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function $W(t,e,n){if(e)ZW(t.prototype,e);if(n)ZW(t,n);return t}function JW(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)QW(t,e)}function QW(t,e){QW=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return QW(t,e)}function tq(r){var a=iq();return function t(){var e=rq(r),n;if(a){var i=rq(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return eq(this,n)}}function eq(t,e){if(e&&(YW(e)==="object"||typeof e==="function")){return e}return nq(t)}function nq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function iq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function rq(t){rq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return rq(t)}var aq=function(t){JW(n,t);var e=tq(n);function n(){var t;XW(this,n);t=e.call(this);t._buttonStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px",margin:"0 5px"};t._data=[];t._text=$u("text");t._value=$u("value");return t}$W(n,[{key:"render",value:function t(){var n=this;if(this._container===void 0)this.container(Yo("body").append("div").node());var e=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";e=e.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Button").merge(e);var r=e.selectAll("button").data(this._data,function(t,e){return n._value(t,e)});r.exit().remove();r=r.enter().append("button").attr("class","d3plus-Button").attr("type","button").merge(r).call(vw,this._buttonStyle).html(function(t,e){return n._text(t,e)});for(var a in this._on){if({}.hasOwnProperty.call(this._on,a))r.on(a,this._on[a])}return this}},{key:"buttonStyle",value:function t(e){return arguments.length?(this._buttonStyle=e,this):this._buttonStyle}},{key:"container",value:function t(e){return arguments.length?(this._container=Yo(e),this):this._container}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:cw(e),this):this._text}},{key:"value",value:function t(e){return arguments.length?(this._value=e,this):this._value}}]);return n}(ow);function oq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){oq=function t(e){return typeof e}}else{oq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return oq(t)}function sq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function uq(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function lq(t,e,n){if(e)uq(t.prototype,e);if(n)uq(t,n);return t}function cq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)fq(t,e)}function fq(t,e){fq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return fq(t,e)}function hq(r){var a=pq();return function t(){var e=vq(r),n;if(a){var i=vq(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return dq(this,n)}}function dq(t,e){if(e&&(oq(e)==="object"||typeof e==="function")){return e}return gq(t)}function gq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function pq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function vq(t){vq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return vq(t)}var mq=function(t){cq(n,t);var e=hq(n);function n(){var t;sq(this,n);t=e.call(this);t._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};t._legendStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};t._options=[];t._radioStyle={"margin-right":"10px"};t._text=$u("text");t._value=$u("value");return t}lq(n,[{key:"render",value:function t(){var n=this;if(this._container===void 0)this.container(Yo("body").append("div").node());var a=this;var e=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";e=e.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Radio").merge(e);var o=e.selectAll("label").data(this._options,function(t,e){return n._value(t,e)});o.exit().each(function(){Yo(this.nextSibling).remove()}).remove();o=o.enter().append("label").attr("class","d3plus-Label").attr("for",function(t,e){return"".concat(n._uuid,"-").concat(n._value(t,e))}).each(function(t,e){var n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("name","d3plus-Radio-".concat(a._uuid));n.setAttribute("id","".concat(a._uuid,"-").concat(a._value(t,e)));n.setAttribute("value",a._value(t,e));this.parentNode.insertBefore(n,this.nextSibling)}).merge(o).call(vw,this._labelStyle).html(function(t,e){return n._text(t,e)}).each(function(t,e){var n=a._checked===void 0?!e:"".concat(a._value(t,e))==="".concat(a._checked);Yo(this).classed("active",n).style("cursor",n?"default":"pointer");var i=Yo(this.nextSibling).property("checked",n).call(vw,a._radioStyle).style("cursor",n?"default":"pointer").on("change.d3plus",function(){a.checked(this.value);o.each(function(t,e){var n="".concat(a._value(t,e))==="".concat(a._checked);Yo(this).classed("active",n).style("cursor",n?"default":"pointer");Yo(this.nextSibling).style("cursor",n?"default":"pointer")})});for(var r in a._on){if({}.hasOwnProperty.call(a._on,r))i.on(r,a._on[r])}});var r=e.selectAll("legend#d3plus-Legend-".concat(this._uuid)).data(this._legend?[0]:[]);r.exit().remove();r.enter().insert("legend",".d3plus-Label").attr("id","d3plus-Legend-".concat(this._uuid)).attr("class","d3plus-Legend").merge(r).call(vw,this._legendStyle).html(this._legend);return this}},{key:"checked",value:function t(e){return arguments.length?(this._checked=e,this):this._checked}},{key:"container",value:function t(e){return arguments.length?(this._container=Yo(e),this):this._container}},{key:"labelStyle",value:function t(e){return arguments.length?(this._labelStyle=e,this):this._labelStyle}},{key:"legend",value:function t(e){return arguments.length?(this._legend=e,this):this._legend}},{key:"legendStyle",value:function t(e){return arguments.length?(this._legendStyle=e,this):this._legendStyle}},{key:"options",value:function t(e){return arguments.length?(this._options=e,this):this._options}},{key:"radioStyle",value:function t(e){return arguments.length?(this._radioStyle=e,this):this._radioStyle}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:cw(e),this):this._text}},{key:"value",value:function t(e){return arguments.length?(this._value=e,this):this._value}}]);return n}(ow);function yq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yq=function t(e){return typeof e}}else{yq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return yq(t)}function _q(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function bq(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function wq(t,e,n){if(e)bq(t.prototype,e);if(n)bq(t,n);return t}function xq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)kq(t,e)}function kq(t,e){kq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return kq(t,e)}function Sq(r){var a=Aq();return function t(){var e=Rq(r),n;if(a){var i=Rq(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return Cq(this,n)}}function Cq(t,e){if(e&&(yq(e)==="object"||typeof e==="function")){return e}return Eq(t)}function Eq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Aq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Rq(t){Rq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Rq(t)}var Mq=function(t){xq(n,t);var e=Sq(n);function n(){var t;_q(this,n);t=e.call(this);t._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","margin-right":"5px"};t._options=[];t._optionStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px"};t._selectStyle={background:"#fafafa",border:"1px solid #ccc","border-radius":"0","font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px",outline:"0",padding:"3px 5px 4px"};t._text=$u("text");t._value=$u("value");return t}wq(n,[{key:"render",value:function t(){var n=this;if(this._container===void 0)this.container(a("body").append("div").node());var e=this;var i=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var r=this._container.node().tagName.toLowerCase()==="foreignobject";i=i.enter().append(r?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Select").merge(i);var a=i.selectAll("select#d3plus-Select-".concat(this._uuid)).data([0]);a=a.enter().append("select").attr("id","d3plus-Select-".concat(this._uuid)).attr("class","d3plus-Select").merge(a).call(vw,this._selectStyle).on("change.d3plus",function(){e.selected(this.value)});for(var o in this._on){if({}.hasOwnProperty.call(this._on,o))a.on(o,this._on[o])}var s=a.selectAll("option").data(this._options,function(t,e){return n._value(t,e)});s.exit().remove();s.enter().append("option").attr("class","d3plus-Option").merge(s).call(vw,this._optionStyle).attr("value",function(t,e){return n._value(t,e)}).html(function(t,e){return n._text(t,e)}).property("selected",function(t,e){return n._selected===void 0?!e:"".concat(n._value(t,e))==="".concat(n._selected)});var u=i.selectAll("label#d3plus-Label-".concat(this._uuid)).data(this._label?[0]:[]);u.exit().remove();u.enter().insert("label","#d3plus-Select-".concat(this._uuid)).attr("id","d3plus-Label-".concat(this._uuid)).attr("class","d3plus-Label").attr("for","d3plus-Select-".concat(this._uuid)).merge(u).call(vw,this._labelStyle).html(this._label);return this}},{key:"container",value:function t(e){return arguments.length?(this._container=Yo(e),this):this._container}},{key:"label",value:function t(e){return arguments.length?(this._label=e,this):this._label}},{key:"labelStyle",value:function t(e){return arguments.length?(this._labelStyle=e,this):this._labelStyle}},{key:"options",value:function t(e){return arguments.length?(this._options=e,this):this._options}},{key:"optionStyle",value:function t(e){return arguments.length?(this._optionStyle=e,this):this._optionStyle}},{key:"selected",value:function t(e){return arguments.length?(this._selected=e,this):this._selected}},{key:"selectStyle",value:function t(e){return arguments.length?(this._selectStyle=e,this):this._selectStyle}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:cw(e),this):this._text}},{key:"value",value:function t(e){return arguments.length?(this._value=e,this):this._value}}]);return n}(ow);function Tq(t){return t.slice().sort(function(t,e){return t-e})}function Pq(t){var e,n=0;for(var i=0;i<t.length;i++){if(i===0||t[i]!==e){e=t[i];n++}}return n}function Oq(t,e){var n=[];for(var i=0;i<t;i++){var r=[];for(var a=0;a<e;a++){r.push(0)}n.push(r)}return n}function Bq(t,e,n,i){var r;if(t>0){var a=(n[e]-n[t-1])/(e-t+1);r=i[e]-i[t-1]-(e-t+1)*a*a}else r=i[e]-n[e]*n[e]/(e+1);if(r<0)return 0;return r}function Dq(t,e,n,i,r,a,o){if(t>e)return;var s=Math.floor((t+e)/2);i[n][s]=i[n-1][s-1];r[n][s]=s;var u=n;if(t>n)u=Math.max(u,r[n][t-1]||0);u=Math.max(u,r[n-1][s]||0);var l=s-1;if(e<i.length-1)l=Math.min(l,r[n][e+1]||0);for(var c=l;c>=u;--c){var f=Bq(c,s,a,o);if(f+i[n-1][u-1]>=i[n][s])break;var h=Bq(u,s,a,o);var d=h+i[n-1][u-1];if(d<i[n][s]){i[n][s]=d;r[n][s]=u}u++;var g=f+i[n-1][c-1];if(g<i[n][s]){i[n][s]=g;r[n][s]=c}}Dq(t,s-1,n,i,r,a,o);Dq(s+1,e,n,i,r,a,o)}function Nq(t,e,n){var i=e[0]?e[0].length:0;var r=t[Math.floor(i/2)];var a=[];var o=[];for(var s=0,u=void 0;s<i;++s){u=t[s]-r;if(s===0){a.push(u);o.push(u*u)}else{a.push(a[s-1]+u);o.push(o[s-1]+u*u)}e[0][s]=Bq(0,s,a,o);n[0][s]=0}for(var l=1;l<e.length;++l){var c=i-1;if(l<e.length-1)c=l;Dq(c,i-1,l,e,n,a,o)}}function zq(t,e){if(e>t.length){throw new Error("Cannot generate more classes than there are data values")}var n=Tq(t);var i=Pq(n);if(i===1){return[n]}var r=Oq(e,n.length),a=Oq(e,n.length);Nq(n,a,r);var o=r[0]?r[0].length-1:0;var s=[];for(var u=r.length-1;u>=0;u--){var l=r[u][o];s[u]=n.slice(l,o+1);if(u>0)o=l-1}return s}function jq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){jq=function t(e){return typeof e}}else{jq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return jq(t)}function Lq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Fq(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function Iq(t,e,n){if(e)Fq(t.prototype,e);if(n)Fq(t,n);return t}function Hq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Gq(t,e)}function Gq(t,e){Gq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Gq(t,e)}function Vq(r){var a=qq();return function t(){var e=Kq(r),n;if(a){var i=Kq(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return Uq(this,n)}}function Uq(t,e){if(e&&(jq(e)==="object"||typeof e==="function")){return e}return Wq(t)}function Wq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function qq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Kq(t){Kq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Kq(t)}var Yq=function(t){Hq(n,t);var e=Vq(n);function n(){var s;Lq(this,n);s=e.call(this);s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=$u("id");s._label=$u("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=cw("Rect");s._shapes=[];s._shapeConfig={fill:$u("color"),height:cw(10),hitArea:function t(e,n){var i=s._lineData[n],r=ce([i.height,i.shapeHeight]);return{width:i.width+i.shapeWidth,height:r,x:-i.shapeWidth/2,y:-r/2}},labelBounds:function t(e,n){var i=s._lineData[n];var r=i.shapeWidth;if(i.shape==="Circle")r-=i.shapeR;var a=ce([i.shapeHeight,i.height]);return{width:i.width,height:a,x:r,y:-a/2}},labelConfig:{fontColor:cw("#444"),fontFamily:(new ZS).fontFamily(),fontResize:false,fontSize:cw(10),verticalAlign:"middle"},opacity:1,r:cw(5),width:cw(10),x:function t(e,n){var i=s._lineData[n];var r=i.y;var a=s._align==="left"||s._align==="right"&&s._direction==="column"?0:s._align==="center"?(s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return r===t.y})))/2:s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return r===t.y}));var o=s._lineData.slice(0,n).filter(function(t){return r===t.y});return s._rowWidth(o)+s._padding*(o.length?i.sentence?2:1:0)+s._outerBounds.x+i.shapeWidth/2+a},y:function t(e,n){var i=s._lineData[n];return i.y+s._titleHeight+s._outerBounds.y+ce(s._lineData.filter(function(t){return i.y===t.y}).map(function(t){return t.height}).concat(s._data.map(function(t,e){return s._fetchConfig("height",t,e)})))/2}};s._titleClass=new ZS;s._titleConfig={};s._verticalAlign="middle";s._width=400;return s}Iq(n,[{key:"_fetchConfig",value:function t(e,n,i){var r=this._shapeConfig[e]!==undefined?this._shapeConfig[e]:this._shapeConfig.labelConfig[e];if(!r&&e==="lineHeight")return this._fetchConfig("fontSize",n,i)*1.4;return typeof r==="function"?r(n,i):r}},{key:"_rowHeight",value:function t(e){return ce(e.map(function(t){return t.height}).concat(e.map(function(t){return t.shapeHeight})))+this._padding}},{key:"_rowWidth",value:function t(i){var r=this;return ge(i.map(function(t,e){var n=r._padding*(e===i.length-1?0:t.width?2:1);return t.shapeWidth+t.width+n}))}},{key:"render",value:function t(e){var f=this;if(this._select===void 0)this.select(Yo("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=fw("g.d3plus-Legend",{parent:this._select});this._titleGroup=fw("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=fw("g.d3plus-Legend-shape",{parent:this._group});var h=this._height;this._titleHeight=0;this._titleWidth=0;if(this._title){var n=this._titleConfig.fontFamily||this._titleClass.fontFamily()(),i=this._titleConfig.fontSize||this._titleClass.fontSize()();var r=r=this._titleConfig.lineHeight||this._titleClass.lineHeight();r=r?r():i*1.4;var a=jS().fontFamily(n).fontSize(i).lineHeight(r).width(this._width).height(this._height)(this._title);this._titleHeight=r+a.lines.length+this._padding;this._titleWidth=ce(a.widths);h-=this._titleHeight}this._lineData=this._data.map(function(t,e){var n=f._label(t,e);var i=f._shape(t,e);var r=f._fetchConfig("r",t,e);var a={data:t,i:e,id:f._id(t,e),shape:i,shapeR:r,shapeWidth:i==="Circle"?r*2:f._fetchConfig("width",t,e),shapeHeight:i==="Circle"?r*2:f._fetchConfig("height",t,e),y:0};if(!n){a.sentence=false;a.words=[];a.height=0;a.width=0;return a}var o=f._fetchConfig("fontFamily",t,e),s=f._fetchConfig("lineHeight",t,e),u=f._fetchConfig("fontSize",t,e);var l=h-(f._data.length+1)*f._padding,c=f._width;a=Object.assign(a,jS().fontFamily(o).fontSize(u).lineHeight(s).width(c).height(l)(n));a.width=Math.ceil(ce(a.lines.map(function(t){return oS(t,{"font-family":o,"font-size":u})})))+u*.75;a.height=Math.ceil(a.lines.length*(s+1));a.og={height:a.height,width:a.width};a.f=o;a.s=u;a.lh=s;return a});var o;var u=this._width-this._padding*2;o=this._rowWidth(this._lineData);if(this._direction==="column"||o>u){var l=1,c=[];var d=ce(this._lineData.map(function(t){return t.words.length}));this._wrapLines=function(){var e=this;l++;if(l>d)return;var o=l===1?this._lineData.slice():this._lineData.filter(function(t){return t.width+t.shapeWidth+e._padding*(t.width?2:1)>u&&t.words.length>=l}).sort(function(t,e){return e.sentence.length-t.sentence.length});if(o.length&&h>o[0].height*l){var s=false;var t=function t(e){var n=o[e];var i=n.og.height*l,r=n.og.width*(1.5*(1/l));var a=jS().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(r).height(i)(n.sentence);if(!a.truncated){n.width=Math.ceil(ce(a.lines.map(function(t){return oS(t,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=a.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;n<o.length;n++){var i=t(n);if(i==="break")break}if(!s)this._wrapRows()}else{c=[];return}};this._wrapRows=function(){c=[];var t=1,e=0;for(var n=0;n<this._lineData.length;n++){var i=this._lineData[n],r=i.width+this._padding*(i.width?2:1)+i.shapeWidth;if(ge(c.map(function(t){return ce(t,function(t){return ce([t.height,t.shapeHeight])})}))>h){c=[];break}if(r>u){c=[];this._wrapLines();break}else if(e+r<u){e+=r}else if(this._direction!=="column"){e=r;t++}if(!c[t-1])c[t-1]=[];c[t-1].push(i);if(this._direction==="column"){e=0;t++}}};this._wrapRows();if(!c.length||ge(c,this._rowHeight.bind(this))+this._padding>h){o=ge(this._lineData.map(function(t){return t.shapeWidth+f._padding}))-this._padding;for(var s=0;s<this._lineData.length;s++){this._lineData[s].width=0;this._lineData[s].height=0}this._wrapRows()}if(c.length&&ge(c,this._rowHeight.bind(this))+this._padding<h){c.forEach(function(t,e){t.forEach(function(t){if(e){t.y=ge(c.slice(0,e),f._rowHeight.bind(f))}})});o=ce(c,this._rowWidth.bind(this))}}var g=ce(this._lineData,function(t,e){return ce([t.height,f._fetchConfig("height",t.data,e)])+t.y})+this._titleHeight,p=ce([o,this._titleWidth]);this._outerBounds.width=p;this._outerBounds.height=g;var v=this._padding,m=this._padding;if(this._align==="center")v=(this._width-p)/2;else if(this._align==="right")v=this._width-this._padding-p;if(this._verticalAlign==="middle")m=(this._height-g)/2;else if(this._verticalAlign==="bottom")m=this._height-this._padding-g;this._outerBounds.x=v;this._outerBounds.y=m;this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).select(this._titleGroup.node()).textAnchor({left:"start",center:"middle",right:"end"}[this._align]).width(this._width-this._padding*2).x(this._padding).y(this._outerBounds.y).config(this._titleConfig).render();this._shapes=[];var y=lw.bind(this)(this._shapeConfig,"legend"),_={id:function t(e){return e.id},label:function t(e){return e.label},lineHeight:function t(e){return e.lH}};var b=this._data.map(function(t,e){var n={__d3plus__:true,data:t,i:e,id:f._id(t,e),label:f._lineData[e].width?f._label(t,e):false,lH:f._fetchConfig("lineHeight",t,e),shape:f._shape(t,e)};return n});this._shapes=[];["Circle","Rect"].forEach(function(e){f._shapes.push((new wR[e]).parent(f).data(b.filter(function(t){return t.shape===e})).duration(f._duration).labelConfig({padding:0}).select(f._shapeGroup.node()).verticalAlign("top").config(el({},y,_)).render())});if(e)setTimeout(e,this._duration+100);return this}},{key:"active",value:function t(e){this._shapes.forEach(function(t){return t.active(e)});return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"direction",value:function t(e){return arguments.length?(this._direction=e,this):this._direction}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hover",value:function t(e){this._shapes.forEach(function(t){return t.hover(e)});return this}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cw(e),this):this._label}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:cw(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=el(this._shapeConfig,e),this):this._shapeConfig}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=el(this._titleConfig,e),this):this._titleConfig}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=e,this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(ow);function Xq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Xq=function t(e){return typeof e}}else{Xq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Xq(t)}function Zq(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function $q(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Jq(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function Qq(t,e,n){if(e)Jq(t.prototype,e);if(n)Jq(t,n);return t}function tK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)eK(t,e)}function eK(t,e){eK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return eK(t,e)}function nK(r){var a=aK();return function t(){var e=oK(r),n;if(a){var i=oK(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return iK(this,n)}}function iK(t,e){if(e&&(Xq(e)==="object"||typeof e==="function")){return e}return rK(t)}function rK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function aK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function oK(t){oK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return oK(t)}var sK=function(t){tK(n,t);var e=nK(n);function n(){var h;$q(this,n);h=e.call(this);h._axisClass=new GR;h._axisConfig={gridSize:0,shapeConfig:{labelConfig:{fontColor:"#222"}},titleConfig:{fontSize:12}};h._axisTest=new GR;h._align="middle";h._buckets=5;h._bucketAxis=false;h._bucketFormat=function(e,t,n,i){var r=h._axisConfig.tickFormat?h._axisConfig.tickFormat:xw;var a=n[t+1];var o=t?n[t-1]:false;var s=t===n.length-1;if(e===a||s){var u=s&&e<ce(i)?"+":"";return"".concat(r(e)).concat(u)}else{var l=a?a/100:e/100;var c=l>=1||l<=-1?Math.round(l).toString().length-1:l.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var f=Math.pow(10,c);return o===e&&t===1?"".concat(r(de([e+f,i.find(function(t){return t>e&&t<a})]))," - ").concat(r(a)):"".concat(r(e)," - ").concat(r(ce([a-f,i.reverse().find(function(t){return t>e&&t<a})])))}};h._centered=true;h._colorMax="#0C8040";h._colorMid="#f7f7f7";h._colorMin="#b22200";h._data=[];h._duration=600;h._height=200;h._labelClass=new ZS;h._legendClass=new Yq;h._legendConfig={shapeConfig:{labelConfig:{fontColor:"#222"},stroke:"#444",strokeWidth:1}};h._midpoint=0;h._orient="bottom";h._outerBounds={width:0,height:0,x:0,y:0};h._padding=5;h._rectClass=(new vA).parent(rK(h));h._rectConfig={stroke:"#444",strokeWidth:1};h._scale="linear";h._size=10;h._value=$u("value");h._width=400;return h}Qq(n,[{key:"render",value:function t(e){var r=this;if(this._select===void 0)this.select(Yo("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var n=["bottom","top"].includes(this._orient);var i=n?"height":"width",a=n?"width":"height",o=n?"x":"y",s=n?"y":"x";this._group=fw("g.d3plus-ColorScale",{parent:this._select});var u=this._data.map(this._value).sort(function(t,e){return t-e});var l=this._domain||ue(u);var c=l[0]<this._midpoint;var f=l[1]>this._midpoint;var h=c&&f;var d=this._buckets instanceof Array?this._buckets.length:this._buckets;var g=this._color,p,v;if(g&&!(g instanceof Array)){g=le(0,d,1).map(function(t){return Bw(g,(t+1)/d)}).reverse()}if(this._scale==="jenks"){var m=this._data.map(this._value).filter(function(t){return t!==null&&typeof t==="number"});var y=de([g?g.length:d,m.length]);var _=[];if(this._buckets instanceof Array){v=this._buckets}else{if(h&&this._centered){var b=Math.floor(y/2);var w=y%2;var x=m.filter(function(t){return t<r._midpoint});var k=se(x);var S=m.concat(this._midpoint).filter(function(t){return t>=r._midpoint});var C=se(S);var E=k>C?1:0;var A=C>k?1:0;var R=zq(x,b+w*E);var M=zq(S,b+w*A);_=R.concat(M)}else{_=zq(m,y)}v=_.map(function(t){return t[0]})}var T=new Set(v);if(v.length!==T.size){p=Array.from(T)}if(!g){if(h){g=[this._colorMin,this._colorMid,this._colorMax];var P=v.slice(0,y).filter(function(t,e){return t<r._midpoint&&v[e+1]<=r._midpoint});var O=v.slice(0,y).filter(function(t,e){return t<=r._midpoint&&v[e+1]>r._midpoint});var B=v.slice(0,y).filter(function(t,e){return t>r._midpoint&&v[e+1]>r._midpoint});var D=P.map(function(t,e){return!e?g[0]:Bw(g[0],e/P.length)});var N=O.map(function(){return g[1]});var z=B.map(function(t,e){return e===B.length-1?g[2]:Bw(g[2],1-(e+1)/B.length)});g=D.concat(N).concat(z)}else{g=le(0,d,1).map(function(t){return Bw(r._colorMax,t/d)}).reverse()}}if(m.length<=y){g=g.slice(y-m.length)}g=[g[0]].concat(g);this._colorScale=Mr().domain(v).range(g)}else{var j=this._buckets instanceof Array?this._buckets:undefined;if(h&&!g){var L=Math.floor(d/2);var F=le(0,L,1).map(function(t){return!t?r._colorMin:Bw(r._colorMin,t/L)});var I=(d%2?[0]:[]).map(function(){return r._colorMid});var H=le(0,L,1).map(function(t){return!t?r._colorMax:Bw(r._colorMax,t/L)}).reverse();g=F.concat(I).concat(H);if(!j){var G=(g.length-1)/2;j=[l[0],this._midpoint,l[1]];j=le(l[0],this._midpoint,-(l[0]-this._midpoint)/G).concat(le(this._midpoint,l[1],(l[1]-this._midpoint)/G)).concat([l[1]])}}else{if(!g){if(this._scale==="buckets"||this._scale==="quantile"){g=le(0,d,1).map(function(t){return Bw(c?r._colorMin:r._colorMax,t/d)});if(f)g=g.reverse()}else{g=c?[this._colorMin,Bw(this._colorMin,.8)]:[Bw(this._colorMax,.8),this._colorMax]}}if(!j){if(this._scale==="quantile"){var V=1/(g.length-1);j=le(0,1+V/2,V).map(function(t){return zt(u,t)})}else if(h&&this._color&&this._centered){var U=(this._midpoint-l[0])/Math.floor(g.length/2);var W=(l[1]-this._midpoint)/Math.floor(g.length/2);var q=le(l[0],this._midpoint,U);var K=le(this._midpoint,l[1]+W/2,W);j=q.concat(K)}else{var Y=(l[1]-l[0])/(g.length-1);j=le(l[0],l[1]+Y/2,Y)}}}if(this._scale==="buckets"||this._scale==="quantile"){v=j;g=[g[0]].concat(g)}else if(this._scale==="log"){var X=j.filter(function(t){return t<0});if(X.length){var Z=X[0];var $=X.map(function(t){return-Math.pow(Math.abs(Z),t/Z)});X.forEach(function(t,e){j[j.indexOf(t)]=$[e]})}var J=j.filter(function(t){return t>0});if(J.length){var Q=J[J.length-1];var tt=J.map(function(t){return Math.pow(Q,t/Q)});J.forEach(function(t,e){j[j.indexOf(t)]=tt[e]})}if(j.includes(0))j[j.indexOf(0)]=1}this._colorScale=(this._scale==="buckets"||this._scale==="quantile"?Mr:rr)().domain(j).range(g)}if(this._colorScale.clamp)this._colorScale.clamp(true);var et=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var nt=Uu().duration(this._duration);var it={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:nt,update:{opacity:1}};var rt=fw("g.d3plus-ColorScale-labels",Object.assign({condition:et},it));var at=fw("g.d3plus-ColorScale-Rect",Object.assign({condition:et},it));var ot=fw("g.d3plus-ColorScale-legend",Object.assign({condition:!et},it));if(et){var st;var ut={x:0,y:0};var lt=l.slice();if(this._bucketAxis){var ct=lt[lt.length-1];var ft=lt[lt.length-2];var ht=ct?ct/10:ft/10;var dt=ht>=1||ht<=-1?Math.round(ht).toString().length-1:ht.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var gt=Math.pow(10,dt);lt[lt.length-1]=ct+gt}var pt=el({domain:lt,duration:this._duration,height:this._height,labels:p||v,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:v,width:this._width},this._axisConfig);var vt=el({height:this["_".concat(i)]/2,width:this["_".concat(a)]/2},this._labelConfig||this._axisConfig.titleConfig);this._labelClass.config(vt);var mt=[];if(n&&this._labelMin){var yt={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(yt["font-family"]instanceof Array)yt["font-family"]=yt["font-family"][0];var _t=oS(this._labelMin,yt);if(_t&&_t<this["_".concat(a)]/2){mt.push(this._labelMin);_t+=this._padding;if(n)ut.x+=_t;pt[a]-=_t}}if(n&&this._labelMax){var bt={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(bt["font-family"]instanceof Array)bt["font-family"]=bt["font-family"][0];var wt=oS(this._labelMax,bt);if(wt&&wt<this["_".concat(a)]/2){mt.push(this._labelMax);wt+=this._padding;if(!n)ut.y+=wt;pt[a]-=wt}}this._axisTest.select(fw("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(pt).duration(0).render();var xt=this._axisTest.outerBounds();this._outerBounds[a]=this["_".concat(a)]-this._padding*2;this._outerBounds[i]=xt[i]+this._size;this._outerBounds[o]=this._padding;this._outerBounds[s]=this._padding;if(this._align==="middle")this._outerBounds[s]=(this["_".concat(i)]-this._outerBounds[i])/2;else if(this._align==="end")this._outerBounds[s]=this["_".concat(i)]-this._padding-this._outerBounds[i];var kt=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(pt.padding||this._axisClass.padding());var St="translate(".concat(ut.x+(n?0:kt),", ").concat(ut.y+(n?kt:0),")");this._axisClass.select(fw("g.d3plus-ColorScale-axis",el(it,{condition:true,enter:{transform:St},update:{transform:St}})).node()).config(pt).align("start").render();var Ct=this._axisTest._getPosition.bind(this._axisTest);var Et=this._axisTest._getRange();var At=this._group.selectAll("defs").data([0]);var Rt=At.enter().append("defs");Rt.append("linearGradient").attr("id","gradient-".concat(this._uuid));At=Rt.merge(At);At.select("linearGradient").attr("".concat(o,"1"),n?"0%":"100%").attr("".concat(o,"2"),n?"100%":"0%").attr("".concat(s,"1"),"0%").attr("".concat(s,"2"),"0%");var Mt=At.select("linearGradient").selectAll("stop").data(g);var Tt=this._colorScale.domain();var Pt=rr().domain(Et).range(n?[0,100]:[100,0]);Mt.enter().append("stop").merge(Mt).attr("offset",function(t,e){return"".concat(e<=Tt.length-1?Pt(Ct(Tt[e])):100,"%")}).attr("stop-color",String);var Ot=function t(e,n){var i=v[n+1]||lt[lt.length-1];return Math.abs(Ct(i)-Ct(e))};var Bt=el((st={duration:this._duration,fill:v?function(t){return r._colorScale(t)}:"url(#gradient-".concat(this._uuid,")")},Zq(st,o,v?function(t,e){return Ct(t)+Ot(t,e)/2-(["left","right"].includes(r._orient)?Ot(t,e):0)}:Et[0]+(Et[1]-Et[0])/2+ut[o]),Zq(st,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?xt[i]:0)+this._size/2+ut[s]),Zq(st,a,v?Ot:Et[1]-Et[0]),Zq(st,i,this._size),st),this._rectConfig);this._rectClass.data(v||[0]).id(function(t,e){return e}).select(at.node()).config(Bt).render();vt.height=this._outerBounds[i];vt.width=this._outerBounds[a];this._labelClass.config(vt).data(mt).select(rt.node()).x(function(t){return t===r._labelMax?Bt.x+Bt.width/2+r._padding:r._outerBounds.x}).y(function(t){return Bt.y-r._labelClass.fontSize()(t)/2}).text(function(t){return t}).rotate(n?0:this._orient==="right"?90:-90).render()}else{fw("g.d3plus-ColorScale-axis",Object.assign({condition:et},it));var Dt=v.reduce(function(t,e,n){var i=r._bucketFormat.bind(r)(e,n,v,u);t.push({color:g[n+1],id:i});return t},[]);var Nt=el({align:n?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:n?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:el({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:n?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Dt).select(ot.node()).config(Nt).render();this._outerBounds=this._legendClass.outerBounds()}if(e)setTimeout(e,this._duration+100);return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=el(this._axisConfig,e),this):this._axisConfig}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"buckets",value:function t(e){return arguments.length?(this._buckets=e,this):this._buckets}},{key:"bucketAxis",value:function t(e){return arguments.length?(this._bucketAxis=e,this):this._bucketAxis}},{key:"bucketFormat",value:function t(e){return arguments.length?(this._bucketFormat=e,this):this._bucketFormat}},{key:"centered",value:function t(e){return arguments.length?(this._centered=e,this):this._centered}},{key:"color",value:function t(e){return arguments.length?(this._color=e,this):this._color}},{key:"colorMax",value:function t(e){return arguments.length?(this._colorMax=e,this):this._colorMax}},{key:"colorMid",value:function t(e){return arguments.length?(this._colorMid=e,this):this._colorMid}},{key:"colorMin",value:function t(e){return arguments.length?(this._colorMin=e,this):this._colorMin}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=e,this):this._labelConfig}},{key:"labelMin",value:function t(e){return arguments.length?(this._labelMin=e,this):this._labelMin}},{key:"labelMax",value:function t(e){return arguments.length?(this._labelMax=e,this):this._labelMax}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=el(this._legendConfig,e),this):this._legendConfig}},{key:"midpoint",value:function t(e){return arguments.length?(this._midpoint=e,this):this._midpoint}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=el(this._rectConfig,e),this):this._rectConfig}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"size",value:function t(e){return arguments.length?(this._size=e,this):this._size}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:cw(e),this):this._value}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(ow);function uK(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){uK=function t(e){return typeof e}}else{uK=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return uK(t)}function lK(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function cK(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function fK(t,e,n){if(e)cK(t.prototype,e);if(n)cK(t,n);return t}function hK(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){hK=Reflect.get}else{hK=function t(e,n,i){var r=dK(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return hK(t,e,n||t)}function dK(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=bK(t);if(t===null)break}return t}function gK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)pK(t,e)}function pK(t,e){pK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return pK(t,e)}function vK(r){var a=_K();return function t(){var e=bK(r),n;if(a){var i=bK(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return mK(this,n)}}function mK(t,e){if(e&&(uK(e)==="object"||typeof e==="function")){return e}return yK(t)}function yK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function _K(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function bK(t){bK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return bK(t)}var wK=function(t){gK(m,t);var e=vK(m);function m(){var n;lK(this,m);n=e.call(this);n._barConfig=Object.assign({},n._barConfig,{"stroke-width":function t(){return n._buttonBehaviorCurrent==="buttons"?0:1}});n._brushing=true;n._brushFilter=function(){return!Oo.button&&Oo.detail<2};n._buttonAlign="middle";n._buttonBehavior="auto";n._buttonPadding=10;n._buttonHeight=30;n._domain=[2001,2010];n._gridSize=0;n._handleConfig={fill:"#444"};n._handleSize=6;n._height=100;n._labelOffset=false;n._on={};n.orient("bottom");n._scale="time";n._selectionConfig={fill:"#777","stroke-width":0};n._shape="Rect";n._shapeConfig=Object.assign({},n._shapeConfig,{labelBounds:function t(e){return n._buttonBehaviorCurrent==="buttons"?{x:e.labelBounds.x,y:-5,width:e.labelBounds.width,height:n._buttonHeight}:e.labelBounds},fill:function t(){return n._buttonBehaviorCurrent==="buttons"?"#EEE":"#444"},height:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._buttonHeight:e.tick?10:0},width:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._ticksWidth/n._availableTicks.length:e.tick?n._domain.map(function(t){return xR(t).getTime()}).includes(e.id)?2:1:0},y:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._align==="middle"?n._height/2:n._align==="start"?n._margin.top+n._buttonHeight/2:n._height-n._buttonHeight/2-n._margin.bottom:e.y}});n._snapping=true;return n}fK(m,[{key:"_brushBrush",value:function t(){if(Oo.sourceEvent&&Oo.sourceEvent.offsetX&&Oo.selection!==null&&(!this._brushing||this._snapping)){var e=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(e))}this._brushStyle();if(this._on.brush)this._on.brush(this._selection)}},{key:"_brushEnd",value:function t(){if(!Oo.sourceEvent)return;var e=this._updateDomain();this._brushStyle();if(this._brushing||!this._snapping)this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(e));if(this._on.end)this._on.end(this._selection)}},{key:"_brushStart",value:function t(){if(Oo.sourceEvent!==null&&(!this._brushing||this._snapping)){var e=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(e))}this._brushStyle();if(this._on.start)this._on.start()}},{key:"_brushStyle",value:function t(){var e=this._position.height;var n=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true})*2:this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[e]==="function"?this._shapeConfig[e]({tick:true}):this._shapeConfig[e]:this._tickSize;var i=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer");var r=this._brushGroup.selectAll(".selection").call(nl,this._selectionConfig).attr("height",n);var a=this._brushGroup.selectAll(".handle").call(nl,this._handleConfig).attr("height",this._buttonBehaviorCurrent==="buttons"?this._buttonHeight:n+this._handleSize);if(this._buttonBehaviorCurrent==="buttons"){var o=this._align==="middle"?this._height/2-this._buttonHeight/2:this._align==="start"?this._margin.top:this._height-this._buttonHeight-this._margin.bottom;a.attr("y",o);i.attr("x",this._marginLeft).attr("width",this._ticksWidth);r.attr("y",o)}}},{key:"_updateDomain",value:function t(){var e=$o(this._select.node())[0];var n=Oo.selection&&this._brushing?Oo.selection:[e,e];if(this._buttonBehaviorCurrent==="ticks")n=n.map(this._d3Scale.invert);n=n.map(Number);if(Oo.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=Oo.selection.map(function(t){return Math.abs(t-Oo.sourceEvent.offsetX)});n=i[1]<=i[0]?[Oo.selection[0],Oo.sourceEvent.offsetX].sort(function(t,e){return t-e}):[Oo.sourceEvent.offsetX,Oo.selection[1]].sort(function(t,e){return t-e})}var r=this._buttonBehaviorCurrent==="ticks"?this._availableTicks.map(Number):this._d3Scale.range();if(this._buttonBehaviorCurrent==="ticks"){n[0]=xR(sw(n[0],r));n[1]=xR(sw(n[1],r))}else{n[0]=sw(n[0],r);n[1]=sw(n[1],r)}var a=+n[0]===+n[1];if(Oo.type==="brush"||Oo.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?a?n[0]:n:a?xR(this._availableTicks[r.indexOf(n[0])]):[xR(this._availableTicks[r.indexOf(n[0])]),xR(this._availableTicks[r.indexOf(n[1])])]}return n}},{key:"_updateBrushLimit",value:function t(e){var n=this._buttonBehaviorCurrent==="ticks"?e.map(xR).map(this._d3Scale):e;if(n[0]===n[1]){n[0]-=.1;n[1]+=.1}if(this._buttonBehaviorCurrent==="buttons"){var i=.5*(this._ticksWidth/this._availableTicks.length-this._handleSize);n[0]-=i;n[1]+=i}return n}},{key:"render",value:function t(e){var s=this;var n=this._position,i=n.height,r=n.y;if(this._buttonBehavior!=="ticks"){var u=this._ticks?this._ticks.map(xR):this._domain.map(xR);var l=Ir().domain(u).range([0,this._width]);u=this._ticks?u:l.ticks();if(!this._tickFormat)this._tickFormat=l.tickFormat(u.length-1,this._tickSpecifier);var c=0;u.forEach(function(t,e){var n=s._shapeConfig.labelConfig.fontFamily(t,e),i=s._shapeConfig.labelConfig.fontSize(t,e);var r=jS().fontFamily(n).fontSize(i).lineHeight(s._shapeConfig.lineHeight?s._shapeConfig.lineHeight(t,e):undefined);var a=r(l.tickFormat(u.length-1,s._tickSpecifier)(t));var o=a.lines.length?Math.ceil(ce(a.lines.map(function(t){return oS(t,{"font-family":n,"font-size":i})})))+i/4:0;if(o%2)o++;if(c<o)c=o+2*s._buttonPadding});this._ticksWidth=c*u.length}this._buttonBehaviorCurrent=this._buttonBehavior==="auto"?this._ticksWidth<this._width?"buttons":"ticks":this._buttonBehavior;if(this._buttonBehaviorCurrent==="buttons"){this._scale="ordinal";this._labelRotation=0;if(!this._brushing)this._handleSize=0;var a=Ir().domain(this._domain.map(xR)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(xR):Array.from(Array(a[a.length-1]-a[0]+1),function(t,e){return a[0]+e}).map(xR);this._ticks=this._domain;var o=.5*this._ticksWidth/this._ticks.length;this._marginLeft=this._buttonAlign==="middle"?(this._width-this._ticksWidth)/2:this._buttonAlign==="end"?this._width-this._ticksWidth:0;var f=this._buttonAlign==="middle"?(this._width+this._ticksWidth)/2:this._buttonAlign==="start"?this._ticksWidth:undefined;this._range=[this._buttonAlign==="start"?undefined:this._marginLeft+o,this._buttonAlign==="end"?undefined:f-o]}if(this._ticks)this._domain=this._buttonBehaviorCurrent==="ticks"?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(xR);this._labels=this._ticks;hK(bK(m.prototype),"render",this).call(this,e);var h=this._outerBounds[r],d=this._d3Scale.range();var g=this._brush=NW().extent([[d[0],h],[d[d.length-1],h+this._outerBounds[i]]]).filter(this._brushFilter).handleSize(this._handleSize).on("start",this._brushStart.bind(this)).on("brush",this._brushBrush.bind(this)).on("end",this._brushEnd.bind(this));var p=this._buttonBehaviorCurrent==="ticks"?this._availableTicks[this._availableTicks.length-1]:d[d.length-1];var v=this._selection===void 0?[p,p]:this._selection instanceof Array?this._buttonBehaviorCurrent==="buttons"?this._selection.map(function(t){return d[s._ticks.map(Number).indexOf(+t)]}).slice():this._selection.slice():this._buttonBehaviorCurrent==="buttons"?[d[this._ticks.map(Number).indexOf(+this._selection)],d[this._ticks.map(Number).indexOf(+this._selection)]]:[this._selection,this._selection];this._updateBrushLimit(v);this._brushGroup=fw("g.brushGroup",{parent:this._group});this._brushGroup.call(g).transition(this._transition).call(g.move,this._buttonBehaviorCurrent==="ticks"?this._updateBrushLimit(v):v);this._outerBounds.y-=this._handleSize/2;this._outerBounds.height+=this._handleSize/2;return this}},{key:"buttonPadding",value:function t(e){return arguments.length?(this._buttonPadding=e,this):this._buttonPadding}},{key:"brushing",value:function t(e){return arguments.length?(this._brushing=e,this):this._brushing}},{key:"brushFilter",value:function t(e){return arguments.length?(this._brushFilter=e,this):this._brushFilter}},{key:"buttonAlign",value:function t(e){return arguments.length?(this._buttonAlign=e,this):this._buttonAlign}},{key:"buttonBehavior",value:function t(e){return arguments.length?(this._buttonBehavior=e,this):this._buttonBehavior}},{key:"buttonHeight",value:function t(e){return arguments.length?(this._buttonHeight=e,this):this._buttonHeight}},{key:"handleConfig",value:function t(e){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,e),this):this._handleConfig}},{key:"handleSize",value:function t(e){return arguments.length?(this._handleSize=e,this):this._handleSize}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"selectionConfig",value:function t(e){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,e),this):this._selectionConfig}},{key:"selection",value:function t(e){return arguments.length?(this._selection=e,this):this._selection}},{key:"snapping",value:function t(e){return arguments.length?(this._snapping=e,this):this._snapping}}]);return m}(GR);
|
||
/**!
|
||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||
* @version 1.16.1
|
||
* @license
|
||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to deal
|
||
* in the Software without restriction, including without limitation the rights
|
||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||
* copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in all
|
||
* copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||
* SOFTWARE.
|
||
*/var xK=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var kK=function(){var t=["Edge","Trident","Firefox"];for(var e=0;e<t.length;e+=1){if(xK&&navigator.userAgent.indexOf(t[e])>=0){return 1}}return 0}();function SK(t){var e=false;return function(){if(e){return}e=true;window.Promise.resolve().then(function(){e=false;t()})}}function CK(t){var e=false;return function(){if(!e){e=true;setTimeout(function(){e=false;t()},kK)}}}var EK=xK&&window.Promise;var AK=EK?SK:CK;function RK(t){var e={};return t&&e.toString.call(t)==="[object Function]"}function MK(t,e){if(t.nodeType!==1){return[]}var n=t.ownerDocument.defaultView;var i=n.getComputedStyle(t,null);return e?i[e]:i}function TK(t){if(t.nodeName==="HTML"){return t}return t.parentNode||t.host}function PK(t){if(!t){return document.body}switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=MK(t),n=e.overflow,i=e.overflowX,r=e.overflowY;if(/(auto|scroll|overlay)/.test(n+r+i)){return t}return PK(TK(t))}function OK(t){return t&&t.referenceNode?t.referenceNode:t}var BK=xK&&!!(window.MSInputMethodContext&&document.documentMode);var DK=xK&&/MSIE 10/.test(navigator.userAgent);function NK(t){if(t===11){return BK}if(t===10){return DK}return BK||DK}function zK(t){if(!t){return document.documentElement}var e=NK(10)?document.body:null;var n=t.offsetParent||null;while(n===e&&t.nextElementSibling){n=(t=t.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return t?t.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&MK(n,"position")==="static"){return zK(n)}return n}function jK(t){var e=t.nodeName;if(e==="BODY"){return false}return e==="HTML"||zK(t.firstElementChild)===t}function LK(t){if(t.parentNode!==null){return LK(t.parentNode)}return t}function FK(t,e){if(!t||!t.nodeType||!e||!e.nodeType){return document.documentElement}var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?t:e;var r=n?e:t;var a=document.createRange();a.setStart(i,0);a.setEnd(r,0);var o=a.commonAncestorContainer;if(t!==o&&e!==o||i.contains(r)){if(jK(o)){return o}return zK(o)}var s=LK(t);if(s.host){return FK(s.host,e)}else{return FK(t,LK(e).host)}}function IK(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=e==="top"?"scrollTop":"scrollLeft";var i=t.nodeName;if(i==="BODY"||i==="HTML"){var r=t.ownerDocument.documentElement;var a=t.ownerDocument.scrollingElement||r;return a[n]}return t[n]}function HK(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=IK(e,"top");var r=IK(e,"left");var a=n?-1:1;t.top+=i*a;t.bottom+=i*a;t.left+=r*a;t.right+=r*a;return t}function GK(t,e){var n=e==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function VK(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],NK(10)?parseInt(n["offset"+t])+parseInt(i["margin"+(t==="Height"?"Top":"Left")])+parseInt(i["margin"+(t==="Height"?"Bottom":"Right")]):0)}function UK(t){var e=t.body;var n=t.documentElement;var i=NK(10)&&getComputedStyle(n);return{height:VK("Height",e,n,i),width:VK("Width",e,n,i)}}var WK=function t(e,n){if(!(e instanceof n)){throw new TypeError("Cannot call a class as a function")}};var qK=function(){function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}return function(t,e,n){if(e)i(t.prototype,e);if(n)i(t,n);return t}}();var KK=function t(e,n,i){if(n in e){Object.defineProperty(e,n,{value:i,enumerable:true,configurable:true,writable:true})}else{e[n]=i}return e};var YK=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){t[i]=n[i]}}}return t};function XK(t){return YK({},t,{right:t.left+t.width,bottom:t.top+t.height})}function ZK(t){var e={};try{if(NK(10)){e=t.getBoundingClientRect();var n=IK(t,"top");var i=IK(t,"left");e.top+=n;e.left+=i;e.bottom+=n;e.right+=i}else{e=t.getBoundingClientRect()}}catch(t){}var r={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top};var a=t.nodeName==="HTML"?UK(t.ownerDocument):{};var o=a.width||t.clientWidth||r.width;var s=a.height||t.clientHeight||r.height;var u=t.offsetWidth-o;var l=t.offsetHeight-s;if(u||l){var c=MK(t);u-=GK(c,"x");l-=GK(c,"y");r.width-=u;r.height-=l}return XK(r)}function $K(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=NK(10);var r=e.nodeName==="HTML";var a=ZK(t);var o=ZK(e);var s=PK(t);var u=MK(e);var l=parseFloat(u.borderTopWidth);var c=parseFloat(u.borderLeftWidth);if(n&&r){o.top=Math.max(o.top,0);o.left=Math.max(o.left,0)}var f=XK({top:a.top-o.top-l,left:a.left-o.left-c,width:a.width,height:a.height});f.marginTop=0;f.marginLeft=0;if(!i&&r){var h=parseFloat(u.marginTop);var d=parseFloat(u.marginLeft);f.top-=l-h;f.bottom-=l-h;f.left-=c-d;f.right-=c-d;f.marginTop=h;f.marginLeft=d}if(i&&!n?e.contains(s):e===s&&s.nodeName!=="BODY"){f=HK(f,e)}return f}function JK(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=t.ownerDocument.documentElement;var i=$K(t,n);var r=Math.max(n.clientWidth,window.innerWidth||0);var a=Math.max(n.clientHeight,window.innerHeight||0);var o=!e?IK(n):0;var s=!e?IK(n,"left"):0;var u={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:a};return XK(u)}function QK(t){var e=t.nodeName;if(e==="BODY"||e==="HTML"){return false}if(MK(t,"position")==="fixed"){return true}var n=TK(t);if(!n){return false}return QK(n)}function tY(t){if(!t||!t.parentElement||NK()){return document.documentElement}var e=t.parentElement;while(e&&MK(e,"transform")==="none"){e=e.parentElement}return e||document.documentElement}function eY(t,e,n,i){var r=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var a={top:0,left:0};var o=r?tY(t):FK(t,OK(e));if(i==="viewport"){a=JK(o,r)}else{var s=void 0;if(i==="scrollParent"){s=PK(TK(e));if(s.nodeName==="BODY"){s=t.ownerDocument.documentElement}}else if(i==="window"){s=t.ownerDocument.documentElement}else{s=i}var u=$K(s,o,r);if(s.nodeName==="HTML"&&!QK(o)){var l=UK(t.ownerDocument),c=l.height,f=l.width;a.top+=u.top-u.marginTop;a.bottom=c+u.top;a.left+=u.left-u.marginLeft;a.right=f+u.left}else{a=u}}n=n||0;var h=typeof n==="number";a.left+=h?n:n.left||0;a.top+=h?n:n.top||0;a.right-=h?n:n.right||0;a.bottom-=h?n:n.bottom||0;return a}function nY(t){var e=t.width,n=t.height;return e*n}function iY(t,e,i,n,r){var a=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(t.indexOf("auto")===-1){return t}var o=eY(i,n,a,r);var s={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}};var u=Object.keys(s).map(function(t){return YK({key:t},s[t],{area:nY(s[t])})}).sort(function(t,e){return e.area-t.area});var l=u.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight});var c=l.length>0?l[0].key:u[0].key;var f=t.split("-")[1];return c+(f?"-"+f:"")}function rY(t,e,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var r=i?tY(e):FK(e,OK(n));return $K(n,r,i)}function aY(t){var e=t.ownerDocument.defaultView;var n=e.getComputedStyle(t);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var r=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var a={width:t.offsetWidth+r,height:t.offsetHeight+i};return a}function oY(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function sY(t,e,n){n=n.split("-")[0];var i=aY(t);var r={width:i.width,height:i.height};var a=["right","left"].indexOf(n)!==-1;var o=a?"top":"left";var s=a?"left":"top";var u=a?"height":"width";var l=!a?"height":"width";r[o]=e[o]+e[u]/2-i[u]/2;if(n===s){r[s]=e[s]-i[l]}else{r[s]=e[oY(s)]}return r}function uY(t,e){if(Array.prototype.find){return t.find(e)}return t.filter(e)[0]}function lY(t,e,n){if(Array.prototype.findIndex){return t.findIndex(function(t){return t[e]===n})}var i=uY(t,function(t){return t[e]===n});return t.indexOf(i)}function cY(t,n,e){var i=e===undefined?t:t.slice(0,lY(t,"name",e));i.forEach(function(t){if(t["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var e=t["function"]||t.fn;if(t.enabled&&RK(e)){n.offsets.popper=XK(n.offsets.popper);n.offsets.reference=XK(n.offsets.reference);n=e(n,t)}});return n}function fY(){if(this.state.isDestroyed){return}var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};t.offsets.reference=rY(this.state,this.popper,this.reference,this.options.positionFixed);t.placement=iY(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);t.originalPlacement=t.placement;t.positionFixed=this.options.positionFixed;t.offsets.popper=sY(this.popper,t.offsets.reference,t.placement);t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";t=cY(this.modifiers,t);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(t)}else{this.options.onUpdate(t)}}function hY(t,i){return t.some(function(t){var e=t.name,n=t.enabled;return n&&e===i})}function dY(t){var e=[false,"ms","Webkit","Moz","O"];var n=t.charAt(0).toUpperCase()+t.slice(1);for(var i=0;i<e.length;i++){var r=e[i];var a=r?""+r+n:t;if(typeof document.body.style[a]!=="undefined"){return a}}return null}function gY(){this.state.isDestroyed=true;if(hY(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[dY("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function pY(t){var e=t.ownerDocument;return e?e.defaultView:window}function vY(t,e,n,i){var r=t.nodeName==="BODY";var a=r?t.ownerDocument.defaultView:t;a.addEventListener(e,n,{passive:true});if(!r){vY(PK(a.parentNode),e,n,i)}i.push(a)}function mY(t,e,n,i){n.updateBound=i;pY(t).addEventListener("resize",n.updateBound,{passive:true});var r=PK(t);vY(r,"scroll",n.updateBound,n.scrollParents);n.scrollElement=r;n.eventsEnabled=true;return n}function yY(){if(!this.state.eventsEnabled){this.state=mY(this.reference,this.options,this.state,this.scheduleUpdate)}}function _Y(t,e){pY(t).removeEventListener("resize",e.updateBound);e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)});e.updateBound=null;e.scrollParents=[];e.scrollElement=null;e.eventsEnabled=false;return e}function bY(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=_Y(this.reference,this.state)}}function wY(t){return t!==""&&!isNaN(parseFloat(t))&&isFinite(t)}function xY(n,i){Object.keys(i).forEach(function(t){var e="";if(["width","height","top","right","bottom","left"].indexOf(t)!==-1&&wY(i[t])){e="px"}n.style[t]=i[t]+e})}function kY(n,i){Object.keys(i).forEach(function(t){var e=i[t];if(e!==false){n.setAttribute(t,i[t])}else{n.removeAttribute(t)}})}function SY(t){xY(t.instance.popper,t.styles);kY(t.instance.popper,t.attributes);if(t.arrowElement&&Object.keys(t.arrowStyles).length){xY(t.arrowElement,t.arrowStyles)}return t}function CY(t,e,n,i,r){var a=rY(r,e,t,n.positionFixed);var o=iY(n.placement,a,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);e.setAttribute("x-placement",o);xY(e,{position:n.positionFixed?"fixed":"absolute"});return n}function EY(t,e){var n=t.offsets,i=n.popper,r=n.reference;var a=Math.round,o=Math.floor;var s=function t(e){return e};var u=a(r.width);var l=a(i.width);var c=["left","right"].indexOf(t.placement)!==-1;var f=t.placement.indexOf("-")!==-1;var h=u%2===l%2;var d=u%2===1&&l%2===1;var g=!e?s:c||f||h?a:o;var p=!e?s:a;return{left:g(d&&!f&&e?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:g(i.right)}}var AY=xK&&/Firefox/i.test(navigator.userAgent);function RY(t,e){var n=e.x,i=e.y;var r=t.offsets.popper;var a=uY(t.instance.modifiers,function(t){return t.name==="applyStyle"}).gpuAcceleration;if(a!==undefined){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var o=a!==undefined?a:e.gpuAcceleration;var s=zK(t.instance.popper);var u=ZK(s);var l={position:r.position};var c=EY(t,window.devicePixelRatio<2||!AY);var f=n==="bottom"?"top":"bottom";var h=i==="right"?"left":"right";var d=dY("transform");var g=void 0,p=void 0;if(f==="bottom"){if(s.nodeName==="HTML"){p=-s.clientHeight+c.bottom}else{p=-u.height+c.bottom}}else{p=c.top}if(h==="right"){if(s.nodeName==="HTML"){g=-s.clientWidth+c.right}else{g=-u.width+c.right}}else{g=c.left}if(o&&d){l[d]="translate3d("+g+"px, "+p+"px, 0)";l[f]=0;l[h]=0;l.willChange="transform"}else{var v=f==="bottom"?-1:1;var m=h==="right"?-1:1;l[f]=p*v;l[h]=g*m;l.willChange=f+", "+h}var y={"x-placement":t.placement};t.attributes=YK({},y,t.attributes);t.styles=YK({},l,t.styles);t.arrowStyles=YK({},t.offsets.arrow,t.arrowStyles);return t}function MY(t,n,e){var i=uY(t,function(t){var e=t.name;return e===n});var r=!!i&&t.some(function(t){return t.name===e&&t.enabled&&t.order<i.order});if(!r){var a="`"+n+"`";var o="`"+e+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return r}function TY(t,e){var n;if(!MY(t.instance.modifiers,"arrow","keepTogether")){return t}var i=e.element;if(typeof i==="string"){i=t.instance.popper.querySelector(i);if(!i){return t}}else{if(!t.instance.popper.contains(i)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return t}}var r=t.placement.split("-")[0];var a=t.offsets,o=a.popper,s=a.reference;var u=["left","right"].indexOf(r)!==-1;var l=u?"height":"width";var c=u?"Top":"Left";var f=c.toLowerCase();var h=u?"left":"top";var d=u?"bottom":"right";var g=aY(i)[l];if(s[d]-g<o[f]){t.offsets.popper[f]-=o[f]-(s[d]-g)}if(s[f]+g>o[d]){t.offsets.popper[f]+=s[f]+g-o[d]}t.offsets.popper=XK(t.offsets.popper);var p=s[f]+s[l]/2-g/2;var v=MK(t.instance.popper);var m=parseFloat(v["margin"+c]);var y=parseFloat(v["border"+c+"Width"]);var _=p-t.offsets.popper[f]-m-y;_=Math.max(Math.min(o[l]-g,_),0);t.arrowElement=i;t.offsets.arrow=(n={},KK(n,f,Math.round(_)),KK(n,h,""),n);return t}function PY(t){if(t==="end"){return"start"}else if(t==="start"){return"end"}return t}var OY=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var BY=OY.slice(3);function DY(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=BY.indexOf(t);var i=BY.slice(n+1).concat(BY.slice(0,n));return e?i.reverse():i}var NY={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function zY(p,v){if(hY(p.instance.modifiers,"inner")){return p}if(p.flipped&&p.placement===p.originalPlacement){return p}var m=eY(p.instance.popper,p.instance.reference,v.padding,v.boundariesElement,p.positionFixed);var y=p.placement.split("-")[0];var _=oY(y);var b=p.placement.split("-")[1]||"";var w=[];switch(v.behavior){case NY.FLIP:w=[y,_];break;case NY.CLOCKWISE:w=DY(y);break;case NY.COUNTERCLOCKWISE:w=DY(y,true);break;default:w=v.behavior}w.forEach(function(t,e){if(y!==t||w.length===e+1){return p}y=p.placement.split("-")[0];_=oY(y);var n=p.offsets.popper;var i=p.offsets.reference;var r=Math.floor;var a=y==="left"&&r(n.right)>r(i.left)||y==="right"&&r(n.left)<r(i.right)||y==="top"&&r(n.bottom)>r(i.top)||y==="bottom"&&r(n.top)<r(i.bottom);var o=r(n.left)<r(m.left);var s=r(n.right)>r(m.right);var u=r(n.top)<r(m.top);var l=r(n.bottom)>r(m.bottom);var c=y==="left"&&o||y==="right"&&s||y==="top"&&u||y==="bottom"&&l;var f=["top","bottom"].indexOf(y)!==-1;var h=!!v.flipVariations&&(f&&b==="start"&&o||f&&b==="end"&&s||!f&&b==="start"&&u||!f&&b==="end"&&l);var d=!!v.flipVariationsByContent&&(f&&b==="start"&&s||f&&b==="end"&&o||!f&&b==="start"&&l||!f&&b==="end"&&u);var g=h||d;if(a||c||g){p.flipped=true;if(a||c){y=w[e+1]}if(g){b=PY(b)}p.placement=y+(b?"-"+b:"");p.offsets.popper=YK({},p.offsets.popper,sY(p.instance.popper,p.offsets.reference,p.placement));p=cY(p.instance.modifiers,p,"flip")}});return p}function jY(t){var e=t.offsets,n=e.popper,i=e.reference;var r=t.placement.split("-")[0];var a=Math.floor;var o=["top","bottom"].indexOf(r)!==-1;var s=o?"right":"bottom";var u=o?"left":"top";var l=o?"width":"height";if(n[s]<a(i[u])){t.offsets.popper[u]=a(i[u])-n[l]}if(n[u]>a(i[s])){t.offsets.popper[u]=a(i[s])}return t}function LY(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var a=+r[1];var o=r[2];if(!a){return t}if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=i}var u=XK(s);return u[e]/100*a}else if(o==="vh"||o==="vw"){var l=void 0;if(o==="vh"){l=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{l=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return l/100*a}else{return a}}function FY(t,r,a,e){var o=[0,0];var s=["right","left"].indexOf(e)!==-1;var n=t.split(/(\+|\-)/).map(function(t){return t.trim()});var i=n.indexOf(uY(n,function(t){return t.search(/,|\s/)!==-1}));if(n[i]&&n[i].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var u=/\s*,\s*|\s+/;var l=i!==-1?[n.slice(0,i).concat([n[i].split(u)[0]]),[n[i].split(u)[1]].concat(n.slice(i+1))]:[n];l=l.map(function(t,e){var n=(e===1?!s:s)?"height":"width";var i=false;return t.reduce(function(t,e){if(t[t.length-1]===""&&["+","-"].indexOf(e)!==-1){t[t.length-1]=e;i=true;return t}else if(i){t[t.length-1]+=e;i=false;return t}else{return t.concat(e)}},[]).map(function(t){return LY(t,n,r,a)})});l.forEach(function(n,i){n.forEach(function(t,e){if(wY(t)){o[i]+=t*(n[e-1]==="-"?-1:1)}})});return o}function IY(t,e){var n=e.offset;var i=t.placement,r=t.offsets,a=r.popper,o=r.reference;var s=i.split("-")[0];var u=void 0;if(wY(+n)){u=[+n,0]}else{u=FY(n,a,o,s)}if(s==="left"){a.top+=u[0];a.left-=u[1]}else if(s==="right"){a.top+=u[0];a.left+=u[1]}else if(s==="top"){a.left+=u[0];a.top-=u[1]}else if(s==="bottom"){a.left+=u[0];a.top+=u[1]}t.popper=a;return t}function HY(t,r){var e=r.boundariesElement||zK(t.instance.popper);if(t.instance.reference===e){e=zK(e)}var n=dY("transform");var i=t.instance.popper.style;var a=i.top,o=i.left,s=i[n];i.top="";i.left="";i[n]="";var u=eY(t.instance.popper,t.instance.reference,r.padding,e,t.positionFixed);i.top=a;i.left=o;i[n]=s;r.boundaries=u;var l=r.priority;var c=t.offsets.popper;var f={primary:function t(e){var n=c[e];if(c[e]<u[e]&&!r.escapeWithReference){n=Math.max(c[e],u[e])}return KK({},e,n)},secondary:function t(e){var n=e==="right"?"left":"top";var i=c[n];if(c[e]>u[e]&&!r.escapeWithReference){i=Math.min(c[n],u[e]-(e==="right"?c.width:c.height))}return KK({},n,i)}};l.forEach(function(t){var e=["left","top"].indexOf(t)!==-1?"primary":"secondary";c=YK({},c,f[e](t))});t.offsets.popper=c;return t}function GY(t){var e=t.placement;var n=e.split("-")[0];var i=e.split("-")[1];if(i){var r=t.offsets,a=r.reference,o=r.popper;var s=["bottom","top"].indexOf(n)!==-1;var u=s?"left":"top";var l=s?"width":"height";var c={start:KK({},u,a[u]),end:KK({},u,a[u]+a[l]-o[l])};t.offsets.popper=YK({},o,c[i])}return t}function VY(t){if(!MY(t.instance.modifiers,"hide","preventOverflow")){return t}var e=t.offsets.reference;var n=uY(t.instance.modifiers,function(t){return t.name==="preventOverflow"}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(t.hide===true){return t}t.hide=true;t.attributes["x-out-of-boundaries"]=""}else{if(t.hide===false){return t}t.hide=false;t.attributes["x-out-of-boundaries"]=false}return t}function UY(t){var e=t.placement;var n=e.split("-")[0];var i=t.offsets,r=i.popper,a=i.reference;var o=["left","right"].indexOf(n)!==-1;var s=["top","left"].indexOf(n)===-1;r[o?"left":"top"]=a[n]-(s?r[o?"width":"height"]:0);t.placement=oY(e);t.offsets.popper=XK(r);return t}var WY={shift:{order:100,enabled:true,fn:GY},offset:{order:200,enabled:true,fn:IY,offset:0},preventOverflow:{order:300,enabled:true,fn:HY,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:jY},arrow:{order:500,enabled:true,fn:TY,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:zY,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:UY},hide:{order:800,enabled:true,fn:VY},computeStyle:{order:850,enabled:true,fn:RY,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:SY,onLoad:CY,gpuAcceleration:undefined}};var qY={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function t(){},onUpdate:function t(){},modifiers:WY};var KY=function(){function a(t,e){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};WK(this,a);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=AK(this.update.bind(this));this.options=YK({},a.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=t&&t.jquery?t[0]:t;this.popper=e&&e.jquery?e[0]:e;this.options.modifiers={};Object.keys(YK({},a.Defaults.modifiers,i.modifiers)).forEach(function(t){n.options.modifiers[t]=YK({},a.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return YK({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order});this.modifiers.forEach(function(t){if(t.enabled&&RK(t.onLoad)){t.onLoad(n.reference,n.popper,n.options,t,n.state)}});this.update();var r=this.options.eventsEnabled;if(r){this.enableEventListeners()}this.state.eventsEnabled=r}qK(a,[{key:"update",value:function t(){return fY.call(this)}},{key:"destroy",value:function t(){return gY.call(this)}},{key:"enableEventListeners",value:function t(){return yY.call(this)}},{key:"disableEventListeners",value:function t(){return bY.call(this)}}]);return a}();KY.Utils=(typeof window!=="undefined"?window:global).PopperUtils;KY.placements=OY;KY.Defaults=qY;function YY(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){YY=function t(e){return typeof e}}else{YY=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return YY(t)}function XY(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ZY(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function $Y(t,e,n){if(e)ZY(t.prototype,e);if(n)ZY(t,n);return t}function JY(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)QY(t,e)}function QY(t,e){QY=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return QY(t,e)}function tX(r){var a=iX();return function t(){var e=rX(r),n;if(a){var i=rX(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return eX(this,n)}}function eX(t,e){if(e&&(YY(e)==="object"||typeof e==="function")){return e}return nX(t)}function nX(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function iX(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function rX(t){rX=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return rX(t)}var aX=function(t){JY(n,t);var e=tX(n);function n(){var t;XY(this,n);t=e.call(this);t._arrow=$u("arrow","");t._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"};t._background=cw("rgba(255, 255, 255, 1)");t._body=$u("body","");t._bodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};t._border=cw("1px solid rgba(0, 0, 0, 0.1)");t._borderRadius=cw("2px");t._className="d3plus-tooltip";t._data=[];t._footer=$u("footer","");t._footerStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};t._height=cw("auto");t._id=function(t,e){return"".concat(e)};t._offset=cw(5);t._padding=cw("5px");t._pointerEvents=cw("auto");t._popperClasses={};t._position=function(t){return[t.x,t.y]};t._prefix=pw();t._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"};t._tbody=[];t._tbodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"};t._thead=[];t._theadStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"};t._title=$u("title","");t._titleStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","font-weight":"600"};t._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"};t._tdStyle={};t._width=cw("auto");return t}$Y(n,[{key:"render",value:function t(e){var l=this;var c=this;var n=Yo("body").selectAll(".".concat(this._className)).data(this._data,this._id);var i=n.enter().append("div").attr("class",this._className);var a=n.merge(i);function r(r){i.append("div").attr("class","d3plus-tooltip-".concat(r)).attr("id",function(t,e){return"d3plus-tooltip-".concat(r,"-").concat(t?c._id(t,e):"")});var t=a.select(".d3plus-tooltip-".concat(r)).html(function(t,e){return c["_".concat(r)](t,e)}).style("display",function(t,e){var n=c["_".concat(r)](t,e);var i=n!==false&&n!==undefined&&n!==null;return i?"block":"none"});vw(t,c["_".concat(r,"Style")])}function o(t){if(typeof t==="function"){var e=Yo(this.parentNode.parentNode).datum();return t(e,c._data.indexOf(e))}else return t}function s(t){t.style("background",c._background).style("".concat(c._prefix,"border-radius"),c._borderRadius).style("pointer-events",c._pointerEvents).style("padding",c._padding).style("width",c._width).style("height",c._height).style("border",function(t,e){var n=Yo(this).style("border");return n!=="0px none rgb(0, 0, 0)"?n:c._border(t,e)})}r("title");r("body");var u=i.append("table").attr("class","d3plus-tooltip-table");var f=a.select(".d3plus-tooltip-table");vw(f,this._tableStyle);u.append("thead").attr("class","d3plus-tooltip-thead");var h=a.select(".d3plus-tooltip-thead");vw(h,this._theadStyle);var d=h.selectAll("th").data(this._thead);d.enter().append("th").merge(d).html(o);d.exit().remove();u.append("tbody").attr("class","d3plus-tooltip-tbody");var g=a.select(".d3plus-tooltip-tbody");vw(g,this._tbodyStyle);var p=g.selectAll("tr").data(this._tbody);var v=p.enter().append("tr");p.exit().remove();var m=p.merge(v);vw(m,this._trStyle);var y=m.selectAll("td").data(function(t){return t});y.enter().append("td").merge(y).html(o);vw(y,this._tdStyle);r("footer");r("arrow");i.attr("id",function(t,e){return"d3plus-tooltip-".concat(t?l._id(t,e):"")}).call(s).each(function(t,e){var n=c._id(t,e);var i=document.getElementById("d3plus-tooltip-".concat(n));var r=document.getElementById("d3plus-tooltip-arrow-".concat(n));var a=r.offsetHeight;var o=r.getBoundingClientRect().height/2;r.style.bottom="-".concat(a/2,"px");var s=c._position(t,e);var u=Array.isArray(s)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function t(){return{top:s[1],right:s[0],bottom:s[1],left:s[0],width:0,height:0}}}:s;l._popperClasses[n]=new KY(u,i,{placement:"top",placements:["top","bottom","left","right"],modifiers:{arrow:{element:r},offset:{offset:"0,".concat(c._offset(t,e)+o)},preventOverflow:{boundariesElement:"scrollParent"},flip:{behavior:"flip",boundariesElement:"viewport"}},onUpdate:function t(e){var n=e.arrowElement,i=e.flipped;if(i){n.style.transform="rotate(225deg)";n.style.top="-".concat(a/2,"px")}else{n.style.transform="rotate(45deg)";n.style.bottom="-".concat(a/2,"px")}},removeOnDestroy:true})});a.each(function(t,e){var n=c._id(t,e);var i=c._position(t,e);var r=l._popperClasses[n];if(r){var a=Array.isArray(i)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function t(){return{top:i[1],right:i[0],bottom:i[1],left:i[0],width:0,height:0}}}:i;r.reference=a;r.scheduleUpdate()}}).call(s);n.exit().each(function(t,e){var n=c._id(t,e);var i=l._popperClasses[n];if(i){i.destroy();delete l._popperClasses[n]}}).remove();if(e)setTimeout(e,100);return this}},{key:"arrow",value:function t(e){return arguments.length?(this._arrow=typeof e==="function"?e:cw(e),this):this._arrow}},{key:"arrowStyle",value:function t(e){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,e),this):this._arrowStyle}},{key:"background",value:function t(e){return arguments.length?(this._background=typeof e==="function"?e:cw(e),this):this._background}},{key:"body",value:function t(e){return arguments.length?(this._body=typeof e==="function"?e:cw(e),this):this._body}},{key:"bodyStyle",value:function t(e){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,e),this):this._bodyStyle}},{key:"border",value:function t(e){return arguments.length?(this._border=typeof e==="function"?e:cw(e),this):this._border}},{key:"borderRadius",value:function t(e){return arguments.length?(this._borderRadius=typeof e==="function"?e:cw(e),this):this._borderRadius}},{key:"className",value:function t(e){return arguments.length?(this._className=e,this):this._className}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"footer",value:function t(e){return arguments.length?(this._footer=typeof e==="function"?e:cw(e),this):this._footer}},{key:"footerStyle",value:function t(e){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,e),this):this._footerStyle}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cw(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:cw(e),this):this._id}},{key:"offset",value:function t(e){return arguments.length?(this._offset=typeof e==="function"?e:cw(e),this):this._offset}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:cw(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cw(e),this):this._pointerEvents}},{key:"position",value:function t(e){return arguments.length?(this._position=typeof e==="string"?cw(Yo(e).node()||[0,0]):typeof e==="function"?e:cw(e),this):this._position}},{key:"tableStyle",value:function t(e){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,e),this):this._tableStyle}},{key:"tbody",value:function t(e){return arguments.length?(this._tbody=e,this):this._tbody}},{key:"tbodyStyle",value:function t(e){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,e),this):this._tbodyStyle}},{key:"thead",value:function t(e){return arguments.length?(this._thead=e,this):this._thead}},{key:"theadStyle",value:function t(e){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,e),this):this._theadStyle}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:cw(e),this):this._title}},{key:"titleStyle",value:function t(e){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,e),this):this._titleStyle}},{key:"trStyle",value:function t(e){return arguments.length?(this._trStyle=Object.assign(this._trStyle,e),this):this._trStyle}},{key:"tdStyle",value:function t(e){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,e),this):this._tdStyle}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cw(e),this):this._width}}]);return n}(ow);function oX(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function sX(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function uX(t,e,n){if(e)sX(t.prototype,e);if(n)sX(t,n);return t}var lX=function(){function t(){oX(this,t);this._isVisible=false}uX(t,[{key:"exit",value:function t(e,n){e.transition().duration(n).style("opacity",0).transition().remove();this._isVisible=false}},{key:"hide",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.duration,i=n===void 0?600:n,r=e.callback;this.mask.call(this.exit.bind(this),i);this.elem.call(this.exit.bind(this),i);if(r)setTimeout(r,i+100);this._isVisible=false;return this}},{key:"render",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.callback,i=e.container,r=i===void 0?"body":i,a=e.duration,o=a===void 0?600:a,s=e.html,u=s===void 0?"Please Wait":s,l=e.mask,c=l===void 0?"rgba(0, 0, 0, 0.05)":l,f=e.style,h=f===void 0?{}:f;var d=Yo(r);this.mask=d.selectAll("div.d3plus-Mask").data(c?[c]:[]);this.mask=this.mask.enter().append("div").attr("class","d3plus-Mask").style("opacity",1).merge(this.mask);this.mask.exit().call(this.exit.bind(this),o);vw(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([u]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);vw(this.elem,h);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return t}();function cX(){var t=this._history.length;var e=fw("g.d3plus-viz-back",{parent:this._select,transition:this._transition,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(t?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(e).config(this._backConfig).render();this._margin.top+=t?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function fX(){var i=this;var t=this._data;var e=this._colorScalePosition||"bottom";var n=["top","bottom"].includes(e);var r=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a=this._width-(this._margin.left+this._margin.right+r.left+r.right);var o=n?de([this._colorScaleMaxSize,a]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+r.bottom+r.top);var u=!n?de([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var l={opacity:this._colorScalePosition?1:0,transform:"translate(".concat(n?this._margin.left+r.left+(a-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+r.top+(s-u)/2,")")};var c=this._colorScale&&t&&t.length>1;var f=fw("g.d3plus-viz-colorScale",{condition:c&&!this._colorScaleConfig.select,enter:l,parent:this._select,transition:this._transition,update:l}).node();if(c){var h=t.filter(function(t,e){var n=i._colorScale(t,e);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[e]||"bottom").duration(this._duration).data(h).height(u).locale(this._locale).orient(e).select(f).value(this._colorScale).width(o).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();if(this._colorScalePosition&&!this._colorScaleConfig.select&&d.height){if(n)this._margin[e]+=d.height+this._legendClass.padding()*2;else this._margin[e]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}var hX={Button:aq,Radio:mq,Select:Mq};function dX(){var f=this;var h=this;var d=this._controlPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var g=["left","right","top","bottom"];var t=function t(e){var u=g[e];var l=(f._controls||[]).filter(function(t){return!t.position&&u==="bottom"||t.position===u});if(f._downloadButton&&f._downloadPosition===u){l.push({data:[{text:f._translate("Download"),value:1}],label:"downloadButton",on:{click:function t(){var e=f._detectResize;if(e)f.detectResize(false).render();JP(f._select.node(),Object.assign({title:f._title||undefined},f._downloadConfig),{callback:function t(){setTimeout(function(){if(e)f.detectResize(e).render()},5e3)}})}},type:"Button"})}var n=u==="top"||u==="bottom";var i={height:n?f._height-(f._margin.top+f._margin.bottom):f._height-(f._margin.top+f._margin.bottom+d.top+d.bottom),width:n?f._width-(f._margin.left+f._margin.right+d.left+d.right):f._width-(f._margin.left+f._margin.right)};i.x=(n?f._margin.left+d.left:f._margin.left)+(u==="right"?f._width-f._margin.bottom:0);i.y=(n?f._margin.top:f._margin.top+d.top)+(u==="bottom"?f._height-f._margin.bottom:0);var r=fw("foreignObject.d3plus-viz-controls-".concat(u),{condition:l.length,enter:Object.assign({opacity:0},i),exit:Object.assign({opacity:0},i),parent:f._select,transition:f._transition,update:{height:i.height,opacity:1,width:i.width}});var c=r.selectAll("div.d3plus-viz-controls-container").data([null]);c=c.enter().append("xhtml:div").attr("class","d3plus-viz-controls-container").merge(c);if(l.length){var a=function t(e){var n=Object.assign({},l[e]);var i={};if(n.on){var r=function t(e){if({}.hasOwnProperty.call(n.on,e)){i[e]=function(){n.on[e].bind(h)(this.value)}}};for(var a in n.on){r(a)}}var o=n.label||"".concat(u,"-").concat(e);if(!f._controlCache[o]){var s=n.type&&hX[n.type]?n.type:"Select";f._controlCache[o]=(new hX[s]).container(c.node());if(n.checked)f._controlCache[o].checked(n.checked);if(n.selected)f._controlCache[o].selected(n.selected)}delete n.checked;delete n.selected;f._controlCache[o].config(n).config({on:i}).config(f._controlConfig).render()};for(var o=0;o<l.length;o++){a(o)}c.style("display",["top","bottom"].includes(u)?"block":"inline-block").style("text-align",["top","bottom"].includes(u)?"center":u);var s=c.node().getBoundingClientRect();r.transition(f._transition).attr("x",i.x-(u==="right"?s.width:0)).attr("y",i.y-(u==="bottom"?s.height:0)).attr("height",n?s.height:i.height).attr("width",n?i.width:s.width);f._margin[u]+=["top","bottom"].includes(u)?s.height:s.width}};for(var e=0;e<g.length;e++){t(e)}}function gX(t,e){return this._drawLabel(t,e,this._legendDepth)}function pX(){var o=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=this._legendClass.outerBounds();var n=this._legendPosition;var i=["top","bottom"].includes(n);var r=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a={transform:"translate(".concat(i?this._margin.left+r.left:this._margin.left,", ").concat(i?this._margin.top:this._margin.top+r.top,")")};var s=fw("g.d3plus-viz-legend",{condition:this._legend&&!this._legendConfig.select,enter:a,parent:this._select,transition:this._transition,update:a}).node();var u=[];var l=function t(e,n){var i=o._shape(e,n);var r=i==="Line"?"stroke":"fill";var a=o._shapeConfig[i]&&o._shapeConfig[i][r]?o._shapeConfig[i][r]:o._shapeConfig[r];return typeof a==="function"?a.bind(o)(e,n):a};var c=function t(e,n){var i=o._shape(e,n);var r=o._shapeConfig[i]&&o._shapeConfig[i].opacity?o._shapeConfig[i].opacity:o._shapeConfig.opacity;return typeof r==="function"?r.bind(o)(e,n):r};var f=function t(e,n){return"".concat(l(e,n),"_").concat(c(e,n))};if(this._legend){Fe().key(f).rollup(function(t){return u.push(dw(t,o._aggs))}).entries(this._colorScale?t.filter(function(t,e){return o._colorScale(t,e)===undefined}):t)}u.sort(this._legendSort);var h=u.map(function(t,e){return o._ids(t,e).slice(0,o._drawDepth+1)});this._legendDepth=0;var d=function t(e){var n=h.map(function(t){return t[e]});if(!n.some(function(t){return t instanceof Array})&&Array.from(new Set(n)).length===u.length){o._legendDepth=e;return"break"}};for(var g=0;g<=this._drawDepth;g++){var p=d(g);if(p==="break")break}var v=function t(e,n){var i=o._id(e,n);if(i instanceof Array)i=i[0];return o._hidden.includes(i)||o._solo.length&&!o._solo.includes(i)};this._legendClass.id(f).align(i?"center":n).direction(i?"row":"column").duration(this._duration).data(u.length>this._legendCutoff||this._colorScale?u:[]).height(i?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+r.bottom+r.top)).locale(this._locale).parent(this).select(s).verticalAlign(!i?"middle":n).width(i?this._width-(this._margin.left+this._margin.right+r.left+r.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(lw.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function t(e,n){return v(e,n)?o._hiddenColor(e,n):l(e,n)},labelConfig:{fontOpacity:function t(e,n){return v(e,n)?o._hiddenOpacity(e,n):1}},opacity:c}).config(this._legendConfig).render();if(!this._legendConfig.select&&e.height){if(i)this._margin[n]+=e.height+this._legendClass.padding()*2;else this._margin[n]+=e.width+this._legendClass.padding()*2}}function vX(n){var i=this;if(!(n instanceof Array))n=[n,n];if(JSON.stringify(n)!==JSON.stringify(this._timelineSelection)){this._timelineSelection=n;n=n.map(Number);this.timeFilter(function(t){var e=xR(i._time(t)).getTime();return e>=n[0]&&e<=n[1]}).render()}}function mX(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var i=n?hw(this._data.map(this._time)).map(xR):[];n=n&&i.length>1;var r=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a={transform:"translate(".concat(this._margin.left+r.left,", 0)")};var o=fw("g.d3plus-viz-timeline",{condition:n,enter:a,parent:this._select,transition:this._transition,update:a}).node();if(n){var s=this._timelineClass.domain(ue(i)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(i.sort(function(t,e){return+t-+e})).width(this._width-(this._margin.left+this._margin.right+r.left+r.right));if(s.selection()===undefined){this._timelineSelection=ue(t,this._time).map(xR);s.selection(this._timelineSelection)}var u=this._timelineConfig;s.config(u).on("end",function(t){vX.bind(e)(t);if(u.on&&u.on.end)u.on.end(t)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function yX(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=this._title?this._title(t):false;var n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var r=fw("g.d3plus-viz-title",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._titleClass.data(e?[{text:e}]:[]).locale(this._locale).select(r).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=e?r.getBBox().height:0}function _X(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=typeof this._total==="function"?ge(t.map(this._total)):this._total===true&&this._size?ge(t.map(this._size)):false;var n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var r=fw("g.d3plus-viz-total",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._totalClass.data(e?[{text:this._totalFormat(e)}]:[]).locale(this._locale).select(r).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=e?r.getBBox().height+this._totalConfig.padding*2:0}function bX(t,e){if(!t)return undefined;if(t.tagName===undefined||["BODY","HTML"].indexOf(t.tagName)>=0){var n=window["inner".concat(e.charAt(0).toUpperCase()+e.slice(1))];var i=Yo(t);if(e==="width"){n-=parseFloat(i.style("margin-left"),10);n-=parseFloat(i.style("margin-right"),10);n-=parseFloat(i.style("padding-left"),10);n-=parseFloat(i.style("padding-right"),10)}else{n-=parseFloat(i.style("margin-top"),10);n-=parseFloat(i.style("margin-bottom"),10);n-=parseFloat(i.style("padding-top"),10);n-=parseFloat(i.style("padding-bottom"),10)}return n}else{var r=parseFloat(Yo(t).style(e),10);if(typeof r==="number"&&r>0)return r;else return bX(t.parentNode,e)}}function wX(t){return[bX(t,"width"),bX(t,"height")]}function xX(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=window.pageXOffset!==undefined?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft;var i=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var r=t.getBoundingClientRect();var a=r.height,o=r.left+n,s=r.top+i,u=r.width;return i+window.innerHeight>s+e&&i+e<s+a&&n+window.innerWidth>o+e&&n+e<o+u}function kX(t,e){this._select.style("cursor","auto");if(this._drawDepth<this._groupBy.length-1){var i=this._groupBy[this._drawDepth],r=i(t,e);this.hover(false);if(this._tooltip(t,e))this._tooltipClass.data([]).render();var a=this._filter;this._history.push({depth:this._depth,filter:a});this.config({depth:this._drawDepth+1,filter:function t(e,n){return(!a||a(e,n))&&i(e,n)===r}}).render()}}function SX(t,e){var i=this;this._select.style("cursor","auto");if(this._tooltip(t,e))this._tooltipClass.data([]).render();var n=this._id(t,e);if(!(n instanceof Array))n=[n];var r=this._hidden.indexOf(n[0]);var a=this._solo.indexOf(n[0]);var o=he(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;if(Oo.shiftKey){if(r<0&&!this._solo.length){this._hidden=this._hidden.concat(n);if(this._solo.length===o)this._solo=[];if(this._hidden.length===o)this._hidden=[];this.render()}else if(a>=0){this._solo=[];this._hidden=[];this.render()}}else{if(a<0&&this._hidden.length<o-1){this._solo=n;this._hidden=[]}else{this._solo=[];this._hidden=[]}this.render()}}var CX=function t(e){return e.reduce(function(t,e){if(e instanceof Array){if(t.length){var n=t.slice();t=[];e.forEach(function(e){return t=t.concat(n.map(function(t){return"".concat(t,"_").concat(e)}))})}else{t=e.slice()}}else if(t.length){t=t.map(function(t){return"".concat(t,"_").concat(e)})}else{t.push(e)}return t},[])};function EX(t,e){var i=this;if(this._shapeConfig.hoverOpacity!==1){var r=CX(this._ids(t,e));this.hover(function(t,e){var n=CX(i._ids(t,e));return r.some(function(t){return n.includes(t)})})}}function AX(n,i){var r=this;setTimeout(function(){if(r._shapeConfig.hoverOpacity!==1&&r._hover?r._hover(n,i):true){r.hover(false)}var t=r._tooltipClass.data();if(t.length&&r._tooltip(n,i)){var e=t[0];while(e.__d3plus__&&e.data){e=e.data}if(r._id(e)===r._id(n))r._tooltipClass.data([]).render()}},50);this._select.style("cursor","auto")}function RX(t,e,n){var i=this;var r=Oo.touches?[Oo.touches[0].clientX,Oo.touches[0].clientY]:[Oo.clientX,Oo.clientY];var a=he(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;if(t&&this._tooltip(t,e)){var o=this._id(t,e);if(o instanceof Array)o=o[0];var s=this._translate;this._select.style("cursor","pointer");this._tooltipClass.data([n||t]).footer(this._solo.length&&!this._solo.includes(o)?s("Click to Highlight"):this._solo.length===1&&this._solo.includes(o)||this._hidden.length===a-1?s("Click to Reset"):this._solo.includes(o)?s("Click to Hide"):this._hidden.includes(o)?s("Click to Highlight"):"".concat(s("Click to Highlight"),"<br />").concat(s("Shift+Click to Hide"))).title(this._legendConfig.label?this._legendClass.label():gX.bind(this)).position(r).config(lw.bind(this)(this._tooltipConfig)).config(lw.bind(this)(this._legendTooltip)).render()}}function MX(t,e,n){if(t&&this._tooltip(t,e)){this._select.style("cursor","pointer");var i=Oo.touches?[Oo.touches[0].clientX,Oo.touches[0].clientY]:[Oo.clientX,Oo.clientY];this._tooltipClass.data([n||t]).footer(this._drawDepth<this._groupBy.length-1?this._translate("Click to Expand"):false).title(this._drawLabel).position(i).config(lw.bind(this)(this._tooltipConfig)).render()}}function TX(t){Oo.preventDefault();Oo.stopPropagation();if(!t)this._tooltipClass.data([]).render()}function PX(t,e){return zX(t)||NX(t,e)||BX(t,e)||OX()}function OX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function BX(t,e){if(!t)return;if(typeof t==="string")return DX(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DX(t,e)}function DX(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function NX(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function zX(t){if(Array.isArray(t))return t}var jX=false;function LX(){if(!this._container||!this._zoomGroup)return;var t=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,e=this,n=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[n,t]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[n,t]]).on("zoom",IX.bind(this));this._zoomToBounds=GX.bind(this);var i=Yo(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom?[0]:[]);var r=i.enter().append("div").attr("class","d3plus-zoom-control");i.exit().remove();i=i.merge(r).style("position","absolute").style("top","".concat(this._margin.top,"px")).style("left","".concat(this._margin.left,"px"));r.append("div").attr("class","zoom-control zoom-in");i.select(".zoom-in").on("click",HX.bind(this,this._zoomFactor)).html("+");r.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",HX.bind(this,1/this._zoomFactor)).html("-");r.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",HX.bind(this,0)).html("↺");r.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){Yo(this).classed("active",!jX).call(vw,jX?e._zoomControlStyle||{}:e._zoomControlStyleActive||{});FX.bind(e)(!jX)}).html("¤");i.selectAll(".zoom-control").call(vw,e._zoomControlStyle).on("mouseenter",function(){Yo(this).call(vw,e._zoomControlStyleHover||{})}).on("mouseleave",function(){Yo(this).call(vw,Yo(this).classed("active")?e._zoomControlStyleActive||{}:e._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[n,t]]).filter(function(){return!Oo.button&&Oo.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",WX.bind(this)).on("brush",VX.bind(this)).on("end",UX.bind(this));var a=this._container.selectAll("g.brush").data([0]);this._brushGroup=a.enter().append("g").attr("class","brush").merge(a).call(this._zoomBrush);FX.bind(this)();if(this._renderTiles)this._renderTiles(oO(this._container.node()),0)}function FX(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;jX=t;if(jX)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!jX&&this._zoom){this._container.call(this._zoomBehavior);if(!this._zoomScroll){this._container.on("wheel.zoom",null)}if(!this._zoomPan){this._container.on("mousedown.zoom mousemove.zoom",null).on("touchstart.zoom touchmove.zoom touchend.zoom touchcancel.zoom",null)}}else{this._container.on(".zoom",null)}}function IX(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!e)this._zoomGroup.attr("transform",t||Oo.transform);else this._zoomGroup.transition().duration(e).attr("transform",t||Oo.transform)}if(this._renderTiles)this._renderTiles(oO(this._container.node()),e)}function HX(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var e=this._zoomBehavior.extent().bind(document)()[1].map(function(t){return t/2}),n=this._zoomBehavior.scaleExtent(),i=oO(this._container.node());if(!t){i.k=n[0];i.x=0;i.y=0}else{var r=[(e[0]-i.x)/i.k,(e[1]-i.y)/i.k];i.k=Math.min(n[1],i.k*t);if(i.k<=n[0]){i.k=n[0];i.x=0;i.y=0}else{i.x+=e[0]-(r[0]*i.k+i.x);i.y+=e[1]-(r[1]*i.k+i.y)}}IX.bind(this)(i,this._duration)}function GX(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),i=oO(this._container.node());if(t){var r=PX(this._zoomBehavior.translateExtent()[1],2),a=r[0],o=r[1],s=t[1][0]-t[0][0],u=t[1][1]-t[0][1];var l=Math.min(n[1],1/Math.max(s/a,u/o));var c,f;if(s/u<a/o){l*=(o-this._zoomPadding*2)/o;c=(a-s*l)/2/l;f=this._zoomPadding/l}else{l*=(a-this._zoomPadding*2)/a;f=(o-u*l)/2/l;c=this._zoomPadding/l}i.x=(i.x-t[0][0]+c)*(i.k*l/i.k);i.y=(i.y-t[0][1]+f)*(i.k*l/i.k);i.k*=l;if(i.x>0)i.x=0;else if(i.x<a*-i.k+a)i.x=a*-i.k+a;if(i.y>0)i.y=0;else if(i.y<o*-i.k+o)i.y=o*-i.k+o}else{i.k=n[0];i.x=0;i.y=0}IX.bind(this)(i,e)}function VX(){qX.bind(this)()}function UX(){if(!Oo.selection)return;this._brushGroup.call(this._zoomBrush.move,null);GX.bind(this)(Oo.selection)}function WX(){qX.bind(this)()}function qX(){this._brushGroup.selectAll(".selection").call(nl,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(nl,this._zoomBrushHandleStyle||{})}function KX(){var t=Yo(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]);var e=t.enter().append("div").attr("class","d3plus-attribution");t.exit().remove();t=t.merge(e).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(vw,this._attributionStyle)}function YX(t){return $X(t)||ZX(t)||tZ(t)||XX()}function XX(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ZX(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function $X(t){if(Array.isArray(t))return eZ(t)}function JX(t,e){return iZ(t)||nZ(t,e)||tZ(t,e)||QX()}function QX(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function tZ(t,e){if(!t)return;if(typeof t==="string")return eZ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eZ(t,e)}function eZ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function nZ(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function iZ(t){if(Array.isArray(t))return t}function rZ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){rZ=function t(e){return typeof e}}else{rZ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return rZ(t)}function aZ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function oZ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function sZ(t,e,n){if(e)oZ(t.prototype,e);if(n)oZ(t,n);return t}function uZ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)lZ(t,e)}function lZ(t,e){lZ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lZ(t,e)}function cZ(r){var a=dZ();return function t(){var e=gZ(r),n;if(a){var i=gZ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return fZ(this,n)}}function fZ(t,e){if(e&&(rZ(e)==="object"||typeof e==="function")){return e}return hZ(t)}function hZ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dZ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function gZ(t){gZ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gZ(t)}function pZ(){return typeof window!=="undefined"?window.innerWidth>600:true}function vZ(i){return i.reduce(function(t,e,n){if(!n)t+=e;else if(n===i.length-1&&n===1)t+=" and ".concat(e);else if(n===i.length-1)t+=", and ".concat(e);else t+=", ".concat(e);return t},"")}var mZ=function(t){uZ(n,t);var e=cZ(n);function n(){var s;aZ(this,n);s=e.call(this);s._aggs={};s._ariaHidden=true;s._attribution=false;s._attributionStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.25)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"400 11px/11px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",margin:"5px",opacity:.75,padding:"4px 6px 3px"};s._backClass=(new ZS).on("click",function(){if(s._history.length)s.config(s._history.pop()).render();else s.depth(s._drawDepth-1).filter(false).render()}).on("mousemove",function(){return s._backClass.select().style("cursor","pointer")});s._backConfig={fontSize:10,padding:5,resize:false};s._cache=true;s._color=function(t,e){return s._groupBy[0](t,e)};s._colorScaleClass=new sK;s._colorScaleConfig={};s._colorScalePadding=pZ;s._colorScalePosition="bottom";s._colorScaleMaxSize=600;var t=new Mq;s._controlCache={};s._controlConfig={selectStyle:Object.assign({margin:"5px"},t.selectStyle())};s._controlPadding=pZ;s._data=[];s._dataCutoff=100;s._detectResize=true;s._detectResizeDelay=400;s._detectVisible=true;s._detectVisibleInterval=1e3;s._downloadButton=false;s._downloadConfig={type:"png"};s._downloadPosition="top";s._duration=600;s._hidden=[];s._hiddenColor=cw("#aaa");s._hiddenOpacity=cw(.5);s._history=[];s._groupBy=[$u("id")];s._legend=true;s._legendClass=new Yq;s._legendConfig={label:gX.bind(hZ(s)),shapeConfig:{ariaLabel:gX.bind(hZ(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendCutoff=1;s._legendPadding=pZ;s._legendPosition="bottom";s._legendSort=function(t,e){return s._drawLabel(t).localeCompare(s._drawLabel(e))};s._legendTooltip={};s._loadingHTML=function(){return"\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("Loading Visualization"),'</strong>\n <sub style="bottom: 0; display: block; line-height: 1; margin-top: 5px;"><a href="https://d3plus.org" target="_blank">').concat(s._translate("Powered by D3plus"),"</a></sub>\n </div>")};s._loadingMessage=true;s._lrucache=KW(10);s._messageClass=new lX;s._messageMask="rgba(0, 0, 0, 0.05)";s._messageStyle={bottom:"0",left:"0",position:"absolute",right:"0","text-align":"center",top:"0"};s._noDataHTML=function(){return"\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("No Data Available"),"</strong>\n </div>")};s._noDataMessage=true;s._on={"click.shape":kX.bind(hZ(s)),"click.legend":SX.bind(hZ(s)),mouseenter:EX.bind(hZ(s)),mouseleave:AX.bind(hZ(s)),"mousemove.shape":MX.bind(hZ(s)),"mousemove.legend":RX.bind(hZ(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":rZ(window))===undefined?"":window;s._shape=cw("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function t(e,n){return s._drawLabel(e,n)},fill:function t(e,n){while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(s._colorScale){var i=s._colorScale(e,n);if(i!==undefined&&i!==null){var r=s._colorScaleClass._colorScale;var a=s._colorScaleClass.color();if(!r)return a instanceof Array?a[a.length-1]:a;else if(!r.domain().length)return r.range()[r.range().length-1];return r(i)}}var o=s._color(e,n);if(xn(o))return o;return Tw(o)},labelConfig:{fontColor:function t(e,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return Pw(i)}},opacity:cw(1),stroke:function t(e,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return xn(i).darker()},role:"presentation",strokeWidth:cw(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new wK).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=pZ;s._threshold=cw(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new ZS;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=pZ;s._tooltip=cw(true);s._tooltipClass=new aX;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new ZS;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(t){return"".concat(s._translate("Total"),": ").concat(xw(t,s._locale))};s._totalPadding=pZ;s._zoom=false;s._zoomBehavior=pO();s._zoomBrush=zW();s._zoomBrushHandleSize=1;s._zoomBrushHandleStyle={fill:"#444"};s._zoomBrushSelectionStyle={fill:"#777","stroke-width":0};s._zoomControlStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.75)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"900 15px/21px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",height:"20px",margin:"5px",opacity:.75,padding:0,"text-align":"center",width:"20px"};s._zoomControlStyleActive={background:"rgba(0, 0, 0, 0.75)",color:"rgba(255, 255, 255, 0.75)",opacity:1};s._zoomControlStyleHover={cursor:"pointer",opacity:1};s._zoomFactor=2;s._zoomMax=16;s._zoomPadding=20;s._zoomPan=true;s._zoomScroll=true;return s}sZ(n,[{key:"_preDraw",value:function t(){var a=this;var o=this;this._drawDepth=this._depth!==void 0?this._depth:this._groupBy.length-1;this._id=this._groupBy[this._drawDepth];this._ids=function(e,n){return a._groupBy.map(function(t){return!e||e.__d3plus__&&!e.data?undefined:t(e.__d3plus__?e.data:e,e.__d3plus__?e.i:n)}).filter(function(t){return t!==undefined&&t!==null})};this._drawLabel=function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a._drawDepth;if(!t)return"";while(t.__d3plus__&&t.data){t=t.data;e=t.i}if(t._isAggregation){return"".concat(a._thresholdName(t,e)," < ").concat(xw(t._threshold*100,a._locale),"%")}if(a._label)return"".concat(a._label(t,e));var i=o._ids(t,e).slice(0,n+1);var r=i.reverse().find(function(t){return!(t instanceof Array)})||i[i.length-1];return r instanceof Array?vZ(r):"".concat(r)};if(this._time&&!this._timeFilter&&this._data.length){var e=this._data.map(this._time).map(xR);var n=this._data[0],i=0;if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](n,i)===this._time(n,i)){this._timeFilter=function(){return true}}else{var r=+ce(e);this._timeFilter=function(t,e){return+xR(a._time(t,e))===r}}}this._filteredData=[];this._legendData=[];var s=[];if(this._data.length){s=this._timeFilter?this._data.filter(this._timeFilter):this._data;if(this._filter)s=s.filter(this._filter);var u=Fe();for(var l=0;l<=this._drawDepth;l++){u.key(this._groupBy[l])}if(this._discrete&&"_".concat(this._discrete)in this)u.key(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)u.key(this["_".concat(this._discrete,"2")]);var c=u.rollup(function(t){var e=a._data.indexOf(t[0]);var n=a._shape(t[0],e);var i=a._id(t[0],e);var r=dw(t,a._aggs);if(!a._hidden.includes(i)&&(!a._solo.length||a._solo.includes(i))){if(!a._discrete&&n==="Line")a._filteredData=a._filteredData.concat(t);else a._filteredData.push(r)}a._legendData.push(r)}).entries(s);this._filteredData=this._thresholdFunction(this._filteredData,c)}var f=Fe().key(this._id).entries(this._filteredData).length;if(f>this._dataCutoff){if(this._userHover===undefined)this._userHover=this._shapeConfig.hoverOpacity||.5;if(this._userDuration===undefined)this._userDuration=this._shapeConfig.duration||600;this._shapeConfig.hoverOpacity=1;this._shapeConfig.duration=0}else if(this._userHover!==undefined){this._shapeConfig.hoverOpacity=this._userHover;this._shapeConfig.duration=this._userDuration}if(this._noDataMessage&&!this._filteredData.length){this._messageClass.render({container:this._select.node().parentNode,html:this._noDataHTML(this),mask:false,style:this._messageStyle})}}},{key:"_draw",value:function t(){if(this._legendPosition==="left"||this._legendPosition==="right")pX.bind(this)(this._filteredData);if(this._colorScalePosition==="left"||this._colorScalePosition==="right"||this._colorScalePosition===false)fX.bind(this)(this._filteredData);cX.bind(this)();yX.bind(this)(this._filteredData);_X.bind(this)(this._filteredData);mX.bind(this)(this._filteredData);dX.bind(this)(this._filteredData);if(this._legendPosition==="top"||this._legendPosition==="bottom")pX.bind(this)(this._legendData);if(this._colorScalePosition==="top"||this._colorScalePosition==="bottom")fX.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function t(e){return e}},{key:"render",value:function t(a){var o=this;this._margin={bottom:0,left:0,right:0,top:0};this._padding={bottom:0,left:0,right:0,top:0};this._transition=Uu().duration(this._duration);if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var e=this._select===void 0?Yo("body").append("div"):this._select;var n=e.append("svg");this.select(n.node())}function s(){var t=this._select.style("display");this._select.style("display","none");var e=wX(this._select.node().parentNode),n=JX(e,2),i=n[0],r=n[1];i-=parseFloat(this._select.style("border-left-width"),10);i-=parseFloat(this._select.style("border-right-width"),10);r-=parseFloat(this._select.style("border-top-width"),10);r-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",t);if(this._autoWidth){this.width(i);this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))}if(this._autoHeight){this.height(r);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||xX(this._select.node()))){this._autoWidth=this._width===undefined;this._autoHeight=this._height===undefined;s.bind(this)()}this._select.attr("class","d3plus-viz").attr("aria-hidden",this._ariaHidden).attr("aria-labelledby","".concat(this._uuid,"-title ").concat(this._uuid,"-desc")).attr("role","img").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").transition(Uu).style("width",this._width!==undefined?"".concat(this._width,"px"):undefined).style("height",this._height!==undefined?"".concat(this._height,"px"):undefined).attr("width",this._width!==undefined?"".concat(this._width,"px"):undefined).attr("height",this._height!==undefined?"".concat(this._height,"px"):undefined);var i=Yo(this._select.node().parentNode);var r=i.style("position");if(r==="static")i.style("position","relative");var u=this._select.selectAll("title").data([0]);var l=u.enter().append("title").attr("id","".concat(this._uuid,"-title"));u.merge(l).text(this._svgTitle);var c=this._select.selectAll("desc").data([0]);var f=c.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));c.merge(f).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);Yo(this._scrollContainer).on("scroll.".concat(this._uuid),null);Yo(this._scrollContainer).on("resize.".concat(this._uuid),null);if(this._detectVisible&&this._select.style("visibility")==="hidden"){this._visiblePoll=setInterval(function(){if(o._select.style("visibility")!=="hidden"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(a)}},this._detectVisibleInterval)}else if(this._detectVisible&&this._select.style("display")==="none"){this._visiblePoll=setInterval(function(){if(o._select.style("display")!=="none"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(a)}},this._detectVisibleInterval)}else if(this._detectVisible&&!xX(this._select.node())){Yo(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(xX(o._select.node())){Yo(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(a)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var h=qW();this._queue.forEach(function(t){var e=o._cache?o._lrucache.get("".concat(t[3],"_").concat(t[1])):undefined;if(!e)h.defer.apply(h,YX(t));else o["_".concat(t[3])]=t[2]?t[2](e):e});this._queue=[];if(this._loadingMessage&&h._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}h.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var t=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var e=t.enter().append("g").attr("class","data-table").attr("role","table");t.exit().remove();var i=t.merge(e).selectAll("text").data(o._data instanceof Array?le(0,o._data.length+1):[]);i.exit().remove();var r=i.merge(i.enter().append("text").attr("role","row")).selectAll("tspan").data(function(t,e){return n.map(function(t){return{role:e?"cell":"columnheader",text:e?o._data[e-1][t]:t}})});r.exit().remove();r.merge(r.enter().append("tspan")).attr("role",function(t){return t.role}).attr("dy","-1000px").html(function(t){return t.text});o._preDraw();o._draw(a);LX.bind(o)();KX.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length))o._messageClass.hide();if(o._detectResize&&(o._autoWidth||o._autoHeight)){Yo(o._scrollContainer).on("resize.".concat(o._uuid),function(){o._resizePoll=clearTimeout(o._resizePoll);o._resizePoll=setTimeout(function(){o._resizePoll=clearTimeout(o._resizePoll);s.bind(o)();o.render(a)},o._detectResizeDelay)})}if(a)setTimeout(a,o._duration+100)})}Yo("body").on("touchstart.".concat(this._uuid),TX.bind(this));return this}},{key:"active",value:function t(e){this._active=e;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(t){return t.active(e)});if(this._legend)this._legendClass.active(e)}return this}},{key:"aggs",value:function t(e){return arguments.length?(this._aggs=el(this._aggs,e),this):this._aggs}},{key:"ariaHidden",value:function t(e){return arguments.length?(this._ariaHidden=e,this):this._ariaHidden}},{key:"attribution",value:function t(e){return arguments.length?(this._attribution=e,this):this._attribution}},{key:"attributionStyle",value:function t(e){return arguments.length?(this._attributionStyle=el(this._attributionStyle,e),this):this._attributionStyle}},{key:"backConfig",value:function t(e){return arguments.length?(this._backConfig=el(this._backConfig,e),this):this._backConfig}},{key:"cache",value:function t(e){return arguments.length?(this._cache=e,this):this._cache}},{key:"color",value:function t(e){return arguments.length?(this._color=!e||typeof e==="function"?e:$u(e),this):this._color}},{key:"colorScale",value:function t(e){return arguments.length?(this._colorScale=!e||typeof e==="function"?e:$u(e),this):this._colorScale}},{key:"colorScaleConfig",value:function t(e){return arguments.length?(this._colorScaleConfig=el(this._colorScaleConfig,e),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function t(e){return arguments.length?(this._colorScalePadding=typeof e==="function"?e:cw(e),this):this._colorScalePadding}},{key:"colorScalePosition",value:function t(e){return arguments.length?(this._colorScalePosition=e,this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function t(e){return arguments.length?(this._colorScaleMaxSize=e,this):this._colorScaleMaxSize}},{key:"controls",value:function t(e){return arguments.length?(this._controls=e,this):this._controls}},{key:"controlConfig",value:function t(e){return arguments.length?(this._controlConfig=el(this._controlConfig,e),this):this._controlConfig}},{key:"controlPadding",value:function t(e){return arguments.length?(this._controlPadding=typeof e==="function"?e:cw(e),this):this._controlPadding}},{key:"data",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="data"});var r=[lW.bind(this),e,n,"data"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function t(e){return arguments.length?(this._dataCutoff=e,this):this._dataCutoff}},{key:"depth",value:function t(e){return arguments.length?(this._depth=e,this):this._depth}},{key:"detectResize",value:function t(e){return arguments.length?(this._detectResize=e,this):this._detectResize}},{key:"detectResizeDelay",value:function t(e){return arguments.length?(this._detectResizeDelay=e,this):this._detectResizeDelay}},{key:"detectVisible",value:function t(e){return arguments.length?(this._detectVisible=e,this):this._detectVisible}},{key:"detectVisibleInterval",value:function t(e){return arguments.length?(this._detectVisibleInterval=e,this):this._detectVisibleInterval}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"downloadButton",value:function t(e){return arguments.length?(this._downloadButton=e,this):this._downloadButton}},{key:"downloadConfig",value:function t(e){return arguments.length?(this._downloadConfig=el(this._downloadConfig,e),this):this._downloadConfig}},{key:"downloadPosition",value:function t(e){return arguments.length?(this._downloadPosition=e,this):this._downloadPosition}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"filter",value:function t(e){return arguments.length?(this._filter=e,this):this._filter}},{key:"groupBy",value:function t(e){var n=this;if(!arguments.length)return this._groupBy;if(!(e instanceof Array))e=[e];return this._groupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=hw(t.map(e));return n.length===1?n[0]:n}}return $u(t)}}),this}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hiddenColor",value:function t(e){return arguments.length?(this._hiddenColor=typeof e==="function"?e:cw(e),this):this._hiddenColor}},{key:"hiddenOpacity",value:function t(e){return arguments.length?(this._hiddenOpacity=typeof e==="function"?e:cw(e),this):this._hiddenOpacity}},{key:"hover",value:function t(e){var i=this;var n=this._hover=e;if(this._shapeConfig.hoverOpacity!==1){if(typeof e==="function"){var r=he(this._shapes.map(function(t){return t.data()}));r=r.concat(this._legendClass.data());var a=e?r.filter(e):[];var o=[];a.map(this._ids).forEach(function(t){for(var e=1;e<=t.length;e++){o.push(JSON.stringify(t.slice(0,e)))}});o=o.filter(function(t,e){return o.indexOf(t)===e});if(o.length)n=function t(e,n){return o.includes(JSON.stringify(i._ids(e,n)))}}this._shapes.forEach(function(t){return t.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cw(e),this):this._label}},{key:"legend",value:function t(e){return arguments.length?(this._legend=e,this):this._legend}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=el(this._legendConfig,e),this):this._legendConfig}},{key:"legendCutoff",value:function t(e){return arguments.length?(this._legendCutoff=e,this):this._legendCutoff}},{key:"legendTooltip",value:function t(e){return arguments.length?(this._legendTooltip=el(this._legendTooltip,e),this):this._legendTooltip}},{key:"legendPadding",value:function t(e){return arguments.length?(this._legendPadding=typeof e==="function"?e:cw(e),this):this._legendPadding}},{key:"legendPosition",value:function t(e){return arguments.length?(this._legendPosition=e,this):this._legendPosition}},{key:"legendSort",value:function t(e){return arguments.length?(this._legendSort=e,this):this._legendSort}},{key:"loadingHTML",value:function t(e){return arguments.length?(this._loadingHTML=typeof e==="function"?e:cw(e),this):this._loadingHTML}},{key:"loadingMessage",value:function t(e){return arguments.length?(this._loadingMessage=e,this):this._loadingMessage}},{key:"messageMask",value:function t(e){return arguments.length?(this._messageMask=e,this):this._messageMask}},{key:"messageStyle",value:function t(e){return arguments.length?(this._messageStyle=el(this._messageStyle,e),this):this._messageStyle}},{key:"noDataHTML",value:function t(e){return arguments.length?(this._noDataHTML=typeof e==="function"?e:cw(e),this):this._noDataHTML}},{key:"noDataMessage",value:function t(e){return arguments.length?(this._noDataMessage=e,this):this._noDataMessage}},{key:"scrollContainer",value:function t(e){return arguments.length?(this._scrollContainer=e,this):this._scrollContainer}},{key:"select",value:function t(e){return arguments.length?(this._select=Yo(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:cw(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=el(this._shapeConfig,e),this):this._shapeConfig}},{key:"svgDesc",value:function t(e){return arguments.length?(this._svgDesc=e,this):this._svgDesc}},{key:"svgTitle",value:function t(e){return arguments.length?(this._svgTitle=e,this):this._svgTitle}},{key:"threshold",value:function t(e){if(arguments.length){if(typeof e==="function"){this._threshold=e}else if(isFinite(e)&&!isNaN(e)){this._threshold=cw(e*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function t(e){if(arguments.length){if(typeof e==="function"){this._thresholdKey=e}else{this._thresholdKey=$u(e)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function t(e){return arguments.length?(this._thresholdName=typeof e==="function"?e:cw(e),this):this._thresholdName}},{key:"time",value:function t(e){if(arguments.length){if(typeof e==="function"){this._time=e}else{this._time=$u(e);if(!this._aggs[e]){this._aggs[e]=function(t,e){var n=hw(t.map(e));return n.length===1?n[0]:n}}}this._timeFilter=false;return this}else return this._time}},{key:"timeFilter",value:function t(e){return arguments.length?(this._timeFilter=e,this):this._timeFilter}},{key:"timeline",value:function t(e){return arguments.length?(this._timeline=e,this):this._timeline}},{key:"timelineConfig",value:function t(e){return arguments.length?(this._timelineConfig=el(this._timelineConfig,e),this):this._timelineConfig}},{key:"timelinePadding",value:function t(e){return arguments.length?(this._timelinePadding=typeof e==="function"?e:cw(e),this):this._timelinePadding}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:cw(e),this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=el(this._titleConfig,e),this):this._titleConfig}},{key:"titlePadding",value:function t(e){return arguments.length?(this._titlePadding=typeof e==="function"?e:cw(e),this):this._titlePadding}},{key:"tooltip",value:function t(e){return arguments.length?(this._tooltip=typeof e==="function"?e:cw(e),this):this._tooltip}},{key:"tooltipConfig",value:function t(e){return arguments.length?(this._tooltipConfig=el(this._tooltipConfig,e),this):this._tooltipConfig}},{key:"total",value:function t(e){if(arguments.length){if(typeof e==="function")this._total=e;else if(e)this._total=$u(e);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function t(e){return arguments.length?(this._totalConfig=el(this._totalConfig,e),this):this._totalConfig}},{key:"totalFormat",value:function t(e){return arguments.length?(this._totalFormat=e,this):this._totalFormat}},{key:"totalPadding",value:function t(e){return arguments.length?(this._totalPadding=typeof e==="function"?e:cw(e),this):this._totalPadding}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}},{key:"zoom",value:function t(e){return arguments.length?(this._zoom=e,this):this._zoom}},{key:"zoomBrushHandleSize",value:function t(e){return arguments.length?(this._zoomBrushHandleSize=e,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function t(e){return arguments.length?(this._zoomBrushHandleStyle=e,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function t(e){return arguments.length?(this._zoomBrushSelectionStyle=e,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function t(e){return arguments.length?(this._zoomControlStyle=e,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function t(e){return arguments.length?(this._zoomControlStyleActive=e,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function t(e){return arguments.length?(this._zoomControlStyleHover=e,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function t(e){return arguments.length?(this._zoomFactor=e,this):this._zoomFactor}},{key:"zoomMax",value:function t(e){return arguments.length?(this._zoomMax=e,this):this._zoomMax}},{key:"zoomPan",value:function t(e){return arguments.length?(this._zoomPan=e,this):this._zoomPan}},{key:"zoomPadding",value:function t(e){return arguments.length?(this._zoomPadding=e,this):this._zoomPadding}},{key:"zoomScroll",value:function t(e){return arguments.length?(this._zoomScroll=e,this):this._zoomScroll}}]);return n}(ow);var yZ=[{matches:["cartodb","cartocdn"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors, © <a href='https://carto.com/attribution' target='_blank'>CARTO</a>"},{matches:["opentopomap.org"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors"},{matches:["arcgisonline.com"],text:"Powered by <a href='https://developers.arcgis.com/terms/attribution/' target='_blank'>Esri</a>"},{matches:["/watercolor/"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://www.openstreetmap.org/copyright' target='_blank'>ODbL</a>."},{matches:["stamen-tiles","stamen.com"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0' target='_blank'>CC BY SA</a>."}];function _Z(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_Z=function t(e){return typeof e}}else{_Z=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _Z(t)}function bZ(t,e){return CZ(t)||SZ(t,e)||xZ(t,e)||wZ()}function wZ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xZ(t,e){if(!t)return;if(typeof t==="string")return kZ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kZ(t,e)}function kZ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function SZ(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function CZ(t){if(Array.isArray(t))return t}function EZ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function AZ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function RZ(t,e,n){if(e)AZ(t.prototype,e);if(n)AZ(t,n);return t}function MZ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){MZ=Reflect.get}else{MZ=function t(e,n,i){var r=TZ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return MZ(t,e,n||t)}function TZ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=jZ(t);if(t===null)break}return t}function PZ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)OZ(t,e)}function OZ(t,e){OZ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return OZ(t,e)}function BZ(r){var a=zZ();return function t(){var e=jZ(r),n;if(a){var i=jZ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return DZ(this,n)}}function DZ(t,e){if(e&&(_Z(e)==="object"||typeof e==="function")){return e}return NZ(t)}function NZ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function zZ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function jZ(t){jZ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return jZ(t)}var LZ=Object.assign({},Cj,GV,kU);function FZ(e){var t=yZ.find(function(t){return t.matches.some(function(t){return e.includes(t)})});return t?t.text:false}function IZ(t,e){var n=e&&t.objects[e]?e:Object.keys(t.objects)[0];return PU(t,n)}var HZ=function(t){PZ(C,t);var e=BZ(C);function C(){var a;EZ(this,C);a=e.call(this);a._fitObject=false;a._noDataMessage=false;a._ocean="#d4dadc";a._point=$u("point");a._pointSize=cw(1);a._pointSizeMax=10;a._pointSizeMin=5;a._pointSizeScale="linear";a._projection=LZ.geoMercator();a._projectionPadding=gw(20);a._shape=cw("Circle");a._shapeConfig=el(a._shapeConfig,{ariaLabel:function t(e,n){return"".concat(a._drawLabel(e,n),", ").concat(a._pointSize(e,n))},hoverOpacity:1,Path:{ariaLabel:function t(e,n){var i=a._colorScale?", ".concat(a._colorScale(e,n)):"";return"".concat(a._drawLabel(e,n)).concat(i,".")},fill:function t(e,n){if(a._colorScale&&!a._coordData.features.includes(e)){var i=a._colorScale(e);if(i!==undefined&&i!==null){if(a._colorScaleClass._colorScale){return a._colorScaleClass._colorScale(i)}else{var r=a._colorScaleClass.color();if(r instanceof Array)r=r[r.length-1];return r}}}return a._topojsonFill(e,n)},on:{mouseenter:function t(e){return!a._coordData.features.includes(e)?a._on.mouseenter.bind(NZ(a))(e):null},"mousemove.shape":function t(e){return!a._coordData.features.includes(e)?a._on["mousemove.shape"].bind(NZ(a))(e):null},mouseleave:function t(e){return!a._coordData.features.includes(e)?a._on.mouseleave.bind(NZ(a))(e):null}},stroke:function t(e,n){var i=typeof a._shapeConfig.Path.fill==="function"?a._shapeConfig.Path.fill(e,n):a._shapeConfig.Path.fill;return xn(i).darker()},strokeWidth:1}});a._tiles=true;a._tileGen=AU();a.tileUrl("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png");a._topojson=false;a._topojsonFill=cw("#f5f5f3");a._topojsonFilter=function(t){return!["010"].includes(t.id)};a._topojsonId=$u("id");a._zoom=true;a._zoomSet=false;return a}RZ(C,[{key:"_renderTiles",value:function t(){var a=this;var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:oO(this._container.node());var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var r=[];if(this._tiles){r=this._tileGen.extent(this._zoomBehavior.translateExtent()).scale(this._projection.scale()*(2*Math.PI)*i.k).translate(i.apply(this._projection.translate()))();this._tileGroup.transition().duration(e).attr("transform",i)}var n=this._tileGroup.selectAll("image.d3plus-geomap-tile").data(r,function(t){var e=bZ(t,3),n=e[0],i=e[1],r=e[2];return"".concat(n,"-").concat(i,"-").concat(r)});n.exit().transition().duration(e).attr("opacity",0).remove();var o=r.scale/i.k;var s=n.enter().append("image").attr("class","d3plus-geomap-tile");s.attr("opacity",0).transition().duration(e).attr("opacity",1);n.merge(s).attr("width",o).attr("height",o).attr("xlink:href",function(t){var e=bZ(t,3),n=e[0],i=e[1],r=e[2];return a._tileUrl.replace("{s}",["a","b","c"][Math.random()*3|0]).replace("{z}",r).replace("{x}",n).replace("{y}",i)}).attr("x",function(t){var e=bZ(t,1),n=e[0];return n*o+r.translate[0]*o-i.x/i.k}).attr("y",function(t){var e=bZ(t,2),n=e[1];return n*o+r.translate[1]*o-i.y/i.k})}},{key:"_draw",value:function t(e){var i=this;MZ(jZ(C.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,r=this._width-this._margin.left-this._margin.right;this._container=this._select.selectAll("svg.d3plus-geomap").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-geomap").attr("opacity",0).attr("width",r).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color",this._ocean||"transparent").merge(this._container);this._container.transition(this._transition).attr("opacity",1).attr("width",r).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var a=this._container.selectAll("rect.d3plus-geomap-ocean").data([0]);a.enter().append("rect").attr("class","d3plus-geomap-ocean").merge(a).attr("width",r).attr("height",n).attr("fill",this._ocean||"transparent");this._tileGroup=this._container.selectAll("g.d3plus-geomap-tileGroup").data([0]);this._tileGroup=this._tileGroup.enter().append("g").attr("class","d3plus-geomap-tileGroup").merge(this._tileGroup);this._zoomGroup=this._container.selectAll("g.d3plus-geomap-zoomGroup").data([0]);this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-geomap-zoomGroup").merge(this._zoomGroup);var o=this._zoomGroup.selectAll("g.d3plus-geomap-paths").data([0]);o=o.enter().append("g").attr("class","d3plus-geomap-paths").merge(o);var s=this._coordData=this._topojson?IZ(this._topojson,this._topojsonKey):{type:"FeatureCollection",features:[]};if(this._topojsonFilter)s.features=s.features.filter(this._topojsonFilter);var u=this._path=LZ.geoPath().projection(this._projection);var l=this._filteredData.filter(function(t,e){return i._point(t,e)instanceof Array});var c=this._filteredData.filter(function(t,e){return!(i._point(t,e)instanceof Array)}).reduce(function(t,e){t[i._id(e)]=e;return t},{});var f=s.features.reduce(function(t,e){var n=i._topojsonId(e);t.push({__d3plus__:true,data:c[n],feature:e,id:n});return t},[]);var h=na["scale".concat(this._pointSizeScale.charAt(0).toUpperCase()).concat(this._pointSizeScale.slice(1))]().domain(ue(l,function(t,e){return i._pointSize(t,e)})).range([this._pointSizeMin,this._pointSizeMax]);if(!this._zoomSet){var d=this._fitObject?IZ(this._fitObject,this._fitKey):s;this._extentBounds={type:"FeatureCollection",features:this._fitFilter?d.features.filter(this._fitFilter):d.features.slice()};this._extentBounds.features=this._extentBounds.features.reduce(function(t,e){if(e.geometry){var n={type:e.type,id:e.id,geometry:{coordinates:e.geometry.coordinates,type:e.geometry.type}};if(e.geometry.type==="MultiPolygon"&&e.geometry.coordinates.length>1){var i=[],r=[];e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];i.push(u.area(n))});n.geometry.coordinates=[e.geometry.coordinates[i.indexOf(ce(i))]];var a=u.centroid(n);e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];r.push(eC(u.centroid(n),a))});var o=zt(i.reduce(function(t,e,n){if(e)t.push(i[n]/e);return t},[]),.9);n.geometry.coordinates=e.geometry.coordinates.filter(function(t,e){var n=r[e];return n===0||i[e]/n>=o})}t.push(n)}return t},[]);if(!this._extentBounds.features.length&&l.length){var g=[[undefined,undefined],[undefined,undefined]];l.forEach(function(t,e){var n=i._projection(i._point(t,e));if(g[0][0]===void 0||n[0]<g[0][0])g[0][0]=n[0];if(g[1][0]===void 0||n[0]>g[1][0])g[1][0]=n[0];if(g[0][1]===void 0||n[1]<g[0][1])g[0][1]=n[1];if(g[1][1]===void 0||n[1]>g[1][1])g[1][1]=n[1]});this._extentBounds={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPoint",coordinates:g.map(function(t){return i._projection.invert(t)})}}]};var p=ce(l,function(t,e){return h(i._pointSize(t,e))});this._projectionPadding.top+=p;this._projectionPadding.right+=p;this._projectionPadding.bottom+=p;this._projectionPadding.left+=p}this._zoomBehavior.extent([[0,0],[r,n]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[r,n]]);this._zoomSet=true}this._projection=this._projection.fitExtent(this._extentBounds.features.length?[[this._projectionPadding.left,this._projectionPadding.top],[r-this._projectionPadding.right,n-this._projectionPadding.bottom]]:[[0,0],[r,n]],this._extentBounds.features.length?this._extentBounds:{type:"Sphere"});this._shapes.push((new bR).data(f).d(function(t){return u(t.feature)}).select(o.node()).x(0).y(0).config(lw.bind(this)(this._shapeConfig,"shape","Path")).render());var v=this._zoomGroup.selectAll("g.d3plus-geomap-pins").data([0]);v=v.enter().append("g").attr("class","d3plus-geomap-pins").merge(v);var m=(new nA).config(lw.bind(this)(this._shapeConfig,"shape","Circle")).data(l).r(function(t,e){return h(i._pointSize(t,e))}).select(v.node()).sort(function(t,e){return i._pointSize(e)-i._pointSize(t)}).x(function(t,e){return i._projection(i._point(t,e))[0]}).y(function(t,e){return i._projection(i._point(t,e))[1]});var y=Object.keys(this._on);var _=y.filter(function(t){return t.includes(".Circle")}),b=y.filter(function(t){return!t.includes(".")}),w=y.filter(function(t){return t.includes(".shape")});for(var x=0;x<b.length;x++){m.on(b[x],this._on[b[x]])}for(var k=0;k<w.length;k++){m.on(w[k],this._on[w[k]])}for(var S=0;S<_.length;S++){m.on(_[S],this._on[_[S]])}this._shapes.push(m.render());return this}},{key:"fitFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._fitFilter=e,this;if(!(e instanceof Array))e=[e];return this._fitFilter=function(t){return e.includes(t.id)},this}return this._fitFilter}},{key:"fitKey",value:function t(e){if(arguments.length){this._fitKey=e;this._zoomSet=false;return this}return this._fitKey}},{key:"fitObject",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var i=this._queue.find(function(t){return t[3]==="fitObject"});var r=[lW.bind(this),e,n,"fitObject"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r)}else{this._fitObject=e}this._zoomSet=false;return this}return this._fitObject}},{key:"ocean",value:function t(e){return arguments.length?(this._ocean=e,this):this._ocean}},{key:"point",value:function t(e){return arguments.length?(this._point=typeof e==="function"?e:cw(e),this):this._point}},{key:"pointSize",value:function t(e){return arguments.length?(this._pointSize=typeof e==="function"?e:cw(e),this):this._pointSize}},{key:"pointSizeMax",value:function t(e){return arguments.length?(this._pointSizeMax=e,this):this._pointSizeMax}},{key:"pointSizeMin",value:function t(e){return arguments.length?(this._pointSizeMin=e,this):this._pointSizeMin}},{key:"projection",value:function t(e){if(arguments.length&&e!=="geoMercator")this.tiles(false);return arguments.length?(this._projection=typeof e==="string"?LZ[e]?LZ[e]():LZ.geoMercator():e,this):this._projection}},{key:"projectionPadding",value:function t(e){return arguments.length?(this._projectionPadding=gw(e),this):this._projectionPadding}},{key:"projectionRotate",value:function t(e){if(arguments.length){this._projection.rotate(e);this.tiles(false);this._zoomSet=false;return this}else{return this._projectionRotate}}},{key:"tiles",value:function t(e){if(arguments.length){this._tiles=e;var n=FZ(this._tileUrl);if(e&&this._attribution==="")this._attribution=n;else if(!e&&this._attribution===n)this._attribution="";return this}return this._tiles}},{key:"tileUrl",value:function t(e){if(arguments.length){this._tileUrl=e;if(this._tiles)this._attribution=FZ(e);if(this._tileGroup)this._renderTiles.bind(this)();return this}return this._tileUrl}},{key:"topojson",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var i=this._queue.find(function(t){return t[3]==="topojson"});var r=[lW.bind(this),e,n,"topojson"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r)}else{this._topojson=e}this._zoomSet=false;return this}return this._topojson}},{key:"topojsonFill",value:function t(e){return arguments.length?(this._topojsonFill=typeof e==="function"?e:cw(e),this):this._topojsonFill}},{key:"topojsonFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._topojsonFilter=e,this;if(!(e instanceof Array))e=[e];return this._topojsonFilter=function(t){return e.includes(t.id)},this}return this._topojsonFilter}},{key:"topojsonKey",value:function t(e){if(arguments.length){this._topojsonKey=e;this._zoomSet=false;return this}return this._topojsonKey}},{key:"topojsonId",value:function t(e){return arguments.length?(this._topojsonId=typeof e==="function"?e:$u(e),this):this._topojsonId}}]);return C}(mZ);function GZ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){GZ=function t(e){return typeof e}}else{GZ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return GZ(t)}function VZ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function UZ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function WZ(t,e,n){if(e)UZ(t.prototype,e);if(n)UZ(t,n);return t}function qZ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){qZ=Reflect.get}else{qZ=function t(e,n,i){var r=KZ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return qZ(t,e,n||t)}function KZ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=t$(t);if(t===null)break}return t}function YZ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)XZ(t,e)}function XZ(t,e){XZ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return XZ(t,e)}function ZZ(r){var a=QZ();return function t(){var e=t$(r),n;if(a){var i=t$(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return $Z(this,n)}}function $Z(t,e){if(e&&(GZ(e)==="object"||typeof e==="function")){return e}return JZ(t)}function JZ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function QZ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function t$(t){t$=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return t$(t)}var e$=function(t){YZ(l,t);var e=ZZ(l);function l(){var i;VZ(this,l);i=e.call(this);i._shapeConfig=el(i._shapeConfig,{ariaLabel:function t(e,n){return i._pieData?"".concat(++i._pieData[n].index,". ").concat(i._drawLabel(e,n),", ").concat(i._value(e,n),"."):""},Path:{labelConfig:{fontResize:true}}});i._innerRadius=0;i._legendSort=function(t,e){return i._value(e)-i._value(t)};i._padPixel=0;i._pie=mx();i._sort=function(t,e){return i._value(e)-i._value(t)};i._value=$u("value");return i}WZ(l,[{key:"_draw",value:function t(e){var n=this;qZ(t$(l.prototype),"_draw",this).call(this,e);var i=this._height-this._margin.top-this._margin.bottom,r=this._width-this._margin.left-this._margin.right;var a=de([r,i])/2;var o=this._pieData=this._pie.padAngle(this._padAngle||this._padPixel/a).sort(this._sort).value(this._value)(this._filteredData);o.forEach(function(t,e){t.__d3plus__=true;t.i=e});var s=ux().innerRadius(this._innerRadius).outerRadius(a);var u="translate(".concat(r/2+this._margin.left,", ").concat(i/2+this._margin.top,")");this._shapes.push((new bR).data(o).d(s).select(fw("g.d3plus-Pie",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).label(this._drawLabel).config(lw.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=e,this):this._innerRadius}},{key:"padAngle",value:function t(e){return arguments.length?(this._padAngle=e,this):this._padAngle}},{key:"padPixel",value:function t(e){return arguments.length?(this._padPixel=e,this):this._padPixel}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:$u(e),this):this._value}}]);return l}(mZ);function n$(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){n$=function t(e){return typeof e}}else{n$=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return n$(t)}function i$(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function r$(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)a$(t,e)}function a$(t,e){a$=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return a$(t,e)}function o$(r){var a=l$();return function t(){var e=c$(r),n;if(a){var i=c$(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return s$(this,n)}}function s$(t,e){if(e&&(n$(e)==="object"||typeof e==="function")){return e}return u$(t)}function u$(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function l$(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function c$(t){c$=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return c$(t)}var f$=function(t){r$(n,t);var e=o$(n);function n(){var t;i$(this,n);t=e.call(this);t._innerRadius=function(){return de([t._width-t._margin.left-t._margin.right,t._height-t._margin.top-t._margin.bottom])/4};t._padPixel=2;return t}return n}(e$);function h$(t){var e=0,n=t.children,i=n&&n.length;if(!i)e=1;else while(--i>=0){e+=n[i].value}t.value=e}function d$(){return this.eachAfter(h$)}function g$(t){var e=this,n,i=[e],r,a,o;do{n=i.reverse(),i=[];while(e=n.pop()){t(e),r=e.children;if(r)for(a=0,o=r.length;a<o;++a){i.push(r[a])}}}while(i.length);return this}function p$(t){var e=this,n=[e],i,r;while(e=n.pop()){t(e),i=e.children;if(i)for(r=i.length-1;r>=0;--r){n.push(i[r])}}return this}function v$(t){var e=this,n=[e],i=[],r,a,o;while(e=n.pop()){i.push(e),r=e.children;if(r)for(a=0,o=r.length;a<o;++a){n.push(r[a])}}while(e=i.pop()){t(e)}return this}function m$(r){return this.eachAfter(function(t){var e=+r(t.data)||0,n=t.children,i=n&&n.length;while(--i>=0){e+=n[i].value}t.value=e})}function y$(e){return this.eachBefore(function(t){if(t.children){t.children.sort(e)}})}function _$(t){var e=this,n=b$(e,t),i=[e];while(e!==n){e=e.parent;i.push(e)}var r=i.length;while(t!==n){i.splice(r,0,t);t=t.parent}return i}function b$(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop();e=i.pop();while(t===e){r=t;t=n.pop();e=i.pop()}return r}function w$(){var t=this,e=[t];while(t=t.parent){e.push(t)}return e}function x$(){var e=[];this.each(function(t){e.push(t)});return e}function k$(){var e=[];this.eachBefore(function(t){if(!t.children){e.push(t)}});return e}function S$(){var e=this,n=[];e.each(function(t){if(t!==e){n.push({source:t.parent,target:t})}});return n}function C$(t,e){var n=new T$(t),i=+t.value&&(n.value=t.value),r,a=[n],o,s,u,l;if(e==null)e=A$;while(r=a.pop()){if(i)r.value=+r.data.value;if((s=e(r.data))&&(l=s.length)){r.children=new Array(l);for(u=l-1;u>=0;--u){a.push(o=r.children[u]=new T$(s[u]));o.parent=r;o.depth=r.depth+1}}}return n.eachBefore(M$)}function E$(){return C$(this).eachBefore(R$)}function A$(t){return t.children}function R$(t){t.data=t.data.data}function M$(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function T$(t){this.data=t;this.depth=this.height=0;this.parent=null}T$.prototype=C$.prototype={constructor:T$,count:d$,each:g$,eachAfter:v$,eachBefore:p$,sum:m$,sort:y$,path:_$,ancestors:w$,descendants:x$,leaves:k$,links:S$,copy:E$};var P$=Array.prototype.slice;function O$(t){var e=t.length,n,i;while(e){i=Math.random()*e--|0;n=t[e];t[e]=t[i];t[i]=n}return t}function B$(t){var e=0,n=(t=O$(P$.call(t))).length,i=[],r,a;while(e<n){r=t[e];if(a&&z$(a,r))++e;else a=L$(i=D$(i,r)),e=0}return a}function D$(t,e){var n,i;if(j$(e,t))return[e];for(n=0;n<t.length;++n){if(N$(e,t[n])&&j$(I$(t[n],e),t)){return[t[n],e]}}for(n=0;n<t.length-1;++n){for(i=n+1;i<t.length;++i){if(N$(I$(t[n],t[i]),e)&&N$(I$(t[n],e),t[i])&&N$(I$(t[i],e),t[n])&&j$(H$(t[n],t[i],e),t)){return[t[n],t[i],e]}}}throw new Error}function N$(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function z$(t,e){var n=t.r-e.r+1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function j$(t,e){for(var n=0;n<e.length;++n){if(!z$(t,e[n])){return false}}return true}function L$(t){switch(t.length){case 1:return F$(t[0]);case 2:return I$(t[0],t[1]);case 3:return H$(t[0],t[1],t[2])}}function F$(t){return{x:t.x,y:t.y,r:t.r}}function I$(t,e){var n=t.x,i=t.y,r=t.r,a=e.x,o=e.y,s=e.r,u=a-n,l=o-i,c=s-r,f=Math.sqrt(u*u+l*l);return{x:(n+a+u/f*c)/2,y:(i+o+l/f*c)/2,r:(f+r+s)/2}}function H$(t,e,n){var i=t.x,r=t.y,a=t.r,o=e.x,s=e.y,u=e.r,l=n.x,c=n.y,f=n.r,h=i-o,d=i-l,g=r-s,p=r-c,v=u-a,m=f-a,y=i*i+r*r-a*a,_=y-o*o-s*s+u*u,b=y-l*l-c*c+f*f,w=d*g-h*p,x=(g*b-p*_)/(w*2)-i,k=(p*v-g*m)/w,S=(d*_-h*b)/(w*2)-r,C=(h*m-d*v)/w,E=k*k+C*C-1,A=2*(a+x*k+S*C),R=x*x+S*S-a*a,M=-(E?(A+Math.sqrt(A*A-4*E*R))/(2*E):R/A);return{x:i+x+k*M,y:r+S+C*M,r:M}}function G$(t,e,n){var i=t.x-e.x,r,a,o=t.y-e.y,s,u,l=i*i+o*o;if(l){a=e.r+n.r,a*=a;u=t.r+n.r,u*=u;if(a>u){r=(l+u-a)/(2*l);s=Math.sqrt(Math.max(0,u/l-r*r));n.x=t.x-r*i-s*o;n.y=t.y-r*o+s*i}else{r=(l+a-u)/(2*l);s=Math.sqrt(Math.max(0,a/l-r*r));n.x=e.x+r*i-s*o;n.y=e.y+r*o+s*i}}else{n.x=e.x+n.r;n.y=e.y}}function V$(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function U$(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,a=(e.y*n.r+n.y*e.r)/i;return r*r+a*a}function W$(t){this._=t;this.next=null;this.previous=null}function q$(t){if(!(r=t.length))return 0;var e,n,i,r,a,o,s,u,l,c,f;e=t[0],e.x=0,e.y=0;if(!(r>1))return e.r;n=t[1],e.x=-n.r,n.x=e.r,n.y=0;if(!(r>2))return e.r+n.r;G$(n,e,i=t[2]);e=new W$(e),n=new W$(n),i=new W$(i);e.next=i.previous=n;n.next=e.previous=i;i.next=n.previous=e;t:for(s=3;s<r;++s){G$(e._,n._,i=t[s]),i=new W$(i);u=n.next,l=e.previous,c=n._.r,f=e._.r;do{if(c<=f){if(V$(u._,i._)){n=u,e.next=n,n.previous=e,--s;continue t}c+=u._.r,u=u.next}else{if(V$(l._,i._)){e=l,e.next=n,n.previous=e,--s;continue t}f+=l._.r,l=l.previous}}while(u!==l.next);i.previous=e,i.next=n,e.next=n.previous=n=i;a=U$(e);while((i=i.next)!==n){if((o=U$(i))<a){e=i,a=o}}n=e.next}e=[n._],i=n;while((i=i.next)!==n){e.push(i._)}i=B$(e);for(s=0;s<r;++s){e=t[s],e.x-=i.x,e.y-=i.y}return i.r}function K$(t){return t==null?null:Y$(t)}function Y$(t){if(typeof t!=="function")throw new Error;return t}function X$(){return 0}function Z$(t){return function(){return t}}function $$(t){return Math.sqrt(t.value)}function J$(){var e=null,n=1,i=1,r=X$;function a(t){t.x=n/2,t.y=i/2;if(e){t.eachBefore(Q$(e)).eachAfter(tJ(r,.5)).eachBefore(eJ(1))}else{t.eachBefore(Q$($$)).eachAfter(tJ(X$,1)).eachAfter(tJ(r,t.r/Math.min(n,i))).eachBefore(eJ(Math.min(n,i)/(2*t.r)))}return t}a.radius=function(t){return arguments.length?(e=K$(t),a):e};a.size=function(t){return arguments.length?(n=+t[0],i=+t[1],a):[n,i]};a.padding=function(t){return arguments.length?(r=typeof t==="function"?t:Z$(+t),a):r};return a}function Q$(e){return function(t){if(!t.children){t.r=Math.max(0,+e(t)||0)}}}function tJ(o,s){return function(t){if(e=t.children){var e,n,i=e.length,r=o(t)*s||0,a;if(r)for(n=0;n<i;++n){e[n].r+=r}a=q$(e);if(r)for(n=0;n<i;++n){e[n].r-=r}t.r=a+r}}}function eJ(n){return function(t){var e=t.parent;t.r*=n;if(e){t.x=e.x+n*t.x;t.y=e.y+n*t.y}}}function nJ(t){t.x0=Math.round(t.x0);t.y0=Math.round(t.y0);t.x1=Math.round(t.x1);t.y1=Math.round(t.y1)}function iJ(t,e,n,i,r){var a=t.children,o,s=-1,u=a.length,l=t.value&&(i-e)/t.value;while(++s<u){o=a[s],o.y0=n,o.y1=r;o.x0=e,o.x1=e+=o.value*l}}function rJ(t,e){return t.parent===e.parent?1:2}function aJ(t){var e=t.children;return e?e[0]:t.t}function oJ(t){var e=t.children;return e?e[e.length-1]:t.t}function sJ(t,e,n){var i=n/(e.i-t.i);e.c-=i;e.s+=n;t.c+=i;e.z+=n;e.m+=n}function uJ(t){var e=0,n=0,i=t.children,r=i.length,a;while(--r>=0){a=i[r];a.z+=e;a.m+=e;e+=a.s+(n+=a.c)}}function lJ(t,e,n){return t.a.parent===e.parent?t.a:n}function cJ(t,e){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=e}cJ.prototype=Object.create(T$.prototype);function fJ(t){var e=new cJ(t,0),n,i=[e],r,a,o,s;while(n=i.pop()){if(a=n._.children){n.children=new Array(s=a.length);for(o=s-1;o>=0;--o){i.push(r=n.children[o]=new cJ(a[o],o));r.parent=n}}}(e.parent=new cJ(null,0)).children=[e];return e}function hJ(){var h=rJ,l=1,c=1,f=null;function e(t){var e=fJ(t);e.eachAfter(d),e.parent.m=-e.z;e.eachBefore(g);if(f)t.eachBefore(p);else{var n=t,i=t,r=t;t.eachBefore(function(t){if(t.x<n.x)n=t;if(t.x>i.x)i=t;if(t.depth>r.depth)r=t});var a=n===i?1:h(n,i)/2,o=a-n.x,s=l/(i.x+a+o),u=c/(r.depth||1);t.eachBefore(function(t){t.x=(t.x+o)*s;t.y=t.depth*u})}return t}function d(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e){uJ(t);var r=(e[0].z+e[e.length-1].z)/2;if(i){t.z=i.z+h(t._,i._);t.m=t.z-r}else{t.z=r}}else if(i){t.z=i.z+h(t._,i._)}t.parent.A=a(t,i,t.parent.A||n[0])}function g(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function a(t,e,n){if(e){var i=t,r=t,a=e,o=i.parent.children[0],s=i.m,u=r.m,l=a.m,c=o.m,f;while(a=oJ(a),i=aJ(i),a&&i){o=aJ(o);r=oJ(r);r.a=t;f=a.z+l-i.z-s+h(a._,i._);if(f>0){sJ(lJ(a,t,n),t,f);s+=f;u+=f}l+=a.m;s+=i.m;c+=o.m;u+=r.m}if(a&&!oJ(r)){r.t=a;r.m+=l-u}if(i&&!aJ(o)){o.t=i;o.m+=s-c;n=t}}return n}function p(t){t.x*=l;t.y=t.depth*c}e.separation=function(t){return arguments.length?(h=t,e):h};e.size=function(t){return arguments.length?(f=false,l=+t[0],c=+t[1],e):f?null:[l,c]};e.nodeSize=function(t){return arguments.length?(f=true,l=+t[0],c=+t[1],e):f?[l,c]:null};return e}function dJ(t,e,n,i,r){var a=t.children,o,s=-1,u=a.length,l=t.value&&(r-n)/t.value;while(++s<u){o=a[s],o.x0=e,o.x1=i;o.y0=n,o.y1=n+=o.value*l}}var gJ=(1+Math.sqrt(5))/2;function pJ(t,e,n,i,r,a){var o=[],s=e.children,u,l,c=0,f=0,h=s.length,d,g,p=e.value,v,m,y,_,b,w,x;while(c<h){d=r-n,g=a-i;do{v=s[f++].value}while(!v&&f<h);m=y=v;w=Math.max(g/d,d/g)/(p*t);x=v*v*w;b=Math.max(y/x,x/m);for(;f<h;++f){v+=l=s[f].value;if(l<m)m=l;if(l>y)y=l;x=v*v*w;_=Math.max(y/x,x/m);if(_>b){v-=l;break}b=_}o.push(u={value:v,dice:d<g,children:s.slice(c,f)});if(u.dice)iJ(u,n,i,r,p?i+=g*v/p:a);else dJ(u,n,i,p?n+=d*v/p:r,a);p-=v,c=f}return o}var vJ=function e(a){function t(t,e,n,i,r){pJ(a,t,e,n,i,r)}t.ratio=function(t){return e((t=+t)>1?t:1)};return t}(gJ);function mJ(){var o=vJ,e=false,n=1,i=1,s=[0],u=X$,l=X$,c=X$,f=X$,h=X$;function r(t){t.x0=t.y0=0;t.x1=n;t.y1=i;t.eachBefore(a);s=[0];if(e)t.eachBefore(nJ);return t}function a(t){var e=s[t.depth],n=t.x0+e,i=t.y0+e,r=t.x1-e,a=t.y1-e;if(r<n)n=r=(n+r)/2;if(a<i)i=a=(i+a)/2;t.x0=n;t.y0=i;t.x1=r;t.y1=a;if(t.children){e=s[t.depth+1]=u(t)/2;n+=h(t)-e;i+=l(t)-e;r-=c(t)-e;a-=f(t)-e;if(r<n)n=r=(n+r)/2;if(a<i)i=a=(i+a)/2;o(t,n,i,r,a)}}r.round=function(t){return arguments.length?(e=!!t,r):e};r.size=function(t){return arguments.length?(n=+t[0],i=+t[1],r):[n,i]};r.tile=function(t){return arguments.length?(o=Y$(t),r):o};r.padding=function(t){return arguments.length?r.paddingInner(t).paddingOuter(t):r.paddingInner()};r.paddingInner=function(t){return arguments.length?(u=typeof t==="function"?t:Z$(+t),r):u};r.paddingOuter=function(t){return arguments.length?r.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):r.paddingTop()};r.paddingTop=function(t){return arguments.length?(l=typeof t==="function"?t:Z$(+t),r):l};r.paddingRight=function(t){return arguments.length?(c=typeof t==="function"?t:Z$(+t),r):c};r.paddingBottom=function(t){return arguments.length?(f=typeof t==="function"?t:Z$(+t),r):f};r.paddingLeft=function(t){return arguments.length?(h=typeof t==="function"?t:Z$(+t),r):h};return r}function yJ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yJ=function t(e){return typeof e}}else{yJ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return yJ(t)}function _J(t){return kJ(t)||xJ(t)||wJ(t)||bJ()}function bJ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function wJ(t,e){if(!t)return;if(typeof t==="string")return SJ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SJ(t,e)}function xJ(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function kJ(t){if(Array.isArray(t))return SJ(t)}function SJ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function CJ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function EJ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function AJ(t,e,n){if(e)EJ(t.prototype,e);if(n)EJ(t,n);return t}function RJ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){RJ=Reflect.get}else{RJ=function t(e,n,i){var r=MJ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return RJ(t,e,n||t)}function MJ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=zJ(t);if(t===null)break}return t}function TJ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)PJ(t,e)}function PJ(t,e){PJ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return PJ(t,e)}function OJ(r){var a=NJ();return function t(){var e=zJ(r),n;if(a){var i=zJ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return BJ(this,n)}}function BJ(t,e){if(e&&(yJ(e)==="object"||typeof e==="function")){return e}return DJ(t)}function DJ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function NJ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function zJ(t){zJ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return zJ(t)}var jJ=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(t.values){t.values.forEach(function(t){n.push(t);e(t,n)})}else{n.push(t)}return n};var LJ=function(t){TJ(c,t);var i=OJ(c);function c(){var a;CJ(this,c);a=i.call(this);a._layoutPadding=1;a._on.mouseenter=function(){};var e=a._on["mousemove.legend"];a._on["mousemove.legend"]=function(n,t){e(n,t);var i=a._ids(n,t);var r=jJ(n);a.hover(function(e){var t=Object.keys(e).filter(function(t){return t!=="value"}).every(function(t){return n[t]&&n[t].includes(e[t])});if(t)r.push(e);else if(i.includes(e.key))r.push.apply(r,_J(jJ(e,[e])));return r.includes(e)})};var n=a._on["mousemove.shape"];a._on["mousemove.shape"]=function(e,t){if(e.__d3plusTooltip__)n(e,t);a.hover(function(t){return jJ(e,[e]).includes(t)})};a._pack=J$();a._packOpacity=cw(.25);a._shape=cw("Circle");a._shapeConfig=el(a._shapeConfig,{Circle:{label:function t(e){return e.parent&&!e.children?e.id:false},labelConfig:{fontResize:true},opacity:function t(e){return e.__d3plusOpacity__}}});a._sort=function(t,e){return e.value-t.value};a._sum=$u("value");return a}AJ(c,[{key:"_draw",value:function t(e){var n=this;RJ(zJ(c.prototype),"_draw",this).call(this,e);var i=this._height-this._margin.top-this._margin.bottom,r=this._width-this._margin.left-this._margin.right;var a=Math.min(i,r);var o="translate(".concat((r-a)/2,", ").concat((i-a)/2,")");var s=Fe();for(var u=0;u<=this._drawDepth;u++){s.key(this._groupBy[u])}s=s.entries(this._filteredData);var l=this._pack.padding(this._layoutPadding).size([a,a])(C$({key:s.key,values:s},function(t){return t.values}).sum(this._sum).sort(this._sort)).descendants();l.forEach(function(t,e){t.__d3plus__=true;t.i=e;t.id=t.parent?t.parent.data.key:null;t.data.__d3plusOpacity__=t.height?n._packOpacity(t.data,e):1;t.data.__d3plusTooltip__=!t.height?true:false});this._shapes.push((new nA).data(l).select(fw("g.d3plus-Pack",{parent:this._select,enter:{transform:o},update:{transform:o}}).node()).config(lw.bind(this)(this._shapeConfig,"shape","Circle")).render());return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=e,this):this._layoutPadding}},{key:"packOpacity",value:function t(e){return arguments.length?(this._packOpacity=typeof e==="function"?e:cw(e),this):this._packOpacity}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){return arguments.length?(this._sum=typeof e==="function"?e:$u(e),this):this._sum}}]);return c}(mZ);function FJ(t,e){if(!(e instanceof Array))e=[e];var n=Fe();for(var i=0;i<e.length;i++){n.key(e[i])}var r=n.entries(t);return IJ(r)}function IJ(t){return t.map(function(t){if(t.key&&t.values){if(t.values[0].key==="undefined")return t.values[0].values[0];else t.values=IJ(t.values)}return t})}function HJ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HJ=function t(e){return typeof e}}else{HJ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return HJ(t)}function GJ(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function VJ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function UJ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function WJ(t,e,n){if(e)UJ(t.prototype,e);if(n)UJ(t,n);return t}function qJ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){qJ=Reflect.get}else{qJ=function t(e,n,i){var r=KJ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return qJ(t,e,n||t)}function KJ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=tQ(t);if(t===null)break}return t}function YJ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)XJ(t,e)}function XJ(t,e){XJ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return XJ(t,e)}function ZJ(r){var a=QJ();return function t(){var e=tQ(r),n;if(a){var i=tQ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return $J(this,n)}}function $J(t,e){if(e&&(HJ(e)==="object"||typeof e==="function")){return e}return JJ(t)}function JJ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function QJ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function tQ(t){tQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return tQ(t)}var eQ=function(t){YJ(v,t);var e=ZJ(v);function v(){var i;VJ(this,v);i=e.call(this);i._orient="vertical";i._separation=function(t,e){return t.parent===e.parent?1:2};i._shape=cw("Circle");i._shapeConfig=el(i._shapeConfig,{ariaLabel:function t(e,n){return i._treeData?"".concat(i._treeData[n].depth,". ").concat(i._drawLabel(e,n),"."):""},labelConfig:{fontColor:"#444"},Path:{fill:"none",stroke:"#ccc",strokeWidth:1},r:cw(5),width:cw(10),height:cw(10)});i._tree=hJ();return i}WJ(v,[{key:"_draw",value:function t(e){var f=this;qJ(tQ(v.prototype),"_draw",this).call(this,e);var n=this._orient==="vertical"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right,o=this._orient==="vertical"?"left":"top",i=this,r="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),s=this._orient==="horizontal"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right;var a=this._treeData=this._tree.separation(this._separation).size([s,n])(C$({key:"root",values:FJ(this._filteredData,this._groupBy.slice(0,this._drawDepth+1))},function(t){return t.key&&t.values?t.values:null}).sort(this._sort)).descendants().filter(function(t){return t.depth<=f._groupBy.length&&t.parent});function u(t){return dw(t.values.map(function(t){return t.key&&t.values?u(t):t}),i._aggs)}a.forEach(function(t,e){if(t.data.key&&t.data.values)t.data=u(t.data);t.__d3plus__=true;t.i=e});var l=this._shapeConfig.r;if(typeof l!=="function")l=cw(l);var c=ce(a,function(t){return t.depth===1?l(t.data,t.i):0});var h=ce(a,function(t){return t.children?0:l(t.data,t.i)});var d=ue(a,function(t){return t.y});this._labelHeight=de([this._orient==="vertical"?50:100,(d[1]-c-h)/(this._groupBy.length+1)]);this._labelWidths=FJ(a,function(t){return t.depth}).map(function(a){return a.values.reduce(function(t,e,n){var i=n<a.values.length-1?a.values[n+1].x:s+f._margin[o],r=n?a.values[n-1].x:f._margin[o];return de([t,i-e.x,e.x-r])},s)});var g=rr().domain(d).range([c+this._labelHeight,n-h-this._labelHeight]);a.forEach(function(t){var e=g(t.y);if(f._orient==="horizontal"){t.y=t.x;t.x=e}else t.y=e});var p={parent:this._select,enter:{transform:r},update:{transform:r}};this._shapes.push((new bR).data(a.filter(function(t){return t.depth>1})).select(fw("g.d3plus-Tree-Links",p).node()).config(lw.bind(this)(this._shapeConfig,"shape","Path")).config({d:function t(e){var n=f._shapeConfig.r;if(typeof n==="function")n=n(e.data,e.i);var i=e.parent.x-e.x+(f._orient==="vertical"?0:n),r=e.parent.y-e.y+(f._orient==="vertical"?n:0),a=f._orient==="vertical"?0:-n,o=f._orient==="vertical"?-n:0;return f._orient==="vertical"?"M".concat(a,",").concat(o,"C").concat(a,",").concat((o+r)/2," ").concat(i,",").concat((o+r)/2," ").concat(i,",").concat(r):"M".concat(a,",").concat(o,"C").concat((a+i)/2,",").concat(o," ").concat((a+i)/2,",").concat(r," ").concat(i,",").concat(r)},id:function t(e,n){return f._ids(e,n).join("-")}}).render());this._shapes.push((new nA).data(a).select(fw("g.d3plus-Tree-Shapes",p).node()).config(lw.bind(this)(this._shapeConfig,"shape","Circle")).config({id:function t(e,n){return f._ids(e,n).join("-")},label:function t(e,n){if(f._label)return f._label(e.data,n);var i=f._ids(e,n).slice(0,e.depth);return i[i.length-1]},labelConfig:{textAnchor:function t(e){return f._orient==="vertical"?"middle":e.data.children&&e.data.depth!==f._groupBy.length?"end":"start"},verticalAlign:function t(e){return f._orient==="vertical"?e.data.depth===1?"bottom":"top":"middle"}},hitArea:function t(e,n,i){var r=f._labelHeight,a=f._labelWidths[e.depth-1];return{width:f._orient==="vertical"?a:i.r*2+a,height:f._orient==="horizontal"?r:i.r*2+r,x:f._orient==="vertical"?-a/2:e.children&&e.depth!==f._groupBy.length?-(i.r+a):-i.r,y:f._orient==="horizontal"?-r/2:e.children&&e.depth!==f._groupBy.length?-(i.r+f._labelHeight):-i.r}},labelBounds:function t(e,n,i){var r;var a=f._labelHeight,o=f._orient==="vertical"?"height":"width",s=f._labelWidths[e.depth-1],u=f._orient==="vertical"?"width":"height",l=f._orient==="vertical"?"x":"y",c=f._orient==="vertical"?"y":"x";return r={},GJ(r,u,s),GJ(r,o,a),GJ(r,l,-s/2),GJ(r,c,e.children&&e.depth!==f._groupBy.length?-(i.r+a):i.r),r}}).render());return this}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"separation",value:function t(e){return arguments.length?(this._separation=e,this):this._separation}}]);return v}(mZ);function nQ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){nQ=function t(e){return typeof e}}else{nQ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return nQ(t)}function iQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function rQ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function aQ(t,e,n){if(e)rQ(t.prototype,e);if(n)rQ(t,n);return t}function oQ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){oQ=Reflect.get}else{oQ=function t(e,n,i){var r=sQ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return oQ(t,e,n||t)}function sQ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=gQ(t);if(t===null)break}return t}function uQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)lQ(t,e)}function lQ(t,e){lQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lQ(t,e)}function cQ(r){var a=dQ();return function t(){var e=gQ(r),n;if(a){var i=gQ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return fQ(this,n)}}function fQ(t,e){if(e&&(nQ(e)==="object"||typeof e==="function")){return e}return hQ(t)}function hQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function gQ(t){gQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gQ(t)}var pQ=function(t){uQ(g,t);var e=cQ(g);function g(){var r;iQ(this,g);r=e.call(this);r._layoutPadding=1;r._legendSort=function(t,e){return r._sum(e)-r._sum(t)};r._legendTooltip=el({},r._legendTooltip,{tbody:[]});r._shapeConfig=el({},r._shapeConfig,{ariaLabel:function t(e,n){var i=r._rankData?"".concat(r._rankData.indexOf(e)+1,". "):"";return"".concat(i).concat(r._drawLabel(e,n),", ").concat(r._sum(e,n),".")},labelConfig:{fontMax:20,fontMin:8,fontResize:true,padding:5}});r._sort=function(t,e){var n=a(t);var i=a(e);return n&&!i?1:!n&&i?-1:e.value-t.value};r._sum=$u("value");r._thresholdKey=r._sum;r._tile=vJ;r._tooltipConfig=el({},r._tooltipConfig,{tbody:[[function(){return r._translate("Share")},function(t,e,n){return"".concat(xw(n.share*100,r._locale),"%")}]]});r._treemap=mJ().round(true);var a=function t(e){return e.children&&e.children.length===1&&e.children[0].data._isAggregation};return r}aQ(g,[{key:"_draw",value:function t(e){var n=this;oQ(gQ(g.prototype),"_draw",this).call(this,e);var i=Fe();for(var r=0;r<=this._drawDepth;r++){i.key(this._groupBy[r])}i=i.entries(this._filteredData);var a=this._treemap.padding(this._layoutPadding).size([this._width-this._margin.left-this._margin.right,this._height-this._margin.top-this._margin.bottom]).tile(this._tile)(C$({values:i},function(t){return t.values}).sum(this._sum).sort(this._sort));var o=[],s=this;function u(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.depth<=s._drawDepth)u(n.children);else{var i=n.data.values.length===1?s._filteredData.indexOf(n.data.values[0]):undefined;n.__d3plus__=true;n.id=n.data.key;n.i=i>-1?i:undefined;n.data=dw(n.data.values,s._aggs);n.x=n.x0+(n.x1-n.x0)/2;n.y=n.y0+(n.y1-n.y0)/2;o.push(n)}}}if(a.children)u(a.children);this._rankData=o.sort(this._sort).map(function(t){return t.data});var l=a.value;o.forEach(function(t){t.share=n._sum(t.data,t.i)/l});var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");var f=lw.bind(this)(this._shapeConfig,"shape","Rect");var h=f.labelConfig.fontMin;var d=f.labelConfig.padding;this._shapes.push((new vA).data(o).label(function(t){return[n._drawLabel(t.data,t.i),"".concat(xw(t.share*100,n._locale),"%")]}).select(fw("g.d3plus-Treemap",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).config({height:function t(e){return e.y1-e.y0},labelBounds:function t(e,n,i){var r=i.height;var a=Math.min(50,(r-d*2)*.5);if(a<h)a=0;return[{width:i.width,height:r-a,x:-i.width/2,y:-r/2},{width:i.width,height:a+d*2,x:-i.width/2,y:r/2-a-d*2}]},labelConfig:{textAnchor:function t(e,n,i){var r,a=i;while(typeof r==="undefined"&&a){if(typeof a.l!=="undefined")r=a.l;a=a.__d3plusParent__}return r?"middle":"start"},verticalAlign:function t(e,n,i){var r,a=i;while(typeof r==="undefined"&&a){if(typeof a.l!=="undefined")r=a.l;a=a.__d3plusParent__}return r?"bottom":"top"}},width:function t(e){return e.x1-e.x0}}).config(f).render());return this}},{key:"_thresholdFunction",value:function t(e){var c=this._aggs;var f=this._drawDepth;var h=this._groupBy;var d=this._threshold;var g=this._thresholdKey;var p=ge(e,g);if(d&&g){return v(e,0)}function v(t,i){if(i<f){return Fe().key(h[i]).entries(t).reduce(function(t,e){var n=v(e.values,i+1);return t.concat(n)},[])}if(i===f){var e=Math.min(1,Math.max(0,d(t)));if(!isFinite(e)||isNaN(e))return null;var n=[];var r=t.slice();var a=e*p;var o=r.length;while(o--){var s=r[o];if(g(s)<a){var u=r.indexOf(s);r.splice(u,1);n.push(s)}}if(n.length>0){var l=dw(n,c);l._isAggregation=true;l._threshold=e;r.push(l)}return r}throw new Error("Depth is higher than the amount of grouping levels.")}return e}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=typeof e==="function"?e:cw(e),this):this._layoutPadding}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){if(arguments.length){this._sum=typeof e==="function"?e:$u(e);this._thresholdKey=this._sum;return this}else return this._sum}},{key:"tile",value:function t(e){return arguments.length?(this._tile=e,this):this._tile}}]);return g}(mZ);function vQ(t,e,n){return e[t]||this["_".concat(t)](e,n)}function mQ(t,e){return bQ(t)||_Q(t,e)||kQ(t,e)||yQ()}function yQ(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _Q(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function bQ(t){if(Array.isArray(t))return t}function wQ(t){return CQ(t)||SQ(t)||kQ(t)||xQ()}function xQ(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kQ(t,e){if(!t)return;if(typeof t==="string")return EQ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EQ(t,e)}function SQ(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function CQ(t){if(Array.isArray(t))return EQ(t)}function EQ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}var AQ=function t(e,n){var i;return(i=[]).concat.apply(i,wQ(e.map(function(e){return n.map(function(t){return[].concat(e,t)})})))};function RQ(){var o=this;var s=this._filteredData;var t=hw(s.map(this._row)).sort(this._rowSort);var e=hw(s.map(this._column)).sort(this._columnSort);if(!t.length||!e.length)return this;var n=AQ(t,e).map(function(t){var e=mQ(t,2),n=e[0],i=e[1];var r={__d3plusTooltip__:true,__d3plus__:true,column:i,row:n};var a=s.findIndex(function(t,e){return o._row(t,e)===n&&o._column(t,e)===i});if(a>=0){r.i=a;r.data=s[a]}else{r.data={row:n,column:i}}return r});return{rowValues:t,columnValues:e,shapeData:n}}function MQ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){MQ=function t(e){return typeof e}}else{MQ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return MQ(t)}function TQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function PQ(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function OQ(t,e,n){if(e)PQ(t.prototype,e);if(n)PQ(t,n);return t}function BQ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){BQ=Reflect.get}else{BQ=function t(e,n,i){var r=DQ(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return BQ(t,e,n||t)}function DQ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=HQ(t);if(t===null)break}return t}function NQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)zQ(t,e)}function zQ(t,e){zQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zQ(t,e)}function jQ(r){var a=IQ();return function t(){var e=HQ(r),n;if(a){var i=HQ(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return LQ(this,n)}}function LQ(t,e){if(e&&(MQ(e)==="object"||typeof e==="function")){return e}return FQ(t)}function FQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function IQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function HQ(t){HQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return HQ(t)}var GQ={align:"start",barConfig:{stroke:0},gridSize:0,paddingInner:0,paddingOuter:0,scale:"band",tickSize:0};var VQ=function(t){NQ(C,t);var e=jQ(C);function C(){var r;TQ(this,C);r=e.call(this);r._cellPadding=2;r._column=$u("column");r._columnAxis=new GR;r._columnConfig=el({orient:"top"},GQ);r._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};r._label=function(t,e){return"".concat(vQ.bind(FQ(r))("row",t,e)," / ").concat(vQ.bind(FQ(r))("column",t,e))};var a=r._on["mousemove.shape"];r._on["mousemove.shape"]=function(t,e){a(t,e);var n=vQ.bind(FQ(r))("row",t,e);var i=vQ.bind(FQ(r))("column",t,e);r.hover(function(t,e){return vQ.bind(FQ(r))("row",t,e)===n||vQ.bind(FQ(r))("column",t,e)===i})};r._row=$u("row");r._rowAxis=new GR;r._rowConfig=el({orient:"left"},GQ);r._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};return r}OQ(C,[{key:"_draw",value:function t(e){var n=RQ.bind(this)(this._filteredData),i=n.rowValues,r=n.columnValues,a=n.shapeData;if(!i.length||!r.length)return this;var o=this._height-this._margin.top-this._margin.bottom,s=this._select,u=this._transition,l=this._width-this._margin.left-this._margin.right;var c={opacity:0};var f={opacity:1};var h=function t(e,n){return fw("g.d3plus-Matrix-".concat(e),Object.assign({parent:s,transition:u},n)).node()};this._rowAxis.select(h("row",{enter:c,update:c})).domain(i).height(o).maxSize(l/2).width(l).config(this._rowConfig).render();var d=this._rowAxis.outerBounds().width-this._rowAxis.padding()*2;this._padding.left+=d;var g="translate(".concat(d+this._margin.left,", ").concat(this._margin.top,")");var p=Object.assign({transform:g},c);this._columnAxis.select(h("column",{enter:p,update:p})).domain(r).height(o).maxSize(o/2).width(l).config(this._columnConfig).render();var v=this._columnAxis.outerBounds().height-this._columnAxis.padding()*2;this._padding.top+=v;BQ(HQ(C.prototype),"_draw",this).call(this,e);var m="translate(".concat(this._margin.left,", ").concat(v+this._margin.top,")");g="translate(".concat(d+this._margin.left,", ").concat(this._margin.top,")");var y=Object.assign({transform:g},f);this._rowAxis.select(h("row",{update:Object.assign({transform:m},f)})).height(o-this._margin.top-this._margin.bottom-v).width(d+this._rowAxis.padding()*2).render();this._columnAxis.select(h("column",{update:y})).height(v+this._columnAxis.padding()*2).width(l-this._margin.left-this._margin.right-d).render();var _=this._rowAxis._getPosition.bind(this._rowAxis);var b=this._columnAxis._getPosition.bind(this._columnAxis);var w=i.length>1?_(i[1])-_(i[0]):this._rowAxis.height();var x=r.length>1?b(r[1])-b(r[0]):this._columnAxis.width();var k="translate(".concat(this._margin.left+d,", ").concat(this._margin.top+v,")");var S=lw.bind(this)(this._shapeConfig,"shape","Rect");this._shapes.push((new vA).data(a).select(fw("g.d3plus-Matrix-cells",{parent:this._select,enter:{transform:k},update:{transform:k}}).node()).config({height:w-this._cellPadding,width:x-this._cellPadding,x:function t(e){return b(e.column)+x/2},y:function t(e){return _(e.row)+w/2}}).config(S).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:$u(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=el(this._columnConfig,e),this):this._columnConfig}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:$u(e),this):this._row}},{key:"rowConfig",value:function t(e){return arguments.length?(this._rowConfig=el(this._rowConfig,e),this):this._rowConfig}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return C}(mZ);function UQ(t,e){var n;if(e===undefined){var i=_createForOfIteratorHelper(t),r;try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a!=null&&(n>a||n===undefined&&a>=a)){n=a}}}catch(t){i.e(t)}finally{i.f()}}else{var o=-1;var s=_createForOfIteratorHelper(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n>l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function WQ(e){return function t(){return e}}var qQ=Math.abs;var KQ=Math.atan2;var YQ=Math.cos;var XQ=Math.max;var ZQ=Math.min;var $Q=Math.sin;var JQ=Math.sqrt;var QQ=1e-12;var t0=Math.PI;var e0=t0/2;var n0=2*t0;function i0(t){return t>1?0:t<-1?t0:Math.acos(t)}function r0(t){return t>=1?e0:t<=-1?-e0:Math.asin(t)}function a0(t){return t.innerRadius}function o0(t){return t.outerRadius}function s0(t){return t.startAngle}function u0(t){return t.endAngle}function l0(t){return t&&t.padAngle}function c0(t,e,n,i,r,a,o,s){var u=n-t,l=i-e,c=o-r,f=s-a,h=f*u-c*l;if(h*h<QQ)return;h=(c*(e-a)-f*(t-r))/h;return[t+h*u,e+h*l]}function f0(t,e,n,i,r,a,o){var s=t-n,u=e-i,l=(o?a:-a)/JQ(s*s+u*u),c=l*u,f=-l*s,h=t+c,d=e+f,g=n+c,p=i+f,v=(h+g)/2,m=(d+p)/2,y=g-h,_=p-d,b=y*y+_*_,w=r-a,x=h*p-g*d,k=(_<0?-1:1)*JQ(XQ(0,w*w*b-x*x)),S=(x*_-y*k)/b,C=(-x*y-_*k)/b,E=(x*_+y*k)/b,A=(-x*y+_*k)/b,R=S-v,M=C-m,T=E-v,P=A-m;if(R*R+M*M>T*T+P*P)S=E,C=A;return{cx:S,cy:C,x01:-c,y01:-f,x11:S*(r/w-1),y11:C*(r/w-1)}}function h0(){var L=a0,F=o0,I=WQ(0),H=null,G=s0,V=u0,U=l0,W=null;function e(){var t,e,n=+L.apply(this,arguments),i=+F.apply(this,arguments),r=G.apply(this,arguments)-e0,a=V.apply(this,arguments)-e0,o=qQ(a-r),s=a>r;if(!W)W=t=Iw();if(i<n)e=i,i=n,n=e;if(!(i>QQ))W.moveTo(0,0);else if(o>n0-QQ){W.moveTo(i*YQ(r),i*$Q(r));W.arc(0,0,i,r,a,!s);if(n>QQ){W.moveTo(n*YQ(a),n*$Q(a));W.arc(0,0,n,a,r,s)}}else{var u=r,l=a,c=r,f=a,h=o,d=o,g=U.apply(this,arguments)/2,p=g>QQ&&(H?+H.apply(this,arguments):JQ(n*n+i*i)),v=ZQ(qQ(i-n)/2,+I.apply(this,arguments)),m=v,y=v,_,b;if(p>QQ){var w=r0(p/n*$Q(g)),x=r0(p/i*$Q(g));if((h-=w*2)>QQ)w*=s?1:-1,c+=w,f-=w;else h=0,c=f=(r+a)/2;if((d-=x*2)>QQ)x*=s?1:-1,u+=x,l-=x;else d=0,u=l=(r+a)/2}var k=i*YQ(u),S=i*$Q(u),C=n*YQ(f),E=n*$Q(f);if(v>QQ){var A=i*YQ(l),R=i*$Q(l),M=n*YQ(c),T=n*$Q(c),P;if(o<t0&&(P=c0(k,S,M,T,A,R,C,E))){var O=k-P[0],B=S-P[1],D=A-P[0],N=R-P[1],z=1/$Q(i0((O*D+B*N)/(JQ(O*O+B*B)*JQ(D*D+N*N)))/2),j=JQ(P[0]*P[0]+P[1]*P[1]);m=ZQ(v,(n-j)/(z-1));y=ZQ(v,(i-j)/(z+1))}}if(!(d>QQ))W.moveTo(k,S);else if(y>QQ){_=f0(M,T,k,S,i,y,s);b=f0(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(y<v)W.arc(_.cx,_.cy,y,KQ(_.y01,_.x01),KQ(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,KQ(_.y01,_.x01),KQ(_.y11,_.x11),!s);W.arc(0,0,i,KQ(_.cy+_.y11,_.cx+_.x11),KQ(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,y,KQ(b.y11,b.x11),KQ(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,i,u,l,!s);if(!(n>QQ)||!(h>QQ))W.lineTo(C,E);else if(m>QQ){_=f0(C,E,A,R,n,-m,s);b=f0(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m<v)W.arc(_.cx,_.cy,m,KQ(_.y01,_.x01),KQ(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,KQ(_.y01,_.x01),KQ(_.y11,_.x11),!s);W.arc(0,0,n,KQ(_.cy+_.y11,_.cx+_.x11),KQ(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,m,KQ(b.y11,b.x11),KQ(b.y01,b.x01),!s)}}else W.arc(0,0,n,f,c,s)}W.closePath();if(t)return W=null,t+""||null}e.centroid=function(){var t=(+L.apply(this,arguments)+ +F.apply(this,arguments))/2,e=(+G.apply(this,arguments)+ +V.apply(this,arguments))/2-t0/2;return[YQ(e)*t,$Q(e)*t]};e.innerRadius=function(t){return arguments.length?(L=typeof t==="function"?t:WQ(+t),e):L};e.outerRadius=function(t){return arguments.length?(F=typeof t==="function"?t:WQ(+t),e):F};e.cornerRadius=function(t){return arguments.length?(I=typeof t==="function"?t:WQ(+t),e):I};e.padRadius=function(t){return arguments.length?(H=t==null?null:typeof t==="function"?t:WQ(+t),e):H};e.startAngle=function(t){return arguments.length?(G=typeof t==="function"?t:WQ(+t),e):G};e.endAngle=function(t){return arguments.length?(V=typeof t==="function"?t:WQ(+t),e):V};e.padAngle=function(t){return arguments.length?(U=typeof t==="function"?t:WQ(+t),e):U};e.context=function(t){return arguments.length?(W=t==null?null:t,e):W};return e}function d0(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){d0=function t(e){return typeof e}}else{d0=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return d0(t)}function g0(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function p0(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function v0(t,e,n){if(e)p0(t.prototype,e);if(n)p0(t,n);return t}function m0(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){m0=Reflect.get}else{m0=function t(e,n,i){var r=y0(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return m0(t,e,n||t)}function y0(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=C0(t);if(t===null)break}return t}function _0(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)b0(t,e)}function b0(t,e){b0=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return b0(t,e)}function w0(r){var a=S0();return function t(){var e=C0(r),n;if(a){var i=C0(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return x0(this,n)}}function x0(t,e){if(e&&(d0(e)==="object"||typeof e==="function")){return e}return k0(t)}function k0(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function S0(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function C0(t){C0=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return C0(t)}var E0=Math.PI*2;var A0=function(t){_0(k,t);var e=w0(k);function k(){var r;g0(this,k);r=e.call(this);r._cellPadding=2;r._column=$u("column");r._columnConfig={shapeConfig:{labelConfig:{fontColor:"#000",padding:5,textAnchor:function t(e){return[0,180].includes(e.angle)?"middle":[2,3].includes(e.quadrant)?"end":"start"},verticalAlign:function t(e){return[90,270].includes(e.angle)?"middle":[2,1].includes(e.quadrant)?"bottom":"top"}}}};r._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};r._innerRadius=function(t){return t/5};r._label=function(t,e){return"".concat(vQ.bind(k0(r))("row",t,e)," / ").concat(vQ.bind(k0(r))("column",t,e))};var a=r._on["mousemove.shape"];r._on["mousemove.shape"]=function(t,e){a(t,e);var n=vQ.bind(k0(r))("row",t,e);var i=vQ.bind(k0(r))("column",t,e);r.hover(function(t,e){return vQ.bind(k0(r))("row",t,e)===n||vQ.bind(k0(r))("column",t,e)===i})};r._row=$u("row");r._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};r._columnLabels=new ZS;return r}v0(k,[{key:"_draw",value:function t(e){var n=this;var i=RQ.bind(this)(this._filteredData),r=i.rowValues,a=i.columnValues,o=i.shapeData;if(!r.length||!a.length)return this;m0(C0(k.prototype),"_draw",this).call(this,e);var s=this._height-this._margin.top-this._margin.bottom,u=this._select,l=this._transition,c=this._width-this._margin.left-this._margin.right;var f=50,h=100;var d=UQ([s-f*2,c-h*2])/2,g="translate(".concat(c/2+this._margin.left,", ").concat(s/2+this._margin.top,")");var p=a.slice().reverse();p.unshift(p.pop());var v=p.length;var m=p.map(function(t,e){var n=e/v*E0;var i=Math.round(n*180/Math.PI);var r=Math.floor((i+90)/90%4+1);var a=[0,180].includes(i)?-h/2:[2,3].includes(r)?-h:0;var o=[90,270].includes(i)?-f/2:[2,1].includes(r)?-f:0;return{key:t,angle:i,quadrant:r,radians:n,x:d*Math.sin(n+Math.PI)+a,y:d*Math.cos(n+Math.PI)+o}});this._columnLabels.data(m).x(function(t){return t.x}).y(function(t){return t.y}).text(function(t){return t.key}).width(h).height(f).config(this._columnConfig.shapeConfig.labelConfig).select(fw("g.d3plus-RadialMatrix-columns",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).render();var y=this._innerRadius(d);var _=(d-y)/r.length;var b=m.length>1?m[1].radians-m[0].radians:E0;var w=r.slice().reverse();var x=h0().padAngle(this._cellPadding/d).innerRadius(function(t){return y+w.indexOf(t.row)*_+n._cellPadding/2}).outerRadius(function(t){return y+(w.indexOf(t.row)+1)*_-n._cellPadding/2}).startAngle(function(t){return m[a.indexOf(t.column)].radians-b/2}).endAngle(function(t){return m[a.indexOf(t.column)].radians+b/2});this._shapes.push((new bR).data(o).d(x).select(fw("g.d3plus-RadialMatrix-arcs",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).config(lw.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:$u(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=el(this._columnConfig,e),this):this._columnConfig}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=typeof e==="function"?e:cw(e),this):this._innerRadius}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:$u(e),this):this._row}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return k}(mZ);function R0(t){return function(){return t}}function M0(){return(Math.random()-.5)*1e-6}function T0(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return P0(this.cover(e,n),e,n,t)}function P0(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,a=t._root,o={data:i},s=t._x0,u=t._y0,l=t._x1,c=t._y1,f,h,d,g,p,v,m,y;if(!a)return t._root=o,t;while(a.length){if(p=e>=(f=(s+l)/2))s=f;else l=f;if(v=n>=(h=(u+c)/2))u=h;else c=h;if(r=a,!(a=a[m=v<<1|p]))return r[m]=o,t}d=+t._x.call(null,a.data);g=+t._y.call(null,a.data);if(e===d&&n===g)return o.next=a,r?r[m]=o:t._root=o,t;do{r=r?r[m]=new Array(4):t._root=new Array(4);if(p=e>=(f=(s+l)/2))s=f;else l=f;if(v=n>=(h=(u+c)/2))u=h;else c=h}while((m=v<<1|p)===(y=(g>=h)<<1|d>=f));return r[y]=a,r[m]=o,t}function O0(t){var e,n,i=t.length,r,a,o=new Array(i),s=new Array(i),u=Infinity,l=Infinity,c=-Infinity,f=-Infinity;for(n=0;n<i;++n){if(isNaN(r=+this._x.call(null,e=t[n]))||isNaN(a=+this._y.call(null,e)))continue;o[n]=r;s[n]=a;if(r<u)u=r;if(r>c)c=r;if(a<l)l=a;if(a>f)f=a}if(u>c||l>f)return this;this.cover(u,l).cover(c,f);for(n=0;n<i;++n){P0(this,o[n],s[n],t[n])}return this}function B0(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,a=this._y1;if(isNaN(n)){r=(n=Math.floor(t))+1;a=(i=Math.floor(e))+1}else{var o=r-n,s=this._root,u,l;while(n>t||t>=r||i>e||e>=a){l=(e<i)<<1|t<n;u=new Array(4),u[l]=s,s=u,o*=2;switch(l){case 0:r=n+o,a=i+o;break;case 1:n=r-o,a=i+o;break;case 2:r=n+o,i=a-o;break;case 3:n=r-o,i=a-o;break}}if(this._root&&this._root.length)this._root=s}this._x0=n;this._y0=i;this._x1=r;this._y1=a;return this}function D0(){var e=[];this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)});return e}function N0(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?undefined:[[this._x0,this._y0],[this._x1,this._y1]]}function z0(t,e,n,i,r){this.node=t;this.x0=e;this.y0=n;this.x1=i;this.y1=r}function j0(t,e,n){var i,r=this._x0,a=this._y0,o,s,u,l,c=this._x1,f=this._y1,h=[],d=this._root,g,p;if(d)h.push(new z0(d,r,a,c,f));if(n==null)n=Infinity;else{r=t-n,a=e-n;c=t+n,f=e+n;n*=n}while(g=h.pop()){if(!(d=g.node)||(o=g.x0)>c||(s=g.y0)>f||(u=g.x1)<r||(l=g.y1)<a)continue;if(d.length){var v=(o+u)/2,m=(s+l)/2;h.push(new z0(d[3],v,m,u,l),new z0(d[2],o,m,v,l),new z0(d[1],v,s,u,m),new z0(d[0],o,s,v,m));if(p=(e>=m)<<1|t>=v){g=h[h.length-1];h[h.length-1]=h[h.length-1-p];h[h.length-1-p]=g}}else{var y=t-+this._x.call(null,d.data),_=e-+this._y.call(null,d.data),b=y*y+_*_;if(b<n){var w=Math.sqrt(n=b);r=t-w,a=e-w;c=t+w,f=e+w;i=d.data}}}return i}function L0(t){if(isNaN(c=+this._x.call(null,t))||isNaN(f=+this._y.call(null,t)))return this;var e,n=this._root,i,r,a,o=this._x0,s=this._y0,u=this._x1,l=this._y1,c,f,h,d,g,p,v,m;if(!n)return this;if(n.length)while(true){if(g=c>=(h=(o+u)/2))o=h;else u=h;if(p=f>=(d=(s+l)/2))s=d;else l=d;if(!(e=n,n=n[v=p<<1|g]))return this;if(!n.length)break;if(e[v+1&3]||e[v+2&3]||e[v+3&3])i=e,m=v}while(n.data!==t){if(!(r=n,n=n.next))return this}if(a=n.next)delete n.next;if(r)return a?r.next=a:delete r.next,this;if(!e)return this._root=a,this;a?e[v]=a:delete e[v];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(i)i[m]=n;else this._root=n}return this}function F0(t){for(var e=0,n=t.length;e<n;++e){this.remove(t[e])}return this}function I0(){return this._root}function H0(){var e=0;this.visit(function(t){if(!t.length)do{++e}while(t=t.next)});return e}function G0(t){var e=[],n,i=this._root,r,a,o,s,u;if(i)e.push(new z0(i,this._x0,this._y0,this._x1,this._y1));while(n=e.pop()){if(!t(i=n.node,a=n.x0,o=n.y0,s=n.x1,u=n.y1)&&i.length){var l=(a+s)/2,c=(o+u)/2;if(r=i[3])e.push(new z0(r,l,c,s,u));if(r=i[2])e.push(new z0(r,a,c,l,u));if(r=i[1])e.push(new z0(r,l,o,s,c));if(r=i[0])e.push(new z0(r,a,o,l,c))}}return this}function V0(t){var e=[],n=[],i;if(this._root)e.push(new z0(this._root,this._x0,this._y0,this._x1,this._y1));while(i=e.pop()){var r=i.node;if(r.length){var a,o=i.x0,s=i.y0,u=i.x1,l=i.y1,c=(o+u)/2,f=(s+l)/2;if(a=r[0])e.push(new z0(a,o,s,c,f));if(a=r[1])e.push(new z0(a,c,s,u,f));if(a=r[2])e.push(new z0(a,o,f,c,l));if(a=r[3])e.push(new z0(a,c,f,u,l))}n.push(i)}while(i=n.pop()){t(i.node,i.x0,i.y0,i.x1,i.y1)}return this}function U0(t){return t[0]}function W0(t){return arguments.length?(this._x=t,this):this._x}function q0(t){return t[1]}function K0(t){return arguments.length?(this._y=t,this):this._y}function Y0(t,e,n){var i=new X0(e==null?U0:e,n==null?q0:n,NaN,NaN,NaN,NaN);return t==null?i:i.addAll(t)}function X0(t,e,n,i,r,a){this._x=t;this._y=e;this._x0=n;this._y0=i;this._x1=r;this._y1=a;this._root=undefined}function Z0(t){var e={data:t.data},n=e;while(t=t.next){n=n.next={data:t.data}}return e}var $0=Y0.prototype=X0.prototype;$0.copy=function(){var t=new X0(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,i;if(!e)return t;if(!e.length)return t._root=Z0(e),t;n=[{source:e,target:t._root=new Array(4)}];while(e=n.pop()){for(var r=0;r<4;++r){if(i=e.source[r]){if(i.length)n.push({source:i,target:e.target[r]=new Array(4)});else e.target[r]=Z0(i)}}}return t};$0.add=T0;$0.addAll=O0;$0.cover=B0;$0.data=D0;$0.extent=N0;$0.find=j0;$0.remove=L0;$0.removeAll=F0;$0.root=I0;$0.size=H0;$0.visit=G0;$0.visitAfter=V0;$0.x=W0;$0.y=K0;function J0(t){return t.index}function Q0(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function t1(f){var a=J0,n=t,h,i=R0(30),d,o,s,g,p=1;if(f==null)f=[];function t(t){return 1/Math.min(s[t.source.index],s[t.target.index])}function e(t){for(var e=0,n=f.length;e<p;++e){for(var i=0,r,a,o,s,u,l,c;i<n;++i){r=f[i],a=r.source,o=r.target;s=o.x+o.vx-a.x-a.vx||M0();u=o.y+o.vy-a.y-a.vy||M0();l=Math.sqrt(s*s+u*u);l=(l-d[i])/l*t*h[i];s*=l,u*=l;o.vx-=s*(c=g[i]);o.vy-=u*c;a.vx+=s*(c=1-c);a.vy+=u*c}}}function r(){if(!o)return;var t,e=o.length,n=f.length,i=Le(o,a),r;for(t=0,s=new Array(e);t<n;++t){r=f[t],r.index=t;if(_typeof2(r.source)!=="object")r.source=Q0(i,r.source);if(_typeof2(r.target)!=="object")r.target=Q0(i,r.target);s[r.source.index]=(s[r.source.index]||0)+1;s[r.target.index]=(s[r.target.index]||0)+1}for(t=0,g=new Array(n);t<n;++t){r=f[t],g[t]=s[r.source.index]/(s[r.source.index]+s[r.target.index])}h=new Array(n),u();d=new Array(n),l()}function u(){if(!o)return;for(var t=0,e=f.length;t<e;++t){h[t]=+n(f[t],t,f)}}function l(){if(!o)return;for(var t=0,e=f.length;t<e;++t){d[t]=+i(f[t],t,f)}}e.initialize=function(t){o=t;r()};e.links=function(t){return arguments.length?(f=t,r(),e):f};e.id=function(t){return arguments.length?(a=t,e):a};e.iterations=function(t){return arguments.length?(p=+t,e):p};e.strength=function(t){return arguments.length?(n=typeof t==="function"?t:R0(+t),u(),e):n};e.distance=function(t){return arguments.length?(i=typeof t==="function"?t:R0(+t),l(),e):i};return e}function e1(t){return t.x}function n1(t){return t.y}var i1=10,r1=Math.PI*(3-Math.sqrt(5));function a1(f){var a,o=1,n=.001,s=1-Math.pow(n,1/300),u=0,l=.6,c=Le(),e=bs(r),i=es("tick","end");if(f==null)f=[];function r(){t();i.call("tick",a);if(o<n){e.stop();i.call("end",a)}}function t(t){var e,n=f.length,i;if(t===undefined)t=1;for(var r=0;r<t;++r){o+=(u-o)*s;c.each(function(t){t(o)});for(e=0;e<n;++e){i=f[e];if(i.fx==null)i.x+=i.vx*=l;else i.x=i.fx,i.vx=0;if(i.fy==null)i.y+=i.vy*=l;else i.y=i.fy,i.vy=0}}return a}function h(){for(var t=0,e=f.length,n;t<e;++t){n=f[t],n.index=t;if(n.fx!=null)n.x=n.fx;if(n.fy!=null)n.y=n.fy;if(isNaN(n.x)||isNaN(n.y)){var i=i1*Math.sqrt(t),r=t*r1;n.x=i*Math.cos(r);n.y=i*Math.sin(r)}if(isNaN(n.vx)||isNaN(n.vy)){n.vx=n.vy=0}}}function d(t){if(t.initialize)t.initialize(f);return t}h();return a={tick:t,restart:function t(){return e.restart(r),a},stop:function t(){return e.stop(),a},nodes:function t(e){return arguments.length?(f=e,h(),c.each(d),a):f},alpha:function t(e){return arguments.length?(o=+e,a):o},alphaMin:function t(e){return arguments.length?(n=+e,a):n},alphaDecay:function t(e){return arguments.length?(s=+e,a):+s},alphaTarget:function t(e){return arguments.length?(u=+e,a):u},velocityDecay:function t(e){return arguments.length?(l=1-e,a):1-l},force:function t(e,n){return arguments.length>1?(n==null?c.remove(e):c.set(e,d(n)),a):c.get(e)},find:function t(e,n,i){var r=0,a=f.length,o,s,u,l,c;if(i==null)i=Infinity;else i*=i;for(r=0;r<a;++r){l=f[r];o=e-l.x;s=n-l.y;u=o*o+s*s;if(u<i)c=l,i=u}return c},on:function t(e,n){return arguments.length>1?(i.on(e,n),a):i.on(e)}}}function o1(){var r,u,l,i=R0(-30),c,f=1,h=Infinity,d=.81;function e(t){var e,n=r.length,i=Y0(r,e1,n1).visitAfter(a);for(l=t,e=0;e<n;++e){u=r[e],i.visit(o)}}function n(){if(!r)return;var t,e=r.length,n;c=new Array(e);for(t=0;t<e;++t){n=r[t],c[n.index]=+i(n,t,r)}}function a(t){var e=0,n,i,r=0,a,o,s;if(t.length){for(a=o=s=0;s<4;++s){if((n=t[s])&&(i=Math.abs(n.value))){e+=n.value,r+=i,a+=i*n.x,o+=i*n.y}}t.x=a/r;t.y=o/r}else{n=t;n.x=n.data.x;n.y=n.data.y;do{e+=c[n.data.index]}while(n=n.next)}t.value=e}function o(t,e,n,i){if(!t.value)return true;var r=t.x-u.x,a=t.y-u.y,o=i-e,s=r*r+a*a;if(o*o/d<s){if(s<h){if(r===0)r=M0(),s+=r*r;if(a===0)a=M0(),s+=a*a;if(s<f)s=Math.sqrt(f*s);u.vx+=r*t.value*l/s;u.vy+=a*t.value*l/s}return true}else if(t.length||s>=h)return;if(t.data!==u||t.next){if(r===0)r=M0(),s+=r*r;if(a===0)a=M0(),s+=a*a;if(s<f)s=Math.sqrt(f*s)}do{if(t.data!==u){o=c[t.data.index]*l/s;u.vx+=r*o;u.vy+=a*o}}while(t=t.next)}e.initialize=function(t){r=t;n()};e.strength=function(t){return arguments.length?(i=typeof t==="function"?t:R0(+t),n(),e):i};e.distanceMin=function(t){return arguments.length?(f=t*t,e):Math.sqrt(f)};e.distanceMax=function(t){return arguments.length?(h=t*t,e):Math.sqrt(h)};e.theta=function(t){return arguments.length?(d=t*t,e):Math.sqrt(d)};return e}function s1(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){s1=function t(e){return typeof e}}else{s1=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return s1(t)}function u1(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function l1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function c1(t,e,n){if(e)l1(t.prototype,e);if(n)l1(t,n);return t}function f1(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){f1=Reflect.get}else{f1=function t(e,n,i){var r=h1(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return f1(t,e,n||t)}function h1(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=_1(t);if(t===null)break}return t}function d1(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)g1(t,e)}function g1(t,e){g1=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return g1(t,e)}function p1(r){var a=y1();return function t(){var e=_1(r),n;if(a){var i=_1(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return v1(this,n)}}function v1(t,e){if(e&&(s1(e)==="object"||typeof e==="function")){return e}return m1(t)}function m1(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function y1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function _1(t){_1=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return _1(t)}var b1=function(t){d1(q,t);var e=p1(q);function q(){var l;u1(this,q);l=e.call(this);l._links=[];l._linkSize=cw(1);l._linkSizeMin=1;l._linkSizeScale="sqrt";l._noDataMessage=false;l._nodes=[];l._on["click.shape"]=function(t,e){l._tooltipClass.data([]).render();if(l._hover&&l._drawDepth>=l._groupBy.length-1){var n="".concat(l._nodeGroupBy&&l._nodeGroupBy[l._drawDepth](t,e)?l._nodeGroupBy[l._drawDepth](t,e):l._id(t,e));if(l._focus&&l._focus===n){l.active(false);l._on.mouseenter.bind(m1(l))(t,e);l._focus=undefined;l._zoomToBounds(null)}else{l.hover(false);var i=l._linkLookup[n],r=l._nodeLookup[n];var a=[n];var o=[r.x-r.r,r.x+r.r],s=[r.y-r.r,r.y+r.r];i.forEach(function(t){a.push(t.id);if(t.x-t.r<o[0])o[0]=t.x-t.r;if(t.x+t.r>o[1])o[1]=t.x+t.r;if(t.y-t.r<s[0])s[0]=t.y-t.r;if(t.y+t.r>s[1])s[1]=t.y+t.r});l.active(function(t,e){if(t.source&&t.target)return t.source.id===n||t.target.id===n;else return a.includes("".concat(l._ids(t,e)[l._drawDepth]))});l._focus=n;var u=oO(l._container.node());o=o.map(function(t){return t*u.k+u.x});s=s.map(function(t){return t*u.k+u.y});l._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}}};l._on["click.legend"]=function(t,e){var n=l._id(t);var i=l._ids(t);i=i[i.length-1];if(l._hover&&l._drawDepth>=l._groupBy.length-1){if(l._focus&&l._focus===n){l.active(false);l._focus=undefined;l._zoomToBounds(null)}else{l.hover(false);var r=n.map(function(t){return l._nodeLookup[t]});var a=["".concat(i)];var o=[r[0].x-r[0].r,r[0].x+r[0].r],s=[r[0].y-r[0].r,r[0].y+r[0].r];r.forEach(function(t){a.push(t.id);if(t.x-t.r<o[0])o[0]=t.x-t.r;if(t.x+t.r>o[1])o[1]=t.x+t.r;if(t.y-t.r<s[0])s[0]=t.y-t.r;if(t.y+t.r>s[1])s[1]=t.y+t.r});l.active(function(t,e){if(t.source&&t.target)return a.includes(t.source.id)&&a.includes(t.target.id);else{var n=l._ids(t,e);return a.includes("".concat(n[n.length-1]))}});l._focus=n;var u=oO(l._container.node());o=o.map(function(t){return t*u.k+u.x});s=s.map(function(t){return t*u.k+u.y});l._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}l._on.mouseenter.bind(m1(l))(t,e);l._on["mousemove.legend"].bind(m1(l))(t,e)}};l._on.mouseenter=function(){};l._on["mouseleave.shape"]=function(){l.hover(false)};var u=l._on["mousemove.shape"];l._on["mousemove.shape"]=function(t,e){u(t,e);var n="".concat(l._nodeGroupBy&&l._nodeGroupBy[l._drawDepth](t,e)?l._nodeGroupBy[l._drawDepth](t,e):l._id(t,e)),i=l._linkLookup[n],r=l._nodeLookup[n];var a=[n];var o=[r.x-r.r,r.x+r.r],s=[r.y-r.r,r.y+r.r];i.forEach(function(t){a.push(t.id);if(t.x-t.r<o[0])o[0]=t.x-t.r;if(t.x+t.r>o[1])o[1]=t.x+t.r;if(t.y-t.r<s[0])s[0]=t.y-t.r;if(t.y+t.r>s[1])s[1]=t.y+t.r});l.hover(function(t,e){if(t.source&&t.target)return t.source.id===n||t.target.id===n;else return a.includes("".concat(l._ids(t,e)[l._drawDepth]))})};l._sizeMin=5;l._sizeScale="sqrt";l._shape=cw("Circle");l._shapeConfig=el(l._shapeConfig,{ariaLabel:function t(e,n){var i=l._size?", ".concat(l._size(e,n)):"";return"".concat(l._drawLabel(e,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee"}});l._x=$u("x");l._y=$u("y");l._zoom=true;return l}c1(q,[{key:"_draw",value:function t(e){var r=this;f1(_1(q.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,i="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),a=this._transition,o=this._width-this._margin.left-this._margin.right;var s=this._filteredData.reduce(function(t,e,n){t[r._id(e,n)]=e;return t},{});var u=this._nodes.reduce(function(t,e,n){t[r._nodeGroupBy?r._nodeGroupBy[r._drawDepth](e,n):e.id]=e;return t},{});u=Array.from(new Set(Object.keys(s).concat(Object.keys(u)))).map(function(t,e){var n=s[t],i=u[t];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:e,id:t,fx:n!==undefined&&r._x(n)!==undefined?r._x(n):r._x(i),fy:n!==undefined&&r._y(n)!==undefined?r._y(n):r._y(i),node:i,r:r._size?n!==undefined&&r._size(n)!==undefined?r._size(n):r._size(i):r._sizeMin,shape:n!==undefined&&r._shape(n)!==undefined?r._shape(n):r._shape(i)}}).filter(function(t){return t});var l=this._nodeLookup=u.reduce(function(t,e){t[e.id]=e;return t},{});var c=u.map(function(t){return t.node});var f=this._links.map(function(t){var e=s1(t.source);return{size:r._linkSize(t),source:e==="number"?u[c.indexOf(r._nodes[t.source])]:e==="string"?l[t.source]:l[t.source.id],target:e==="number"?u[c.indexOf(r._nodes[t.target])]:e==="string"?l[t.target]:l[t.target.id]}});this._linkLookup=f.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var h=u.some(function(t){return t.fx===undefined||t.fy===undefined});if(h){var d=rr().domain(ue(f,function(t){return t.size})).range([.1,.5]);var g=a1().force("link",t1(f).id(function(t){return t.id}).distance(1).strength(function(t){return d(t.size)}).iterations(4)).force("charge",o1().strength(-1)).stop();var p=300;var v=.001;var m=1-Math.pow(v,1/p);g.velocityDecay(0);g.alphaMin(v);g.alphaDecay(m);g.alphaDecay(0);g.nodes(u);g.tick(p).stop();var y=BC(u.map(function(t){return[t.vx,t.vy]}));var _=gE(y),b=_.angle,w=_.cx,x=_.cy;u.forEach(function(t){var e=JC([t.vx,t.vy],-1*(Math.PI/180*b),[w,x]);t.fx=e[0];t.fy=e[1]})}var k=ue(u.map(function(t){return t.fx})),S=ue(u.map(function(t){return t.fy}));var C=rr().domain(k).range([0,o]),E=rr().domain(S).range([0,n]);var A=(k[1]-k[0])/(S[1]-S[0]),R=o/n;if(A>R){var M=n*R/A;E.range([(n-M)/2,n-(n-M)/2])}else{var T=o*A/R;C.range([(o-T)/2,o-(o-T)/2])}u.forEach(function(t){t.x=C(t.fx);t.y=E(t.fy)});var P=ue(u.map(function(t){return t.r}));var O=this._sizeMax||ce([1,de(he(u.map(function(e){return u.map(function(t){return e===t?null:eC([e.x,e.y],[t.x,t.y])})})))/2]);var B=na["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(P).range([P[0]===P[1]?O:de([O/2,this._sizeMin]),O]),D=C.domain(),N=E.domain();var z=D[1]-D[0],j=N[1]-N[0];u.forEach(function(t){var e=B(t.r);if(D[0]>C.invert(t.x-e))D[0]=C.invert(t.x-e);if(D[1]<C.invert(t.x+e))D[1]=C.invert(t.x+e);if(N[0]>E.invert(t.y-e))N[0]=E.invert(t.y-e);if(N[1]<E.invert(t.y+e))N[1]=E.invert(t.y+e)});var L=D[1]-D[0],F=N[1]-N[0];O*=de([z/L,j/F]);B.range([P[0]===P[1]?O:de([O/2,this._sizeMin]),O]);C.domain(D);E.domain(N);u.forEach(function(t){t.x=C(t.fx);t.fx=t.x;t.y=E(t.fy);t.fy=t.y;t.r=B(t.r);t.width=t.r*2;t.height=t.r*2});this._container=this._select.selectAll("svg.d3plus-network").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-network").attr("opacity",0).attr("width",o).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color","transparent").merge(this._container);this._container.transition(this._transition).attr("opacity",1).attr("width",o).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var I=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);I.enter().append("rect").attr("class","d3plus-network-hitArea").merge(I).attr("width",o).attr("height",n).attr("fill","transparent").on("click",function(){if(r._focus){r.active(false);r._focus=undefined;r._zoomToBounds(null)}});this._zoomGroup=this._container.selectAll("g.d3plus-network-zoomGroup").data([0]);var H=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup);var G=ue(f,function(t){return t.size});if(G[0]!==G[1]){var V=na["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(G).range([this._linkSizeMin,B.range()[0]]);f.forEach(function(t){t.size=V(t.size)})}var U=lw.bind(this)(this._shapeConfig,"edge","Path");delete U.on;this._shapes.push((new bR).config(U).strokeWidth(function(t){return t.size}).activeStyle({"stroke-width":function t(e){return e.size}}).d(function(t){return"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(f).select(fw("g.d3plus-network-links",{parent:H,transition:a,enter:{transform:i},update:{transform:i}}).node()).render());var W={label:function t(e){return u.length<=r._dataCutoff||r._hover&&r._hover(e)||r._active&&r._active(e)?r._drawLabel(e.data||e.node,e.i):false},select:fw("g.d3plus-network-nodes",{parent:H,transition:a,enter:{transform:i},update:{transform:i}}).node()};Fe().key(function(t){return t.shape}).entries(u).forEach(function(t){r._shapes.push((new wR[t.key]).config(lw.bind(r)(r._shapeConfig,"shape",t.key)).config(W).config(W[t.key]||{}).data(t.values).render())});return this}},{key:"hover",value:function t(e){this._hover=e;if(this._nodes.length<this._dataCutoff){this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e)}return this}},{key:"links",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="links"});var r=[lW.bind(this),e,n,"links"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:cw(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return $u(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="nodes"});var r=[lW.bind(this),e,n,"nodes"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:$u(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=$u(e);if(!this._aggs[e])this._aggs[e]=fe}return this}else return this._x}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=$u(e);if(!this._aggs[e])this._aggs[e]=fe}return this}else return this._y}}]);return q}(mZ);function w1(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){w1=function t(e){return typeof e}}else{w1=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return w1(t)}function x1(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function k1(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function S1(t,e,n){if(e)k1(t.prototype,e);if(n)k1(t,n);return t}function C1(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){C1=Reflect.get}else{C1=function t(e,n,i){var r=E1(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return C1(t,e,n||t)}function E1(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=B1(t);if(t===null)break}return t}function A1(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)R1(t,e)}function R1(t,e){R1=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return R1(t,e)}function M1(r){var a=O1();return function t(){var e=B1(r),n;if(a){var i=B1(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return T1(this,n)}}function T1(t,e){if(e&&(w1(e)==="object"||typeof e==="function")){return e}return P1(t)}function P1(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function O1(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function B1(t){B1=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return B1(t)}var D1=function(t){A1(L,t);var e=M1(L);function L(){var u;x1(this,L);u=e.call(this);u._links=[];u._linkSize=cw(1);u._linkSizeMin=1;u._linkSizeScale="sqrt";u._noDataMessage=false;u._nodes=[];u._on.mouseenter=function(){};u._on["mouseleave.shape"]=function(){u.hover(false)};var l=u._on["mousemove.shape"];u._on["mousemove.shape"]=function(t,e){l(t,e);if(u._focus&&u._focus===t.id){u.hover(false);u._on.mouseenter.bind(P1(u))(t,e);u._focus=undefined}else{var n=u._nodeGroupBy&&u._nodeGroupBy[u._drawDepth](t,e)?u._nodeGroupBy[u._drawDepth](t,e):u._id(t,e),i=u._linkLookup[n],r=u._nodeLookup[n];var a=[r.id];var o=[r.x-r.r,r.x+r.r],s=[r.y-r.r,r.y+r.r];i.forEach(function(t){a.push(t.id);if(t.x-t.r<o[0])o[0]=t.x-t.r;if(t.x+t.r>o[1])o[1]=t.x+t.r;if(t.y-t.r<s[0])s[0]=t.y-t.r;if(t.y+t.r>s[1])s[1]=t.y+t.r});u.hover(function(t,e){if(t.source&&t.target)return t.source.id===r.id||t.target.id===r.id;else return a.includes(u._ids(t,e)[u._drawDepth])})}};u._on["click.shape"]=function(t){u._center=t.id;u._margin={bottom:0,left:0,right:0,top:0};u._padding={bottom:0,left:0,right:0,top:0};u._draw()};u._sizeMin=5;u._sizeScale="sqrt";u._shape=cw("Circle");u._shapeConfig=el(u._shapeConfig,{ariaLabel:function t(e,n){var i=u._size?", ".concat(u._size(e,n)):"";return"".concat(u._drawLabel(e,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee",strokeWidth:1}});return u}S1(L,[{key:"_draw",value:function t(e){var l=this;C1(B1(L.prototype),"_draw",this).call(this,e);var r=this._filteredData.reduce(function(t,e,n){t[l._id(e,n)]=e;return t},{});var c=this._nodes;if(!this._nodes.length&&this._links.length){var n=Array.from(new Set(this._links.reduce(function(t,e){return t.concat([e.source,e.target])},[])));c=n.map(function(t){return w1(t)==="object"?t:{id:t}})}c=c.reduce(function(t,e,n){t[l._nodeGroupBy?l._nodeGroupBy[l._drawDepth](e,n):l._id(e,n)]=e;return t},{});c=Array.from(new Set(Object.keys(r).concat(Object.keys(c)))).map(function(t,e){var n=r[t],i=c[t];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:e,id:t,node:i,shape:n!==undefined&&l._shape(n)!==undefined?l._shape(n):l._shape(i)}}).filter(function(t){return t});var i=this._nodeLookup=c.reduce(function(t,e){t[e.id]=e;return t},{});var a=this._links.map(function(n){var t=["source","target"];var e=t.reduce(function(t,e){t[e]=typeof n[e]==="number"?c[n[e]]:i[n[e].id||n[e]];return t},{});e.size=l._linkSize(n);return e});var o=a.reduce(function(t,e){if(!t[e.source.id]){t[e.source.id]=[]}t[e.source.id].push(e);if(!t[e.target.id]){t[e.target.id]=[]}t[e.target.id].push(e);return t},{});var f=this._height-this._margin.top-this._margin.bottom,s="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),u=this._transition,h=this._width-this._margin.left-this._margin.right;var d=[],g=de([f,h])/2,p=g/3;var v=p,m=p*2;var y=i[this._center];y.x=h/2;y.y=f/2;y.r=this._sizeMin?ce([this._sizeMin,v*.65]):this._sizeMax?de([this._sizeMax,v*.65]):v*.65;var _=[y],b=[];o[this._center].forEach(function(t){var e=t.source.id===l._center?t.target:t.source;e.edges=o[e.id].filter(function(t){return t.source.id!==l._center||t.target.id!==l._center});e.edge=t;_.push(e);b.push(e)});b.sort(function(t,e){return t.edges.length-e.edges.length});var w=[];var x=0;b.forEach(function(t){var r=t.id;t.edges=t.edges.filter(function(t){return!_.includes(t.source)&&t.target.id===r||!_.includes(t.target)&&t.source.id===r});x+=t.edges.length||1;t.edges.forEach(function(t){var e=t.source,n=t.target;var i=n.id===r?e:n;_.push(i)})});var k=Math.PI*2;var S=0;b.forEach(function(a,t){var o=a.edges.length||1;var e=k/x*o;if(t===0){S-=e/2}var s=S+e/2-k/4;a.radians=s;a.x=h/2+v*Math.cos(s);a.y=f/2+v*Math.sin(s);S+=e;a.edges.forEach(function(t,e){var n=t.source.id===a.id?t.target:t.source;var i=k/x;var r=s-i*o/2+i/2+i*e;n.radians=r;n.x=h/2+m*Math.cos(r);n.y=f/2+m*Math.sin(r);w.push(n)})});var C=p/2;var E=p/4;var A=C/2-4;if(C/2-4<8){A=de([C/2,8])}var R=E/2-4;if(E/2-4<4){R=de([E/2,4])}if(R>p/10){R=p/10}if(R>A&&R>10){R=A*.75}if(A>R*1.5){A=R*1.5}A=Math.floor(A);R=Math.floor(R);var M;if(this._size){var T=ue(r,function(t){return t.size});if(T[0]===T[1]){T[0]=0}M=rr().domain(T).rangeRound([3,de([A,R])]);var P=y.size;y.r=M(P)}else{M=rr().domain([1,2]).rangeRound([A,R])}w.forEach(function(t){t.ring=2;var e=l._size?t.size:2;t.r=l._sizeMin?ce([l._sizeMin,M(e)]):l._sizeMax?de([l._sizeMax,M(e)]):M(e)});b.forEach(function(t){t.ring=1;var e=l._size?t.size:1;t.r=l._sizeMin?ce([l._sizeMin,M(e)]):l._sizeMax?de([l._sizeMax,M(e)]):M(e)});c=[y].concat(b).concat(w);b.forEach(function(u){var t=["source","target"];var n=u.edge;t.forEach(function(e){n[e]=c.find(function(t){return t.id===n[e].id})});d.push(n);o[u.id].forEach(function(i){var e=i.source.id===u.id?i.target:i.source;if(e.id!==y.id){var r=w.find(function(t){return t.id===e.id});if(!r){r=b.find(function(t){return t.id===e.id})}if(r){i.spline=true;var a=h/2;var o=f/2;var s=v+(m-v)*.5;var t=["source","target"];t.forEach(function(e,t){i["".concat(e,"X")]=i[e].x+Math.cos(i[e].ring===2?i[e].radians+Math.PI:i[e].radians)*i[e].r;i["".concat(e,"Y")]=i[e].y+Math.sin(i[e].ring===2?i[e].radians+Math.PI:i[e].radians)*i[e].r;i["".concat(e,"BisectX")]=a+s*Math.cos(i[e].radians);i["".concat(e,"BisectY")]=o+s*Math.sin(i[e].radians);i[e]=c.find(function(t){return t.id===i[e].id});if(i[e].edges===undefined)i[e].edges={};var n=t===0?i.target.id:i.source.id;if(i[e].id===u.id){i[e].edges[n]={angle:u.radians+Math.PI,radius:p/2}}else{i[e].edges[n]={angle:r.radians,radius:p/2}}});d.push(i)}}})});c.forEach(function(t){if(t.id!==l._center){var e=l._shapeConfig.labelConfig.fontSize&&l._shapeConfig.labelConfig.fontSize(t)||11;var n=e*1.4;var i=n*2;var r=5;var a=p-t.r;var o=t.radians*(180/Math.PI);var s=t.r+r;var u="start";if(o<-90||o>90){s=-t.r-a-r;u="end";o+=180}t.labelBounds={x:s,y:-n/2,width:a,height:i};t.rotate=o;t.textAnchor=u}else{t.labelBounds={x:-v/2,y:-v/2,width:v,height:v}}});this._linkLookup=a.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var O=ue(a,function(t){return t.size});if(O[0]!==O[1]){var B=de(c,function(t){return t.r});var D=na["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(O).range([this._linkSizeMin,B]);a.forEach(function(t){t.size=D(t.size)})}var N=lw.bind(this)(this._shapeConfig,"edge","Path");delete N.on;this._shapes.push((new bR).config(N).strokeWidth(function(t){return t.size}).id(function(t){return"".concat(t.source.id,"_").concat(t.target.id)}).d(function(t){return t.spline?"M".concat(t.sourceX,",").concat(t.sourceY,"C").concat(t.sourceBisectX,",").concat(t.sourceBisectY," ").concat(t.targetBisectX,",").concat(t.targetBisectY," ").concat(t.targetX,",").concat(t.targetY):"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(d).select(fw("g.d3plus-rings-links",{parent:this._select,transition:u,enter:{transform:s},update:{transform:s}}).node()).render());var z=this;var j={label:function t(e){return c.length<=l._dataCutoff||l._hover&&l._hover(e)||l._active&&l._active(e)?l._drawLabel(e.data||e.node,e.i):false},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:function t(e){return e.id===l._center?lw.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.fontColor(e):Ow(lw.bind(z)(z._shapeConfig,"shape",e.key).fill(e))},fontResize:function t(e){return e.id===l._center},padding:0,textAnchor:function t(e){return i[e.id].textAnchor||lw.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.textAnchor},verticalAlign:function t(e){return e.id===l._center?"middle":"top"}},rotate:function t(e){return i[e.id].rotate||0},select:fw("g.d3plus-rings-nodes",{parent:this._select,transition:u,enter:{transform:s},update:{transform:s}}).node()};Fe().key(function(t){return t.shape}).entries(c).forEach(function(t){l._shapes.push((new wR[t.key]).config(lw.bind(l)(l._shapeConfig,"shape",t.key)).config(j).data(t.values).render())});return this}},{key:"center",value:function t(e){return arguments.length?(this._center=e,this):this._center}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="links"});var r=[lW.bind(this),e,n,"links"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:cw(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return $u(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="nodes"});var r=[lW.bind(this),e,n,"nodes"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:$u(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}}]);return L}(mZ);function N1(t){return t.target.depth}function z1(t){return t.depth}function j1(t,e){return e-1-t.height}function L1(t,e){return t.sourceLinks.length?t.depth:e-1}function F1(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?de(t.sourceLinks,N1)-1:0}function I1(t){return function(){return t}}function H1(t,e){return V1(t.source,e.source)||t.index-e.index}function G1(t,e){return V1(t.target,e.target)||t.index-e.index}function V1(t,e){return t.y0-e.y0}function U1(t){return t.value}function W1(t){return t.index}function q1(t){return t.nodes}function K1(t){return t.links}function Y1(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function X1(){var o=0,f=0,s=1,h=1,u=24,d=8,e=W1,l=L1,g,p,n=q1,i=K1,v=6;function r(){var t={nodes:n.apply(null,arguments),links:i.apply(null,arguments)};a(t);c(t);m(t);y(t);b(t);return t}r.update=function(t){b(t);return t};r.nodeId=function(t){return arguments.length?(e=typeof t==="function"?t:I1(t),r):e};r.nodeAlign=function(t){return arguments.length?(l=typeof t==="function"?t:I1(t),r):l};r.nodeSort=function(t){return arguments.length?(g=t,r):g};r.nodeWidth=function(t){return arguments.length?(u=+t,r):u};r.nodePadding=function(t){return arguments.length?(d=+t,r):d};r.nodes=function(t){return arguments.length?(n=typeof t==="function"?t:I1(t),r):n};r.links=function(t){return arguments.length?(i=typeof t==="function"?t:I1(t),r):i};r.linkSort=function(t){return arguments.length?(p=t,r):p};r.size=function(t){return arguments.length?(o=f=0,s=+t[0],h=+t[1],r):[s-o,h-f]};r.extent=function(t){return arguments.length?(o=+t[0][0],s=+t[1][0],f=+t[0][1],h=+t[1][1],r):[[o,f],[s,h]]};r.iterations=function(t){return arguments.length?(v=+t,r):v};function a(t){t.nodes.forEach(function(t,e){t.index=e;t.sourceLinks=[];t.targetLinks=[]});var r=Le(t.nodes,e);t.links.forEach(function(t,e){t.index=e;var n=t.source,i=t.target;if(_typeof2(n)!=="object")n=t.source=Y1(r,n);if(_typeof2(i)!=="object")i=t.target=Y1(r,i);n.sourceLinks.push(t);i.targetLinks.push(t)})}function c(t){t.nodes.forEach(function(t){t.value=Math.max(ge(t.sourceLinks,U1),ge(t.targetLinks,U1))})}function m(t){var e,n,i,r=t.nodes.length;for(e=t.nodes,n=[],i=0;e.length;++i,e=n,n=[]){if(i>r)throw new Error("circular link");e.forEach(function(t){t.depth=i;t.sourceLinks.forEach(function(t){if(n.indexOf(t.target)<0){n.push(t.target)}})})}for(e=t.nodes,n=[],i=0;e.length;++i,e=n,n=[]){if(i>r)throw new Error("circular link");e.forEach(function(t){t.height=i;t.targetLinks.forEach(function(t){if(n.indexOf(t.source)<0){n.push(t.source)}})})}var a=(s-o-u)/(i-1);t.nodes.forEach(function(t){t.layer=Math.max(0,Math.min(i-1,Math.floor(l.call(null,t,i))));t.x1=(t.x0=o+t.layer*a)+u})}function y(t){var e=Fe().key(function(t){return t.x0}).sortKeys(k).entries(t.nodes).map(function(t){return t.values});o();for(var n=0,i=v;n<i;++n){var r=Math.pow(.99,n);var a=(n+1)/i;_(t);u(r);l(a);c(a);_(t);s(r);l(a);c(a)}function o(){var n=de(e,function(t){return(h-f-(t.length-1)*d)/ge(t,U1)});e.forEach(function(t){if(g!=null)t.sort(g);var e=f;t.forEach(function(t){t.y0=e;t.y1=e+t.value*n;e=t.y1+d})});t.links.forEach(function(t){t.width=t.value*n});if(p!=null)t.nodes.forEach(function(t){t.sourceLinks.sort(p);t.targetLinks.sort(p)})}function s(c){e.slice(1).forEach(function(t){t.forEach(function(t){var e=0;var n=0;var i=_createForOfIteratorHelper(t.targetLinks),r;try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.source,s=a.value;var u=s*(t.layer-o.layer);e+=w(o,t)*u;n+=u}}catch(t){i.e(t)}finally{i.f()}if(!(n>0))return;var l=(e/n-t.y0)*c;t.y0+=l;t.y1+=l})})}function u(c){e.slice(0,-1).reverse().forEach(function(t){t.forEach(function(t){var e=0;var n=0;var i=_createForOfIteratorHelper(t.sourceLinks),r;try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.target,s=a.value;var u=s*(o.layer-t.layer);e+=x(t,o)*u;n+=u}}catch(t){i.e(t)}finally{i.f()}if(!(n>0))return;var l=(e/n-t.y0)*c;t.y0+=l;t.y1+=l})})}function l(o){e.forEach(function(t){var e,n,i=f,r=t.length,a;if(g===undefined)t.sort(V1);for(a=0;a<r;++a){e=t[a];n=(i-e.y0)*o;if(n>1e-6)e.y0+=n,e.y1+=n;i=e.y1+d}})}function c(o){e.forEach(function(t){var e,n,i=h,r=t.length,a;if(g===undefined)t.sort(V1);for(a=r-1;a>=0;--a){e=t[a];n=(e.y1-i)*o;if(n>1e-6)e.y0-=n,e.y1-=n;i=e.y0-d}})}}function _(t){if(p===undefined)t.nodes.forEach(function(t){t.sourceLinks.sort(G1);t.targetLinks.sort(H1)})}function b(t){_(t);t.nodes.forEach(function(t){var e=t.y0,n=e;t.sourceLinks.forEach(function(t){t.y0=e+t.width/2,e+=t.width});t.targetLinks.forEach(function(t){t.y1=n+t.width/2,n+=t.width})})}function w(t,e){var n=t.y0-(t.sourceLinks.length-1)*d/2;var i=_createForOfIteratorHelper(t.sourceLinks),r;try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.target,s=a.width;if(o===e)break;n+=s+d}}catch(t){i.e(t)}finally{i.f()}var u=_createForOfIteratorHelper(e.targetLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.source,h=c.width;if(f===t)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}function x(t,e){var n=e.y0-(e.targetLinks.length-1)*d/2;var i=_createForOfIteratorHelper(e.targetLinks),r;try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.source,s=a.width;if(o===t)break;n+=s+d}}catch(t){i.e(t)}finally{i.f()}var u=_createForOfIteratorHelper(t.sourceLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.target,h=c.width;if(f===e)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}return r}function Z1(t){return[t.source.x1,t.y0]}function $1(t){return[t.target.x0,t.y1]}function J1(){return Ox().source(Z1).target($1)}function Q1(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Q1=function t(e){return typeof e}}else{Q1=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Q1(t)}function t2(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function e2(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function n2(t,e,n){if(e)e2(t.prototype,e);if(n)e2(t,n);return t}function i2(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){i2=Reflect.get}else{i2=function t(e,n,i){var r=r2(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return i2(t,e,n||t)}function r2(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=f2(t);if(t===null)break}return t}function a2(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)o2(t,e)}function o2(t,e){o2=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return o2(t,e)}function s2(r){var a=c2();return function t(){var e=f2(r),n;if(a){var i=f2(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return u2(this,n)}}function u2(t,e){if(e&&(Q1(e)==="object"||typeof e==="function")){return e}return l2(t)}function l2(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function c2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function f2(t){f2=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return f2(t)}var h2={center:F1,justify:L1,left:z1,right:j1};var d2=function(t){a2(c,t);var e=s2(c);function c(){var s;t2(this,c);s=e.call(this);s._nodeId=$u("id");s._links=$u("links");s._linksSource="source";s._linksTarget="target";s._noDataMessage=false;s._nodes=$u("nodes");s._nodeAlign=h2.justify;s._nodePadding=8;s._nodeWidth=30;s._on.mouseenter=function(){};s._on["mouseleave.shape"]=function(){s.hover(false)};var u=s._on["mousemove.shape"];s._on["mousemove.shape"]=function(t,e){u(t,e);if(s._focus&&s._focus===t.id){s.hover(false);s._on.mouseenter.bind(l2(s))(t,e);s._focus=undefined}else{var n=s._nodeId(t,e),i=s._nodeLookup[n],r=Object.keys(s._nodeLookup).reduce(function(t,e){t[s._nodeLookup[e]]=!isNaN(e)?parseInt(e,10):e;return t},{});var a=s._linkLookup[i];var o=[n];a.forEach(function(t){o.push(r[t])});s.hover(function(t,e){if(t.source&&t.target){return t.source.id===n||t.target.id===n}else{return o.includes(s._nodeId(t,e))}})}};s._path=J1();s._sankey=X1();s._shape=cw("Rect");s._shapeConfig=el(s._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},label:false,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},Rect:{}});s._value=cw(1);return s}n2(c,[{key:"_draw",value:function t(e){var r=this;i2(f2(c.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var a=Array.isArray(this._nodes)?this._nodes:this._links.reduce(function(t,e){if(!t.includes(e[r._linksSource]))t.push(e[r._linksSource]);if(!t.includes(e[r._linksTarget]))t.push(e[r._linksTarget]);return t},[]).map(function(t){return{id:t}});var o=a.map(function(t,e){return{__d3plus__:true,data:t,i:e,id:r._nodeId(t,e),node:t,shape:"Rect"}});var s=this._nodeLookup=o.reduce(function(t,e,n){t[e.id]=n;return t},{});var u=this._links.map(function(n,t){var e=[r._linksSource,r._linksTarget];var i=e.reduce(function(t,e){t[e]=s[n[e]];return t},{});return{source:i[r._linksSource],target:i[r._linksTarget],value:r._value(n,t)}});this._linkLookup=u.reduce(function(t,e){if(!t[e.source])t[e.source]=[];t[e.source].push(e.target);if(!t[e.target])t[e.target]=[];t[e.target].push(e.source);return t},{});var l="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(o).links(u).size([i,n])();this._shapes.push((new bR).config(this._shapeConfig.Path).data(u).d(this._path).select(fw("g.d3plus-Links",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).render());Fe().key(function(t){return t.shape}).entries(o).forEach(function(t){r._shapes.push((new wR[t.key]).data(t.values).height(function(t){return t.y1-t.y0}).width(function(t){return t.x1-t.x0}).x(function(t){return(t.x1+t.x0)/2}).y(function(t){return(t.y1+t.y0)/2}).select(fw("g.d3plus-sankey-nodes",{parent:r._select,enter:{transform:l},update:{transform:l}}).node()).config(lw.bind(r)(r._shapeConfig,"shape",t.key)).render())});return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="links"});var r=[lW.bind(this),e,n,"links"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._links}},{key:"linksSource",value:function t(e){return arguments.length?(this._linksSource=e,this):this._linksSource}},{key:"linksTarget",value:function t(e){return arguments.length?(this._linksTarget=e,this):this._linksTarget}},{key:"nodeAlign",value:function t(e){return arguments.length?(this._nodeAlign=typeof e==="function"?e:h2[e],this):this._nodeAlign}},{key:"nodeId",value:function t(e){return arguments.length?(this._nodeId=typeof e==="function"?e:$u(e),this):this._nodeId}},{key:"nodes",value:function t(e,n){if(arguments.length){var i=this._queue.find(function(t){return t[3]==="nodes"});var r=[lW.bind(this),e,n,"nodes"];if(i)this._queue[this._queue.indexOf(i)]=r;else this._queue.push(r);return this}return this._nodes}},{key:"nodePadding",value:function t(e){return arguments.length?(this._nodePadding=e,this):this._nodePadding}},{key:"nodeWidth",value:function t(e){return arguments.length?(this._nodeWidth=e,this):this._nodeWidth}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:$u(e),this):this._value}}]);return c}(mZ);var g2=function t(e,n,i){if(e.padding)e.padding(.5);else{var r=n.map(function(t){return t[i]}).reduce(function(t,e,n,i){if(!n)return t;var r=i[n-1];if(!t||e-r<t)return e-r;else return t},0);var a=e.domain().slice();if(i==="y")a.reverse();a[0]=new Date(+a[0]-r/2);a[1]=new Date(+a[1]+r/2);if(i==="y")a.reverse();e.domain(a)}};function p2(t){var e=this;var n=t.data,i=t.x,r=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?r:i;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,p;if(this._stacked){var v=Fe().key(function(t){return"".concat(t[e._discrete],"_").concat(t.group)}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});p=v.map(function(t){return ge(t.filter(function(t){return t>0}))});g=v.map(function(t){return ge(t.filter(function(t){return t<0}))})}else{p=n.map(function(t){return t[d?c:l]});g=p}var m=f(ce(p));if(d?m<f(0):m>f(0))m+=d?-u:u;m=f.invert(m);var y=f(de(g));if(d?y>f(0):y<f(0))y+=d?u:-u;y=f.invert(y);if(m>h[1])h[1]=m;if(y<h[0])h[0]=y;if(d)h.reverse();f.domain(h);g2(d?i:r,n,this._discrete);return[i,r]}function v2(t){var e=this;var n=t.data,i=t.x,r=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?r:i;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,p;if(this._stacked){var v=Fe().key(function(t){return t[e._discrete]}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});p=v.map(function(t){return ge(t.filter(function(t){return t>0}))});g=v.map(function(t){return ge(t.filter(function(t){return t<0}))})}else{p=n.map(function(t){return t[d?c:l]});g=p}var m=f(ce(p));m+=d?-u:u;m=f.invert(m);var y=f(de(g));y+=d?u:-u;y=f.invert(y);if(m>h[1])h[1]=m;if(y<h[0])h[0]=y;if(d)h.reverse();f.domain(h);g2(d?i:r,n,this._discrete);return[i,r]}function m2(f,h,d,g,t,e,p,v){if(v){e=e.slice().reverse();t=t.slice().reverse()}var n=Math.abs(Math.log(e[1]-e[0])/10);var i=function t(){var e=f.copy();var n=false;if(h==="log"){var i=f.domain().slice(),r=f.range().slice();if(v){i=i.reverse();r=r.reverse()}n=i[0]*i[1]<0;if(n){var a=vr().domain([1e-6,Math.abs(i[p])]).range([0,1]);var o=a(Math.abs(i[p?0:1]));var s=o/(o+1)*(r[1]-r[0]);i=(p===0?[i[0],1e-6]:[1e-6,i[1]]).map(Math.abs);r=p===0?[r[0],r[0]+s]:[r[0]+s,r[1]]}e=vr().domain(i).range(r)}var u=false;var l=e.range();var c;if(h==="log"){c=n?e(Math.abs(d)):e(d)}else c=e(d);if(v){if(p===0)u=c+g>l[p];else if(p===1)u=c-g<l[p]}else{if(p===0)u=c-g<l[p];else if(p===1)u=c+g>l[p]}return u};if(f.invert&&i()){if(h==="log"){var r=0;while(r<10&&i()){var a=(p===0?-1:1)*(e[p]<0?-1:1);e[p]+=e[p]*n*a;f.domain(v?e.slice().reverse():e);r++}}else if(p===0){var o=f.invert(f(d)+g*(v?1:-1));if(o<e[p]){e[p]=o;f.domain(v?e.slice().reverse():e)}}else if(p===1){var s=f.invert(f(d)+g*(v?-1:1));if(s>e[p]){e[p]=s;f.domain(v?e.slice().reverse():e)}}}return v?e.reverse():e}function y2(t){var e=t.data,n=t.x,i=t.y,r=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config,l=t.buffer;n=n.copy();i=i.copy();var c=r?"x2":"x";var f=a?"y2":"y";var h=n.domain().slice(),d=i.domain().slice();var g=n.range(),p=i.range();if(!n.invert&&n.padding)g2(n,e,this._discrete);if(!i.invert&&i.padding)g2(i,e,this._discrete);if(n.invert||i.invert){e.forEach(function(t){var e=l?l:u.r(t.data,t.i)*2;if(n.invert){h=m2(n,s,t[c],e,g,h,0,false);h=m2(n,s,t[c],e,g,h,1,false)}if(i.invert){d=m2(i,o,t[f],e,p,d,0,true);d=m2(i,o,t[f],e,p,d,1,true)}})}return[n,i]}function _2(t){var e=this;var n=t.data,i=t.x,r=t.y,a=t.x2,o=t.y2;var s=a?"x2":"x";var u=o?"y2":"y";var l=this._discrete==="x"?r:i;var c=l.domain().slice();if(this._discrete==="x")c.reverse();var f=n.map(function(t){return t[e._discrete==="x"?u:s]});var h=l.invert(l(ce(f))+(this._discrete==="x"?-10:10));if(h>c[1])c[1]=h;if(this._discrete==="x")c.reverse();l.domain(c);return[i,r]}function b2(t){var e=t.data,i=t.x,r=t.y,n=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config;i=i.copy();r=r.copy();var l=n?"x2":"x";var c=a?"y2":"y";var f=i.domain().slice(),h=r.domain().slice();var d=i.range(),g=r.range();if(!i.invert&&i.padding)g2(i,e,this._discrete);if(!r.invert&&r.padding)g2(r,e,this._discrete);if(i.invert||r.invert){e.forEach(function(t){if(i.invert){var e=u.width(t.data,t.i);f=m2(i,s,t[l],e,d,f,0,false);f=m2(i,s,t[l],e,d,f,1,false)}if(r.invert){var n=u.height(t.data,t.i);h=m2(r,o,t[c],n,g,h,0,true);h=m2(r,o,t[c],n,g,h,1,true)}})}return[i,r]}function w2(t,e){return E2(t)||C2(t,e)||k2(t,e)||x2()}function x2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k2(t,e){if(!t)return;if(typeof t==="string")return S2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return S2(t,e)}function S2(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,i=new Array(e);n<e;n++){i[n]=t[n]}return i}function C2(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var i=true;var r=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){r=true;a=t}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(r)throw a}}return n}function E2(t){if(Array.isArray(t))return t}function A2(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){A2=function t(e){return typeof e}}else{A2=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return A2(t)}function R2(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function M2(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function T2(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function P2(t,e,n){if(e)T2(t.prototype,e);if(n)T2(t,n);return t}function O2(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){O2=Reflect.get}else{O2=function t(e,n,i){var r=B2(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return O2(t,e,n||t)}function B2(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=I2(t);if(t===null)break}return t}function D2(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)N2(t,e)}function N2(t,e){N2=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return N2(t,e)}function z2(r){var a=F2();return function t(){var e=I2(r),n;if(a){var i=I2(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return j2(this,n)}}function j2(t,e){if(e&&(A2(e)==="object"||typeof e==="function")){return e}return L2(t)}function L2(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function F2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function I2(t){I2=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return I2(t)}var H2=new TA;var G2=new ZS;function V2(t){return this._sizeScaleD3(this._size?this._size(t):null)}function U2(t){var n=t.map(q2);var i=t.map(function(t){return t.key.split("_")[0]});return Uk(t).sort(function(t,e){return i[e].localeCompare(i[t])||n[t]-n[e]})}function W2(t){return U2(t).reverse()}function q2(t){var e=-1,n=0,i;var r=t.length;while(++e<r){if(i=+t[e][1])n+=i}return n}function K2(t,e){var n;if(!((n=t.length)>0))return;var i,r,a,o,s;var u=t[e[0]].length;for(var l=0;l<u;++l){for(s=o=0,a=0;a<n;++a){if((r=(i=t[e[a]][l])[1]-i[0])>=0){i[0]=s,i[1]=s+=r}else if(r<0){i[1]=o,i[0]=o+=r}else{i[0]=s}}}}var Y2=function(t){D2(oe,t);var e=z2(oe);function oe(){var r;M2(this,oe);r=e.call(this);r._annotations=[];r._backgroundConfig={duration:0,fill:"transparent"};r._barPadding=0;r._buffer={Bar:p2,Box:v2,Circle:y2,Line:_2,Rect:b2};r._confidenceConfig={fill:function t(e,n){var i=typeof r._shapeConfig.Line.stroke==="function"?r._shapeConfig.Line.stroke(e,n):r._shapeConfig.Line.stroke;return i},fillOpacity:cw(.5)};r._discreteCutoff=100;r._groupPadding=5;r._lineMarkerConfig={fill:function t(e,n){return Tw(r._id(e,n))},r:cw(3)};r._lineMarkers=false;r._previousShapes=[];r._shape=cw("Circle");r._shapeConfig=el(r._shapeConfig,{Area:{label:function t(e,n){return r._stacked?r._drawLabel(e,n):false},labelConfig:{fontResize:true}},ariaLabel:function t(e,n){var i="";if(e.nested)i="".concat(r._drawLabel(e.data,e.i));else{i="".concat(r._drawLabel(e,n));if(r._x(e,n)!==undefined)i+=", x: ".concat(r._x(e,n));if(r._y(e,n)!==undefined)i+=", y: ".concat(r._y(e,n));if(r._x2(e,n)!==undefined)i+=", x2: ".concat(r._x2(e,n));if(r._y2(e,n)!==undefined)i+=", y2: ".concat(r._y2(e,n))}return"".concat(i,".")},Bar:{labelConfig:{textAnchor:function t(){return r._discrete==="x"?"middle":"end"},verticalAlign:function t(){return r._discrete==="x"?"top":"middle"}}},Circle:{r:V2.bind(L2(r))},Line:{fill:cw("none"),labelConfig:{fontColor:function t(e,n){var i=typeof r._shapeConfig.Line.stroke==="function"?r._shapeConfig.Line.stroke(e,n):r._shapeConfig.Line.stroke;return Ow(i)},fontResize:false,padding:5,textAnchor:"start",verticalAlign:"middle"},stroke:function t(e,n){return Tw(r._id(e,n))},strokeWidth:cw(2)},Rect:{height:function t(e){return V2.bind(L2(r))(e)*2},width:function t(e){return V2.bind(L2(r))(e)*2}}});r._shapeOrder=["Area","Path","Bar","Box","Line","Rect","Circle"];r._shapeSort=function(t,e){return r._shapeOrder.indexOf(t)-r._shapeOrder.indexOf(e)};r._sizeMax=20;r._sizeMin=5;r._sizeScale="sqrt";r._stackOffset=K2;r._stackOrder=W2;r._timelineConfig=el(r._timelineConfig,{brushing:true});r._x=$u("x");r._xAxis=(new JR).align("end");r._xTest=(new JR).align("end").gridSize(0);r._xConfig={};r._xCutoff=150;r._x2=$u("x2");r._x2Axis=(new RM).align("start");r._x2Test=(new RM).align("start").gridSize(0);r._x2Config={padding:0};r._y=$u("y");r._yAxis=(new uM).align("start");r._yTest=(new uM).align("start").gridSize(0);r._yConfig={gridConfig:{stroke:function t(e){var n=r._yAxis.range();return n[n.length-1]===r._yAxis._getPosition.bind(r._yAxis)(e.id)?"transparent":"#ccc"}}};r._yCutoff=150;r._y2=$u("y2");r._y2Axis=(new yM).align("end");r._y2Test=(new uM).align("end").gridSize(0);r._y2Config={};return r}P2(oe,[{key:"_draw",value:function t(e){var z=this;if(!this._filteredData.length)return this;var s=function t(e,n){return z._stacked?"".concat(z._groupBy.length>1?z._ids(e,n).slice(0,-1).join("_"):"group"):"".concat(z._ids(e,n).join("_"))};var u=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,group:s(t,e),i:e,hci:z._confidence&&z._confidence[1]&&z._confidence[1](t,e),id:z._ids(t,e).slice(0,z._drawDepth+1).join("_"),lci:z._confidence&&z._confidence[0]&&z._confidence[0](t,e),shape:z._shape(t,e),x:z._x(t,e),x2:z._x2(t,e),y:z._y(t,e),y2:z._y2(t,e)}});this._formattedData=u;if(this._size){var n=ue(u,function(t){return z._size(t.data)});this._sizeScaleD3=function(){return z._sizeMin};this._sizeScaleD3=na["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(n).range([n[0]===n[1]?this._sizeMax:de([this._sizeMax/2,this._sizeMin]),this._sizeMax])}else{this._sizeScaleD3=function(){return z._sizeMin}}var i=u.some(function(t){return t.x2!==undefined}),r=u.some(function(t){return t.y2!==undefined});var a=this._height-this._margin.top-this._margin.bottom,l=this._discrete?this._discrete==="x"?"y":"x":undefined,o=this._discrete?this._discrete==="x"?"y2":"x2":undefined,c=[l,o].filter(function(t){return t}),f=this._select,h=this._transition,j=this._width-this._margin.left-this._margin.right;var d=this._time&&u[0].x2===this._time(u[0].data,u[0].i),g=this._time&&u[0].x===this._time(u[0].data,u[0].i),p=this._time&&u[0].y2===this._time(u[0].data,u[0].i),v=this._time&&u[0].y===this._time(u[0].data,u[0].i);for(var m=0;m<u.length;m++){var y=u[m];if(g)y.x=xR(y.x);if(d)y.x2=xR(y.x2);if(v)y.y=xR(y.y);if(p)y.y2=xR(y.y2);y.discrete=y.shape==="Bar"?"".concat(y[this._discrete],"_").concat(y.group):"".concat(y[this._discrete])}var _,b,w,x;if(this._stacked){var k;var S=Fe().key(function(t){return t.group}).entries(u).reduce(function(t,e){if(!t[e.key])t[e.key]=0;t[e.key]+=ge(e.values,function(t){return t[l]});return t},{});u=u.sort(function(t,e){if(z["_".concat(z._discrete,"Sort")])return z["_".concat(z._discrete,"Sort")](t.data,e.data);var n=t[z._discrete],i=e[z._discrete];if(n-i!==0)return n-i;if(t.group!==e.group)return S[e.group]-S[t.group];return e[l]-t[l]});_=Array.from(new Set(u.map(function(t){return t.discrete})));x=Array.from(new Set(u.map(function(t){return t.id})));w=Fe().key(function(t){return t.discrete}).entries(u).map(function(t){return t.values});w.forEach(function(a){var o=Array.from(new Set(a.map(function(t){return t.id})));if(o.length<x.length){x.forEach(function(e){if(!o.includes(e)){var t=u.filter(function(t){return t.id===e})[0];if(t.shape==="Area"){var n;var i=s(t.data,t.i);var r=(n={__d3plus__:true,data:t.data,discrete:t.shape==="Bar"?"".concat(a[0][z._discrete],"_").concat(i):"".concat(a[0][z._discrete]),group:i,id:e,shape:t.shape},R2(n,z._discrete,a[0][z._discrete]),R2(n,l,0),n);u.push(r)}}})}});if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[z._discrete]-e[z._discrete]})}var C=this._stackOrder;if(C instanceof Array)x.sort(function(t,e){return C.indexOf(t)-C.indexOf(e)});else if(C===Uk)x.sort(function(t,e){return t.localeCompare(e)});w=qk().keys(x).offset(this._stackOffset).order(C instanceof Array?Uk:C).value(function(t,e){var n=t.filter(function(t){return t.id===e});return n.length?n[0][l]:0})(w);b=(k={},R2(k,this._discrete,ue(u,function(t){return t[z._discrete]})),R2(k,l,[de(w.map(function(t){return de(t.map(function(t){return t[0]}))})),ce(w.map(function(t){return ce(t.map(function(t){return t[1]}))}))]),k)}else{var E=this._discrete||"x";if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[E]-e[E]})}var A=E==="x"?u.map(function(t){return t.x}):u.map(function(t){return t.x}).concat(this._confidence&&this._confidence[0]?u.map(function(t){return t.lci}):[]).concat(this._confidence&&this._confidence[1]?u.map(function(t){return t.hci}):[]);var R=E==="x"?u.map(function(t){return t.x2}):u.map(function(t){return t.x2}).concat(this._confidence&&this._confidence[0]?u.map(function(t){return t.lci}):[]).concat(this._confidence&&this._confidence[1]?u.map(function(t){return t.hci}):[]);var M=E==="y"?u.map(function(t){return t.y}):u.map(function(t){return t.y}).concat(this._confidence&&this._confidence[0]?u.map(function(t){return t.lci}):[]).concat(this._confidence&&this._confidence[1]?u.map(function(t){return t.hci}):[]);var T=E==="y"?u.map(function(t){return t.y2}):u.map(function(t){return t.y2}).concat(this._confidence&&this._confidence[0]?u.map(function(t){return t.lci}):[]).concat(this._confidence&&this._confidence[1]?u.map(function(t){return t.hci}):[]);b={x:this._xSort?Array.from(new Set(u.filter(function(t){return t.x}).sort(function(t,e){return z._xSort(t.data,e.data)}).map(function(t){return t.x}))):ue(A,function(t){return t}),x2:this._x2Sort?Array.from(new Set(u.filter(function(t){return t.x2}).sort(function(t,e){return z._x2Sort(t.data,e.data)}).map(function(t){return t.x2}))):ue(R,function(t){return t}),y:this._ySort?Array.from(new Set(u.filter(function(t){return t.y}).sort(function(t,e){return z._ySort(t.data,e.data)}).map(function(t){return t.y}))):ue(M,function(t){return t}),y2:this._y2Sort?Array.from(new Set(u.filter(function(t){return t.y2}).sort(function(t,e){return z._y2Sort(t.data,e.data)}).map(function(t){return t.y2}))):ue(T,function(t){return t})}}var L=this._xDomain?this._xDomain.slice():b.x,F=this._xSort?"Point":"Linear";if(L[0]===void 0)L[0]=b.x[0];if(L[1]===void 0)L[1]=b.x[1];if(g){L=L.map(xR);F="Time"}else if(this._discrete==="x"){if(!this._xDomain)L=Array.from(new Set(u.filter(function(t){return["number","string"].includes(A2(t.x))}).sort(function(t,e){return z._xSort?z._xSort(t.data,e.data):t.x-e.x}).map(function(t){return t.x})));F="Point"}var P=this._x2Domain?this._x2Domain.slice():b.x2,O=this._x2Sort?"Point":"Linear";if(P&&P[0]===void 0)P[0]=b.x2[0];if(P&&P[1]===void 0)P[1]=b.x2[1];if(d){P=P.map(xR);O="Time"}else if(this._discrete==="x"){if(!this._x2Domain)P=Array.from(new Set(u.filter(function(t){return["number","string"].includes(A2(t.x2))}).sort(function(t,e){return z._x2Sort?z._x2Sort(t.data,e.data):t.x2-e.x2}).map(function(t){return t.x2})));O="Point"}var I=this._yDomain?this._yDomain.slice():b.y,H=this._ySort?"Point":"Linear";if(I[0]===void 0)I[0]=b.y[0];if(I[1]===void 0)I[1]=b.y[1];var B=this._y2Domain?this._y2Domain.slice():b.y2,D=this._y2Sort?"Point":"Linear";if(B&&B[0]===void 0)B[0]=b.y2[0];if(B&&B[1]===void 0)B[1]=b.y2[1];if(v){I=I.map(xR);H="Time"}else if(this._discrete==="y"){if(!this._yDomain)I=Array.from(new Set(u.filter(function(t){return["number","string"].includes(A2(t.y))}).sort(function(t,e){return z._ySort?z._ySort(t.data,e.data):t.y-e.y}).map(function(t){return t.y})));H="Point";if(!this._y2Domain)B=Array.from(new Set(u.filter(function(t){return["number","string"].includes(A2(t.y2))}).sort(function(t,e){return z._y2Sort?z._y2Sort(t.data,e.data):t.y2-e.y2}).map(function(t){return t.y2})));D="Point"}if(p){B=B.map(xR);D="Time"}var N=function t(e,n){var i=z["_".concat(e,"Config")].scale;if(i==="auto"){if(z._discrete===e)return n;var r=u.map(function(t){return t[e]});return se(r)/fe(r)>3?"log":"linear"}return i||n};var G=this._yConfigScale=N("y",H).toLowerCase();var V=this._y2ConfigScale=N("y2",D).toLowerCase();var U=this._xConfigScale=N("x",F).toLowerCase();var W=this._x2ConfigScale=N("x2",O).toLowerCase();b={x:L,x2:P||L,y:I,y2:B||I};Object.keys(b).forEach(function(e){if(z["_".concat(e,"ConfigScale")]==="log"&&b[e].includes(0)){if(de(b[e])<0)b[e][1]=ce(u.map(function(t){return t[e]}).filter(Boolean));else b[e][0]=de(u.map(function(t){return t[e]}).filter(Boolean))}});c.forEach(function(t){if(z["_".concat(t,"Config")].domain){var e=z["_".concat(t,"Config")].domain;if(z._discrete==="x")e.reverse();b[t]=e}else if(t&&z._baseline!==void 0){var n=z._baseline;if(b[t]&&b[t][0]>n)b[t][0]=n;else if(b[t]&&b[t][1]<n)b[t][1]=n}});var q=na["scale".concat(F)]().domain(b.x).range(le(0,j+1,j/(b.x.length-1))),K=na["scale".concat(O)]().domain(b.x2).range(le(0,j+1,j/(b.x2.length-1))),Y=na["scale".concat(H)]().domain(b.y.reverse()).range(le(0,a+1,a/(b.y.length-1))),X=na["scale".concat(D)]().domain(b.y2.reverse()).range(le(0,a+1,a/(b.y2.length-1)));var Z=Fe().key(function(t){return t.shape}).entries(u).sort(function(t,e){return z._shapeSort(t.key,e.key)});var $=this._discrete==="x"?H:F;if($!=="Point"){Z.forEach(function(t){if(z._buffer[t.key]){var e=z._buffer[t.key].bind(z)({data:t.values,x:q,y:Y,yScale:G,xScale:U,config:z._shapeConfig[t.key]});q=e[0];Y=e[1];var n=z._buffer[t.key].bind(z)({data:t.values,x:K,y:X,yScale:V,xScale:W,x2:true,y2:true,config:z._shapeConfig[t.key]});K=n[0];X=n[1]}})}L=q.domain();P=K.domain();I=Y.domain();B=X.domain();var J={barConfig:{"stroke-width":0},gridSize:0,labels:[],title:false,tickSize:0};var Q=i?{}:J;var tt=r?{}:J;var et=this._discrete==="x"&&this._width>this._discreteCutoff||this._width>this._xCutoff;var nt=this._discrete==="y"&&this._height>this._discreteCutoff||this._height>this._yCutoff;var it={gridConfig:{stroke:!this._discrete||this._discrete==="x"?this._yTest.gridConfig().stroke:"transparent"},locale:this._locale,scalePadding:Y.padding?Y.padding():0};if(!et){it.barConfig={stroke:"transparent"};it.tickSize=0;it.shapeConfig={labelBounds:function t(e,n){var i=e.labelBounds,r=i.width,a=i.y;var o=z._height/2;var s=n?-o:0;return{x:s,y:a,width:r,height:o}},labelConfig:{padding:0,rotate:0,verticalAlign:function t(e){return e.id===ut[0]?"top":"bottom"}},labelRotation:false}}var rt=fw("g.d3plus-plot-test",{enter:{opacity:0},parent:this._select}),at=this._discrete==="x"&&!d?b.x2:undefined,ot=!nt?ue(b.x):this._discrete==="x"&&!g?b.x:undefined,st=this._discrete==="y"&&!p?b.y2:undefined,ut=!et?ue(b.y):this._discrete==="y"&&!v?b.y:undefined;if(nt){this._yTest.domain(I).height(a).maxSize(j/2).range([undefined,undefined]).select(rt.node()).ticks(ut).width(j).config(it).config(this._yConfig).scale(G).render()}var lt=this._yTest.outerBounds();var ct=lt.width?lt.width+this._yTest.padding():undefined;if(r){this._y2Test.domain(B).height(a).range([undefined,undefined]).select(rt.node()).ticks(st).width(j).config(it).config(tt).config(this._y2Config).scale(V).render()}var ft=this._y2Test.outerBounds();var ht=ft.width?ft.width+this._y2Test.padding():undefined;var dt={gridConfig:{stroke:!this._discrete||this._discrete==="y"?this._xTest.gridConfig().stroke:"transparent"},locale:this._locale,scalePadding:q.padding?q.padding():0};if(!nt){dt.barConfig={stroke:"transparent"};dt.tickSize=0;dt.shapeConfig={labelBounds:function t(e,n){var i=e.labelBounds,r=i.height,a=i.y;var o=z._width/2;var s=n?-o:0;return{x:s,y:a,width:o,height:r}},labelConfig:{padding:0,rotate:0,textAnchor:function t(e){return e.id===ot[0]?"start":"end"}},labelRotation:false}}var gt=undefined;if(et){this._xTest.domain(L).height(a).maxSize(a/2).range([undefined,gt]).select(rt.node()).ticks(ot).width(j).config(dt).config(this._xConfig).scale(U).render()}var pt;if(this._lineLabels){var vt=Fe().key(function(t){return t.id}).entries(u.filter(function(t){return t.shape==="Line"}));if(vt.length&&vt.length<this._dataCutoff){var mt=lw.bind(this)(this._shapeConfig,"shape","Line");H2.config(mt);var yt=H2.labelConfig();var _t=yt.fontSize!==undefined?yt.fontSize:G2.fontSize();var bt=yt.fontWeight!==undefined?yt.fontWeight:G2.fontWeight();var wt=yt.fontFamily!==undefined?yt.fontFamily:G2.fontFamily();var xt=yt.padding!==undefined?yt.padding:G2.padding();var kt=mt.label||this._drawLabel;var St=function t(e){if(U==="log"&&e===0)e=L[0]<0?z._xTest._d3Scale.domain()[1]:z._xTest._d3Scale.domain()[0];return z._xTest._getPosition.bind(z._xTest)(e)};var Ct=ce(vt.map(function(t){return ce(t.values.map(function(t){return St(t.x)}))}));var Et=vt.map(function(t){var e=t.values[t.values.length-1];var n;while(e.__d3plus__&&e.data){e=e.data;n=e.i}var i=typeof kt==="function"?kt(e,n):kt;var r=typeof _t==="function"?_t(e,n):_t;var a=typeof bt==="function"?bt(e,n):bt;var o=typeof wt==="function"?wt(e,n):wt;if(o instanceof Array)o=o.map(function(t){return"'".concat(t,"'")}).join(", ");var s=typeof xt==="function"?xt(e,n):xt;var u=oS(i,{"font-size":r,"font-family":o,"font-weight":a});var l=ce(t.values.map(function(t){return St(t.x)}));return{labelWidth:u+s*2,spaceNeeded:l-Ct+u+s*2}});pt=ce(Et.map(function(t){return t.labelWidth}));var At=ce(Et.map(function(t){return t.spaceNeeded}));var Rt=de([At,j/4]);gt=j-Rt-this._margin.right}}if(et&>){this._xTest.domain(L).height(a).maxSize(a/2).range([undefined,gt]).select(rt.node()).ticks(ot).width(j).config(dt).config(this._xConfig).scale(U).render()}if(i){this._x2Test.domain(P).height(a).range([undefined,gt]).select(rt.node()).ticks(at).width(j).config(dt).tickSize(0).config(Q).config(this._x2Config).scale(W).render()}var Mt=this._xTest._getRange();var Tt=this._x2Test._getRange();var Pt=this._x2Test.outerBounds();var Ot=i?Pt.height+this._x2Test.padding():0;var Bt=ce([ct,Mt[0],Tt[0]]);if(et){this._xTest.range([Bt,undefined]).render()}var Dt=nt?this._yTest.shapeConfig().labelConfig.fontSize()/2:0;var Nt=ce([ht,j-Mt[1],j-Tt[1]]);var zt=this._xTest.outerBounds();var jt=zt.height+(nt?this._xTest.padding():0);this._padding.left+=Bt;this._padding.right+=Nt;this._padding.bottom+=jt;this._padding.top+=Ot+Dt;O2(I2(oe.prototype),"_draw",this).call(this,e);var Lt=this._margin.left+this._margin.right;var Ft=this._margin.top+this._margin.bottom;var It=[Ot,a-(jt+Dt+Ft)];if(nt){this._yTest.domain(I).height(a).maxSize(j/2).range(It).select(rt.node()).ticks(ut).width(j).config(it).config(this._yConfig).scale(G).render()}lt=this._yTest.outerBounds();ct=lt.width?lt.width+this._yTest.padding():undefined;Bt=ce([ct,Mt[0],Tt[0]]);if(r){this._y2Test.config(it).domain(B).gridSize(0).height(a).range(It).select(rt.node()).width(j-ce([0,Nt-ht])).title(false).config(this._y2Config).config(tt).scale(V).render()}ft=this._y2Test.outerBounds();ht=ft.width?ft.width+this._y2Test.padding():undefined;Nt=ce([0,ht,j-Mt[1],j-Tt[1]]);var Ht=[Bt,j-(Nt+Lt)];var Gt=fw("g.d3plus-plot-background",{parent:f,transition:h});var Vt="translate(".concat(this._margin.left,", ").concat(this._margin.top+Ot+Dt,")");var Ut="translate(".concat(this._margin.left,", ").concat(this._margin.top+Dt,")");var Wt=et&&fw("g.d3plus-plot-x-axis",{parent:f,transition:h,enter:{transform:Vt},update:{transform:Vt}});var qt=i&&fw("g.d3plus-plot-x2-axis",{parent:f,transition:h,enter:{transform:Ut},update:{transform:Ut}});var Kt=Bt>ct?Bt-ct:0;var Yt="translate(".concat(this._margin.left+Kt,", ").concat(this._margin.top+Dt,")");var Xt=nt&&fw("g.d3plus-plot-y-axis",{parent:f,transition:h,enter:{transform:Yt},update:{transform:Yt}});var Zt="translate(-".concat(this._margin.right,", ").concat(this._margin.top+Dt,")");var $t=r&&fw("g.d3plus-plot-y2-axis",{parent:f,transition:h,enter:{transform:Zt},update:{transform:Zt}});this._xAxis.domain(L).height(a-(Ot+Dt+Ft)).maxSize(a/2).range(Ht).select(et?Wt.node():undefined).ticks(ot).width(j).config(dt).config(this._xConfig).scale(U).render();if(i){this._x2Axis.domain(P).height(a-(jt+Dt+Ft)).range(Ht).select(qt.node()).ticks(at).width(j).config(dt).config(Q).config(this._x2Config).scale(W).render()}q=function t(e,n){if(n==="x2"){if(W==="log"&&e===0)e=P[0]<0?z._x2Axis._d3Scale.domain()[1]:z._x2Axis._d3Scale.domain()[0];return z._x2Axis._getPosition.bind(z._x2Axis)(e)}else{if(U==="log"&&e===0)e=L[0]<0?z._xAxis._d3Scale.domain()[1]:z._xAxis._d3Scale.domain()[0];return z._xAxis._getPosition.bind(z._xAxis)(e)}};It=[this._xAxis.outerBounds().y+Ot,a-(jt+Dt+Ft)];this._yAxis.domain(I).height(a).maxSize(j/2).range(It).select(nt?Xt.node():undefined).ticks(ut).width(Ht[Ht.length-1]).config(it).config(this._yConfig).scale(G).render();if(r){this._y2Axis.config(it).domain(r?B:I).gridSize(0).height(a).range(It).select($t.node()).width(j-ce([0,Nt-ht])).title(false).config(this._y2Config).config(tt).scale(V).render()}Y=function t(e,n){if(n==="y2"){if(V==="log"&&e===0)e=B[1]<0?z._y2Axis._d3ScaleNegative.domain()[0]:z._y2Axis._d3Scale.domain()[1];return z._y2Axis._getPosition.bind(z._y2Axis)(e)-Ot}else{if(G==="log"&&e===0)e=I[1]<0?z._yAxis._d3ScaleNegative.domain()[0]:z._yAxis._d3Scale.domain()[1];return z._yAxis._getPosition.bind(z._yAxis)(e)-Ot}};(new vA).data([{}]).select(Gt.node()).x(Ht[0]+(Ht[1]-Ht[0])/2).width(Ht[1]-Ht[0]).y(this._margin.top+Dt+It[0]+(It[1]-It[0])/2).height(It[1]-It[0]).config(this._backgroundConfig).render();var Jt=fw("g.d3plus-plot-annotations",{parent:f,transition:h,enter:{transform:Vt},update:{transform:Vt}}).node();this._annotations.forEach(function(t){(new wR[t.shape]).config(t).config({x:function t(e){return e.x2?q(e.x2,"x2"):q(e.x)},x0:z._discrete==="x"?function(t){return t.x2?q(t.x2,"x2"):q(t.x)}:q(b.x[0]),x1:z._discrete==="x"?null:function(t){return t.x2?q(t.x2,"x2"):q(t.x)},y:function t(e){return e.y2?Y(e.y2,"y2"):Y(e.y)},y0:z._discrete==="y"?function(t){return t.y2?Y(t.y2,"y2"):Y(t.y)}:Y(b.y[1])-Qt,y1:z._discrete==="y"?null:function(t){return t.y2?Y(t.y2,"y2"):Y(t.y)-Qt}}).select(Jt).render()});var Qt=this._xAxis.barConfig()["stroke-width"];if(Qt)Qt/=2;var te=this._discrete||"x";var ee={discrete:this._discrete,duration:this._duration,label:function t(e){return z._drawLabel(e.data,e.i)},select:fw("g.d3plus-plot-shapes",{parent:f,transition:h,enter:{transform:Vt},update:{transform:Vt}}).node(),x:function t(e){return e.x2!==undefined?q(e.x2,"x2"):q(e.x)},x0:te==="x"?function(t){return t.x2?q(t.x2,"x2"):q(t.x)}:q(typeof this._baseline==="number"?this._baseline:b.x[0]),x1:te==="x"?null:function(t){return t.x2?q(t.x2,"x2"):q(t.x)},y:function t(e){return e.y2!==undefined?Y(e.y2,"y2"):Y(e.y)},y0:te==="y"?function(t){return t.y2?Y(t.y2,"y2"):Y(t.y)}:Y(typeof this._baseline==="number"?this._baseline:b.y[1])-Qt,y1:te==="y"?null:function(t){return t.y2?Y(t.y2,"y2"):Y(t.y)-Qt}};if(this._stacked){var ne=l==="x"?q:Y;ee["".concat(l)]=ee["".concat(l,"0")]=function(t){var e=x.indexOf(t.id),n=_.indexOf(t.discrete);return e>=0?ne(w[e][n][0]):ne(b[l][l==="x"?0:1])};ee["".concat(l,"1")]=function(t){var e=x.indexOf(t.id),n=_.indexOf(t.discrete);return e>=0?ne(w[e][n][1]):ne(b[l][l==="x"?0:1])}}var ie=Object.keys(this._on);Z.forEach(function(e){var n=(new wR[e.key]).config(ee).data(e.values);if(e.key==="Bar"){var t;var i=z._discrete==="x"?q:Y;var r=z._discrete==="x"?F:H;var a=z._discrete==="x"?L:I;var o=z._discrete==="x"?Ht:It;if(r!=="Point"&&a.length===2){t=(i(e.values[z._discrete==="x"?0:e.values.length-1][z._discrete])-i(a[0]))*2}else if(a.length>1)t=i(a[1])-i(a[0]);else t=o[o.length-1]-o[0];if(z._groupPadding<t)t-=z._groupPadding;var s=t||1;var u=Fe().key(function(t){return t[z._discrete]}).key(function(t){return t.group}).entries(e.values);var l=he(u.map(function(t){return t.values.map(function(t){return t.key})}));var c=Array.from(new Set(l));if(ce(u.map(function(t){return t.values.length}))===1){n[z._discrete](function(t,e){return ee[z._discrete](t,e)})}else{s=(s-z._barPadding*c.length-1)/c.length;var f=t/2-s/2;var h=rr().domain([0,c.length-1]).range([-f,f]);n[z._discrete](function(t,e){return ee[z._discrete](t,e)+h(c.indexOf(t.group))})}n.width(s);n.height(s)}else if(e.key==="Line"){n.duration(j*1.5);if(z._confidence){var d=Object.assign({},ee);var g=z._discrete||"x";var p=g==="x"?"y":"x";var v=g==="x"?Y:q;d["".concat(p,"0")]=function(t){return v(z._confidence[0]?t.lci:t[p])};d["".concat(p,"1")]=function(t){return v(z._confidence[1]?t.hci:t[p])};var m=(new RE).config(d).data(e.values);var y=Object.assign(z._shapeConfig,z._confidenceConfig);m.config(lw.bind(z)(y,"shape","Area")).render();z._shapes.push(m)}n.config({discrete:ee.discrete||"x",label:z._lineLabels?z._drawLabel:false,labelBounds:z._lineLabels?function(t,e,n){var i=w2(n.points[0],2),r=i[0],a=i[1];var o=w2(n.points[n.points.length-1],2),s=o[0],u=o[1];var l=z._height/4;return{x:s-r,y:u-a-l/2,width:pt,height:l}}:false})}var _=ie.filter(function(t){return t.includes(".".concat(e.key))}),b=ie.filter(function(t){return!t.includes(".")}),w=ie.filter(function(t){return t.includes(".shape")});var x=function t(e){n.on(b[e],function(t){return z._on[b[e]](t.data,t.i)})};for(var k=0;k<b.length;k++){x(k)}var S=function t(e){n.on(w[e],function(t){return z._on[w[e]](t.data,t.i)})};for(var C=0;C<w.length;C++){S(C)}var E=function t(e){n.on(_[e],function(t){return z._on[_[e]](t.data,t.i)})};for(var A=0;A<_.length;A++){E(A)}var R=lw.bind(z)(z._shapeConfig,"shape",e.key);if(z._shapeConfig.duration===undefined)delete R.duration;n.config(R).render();z._shapes.push(n);if(e.key==="Line"&&z._lineMarkers){var M=(new nA).data(e.values).config(ee).config(z._lineMarkerConfig).id(function(t){return"".concat(t.id,"_").concat(t.discrete)});var T=function t(e){M.on(b[e],function(t){return z._on[b[e]](t.data,t.i)})};for(var P=0;P<b.length;P++){T(P)}var O=function t(e){M.on(w[e],function(t){return z._on[w[e]](t.data,t.i)})};for(var B=0;B<w.length;B++){O(B)}var D=function t(e){M.on(_[e],function(t){return z._on[_[e]](t.data,t.i)})};for(var N=0;N<_.length;N++){D(N)}M.render();z._shapes.push(M)}});var re=Z.map(function(t){return t.key});if(re.includes("Line")){if(this._confidence)re.push("Area");if(this._labelMarkers)re.push("Circle")}var ae=this._previousShapes.filter(function(t){return!re.includes(t)});ae.forEach(function(t){(new wR[t]).config(ee).data([]).render()});this._previousShapes=re;return this}},{key:"annotations",value:function t(e){return arguments.length?(this._annotations=e instanceof Array?e:[e],this):this._annotations}},{key:"backgroundConfig",value:function t(e){return arguments.length?(this._backgroundConfig=el(this._backgroundConfig,e),this):this._backgroundConfig}},{key:"barPadding",value:function t(e){return arguments.length?(this._barPadding=e,this):this._barPadding}},{key:"baseline",value:function t(e){return arguments.length?(this._baseline=e,this):this._baseline}},{key:"confidence",value:function t(e){if(arguments.length&&e instanceof Array){this._confidence=[];var n=e[0];this._confidence[0]=typeof n==="function"||!n?n:$u(n);var i=e[1];this._confidence[1]=typeof i==="function"||!i?i:$u(i);return this}else return this._confidence}},{key:"confidenceConfig",value:function t(e){return arguments.length?(this._confidenceConfig=el(this._confidenceConfig,e),this):this._confidenceConfig}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"discreteCutoff",value:function t(e){return arguments.length?(this._discreteCutoff=e,this):this._discreteCutoff}},{key:"groupPadding",value:function t(e){return arguments.length?(this._groupPadding=e,this):this._groupPadding}},{key:"lineLabels",value:function t(e){return arguments.length?(this._lineLabels=e,this):this._lineLabels}},{key:"lineMarkerConfig",value:function t(e){return arguments.length?(this._lineMarkerConfig=el(this._lineMarkerConfig,e),this):this._lineMarkerConfig}},{key:"lineMarkers",value:function t(e){return arguments.length?(this._lineMarkers=e,this):this._lineMarkers}},{key:"shapeSort",value:function t(e){return arguments.length?(this._shapeSort=e,this):this._shapeSort}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:$u(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"stacked",value:function t(e){return arguments.length?(this._stacked=e,this):this._stacked}},{key:"stackOffset",value:function t(e){return arguments.length?(this._stackOffset=typeof e==="function"?e:rS["stackOffset".concat(e.charAt(0).toUpperCase()+e.slice(1))],this):this._stackOffset}},{key:"stackOrder",value:function t(e){if(arguments.length){if(typeof e==="string")this._stackOrder=e==="ascending"?U2:e==="descending"?W2:rS["stackOrder".concat(e.charAt(0).toUpperCase()+e.slice(1))];else this._stackOrder=e;return this}else return this._stackOrder}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=$u(e);if(!this._aggs[e]&&this._discrete==="x"){this._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}}return this}else return this._x}},{key:"x2",value:function t(e){if(arguments.length){if(typeof e==="function")this._x2=e;else{this._x2=$u(e);if(!this._aggs[e]&&this._discrete==="x"){this._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}}return this}else return this._x2}},{key:"xConfig",value:function t(e){return arguments.length?(this._xConfig=el(this._xConfig,e),this):this._xConfig}},{key:"xCutoff",value:function t(e){return arguments.length?(this._xCutoff=e,this):this._xCutoff}},{key:"x2Config",value:function t(e){return arguments.length?(this._x2Config=el(this._x2Config,e),this):this._x2Config}},{key:"xDomain",value:function t(e){return arguments.length?(this._xDomain=e,this):this._xDomain}},{key:"x2Domain",value:function t(e){return arguments.length?(this._x2Domain=e,this):this._x2Domain}},{key:"xSort",value:function t(e){return arguments.length?(this._xSort=e,this):this._xSort}},{key:"x2Sort",value:function t(e){return arguments.length?(this._x2Sort=e,this):this._x2Sort}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=$u(e);if(!this._aggs[e]&&this._discrete==="y"){this._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}}return this}else return this._y}},{key:"y2",value:function t(e){if(arguments.length){if(typeof e==="function")this._y2=e;else{this._y2=$u(e);if(!this._aggs[e]&&this._discrete==="y2"){this._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}}return this}else return this._y2}},{key:"yConfig",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._yConfig=el(this._yConfig,e);return this}return this._yConfig}},{key:"yCutoff",value:function t(e){return arguments.length?(this._yCutoff=e,this):this._yCutoff}},{key:"y2Config",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._y2Config=el(this._y2Config,e);return this}return this._y2Config}},{key:"yDomain",value:function t(e){return arguments.length?(this._yDomain=e,this):this._yDomain}},{key:"y2Domain",value:function t(e){return arguments.length?(this._y2Domain=e,this):this._y2Domain}},{key:"ySort",value:function t(e){return arguments.length?(this._ySort=e,this):this._ySort}},{key:"y2Sort",value:function t(e){return arguments.length?(this._y2Sort=e,this):this._y2Sort}}]);return oe}(mZ);function X2(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){X2=function t(e){return typeof e}}else{X2=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return X2(t)}function Z2(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function $2(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)J2(t,e)}function J2(t,e){J2=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return J2(t,e)}function Q2(r){var a=n3();return function t(){var e=i3(r),n;if(a){var i=i3(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return t3(this,n)}}function t3(t,e){if(e&&(X2(e)==="object"||typeof e==="function")){return e}return e3(t)}function e3(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function n3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function i3(t){i3=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return i3(t)}var r3=function(t){$2(n,t);var e=Q2(n);function n(){var t;Z2(this,n);t=e.call(this);t._baseline=0;t._discrete="x";t._shape=cw("Area");t.x("x");return t}return n}(Y2);function a3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){a3=function t(e){return typeof e}}else{a3=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return a3(t)}function o3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function s3(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)u3(t,e)}function u3(t,e){u3=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return u3(t,e)}function l3(r){var a=h3();return function t(){var e=d3(r),n;if(a){var i=d3(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return c3(this,n)}}function c3(t,e){if(e&&(a3(e)==="object"||typeof e==="function")){return e}return f3(t)}function f3(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function h3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function d3(t){d3=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return d3(t)}var g3=function(t){s3(n,t);var e=l3(n);function n(){var t;o3(this,n);t=e.call(this);t._baseline=0;t._discrete="x";t._shape=cw("Bar");t.x("x");return t}return n}(Y2);function p3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){p3=function t(e){return typeof e}}else{p3=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return p3(t)}function v3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function m3(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)y3(t,e)}function y3(t,e){y3=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return y3(t,e)}function _3(r){var a=x3();return function t(){var e=k3(r),n;if(a){var i=k3(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return b3(this,n)}}function b3(t,e){if(e&&(p3(e)==="object"||typeof e==="function")){return e}return w3(t)}function w3(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function x3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function k3(t){k3=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return k3(t)}var S3=function(t){m3(n,t);var e=_3(n);function n(){var r;v3(this,n);r=e.call(this);r._discrete="x";r._shape=cw("Box");r.x("x");r._tooltipConfig=el(r._tooltipConfig,{title:function t(e,n){if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(r._label)return r._label(e,n);var i=r._ids(e,n).slice(0,r._drawDepth);return i[i.length-1]}});return r}return n}(Y2);function C3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){C3=function t(e){return typeof e}}else{C3=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return C3(t)}function E3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function A3(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)R3(t,e)}function R3(t,e){R3=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return R3(t,e)}function M3(r){var a=O3();return function t(){var e=B3(r),n;if(a){var i=B3(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return T3(this,n)}}function T3(t,e){if(e&&(C3(e)==="object"||typeof e==="function")){return e}return P3(t)}function P3(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function O3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function B3(t){B3=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return B3(t)}var D3=function(t){A3(n,t);var e=M3(n);function n(){var o;E3(this,n);o=e.call(this);o._discrete="x";o._shape=cw("Line");o.x("x");o.y2(function(t){return o._y(t)});o.yConfig({tickFormat:function t(e){var n=o._formattedData;var i=n[0].x instanceof Date?n[0].x.getTime():n[0].x;var r=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===i});var a=r.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.y2Config({tickFormat:function t(e){var n=o._formattedData;var i=n[n.length-1].x instanceof Date?n[n.length-1].x.getTime():n[n.length-1].x;var r=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===i});var a=r.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.ySort(function(t,e){return o._y(e)-o._y(t)});o.y2Sort(function(t,e){return o._y(e)-o._y(t)});return o}return n}(Y2);function N3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){N3=function t(e){return typeof e}}else{N3=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return N3(t)}function z3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function j3(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)L3(t,e)}function L3(t,e){L3=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return L3(t,e)}function F3(r){var a=G3();return function t(){var e=V3(r),n;if(a){var i=V3(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return I3(this,n)}}function I3(t,e){if(e&&(N3(e)==="object"||typeof e==="function")){return e}return H3(t)}function H3(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function G3(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function V3(t){V3=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return V3(t)}var U3=function(t){j3(n,t);var e=F3(n);function n(){var t;z3(this,n);t=e.call(this);t._discrete="x";t._shape=cw("Line");t.x("x");return t}return n}(Y2);function W3(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){W3=function t(e){return typeof e}}else{W3=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return W3(t)}function q3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function K3(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function Y3(t,e,n){if(e)K3(t.prototype,e);if(n)K3(t,n);return t}function X3(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){X3=Reflect.get}else{X3=function t(e,n,i){var r=Z3(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return X3(t,e,n||t)}function Z3(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=i6(t);if(t===null)break}return t}function $3(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)J3(t,e)}function J3(t,e){J3=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return J3(t,e)}function Q3(r){var a=n6();return function t(){var e=i6(r),n;if(a){var i=i6(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return t6(this,n)}}function t6(t,e){if(e&&(W3(e)==="object"||typeof e==="function")){return e}return e6(t)}function e6(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function n6(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function i6(t){i6=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return i6(t)}var r6=Math.PI*2;var a6=function(t){$3(_,t);var e=Q3(_);function _(){var t;q3(this,_);t=e.call(this);t._axisConfig={shapeConfig:{fill:cw("none"),labelConfig:{fontColor:"#000",padding:0,textAnchor:function t(e,n,i){return i.textAnchor},verticalAlign:"middle"},stroke:"#ccc",strokeWidth:cw(1)}};t._discrete="metric";t._levels=6;t._metric=$u("metric");t._outerPadding=100;t._shape=cw("Path");t._value=$u("value");return t}Y3(_,[{key:"_draw",value:function t(e){var d=this;X3(i6(_.prototype),"_draw",this).call(this,e);var l=this._height-this._margin.top-this._margin.bottom,c=this._width-this._margin.left-this._margin.right;var g=de([l,c])/2-this._outerPadding,n="translate(".concat(c/2,", ").concat(l/2,")");var i=Fe().key(this._metric).entries(this._filteredData),r=Fe().key(this._id).key(this._metric).entries(this._filteredData);var a=ce(r.map(function(t){return t.values.map(function(t){return ge(t.values,function(t,e){return d._value(t,e)})})}).flat());var o=Array.from(Array(this._levels).keys()).map(function(t){return{id:t,r:g*((t+1)/d._levels)}});var s=lw.bind(this)(this._axisConfig.shapeConfig,"shape","Circle");delete s.label;(new nA).data(o).select(fw("g.d3plus-Radar-radial-circles",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(s).render();var p=i.length;var u=i.map(function(t,e){var n=d._outerPadding;var i=d._shapeConfig.labelConfig.fontSize&&d._shapeConfig.labelConfig.fontSize(t,e)||11;var r=i*1.4;var a=r*2;var o=10,s=parseInt(360-360/p*e/90,10)%4+1,u=r6/p*e;var l=360/p*e;var c="start";var f=o;if(s===2||s===3){f=-n-o;c="end";l+=180}var h={x:f,y:-a/2,width:n,height:a};return{__d3plus__:true,data:dw(t.values,d._aggs),i:e,id:t.key,angle:l,textAnchor:c,labelBounds:h,rotateAnchor:[-f,a/2],x:g*Math.cos(u),y:g*Math.sin(u)}}).sort(function(t,e){return t.key-e.key});(new vA).data(u).rotate(function(t){return t.angle||0}).width(0).height(0).x(function(t){return t.x}).y(function(t){return t.y}).label(function(t){return t.id}).labelBounds(function(t){return t.labelBounds}).labelConfig(this._axisConfig.shapeConfig.labelConfig).select(fw("g.d3plus-Radar-text",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).render();(new bR).data(u).d(function(t){return"M".concat(0,",",0," ",-t.x,",").concat(-t.y)}).select(fw("g.d3plus-Radar-axis",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(lw.bind(this)(this._axisConfig.shapeConfig,"shape","Path")).render();var f=r.map(function(t){var e=t.values.map(function(t,e){var n=ge(t.values,function(t,e){return d._value(t,e)});var i=n/a*g,r=r6/p*e;return{x:i*Math.cos(r),y:i*Math.sin(r)}});var n="M ".concat(e[0].x," ").concat(e[0].y," ").concat(e.map(function(t){return"L ".concat(t.x," ").concat(t.y)}).join(" ")," L ").concat(e[0].x," ").concat(e[0].y);return{arr:t.values.map(function(t){return dw(t.values,d._aggs)}),id:t.key,points:e,d:n,__d3plus__:true,data:dw(t.values.map(function(t){return dw(t.values,d._aggs)}),d._aggs)}});var h=lw.bind(this)(this._shapeConfig,"shape","Path");var v=Object.keys(h.on);h.on={};var m=function t(e){var u=v[e];h.on[u]=function(t,e){var n=t.points.map(function(t){return t.x+c/2});var i=t.points.map(function(t){return t.y+l/2});var r=$o(d._select.node());var a=n.map(function(t){return Math.abs(t-r[0])});var o=i.map(function(t){return Math.abs(t-r[1])});var s=a.map(function(t,e){return t+o[e]});d._on[u].bind(d)(t.arr[s.indexOf(de(s))],e)}};for(var y=0;y<v.length;y++){m(y)}this._shapes.push((new bR).data(f).d(function(t){return t.d}).select(fw("g.d3plus-Radar-items",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(h).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=el(this._axisConfig,e),this):this._axisConfig}},{key:"metric",value:function t(e){return arguments.length?(this._metric=typeof e==="function"?e:$u(e),this):this._metric}},{key:"outerPadding",value:function t(e){return arguments.length?(this._outerPadding=e,this):this._outerPadding}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:$u(e),this):this._value}}]);return _}(mZ);function o6(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){o6=function t(e){return typeof e}}else{o6=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return o6(t)}function s6(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function u6(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)l6(t,e)}function l6(t,e){l6=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return l6(t,e)}function c6(r){var a=d6();return function t(){var e=g6(r),n;if(a){var i=g6(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return f6(this,n)}}function f6(t,e){if(e&&(o6(e)==="object"||typeof e==="function")){return e}return h6(t)}function h6(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function d6(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function g6(t){g6=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return g6(t)}var p6=function(t){u6(n,t);var e=c6(n);function n(){var t;s6(this,n);t=e.call(this);t._stacked=true;return t}return n}(r3);function v6(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){v6=function t(e){return typeof e}}else{v6=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return v6(t)}function m6(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function y6(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(t,i.key,i)}}function _6(t,e,n){if(e)y6(t.prototype,e);if(n)y6(t,n);return t}function b6(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){b6=Reflect.get}else{b6=function t(e,n,i){var r=w6(e,n);if(!r)return;var a=Object.getOwnPropertyDescriptor(r,n);if(a.get){return a.get.call(i)}return a.value}}return b6(t,e,n||t)}function w6(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=R6(t);if(t===null)break}return t}function x6(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)k6(t,e)}function k6(t,e){k6=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return k6(t,e)}function S6(r){var a=A6();return function t(){var e=R6(r),n;if(a){var i=R6(this).constructor;n=Reflect.construct(e,arguments,i)}else{n=e.apply(this,arguments)}return C6(this,n)}}function C6(t,e){if(e&&(v6(e)==="object"||typeof e==="function")){return e}return E6(t)}function E6(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function A6(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function R6(t){R6=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return R6(t)}var M6=function(t){x6(p,t);var e=S6(p);function p(){var i;m6(this,p);i=e.call(this);i._axis=(new GR).align("end").orient("bottom");i._axisConfig={scale:"time"};i._axisTest=(new GR).align("end").gridSize(0).orient("bottom");i.end("end");i._paddingInner=.05;i._paddingOuter=.05;i._shapeConfig=el({},i._shapeConfig,{ariaLabel:function t(e,n){return"".concat(i._drawLabel(e,n),", ").concat(i._start(e,n)," - ").concat(i._end(e,n),".")}});i.start("start");return i}_6(p,[{key:"_draw",value:function t(e){var n=this;b6(R6(p.prototype),"_draw",this).call(this,e);if(!this._filteredData)return this;var i=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,end:n._axisConfig.scale==="time"?xR(n._end(t,e)):n._end(t,e),i:e,id:n._id(t,e),start:n._axisConfig.scale==="time"?xR(n._start(t,e)):n._start(t,e)}}).filter(function(t){return t.end-t.start>0}).sort(function(t,e){return t.start-e.start});var r;if(this._groupBy.length>1&&this._drawDepth>0){var a=Fe();var o=function t(e){a.key(function(t){return n._groupBy[e](t.data,t.i)})};for(var s=0;s<this._drawDepth;s++){o(s)}r=a.entries(i)}else r=[{values:i}];var u=0;r.forEach(function(t){var n=[];t.values.forEach(function(e){n=n.map(function(t){return t<=e.start?false:t});var t=n.indexOf(false);if(t<0){e.lane=u+n.length;n.push(e.end)}else{n[t]=e.end;e.lane=u+t}});u+=n.length});var l={domain:[de(i,function(t){return t.start})||0,ce(i,function(t){return t.end})||0],height:this._height-this._margin.top-this._margin.bottom,width:this._width-this._margin.left-this._margin.right};var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._axisTest.config(l).config(this._axisConfig).select(fw("g.d3plus-priestley-axis-test",{parent:this._select,enter:{opacity:0}}).node()).render();this._axis.config(l).config(this._axisConfig).select(fw("g.d3plus-priestley-axis",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).render();var f=this._axisTest._padding;var h=this._axis._d3Scale;var d=Qe().domain(le(0,u,1)).paddingInner(this._paddingInner).paddingOuter(this._paddingOuter).rangeRound([this._height-this._margin.bottom-this._axisTest.outerBounds().height-f,this._margin.top+f]);var g=d.bandwidth();this._shapes.push((new vA).data(i).duration(this._duration).height(g).label(function(t,e){return n._drawLabel(t.data,e)}).select(fw("g.d3plus-priestley-shapes",{parent:this._select}).node()).width(function(t){var e=Math.abs(h(t.end)-h(t.start));return e>2?e-2:e}).x(function(t){return h(t.start)+(h(t.end)-h(t.start))/2}).y(function(t){return d(t.lane)+g/2}).config(lw.bind(this)(this._shapeConfig,"shape","Rect")).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=el(this._axisConfig,e),this):this._axisConfig}},{key:"end",value:function t(e){if(arguments.length){if(typeof e==="function")this._end=e;else{this._end=$u(e);if(!this._aggs[e])this._aggs[e]=ce}return this}else return this._end}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"start",value:function t(e){if(arguments.length){if(typeof e==="function")this._start=e;else{this._start=$u(e);if(!this._aggs[e])this._aggs[e]=de}return this}else return this._start}}]);return p}(mZ);t.Area=RE;t.AreaPlot=r3;t.Axis=GR;t.AxisBottom=JR;t.AxisLeft=uM;t.AxisRight=yM;t.AxisTop=RM;t.Bar=GE;t.BarChart=g3;t.BaseClass=ow;t.Box=nR;t.BoxWhisker=S3;t.BumpChart=D3;t.Circle=nA;t.ColorScale=sK;t.Donut=f$;t.Geomap=HZ;t.Image=Ew;t.Legend=Yq;t.Line=TA;t.LinePlot=U3;t.Matrix=VQ;t.Network=b1;t.Pack=LJ;t.Path=bR;t.Pie=e$;t.Plot=Y2;t.Priestley=M6;t.RESET=Jb;t.Radar=a6;t.RadialMatrix=A0;t.Rect=vA;t.Rings=D1;t.Sankey=d2;t.Shape=dC;t.StackedArea=p6;t.TextBox=ZS;t.Timeline=wK;t.Tooltip=aX;t.Tree=eQ;t.Treemap=pQ;t.Viz=mZ;t.Whisker=VA;t.accessor=$u;t.assign=el;t.attrize=nl;t.ckmeans=zq;t.closest=sw;t.colorAdd=Aw;t.colorAssign=Tw;t.colorContrast=Pw;t.colorDefaults=Rw;t.colorLegible=Ow;t.colorLighter=Bw;t.colorSubtract=Dw;t.configPrep=lw;t.constant=cw;t.dataConcat=DU;t.dataFold=NU;t.dataLoad=lW;t.date=xR;t.dom2canvas=XP;t.elem=fw;t.findLocale=Xb;t.fontExists=mS;t.formatAbbreviate=xw;t.formatLocale=mw;t.isObject=Qu;t.largestRect=gE;t.lineIntersection=NC;t.merge=dw;t.parseSides=gw;t.path2polygon=oR;t.pointDistance=eC;t.pointDistanceSquared=tC;t.pointRotate=JC;t.polygonInside=UC;t.polygonRayCast=$C;t.polygonRotate=QC;t.prefix=pw;t.rtl=yS;t.saveElement=JP;t.segmentBoxContains=GC;t.segmentsIntersect=VC;t.shapeEdgePoint=rR;t.simplify=rE;t.stringify=_S;t.strip=wS;t.stylize=vw;t.textSplit=zS;t.textWidth=oS;t.textWrap=jS;t.titleCase=QS;t.trim=sS;t.trimLeft=uS;t.trimRight=lS;t.unique=hw;t.uuid=$b;t.version=e;Object.defineProperty(t,"__esModule",{value:true})}); |