suitepro/plugins/additionals/assets/javascripts/d3plus-network.full.min.js

32 lines
No EOL
785 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function _classCallCheck2(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function _createClass2(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}function _get2(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){_get2=Reflect.get}else{_get2=function e(t,n,i){var a=_superPropBase2(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return _get2(e,t,n||e)}function _superPropBase2(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=_getPrototypeOf2(e);if(e===null)break}return e}function _inherits2(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)_setPrototypeOf2(e,t)}function _setPrototypeOf2(e,t){_setPrototypeOf2=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return _setPrototypeOf2(e,t)}function _createSuper2(a){var r=_isNativeReflectConstruct2();return function e(){var t=_getPrototypeOf2(a),n;if(r){var i=_getPrototypeOf2(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return _possibleConstructorReturn2(this,n)}}function _possibleConstructorReturn2(e,t){if(t&&(_typeof2(t)==="object"||typeof t==="function")){return t}return _assertThisInitialized2(e)}function _assertThisInitialized2(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _isNativeReflectConstruct2(){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(e){return false}}function _getPrototypeOf2(e){_getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf2(e)}function _createForOfIteratorHelper(t,e){var n;if(typeof Symbol==="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=_unsupportedIterableToArray2(t))||e&&t&&typeof t.length==="number"){if(n)t=n;var i=0;var a=function e(){};return{s:a,n:function e(){if(i>=t.length)return{done:true};return{done:false,value:t[i++]}},e:function e(t){throw t},f:a}}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 r=true,o=false,s;return{s:function e(){n=t[Symbol.iterator]()},n:function e(){var t=n.next();r=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!r&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function _unsupportedIterableToArray2(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(e,t)}function _arrayLikeToArray2(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function ownKeys(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);if(e)i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable});n.push.apply(n,i)}return n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};if(e%2){ownKeys(Object(n),true).forEach(function(e){_defineProperty2(t,e,n[e])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))}else{ownKeys(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}}return t}function _defineProperty2(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function _typeof2(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof2=function e(t){return typeof t}}else{_typeof2=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return _typeof2(e)}
/*
d3plus-network v0.6.3
Javascript network visualizations built upon d3 modules.
Copyright (c) 2021 D3plus - https://d3plus.org
@license MIT
*/
(function(e){typeof define==="function"&&define.amd?define(e):e()})(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(e,t,i){return i={path:t,exports:{},require:function e(t,n){return a(t,n===undefined||n===null?i.path:n)}},e(i,i.exports),i.exports}function a(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var n=function e(t){return t&&t.Math==Math&&t};var f=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(e)=="object"&&e)||Function("return this")();var s=function e(t){try{return!!t()}catch(e){return true}};var d=!s(function(){return Object.defineProperty({},1,{get:function e(){return 7}})[1]!=7});var i={}.propertyIsEnumerable;var r=Object.getOwnPropertyDescriptor;var o=r&&!i.call({1:2},1);var l=o?function e(t){var n=r(this,t);return!!n&&n.enumerable}:i;var g={f:l};var u=function e(t,n){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:n}};var h={}.toString;var c=function e(t){return h.call(t).slice(8,-1)};var p="".split;var b=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return c(e)=="String"?p.call(e,""):Object(e)}:Object;var v=function e(t){if(t==undefined)throw TypeError("Can't call method on "+t);return t};var m=function e(t){return b(v(t))};var y=function e(t){return _typeof2(t)==="object"?t!==null:typeof t==="function"};var _=function e(t,n){if(!y(t))return t;var i,a;if(n&&typeof(i=t.toString)=="function"&&!y(a=i.call(t)))return a;if(typeof(i=t.valueOf)=="function"&&!y(a=i.call(t)))return a;if(!n&&typeof(i=t.toString)=="function"&&!y(a=i.call(t)))return a;throw TypeError("Can't convert object to primitive value")};var w={}.hasOwnProperty;var x=function e(t,n){return w.call(t,n)};var k=f.document;var S=y(k)&&y(k.createElement);var C=function e(t){return S?k.createElement(t):{}};var E=!d&&!s(function(){return Object.defineProperty(C("div"),"a",{get:function e(){return 7}}).a!=7});var A=Object.getOwnPropertyDescriptor;var R=d?A:function e(t,n){t=m(t);n=_(n,true);if(E)try{return A(t,n)}catch(e){}if(x(t,n))return u(!g.f.call(t,n),t[n])};var M={f:R};var T=function e(t){if(!y(t)){throw TypeError(String(t)+" is not an object")}return t};var B=Object.defineProperty;var N=d?B:function e(t,n,i){T(t);n=_(n,true);T(i);if(E)try{return B(t,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");if("value"in i)t[n]=i.value;return t};var P={f:N};var D=d?function(e,t,n){return P.f(e,t,u(1,n))}:function(e,t,n){e[t]=n;return e};var O=function e(t,n){try{D(f,t,n)}catch(e){f[t]=n}return n};var z="__core-js_shared__";var F=f[z]||O(z,{});var L=F;var I=Function.toString;if(typeof L.inspectSource!="function"){L.inspectSource=function(e){return I.call(e)}}var j=L.inspectSource;var H=f.WeakMap;var V=typeof H==="function"&&/native code/.test(j(H));var G=t(function(e){(e.exports=function(e,t){return L[e]||(L[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})});var U=0;var W=Math.random();var K=function e(t){return"Symbol("+String(t===undefined?"":t)+")_"+(++U+W).toString(36)};var q=G("keys");var Y=function e(t){return q[t]||(q[t]=K(t))};var X={};var $=f.WeakMap;var Z,J,Q;var ee=function e(t){return Q(t)?J(t):Z(t,{})};var te=function e(n){return function(e){var t;if(!y(e)||(t=J(e)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return t}};if(V){var ne=new $;var ie=ne.get;var ae=ne.has;var re=ne.set;Z=function e(t,n){re.call(ne,t,n);return n};J=function e(t){return ie.call(ne,t)||{}};Q=function e(t){return ae.call(ne,t)}}else{var oe=Y("state");X[oe]=true;Z=function e(t,n){D(t,oe,n);return n};J=function e(t){return x(t,oe)?t[oe]:{}};Q=function e(t){return x(t,oe)}}var se={set:Z,get:J,has:Q,enforce:ee,getterFor:te};var le=t(function(e){var t=se.get;var s=se.enforce;var l=String(String).split("String");(e.exports=function(e,t,n,i){var a=i?!!i.unsafe:false;var r=i?!!i.enumerable:false;var o=i?!!i.noTargetGet:false;if(typeof n=="function"){if(typeof t=="string"&&!x(n,"name"))D(n,"name",t);s(n).source=l.join(typeof t=="string"?t:"")}if(e===f){if(r)e[t]=n;else O(t,n);return}else if(!a){delete e[t]}else if(!o&&e[t]){r=true}if(r)e[t]=n;else D(e,t,n)})(Function.prototype,"toString",function e(){return typeof this=="function"&&t(this).source||j(this)})});var ue=f;var he=function e(t){return typeof t=="function"?t:undefined};var ce=function e(t,n){return arguments.length<2?he(ue[t])||he(f[t]):ue[t]&&ue[t][n]||f[t]&&f[t][n]};var fe=Math.ceil;var de=Math.floor;var ge=function e(t){return isNaN(t=+t)?0:(t>0?de:fe)(t)};var pe=Math.min;var ve=function e(t){return t>0?pe(ge(t),9007199254740991):0};var me=Math.max;var ye=Math.min;var _e=function e(t,n){var i=ge(t);return i<0?me(i+n,0):ye(i,n)};var be=function e(s){return function(e,t,n){var i=m(e);var a=ve(i.length);var r=_e(n,a);var o;if(s&&t!=t)while(a>r){o=i[r++];if(o!=o)return true}else for(;a>r;r++){if((s||r in i)&&i[r]===t)return s||r||0}return!s&&-1}};var we={includes:be(true),indexOf:be(false)};var xe=we.indexOf;var ke=function e(t,n){var i=m(t);var a=0;var r=[];var o;for(o in i){!x(X,o)&&x(i,o)&&r.push(o)}while(n.length>a){if(x(i,o=n[a++])){~xe(r,o)||r.push(o)}}return r};var Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Ce=Se.concat("length","prototype");var Ee=Object.getOwnPropertyNames||function e(t){return ke(t,Ce)};var Ae={f:Ee};var Re=Object.getOwnPropertySymbols;var Me={f:Re};var Te=ce("Reflect","ownKeys")||function e(t){var n=Ae.f(T(t));var i=Me.f;return i?n.concat(i(t)):n};var Be=function e(t,n){var i=Te(n);var a=P.f;var r=M.f;for(var o=0;o<i.length;o++){var s=i[o];if(!x(t,s))a(t,s,r(n,s))}};var Ne=/#|\.prototype\./;var Pe=function e(t,n){var i=Oe[De(t)];return i==Fe?true:i==ze?false:typeof n=="function"?s(n):!!n};var De=Pe.normalize=function(e){return String(e).replace(Ne,".").toLowerCase()};var Oe=Pe.data={};var ze=Pe.NATIVE="N";var Fe=Pe.POLYFILL="P";var Le=Pe;var Ie=M.f;var je=function e(t,n){var i=t.target;var a=t.global;var r=t.stat;var o,s,l,u,h,c;if(a){s=f}else if(r){s=f[i]||O(i,{})}else{s=(f[i]||{}).prototype}if(s)for(l in n){h=n[l];if(t.noTargetGet){c=Ie(s,l);u=c&&c.value}else u=s[l];o=Le(a?l:i+(r?".":"#")+l,t.forced);if(!o&&u!==undefined){if(_typeof2(h)===_typeof2(u))continue;Be(h,u)}if(t.sham||u&&u.sham){D(h,"sham",true)}le(s,l,h,t)}};var He=function e(t){if(typeof t!="function"){throw TypeError(String(t)+" is not a function")}return t};var Ve=function e(i,a,t){He(i);if(a===undefined)return i;switch(t){case 0:return function(){return i.call(a)};case 1:return function(e){return i.call(a,e)};case 2:return function(e,t){return i.call(a,e,t)};case 3:return function(e,t,n){return i.call(a,e,t,n)}}return function(){return i.apply(a,arguments)}};var Ge=function e(t){return Object(v(t))};var Ue=Array.isArray||function e(t){return c(t)=="Array"};var We=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())});var Ke=We&&!Symbol.sham&&_typeof2(Symbol.iterator)=="symbol";var qe=G("wks");var Ye=f.Symbol;var Xe=Ke?Ye:Ye&&Ye.withoutSetter||K;var $e=function e(t){if(!x(qe,t)){if(We&&x(Ye,t))qe[t]=Ye[t];else qe[t]=Xe("Symbol."+t)}return qe[t]};var Ze=$e("species");var Je=function e(t,n){var i;if(Ue(t)){i=t.constructor;if(typeof i=="function"&&(i===Array||Ue(i.prototype)))i=undefined;else if(y(i)){i=i[Ze];if(i===null)i=undefined}}return new(i===undefined?Array:i)(n===0?0:n)};var Qe=[].push;var et=function e(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(e,t,n,i){var a=Ge(e);var r=b(a);var o=Ve(t,n,3);var s=ve(r.length);var l=0;var u=i||Je;var h=g?u(e,s):p?u(e,0):undefined;var c,f;for(;s>l;l++){if(_||l in r){c=r[l];f=o(c,l,a);if(d){if(g)h[l]=f;else if(f)switch(d){case 3:return true;case 5:return c;case 6:return l;case 2:Qe.call(h,c)}else if(m)return false}}}return y?-1:v||m?m:h}};var tt={forEach:et(0),map:et(1),filter:et(2),some:et(3),every:et(4),find:et(5),findIndex:et(6)};var nt=Object.keys||function e(t){return ke(t,Se)};var it=d?Object.defineProperties:function e(t,n){T(t);var i=nt(n);var a=i.length;var r=0;var o;while(a>r){P.f(t,o=i[r++],n[o])}return t};var at=ce("document","documentElement");var rt=">";var ot="<";var st="prototype";var lt="script";var ut=Y("IE_PROTO");var ht=function e(){};var ct=function e(t){return ot+lt+rt+t+ot+"/"+lt+rt};var ft=function e(t){t.write(ct(""));t.close();var n=t.parentWindow.Object;t=null;return n};var dt=function e(){var t=C("iframe");var n="java"+lt+":";var i;t.style.display="none";at.appendChild(t);t.src=String(n);i=t.contentWindow.document;i.open();i.write(ct("document.F=Object"));i.close();return i.F};var gt;var pt=function e(){try{gt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}pt=gt?ft(gt):dt();var t=Se.length;while(t--){delete pt[st][Se[t]]}return pt()};X[ut]=true;var vt=Object.create||function e(t,n){var i;if(t!==null){ht[st]=T(t);i=new ht;ht[st]=null;i[ut]=t}else i=pt();return n===undefined?i:it(i,n)};var mt=$e("unscopables");var yt=Array.prototype;if(yt[mt]==undefined){P.f(yt,mt,{configurable:true,value:vt(null)})}var _t=function e(t){yt[mt][t]=true};var bt=Object.defineProperty;var wt={};var xt=function e(t){throw t};var kt=function e(t,n){if(x(wt,t))return wt[t];if(!n)n={};var i=[][t];var a=x(n,"ACCESSORS")?n.ACCESSORS:false;var r=x(n,0)?n[0]:xt;var o=x(n,1)?n[1]:undefined;return wt[t]=!!i&&!s(function(){if(a&&!d)return true;var e={length:-1};if(a)bt(e,1,{enumerable:true,get:xt});else e[1]=1;i.call(e,r,o)})};var St=tt.find;var Ct="find";var Et=true;var At=kt(Ct);if(Ct in[])Array(1)[Ct](function(){Et=false});je({target:"Array",proto:true,forced:Et||!At},{find:function e(t){return St(this,t,arguments.length>1?arguments[1]:undefined)}});_t(Ct);var Rt=we.includes;var Mt=kt("indexOf",{ACCESSORS:true,1:0});je({target:"Array",proto:true,forced:!Mt},{includes:function e(t){return Rt(this,t,arguments.length>1?arguments[1]:undefined)}});_t("includes");var Tt=Object.assign;var Bt=Object.defineProperty;var Nt=!Tt||s(function(){if(d&&Tt({b:1},Tt(Bt({},"a",{enumerable:true,get:function e(){Bt(this,"b",{value:3,enumerable:false})}}),{b:2})).b!==1)return true;var e={};var t={};var n=Symbol();var i="abcdefghijklmnopqrst";e[n]=7;i.split("").forEach(function(e){t[e]=e});return Tt({},e)[n]!=7||nt(Tt({},t)).join("")!=i})?function e(t,n){var i=Ge(t);var a=arguments.length;var r=1;var o=Me.f;var s=g.f;while(a>r){var l=b(arguments[r++]);var u=o?nt(l).concat(o(l)):nt(l);var h=u.length;var c=0;var f;while(h>c){f=u[c++];if(!d||s.call(l,f))i[f]=l[f]}}return i}:Tt;je({target:"Object",stat:true,forced:Object.assign!==Nt},{assign:Nt});var Pt=$e("match");var Dt=function e(t){var n;return y(t)&&((n=t[Pt])!==undefined?!!n:c(t)=="RegExp")};var Ot=function e(t){if(Dt(t)){throw TypeError("The method doesn't accept regular expressions")}return t};var zt=$e("match");var Ft=function e(t){var n=/./;try{"/./"[t](n)}catch(e){try{n[zt]=false;return"/./"[t](n)}catch(e){}}return false};je({target:"String",proto:true,forced:!Ft("includes")},{includes:function e(t){return!!~String(v(this)).indexOf(Ot(t),arguments.length>1?arguments[1]:undefined)}});var Lt=M.f;var It="".startsWith;var jt=Math.min;var Ht=Ft("startsWith");var Vt=!Ht&&!!function(){var e=Lt(String.prototype,"startsWith");return e&&!e.writable}();je({target:"String",proto:true,forced:!Vt&&!Ht},{startsWith:function e(t){var n=String(v(this));Ot(t);var i=ve(jt(arguments.length>1?arguments[1]:undefined,n.length));var a=String(t);return It?It.call(n,a,i):n.slice(i,i+a.length)===a}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(e){return}function n(e){switch(e.nodeType){case 1:return a(e);case 3:return t(e);case 8:return i(e)}}function t(e){return e.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function i(e){return"\x3c!--"+e.nodeValue+"--\x3e"}function a(e){var t="";t+="<"+e.tagName;if(e.hasAttributes()){[].forEach.call(e.attributes,function(e){t+=" "+e.name+'="'+e.value+'"'})}t+=">";if(e.hasChildNodes()){[].forEach.call(e.childNodes,function(e){t+=n(e)})}t+="</"+e.tagName+">";return t}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function e(){var t="";[].forEach.call(this.childNodes,function(e){t+=n(e)});return t},set:function e(t){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'>"+t+"</svg>";var a=n.parseFromString(i,"text/xml").documentElement;[].forEach.call(a.childNodes,function(e){this.appendChild(this.ownerDocument.importNode(e,true))}.bind(this))}catch(e){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function e(){return this.innerHTML},set:function e(t){this.innerHTML=t}})})()}});(function(e,t){(typeof exports==="undefined"?"undefined":_typeof2(exports))==="object"&&typeof module!=="undefined"?t(exports):typeof define==="function"&&define.amd?define("d3plus-network",["exports"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.d3plus={}))})(this,function(e){function k(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function S(o){if(o.length===1)o=t(o);return{left:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i<a){var r=i+a>>>1;if(o(t[r],n)<0)i=r+1;else a=r}return i},right:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i<a){var r=i+a>>>1;if(o(t[r],n)>0)a=r;else i=r+1}return i}}}function t(n){return function(e,t){return k(n(e),t)}}var n=S(k);var u=n.right;function h(e){return e===null?NaN:+e}function i(e,t){var n=e.length,i=0,a=-1,r=0,o,s,l=0;if(t==null){while(++a<n){if(!isNaN(o=h(e[a]))){s=o-r;r+=s/++i;l+=s*(o-r)}}}else{while(++a<n){if(!isNaN(o=h(t(e[a],a,e)))){s=o-r;r+=s/++i;l+=s*(o-r)}}}if(i>1)return l/(i-1)}function ze(e,t){var n=i(e,t);return n?Math.sqrt(n):n}function Fe(e,t){var n=e.length,i=-1,a,r,o;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=o=a;while(++i<n){if((a=e[i])!=null){if(r>a)r=a;if(o<a)o=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=o=a;while(++i<n){if((a=t(e[i],i,e))!=null){if(r>a)r=a;if(o<a)o=a}}}}}return[r,o]}function Le(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;var i=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,r=new Array(a);while(++i<a){r[i]=e+i*n}return r}var o=Math.sqrt(50),s=Math.sqrt(10),l=Math.sqrt(2);function ve(e,t,n){var i,a=-1,r,o,s;t=+t,e=+e,n=+n;if(e===t&&n>0)return[e];if(i=t<e)r=e,e=t,t=r;if((s=c(e,t,n))===0||!isFinite(s))return[];if(s>0){e=Math.ceil(e/s);t=Math.floor(t/s);o=new Array(r=Math.ceil(t-e+1));while(++a<r){o[a]=(e+a)*s}}else{e=Math.floor(e*s);t=Math.ceil(t*s);o=new Array(r=Math.ceil(e-t+1));while(++a<r){o[a]=(e-a)/s}}if(i)o.reverse();return o}function c(e,t,n){var i=(t-e)/Math.max(0,n),a=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,a);return a>=0?(r>=o?10:r>=s?5:r>=l?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(r>=o?10:r>=s?5:r>=l?2:1)}function C(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/a;if(r>=o)a*=10;else if(r>=s)a*=5;else if(r>=l)a*=2;return t<e?-a:a}function Ie(e,t,n){if(n==null)n=h;if(!(i=e.length))return;if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,a=(i-1)*t,r=Math.floor(a),o=+n(e[r],r,e),s=+n(e[r+1],r+1,e);return o+(s-o)*(a-r)}function me(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=a;while(++i<n){if((a=e[i])!=null&&a>r){r=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=a;while(++i<n){if((a=t(e[i],i,e))!=null&&a>r){r=a}}}}}return r}function a(e,t){var n=e.length,i=n,a=-1,r,o=0;if(t==null){while(++a<n){if(!isNaN(r=h(e[a])))o+=r;else--i}}else{while(++a<n){if(!isNaN(r=h(t(e[a],a,e))))o+=r;else--i}}if(i)return o/i}function _e(e){var t=e.length,n,i=-1,a=0,r,o;while(++i<t){a+=e[i].length}r=new Array(a);while(--t>=0){o=e[t];n=o.length;while(--n>=0){r[--a]=o[n]}}return r}function je(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=a;while(++i<n){if((a=e[i])!=null&&r>a){r=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=a;while(++i<n){if((a=t(e[i],i,e))!=null&&r>a){r=a}}}}}return r}function O(e,t){var n=e.length,i=-1,a,r=0;if(t==null){while(++i<n){if(a=+e[i])r+=a}}else{while(++i<n){if(a=+t(e[i],i,e))r+=a}}return r}var r="$";function f(){}f.prototype=E.prototype={constructor:f,has:function e(t){return r+t in this},get:function e(t){return this[r+t]},set:function e(t,n){this[r+t]=n;return this},remove:function e(t){var n=r+t;return n in this&&delete this[n]},clear:function e(){for(var t in this){if(t[0]===r)delete this[t]}},keys:function e(){var e=[];for(var t in this){if(t[0]===r)e.push(t.slice(1))}return e},values:function e(){var e=[];for(var t in this){if(t[0]===r)e.push(this[t])}return e},entries:function e(){var e=[];for(var t in this){if(t[0]===r)e.push({key:t.slice(1),value:this[t]})}return e},size:function e(){var e=0;for(var t in this){if(t[0]===r)++e}return e},empty:function e(){for(var t in this){if(t[0]===r)return false}return true},each:function e(t){for(var n in this){if(n[0]===r)t(this[n],n.slice(1),this)}}};function E(e,t){var n=new f;if(e instanceof f)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i=-1,a=e.length,r;if(t==null)while(++i<a){n.set(i,e[i])}else while(++i<a){n.set(t(r=e[i],i,e),r)}}else if(e)for(var o in e){n.set(o,e[o])}return n}function X(){var f=[],r=[],d,g,n;function p(e,n,i,a){if(n>=f.length){if(d!=null)e.sort(d);return g!=null?g(e):e}var t=-1,r=e.length,o=f[n++],s,l,u=E(),h,c=i();while(++t<r){if(h=u.get(s=o(l=e[t])+"")){h.push(l)}else{u.set(s,[l])}}u.each(function(e,t){a(c,t,p(e,n,i,a))});return c}function o(e,n){if(++n>f.length)return e;var i,a=r[n-1];if(g!=null&&n>=f.length)i=e.entries();else i=[],e.each(function(e,t){i.push({key:t,values:o(e,n)})});return a!=null?i.sort(function(e,t){return a(e.key,t.key)}):i}return n={object:function e(t){return p(t,0,v,m)},map:function e(t){return p(t,0,y,_)},entries:function e(t){return o(p(t,0,y,_),0)},key:function e(t){f.push(t);return n},sortKeys:function e(t){r[f.length-1]=t;return n},sortValues:function e(t){d=t;return n},rollup:function e(t){g=t;return n}}}function v(){return{}}function m(e,t,n){e[t]=n}function y(){return E()}function _(e,t,n){e.set(t,n)}function d(){}var g=E.prototype;d.prototype={constructor:d,has:g.has,add:function e(t){t+="";this[r+t]=t;return this},remove:g.remove,clear:g.clear,values:g.keys,size:g.size,empty:g.empty,each:g.each};function p(e){var t=[];for(var n in e){t.push(n)}return t}function b(e){return function(){return e}}function w(){return(Math.random()-.5)*1e-6}function x(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return A(this.cover(t,n),t,n,e)}function A(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var a,r=e._root,o={data:i},s=e._x0,l=e._y0,u=e._x1,h=e._y1,c,f,d,g,p,v,m,y;if(!r)return e._root=o,e;while(r.length){if(p=t>=(c=(s+u)/2))s=c;else u=c;if(v=n>=(f=(l+h)/2))l=f;else h=f;if(a=r,!(r=r[m=v<<1|p]))return a[m]=o,e}d=+e._x.call(null,r.data);g=+e._y.call(null,r.data);if(t===d&&n===g)return o.next=r,a?a[m]=o:e._root=o,e;do{a=a?a[m]=new Array(4):e._root=new Array(4);if(p=t>=(c=(s+u)/2))s=c;else u=c;if(v=n>=(f=(l+h)/2))l=f;else h=f}while((m=v<<1|p)===(y=(g>=f)<<1|d>=c));return a[y]=r,a[m]=o,e}function R(e){var t,n,i=e.length,a,r,o=new Array(i),s=new Array(i),l=Infinity,u=Infinity,h=-Infinity,c=-Infinity;for(n=0;n<i;++n){if(isNaN(a=+this._x.call(null,t=e[n]))||isNaN(r=+this._y.call(null,t)))continue;o[n]=a;s[n]=r;if(a<l)l=a;if(a>h)h=a;if(r<u)u=r;if(r>c)c=r}if(l>h||u>c)return this;this.cover(l,u).cover(h,c);for(n=0;n<i;++n){A(this,o[n],s[n],e[n])}return this}function M(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,a=this._x1,r=this._y1;if(isNaN(n)){a=(n=Math.floor(e))+1;r=(i=Math.floor(t))+1}else{var o=a-n,s=this._root,l,u;while(n>e||e>=a||i>t||t>=r){u=(t<i)<<1|e<n;l=new Array(4),l[u]=s,s=l,o*=2;switch(u){case 0:a=n+o,r=i+o;break;case 1:n=a-o,r=i+o;break;case 2:a=n+o,i=r-o;break;case 3:n=a-o,i=r-o;break}}if(this._root&&this._root.length)this._root=s}this._x0=n;this._y0=i;this._x1=a;this._y1=r;return this}function T(){var t=[];this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)});return t}function B(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?undefined:[[this._x0,this._y0],[this._x1,this._y1]]}function N(e,t,n,i,a){this.node=e;this.x0=t;this.y0=n;this.x1=i;this.y1=a}function P(e,t,n){var i,a=this._x0,r=this._y0,o,s,l,u,h=this._x1,c=this._y1,f=[],d=this._root,g,p;if(d)f.push(new N(d,a,r,h,c));if(n==null)n=Infinity;else{a=e-n,r=t-n;h=e+n,c=t+n;n*=n}while(g=f.pop()){if(!(d=g.node)||(o=g.x0)>h||(s=g.y0)>c||(l=g.x1)<a||(u=g.y1)<r)continue;if(d.length){var v=(o+l)/2,m=(s+u)/2;f.push(new N(d[3],v,m,l,u),new N(d[2],o,m,v,u),new N(d[1],v,s,l,m),new N(d[0],o,s,v,m));if(p=(t>=m)<<1|e>=v){g=f[f.length-1];f[f.length-1]=f[f.length-1-p];f[f.length-1-p]=g}}else{var y=e-+this._x.call(null,d.data),_=t-+this._y.call(null,d.data),b=y*y+_*_;if(b<n){var w=Math.sqrt(n=b);a=e-w,r=t-w;h=e+w,c=t+w;i=d.data}}}return i}function D(e){if(isNaN(h=+this._x.call(null,e))||isNaN(c=+this._y.call(null,e)))return this;var t,n=this._root,i,a,r,o=this._x0,s=this._y0,l=this._x1,u=this._y1,h,c,f,d,g,p,v,m;if(!n)return this;if(n.length)while(true){if(g=h>=(f=(o+l)/2))o=f;else l=f;if(p=c>=(d=(s+u)/2))s=d;else u=d;if(!(t=n,n=n[v=p<<1|g]))return this;if(!n.length)break;if(t[v+1&3]||t[v+2&3]||t[v+3&3])i=t,m=v}while(n.data!==e){if(!(a=n,n=n.next))return this}if(r=n.next)delete n.next;if(a)return r?a.next=r:delete a.next,this;if(!t)return this._root=r,this;r?t[v]=r:delete t[v];if((n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length){if(i)i[m]=n;else this._root=n}return this}function z(e){for(var t=0,n=e.length;t<n;++t){this.remove(e[t])}return this}function F(){return this._root}function L(){var t=0;this.visit(function(e){if(!e.length)do{++t}while(e=e.next)});return t}function I(e){var t=[],n,i=this._root,a,r,o,s,l;if(i)t.push(new N(i,this._x0,this._y0,this._x1,this._y1));while(n=t.pop()){if(!e(i=n.node,r=n.x0,o=n.y0,s=n.x1,l=n.y1)&&i.length){var u=(r+s)/2,h=(o+l)/2;if(a=i[3])t.push(new N(a,u,h,s,l));if(a=i[2])t.push(new N(a,r,h,u,l));if(a=i[1])t.push(new N(a,u,o,s,h));if(a=i[0])t.push(new N(a,r,o,u,h))}}return this}function j(e){var t=[],n=[],i;if(this._root)t.push(new N(this._root,this._x0,this._y0,this._x1,this._y1));while(i=t.pop()){var a=i.node;if(a.length){var r,o=i.x0,s=i.y0,l=i.x1,u=i.y1,h=(o+l)/2,c=(s+u)/2;if(r=a[0])t.push(new N(r,o,s,h,c));if(r=a[1])t.push(new N(r,h,s,l,c));if(r=a[2])t.push(new N(r,o,c,h,u));if(r=a[3])t.push(new N(r,h,c,l,u))}n.push(i)}while(i=n.pop()){e(i.node,i.x0,i.y0,i.x1,i.y1)}return this}function H(e){return e[0]}function V(e){return arguments.length?(this._x=e,this):this._x}function G(e){return e[1]}function U(e){return arguments.length?(this._y=e,this):this._y}function W(e,t,n){var i=new K(t==null?H:t,n==null?G:n,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function K(e,t,n,i,a,r){this._x=e;this._y=t;this._x0=n;this._y0=i;this._x1=a;this._y1=r;this._root=undefined}function q(e){var t={data:e.data},n=t;while(e=e.next){n=n.next={data:e.data}}return t}var Y=W.prototype=K.prototype;Y.copy=function(){var e=new K(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,i;if(!t)return e;if(!t.length)return e._root=q(t),e;n=[{source:t,target:e._root=new Array(4)}];while(t=n.pop()){for(var a=0;a<4;++a){if(i=t.source[a]){if(i.length)n.push({source:i,target:t.target[a]=new Array(4)});else t.target[a]=q(i)}}}return e};Y.add=x;Y.addAll=R;Y.cover=M;Y.data=T;Y.extent=B;Y.find=P;Y.remove=D;Y.removeAll=z;Y.root=F;Y.size=L;Y.visit=I;Y.visitAfter=j;Y.x=V;Y.y=U;function Z(e){return e.index}function J(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Q(c){var r=Z,n=e,f,i=b(30),d,o,s,g,p=1;if(c==null)c=[];function e(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function t(e){for(var t=0,n=c.length;t<p;++t){for(var i=0,a,r,o,s,l,u,h;i<n;++i){a=c[i],r=a.source,o=a.target;s=o.x+o.vx-r.x-r.vx||w();l=o.y+o.vy-r.y-r.vy||w();u=Math.sqrt(s*s+l*l);u=(u-d[i])/u*e*f[i];s*=u,l*=u;o.vx-=s*(h=g[i]);o.vy-=l*h;r.vx+=s*(h=1-h);r.vy+=l*h}}}function a(){if(!o)return;var e,t=o.length,n=c.length,i=E(o,r),a;for(e=0,s=new Array(t);e<n;++e){a=c[e],a.index=e;if(_typeof2(a.source)!=="object")a.source=J(i,a.source);if(_typeof2(a.target)!=="object")a.target=J(i,a.target);s[a.source.index]=(s[a.source.index]||0)+1;s[a.target.index]=(s[a.target.index]||0)+1}for(e=0,g=new Array(n);e<n;++e){a=c[e],g[e]=s[a.source.index]/(s[a.source.index]+s[a.target.index])}f=new Array(n),l();d=new Array(n),u()}function l(){if(!o)return;for(var e=0,t=c.length;e<t;++e){f[e]=+n(c[e],e,c)}}function u(){if(!o)return;for(var e=0,t=c.length;e<t;++e){d[e]=+i(c[e],e,c)}}t.initialize=function(e){o=e;a()};t.links=function(e){return arguments.length?(c=e,a(),t):c};t.id=function(e){return arguments.length?(r=e,t):r};t.iterations=function(e){return arguments.length?(p=+e,t):p};t.strength=function(e){return arguments.length?(n=typeof e==="function"?e:b(+e),l(),t):n};t.distance=function(e){return arguments.length?(i=typeof e==="function"?e:b(+e),u(),t):i};return t}var ee={value:function e(){}};function te(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n)throw new Error("illegal type: "+i);n[i]=[]}return new ne(n)}function ne(e){this._=e}function ie(e,i){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0)t=e.slice(n+1),e=e.slice(0,n);if(e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})}ne.prototype=te.prototype={constructor:ne,on:function e(t,n){var i=this._,a=ie(t+"",i),r,o=-1,s=a.length;if(arguments.length<2){while(++o<s){if((r=(t=a[o]).type)&&(r=ae(i[r],t.name)))return r}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(r=(t=a[o]).type)i[r]=re(i[r],t.name,n);else if(n==null)for(r in i){i[r]=re(i[r],t.name,null)}}return this},copy:function e(){var e={},t=this._;for(var n in t){e[n]=t[n].slice()}return new ne(e)},call:function e(t,n){if((r=arguments.length-2)>0)for(var i=new Array(r),a=0,r,o;a<r;++a){i[a]=arguments[a+2]}if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],a=0,r=o.length;a<r;++a){o[a].value.apply(n,i)}},apply:function e(t,n,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],r=0,o=a.length;r<o;++r){a[r].value.apply(n,i)}}};function ae(e,t){for(var n=0,i=e.length,a;n<i;++n){if((a=e[n]).name===t){return a.value}}}function re(e,t,n){for(var i=0,a=e.length;i<a;++i){if(e[i].name===t){e[i]=ee,e=e.slice(0,i).concat(e.slice(i+1));break}}if(n!=null)e.push({name:t,value:n});return e}var oe=0,se=0,le=0,ue=1e3,he,ce,fe=0,de=0,ge=0,pe=(typeof performance==="undefined"?"undefined":_typeof2(performance))==="object"&&performance.now?performance:Date,ye=(typeof window==="undefined"?"undefined":_typeof2(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function be(){return de||(ye(we),de=pe.now()+ge)}function we(){de=0}function xe(){this._call=this._time=this._next=null}xe.prototype=ke.prototype={constructor:xe,restart:function e(t,n,i){if(typeof t!=="function")throw new TypeError("callback is not a function");i=(i==null?be():+i)+(n==null?0:+n);if(!this._next&&ce!==this){if(ce)ce._next=this;else he=this;ce=this}this._call=t;this._time=i;Re()},stop:function e(){if(this._call){this._call=null;this._time=Infinity;Re()}}};function ke(e,t,n){var i=new xe;i.restart(e,t,n);return i}function Se(){be();++oe;var e=he,t;while(e){if((t=de-e._time)>=0)e._call.call(null,t);e=e._next}--oe}function Ce(){de=(fe=pe.now())+ge;oe=se=0;try{Se()}finally{oe=0;Ae();de=0}}function Ee(){var e=pe.now(),t=e-fe;if(t>ue)ge-=t,fe=e}function Ae(){var e,t=he,n,i=Infinity;while(t){if(t._call){if(i>t._time)i=t._time;e=t,t=t._next}else{n=t._next,t._next=null;t=e?e._next=n:he=n}}ce=e;Re(i)}function Re(e){if(oe)return;if(se)se=clearTimeout(se);var t=e-de;if(t>24){if(e<Infinity)se=setTimeout(Ce,e-pe.now()-ge);if(le)le=clearInterval(le)}else{if(!le)fe=pe.now(),le=setInterval(Ee,ue);oe=1,ye(Ce)}}function Me(t,n,e){var i=new xe;n=n==null?0:+n;i.restart(function(e){i.stop();t(e+n)},n,e);return i}function Te(e){return e.x}function Be(e){return e.y}var Ne=10,Pe=Math.PI*(3-Math.sqrt(5));function De(c){var r,o=1,n=.001,s=1-Math.pow(n,1/300),l=0,u=.6,h=E(),t=ke(a),i=te("tick","end");if(c==null)c=[];function a(){e();i.call("tick",r);if(o<n){t.stop();i.call("end",r)}}function e(e){var t,n=c.length,i;if(e===undefined)e=1;for(var a=0;a<e;++a){o+=(l-o)*s;h.each(function(e){e(o)});for(t=0;t<n;++t){i=c[t];if(i.fx==null)i.x+=i.vx*=u;else i.x=i.fx,i.vx=0;if(i.fy==null)i.y+=i.vy*=u;else i.y=i.fy,i.vy=0}}return r}function f(){for(var e=0,t=c.length,n;e<t;++e){n=c[e],n.index=e;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=Ne*Math.sqrt(e),a=e*Pe;n.x=i*Math.cos(a);n.y=i*Math.sin(a)}if(isNaN(n.vx)||isNaN(n.vy)){n.vx=n.vy=0}}}function d(e){if(e.initialize)e.initialize(c);return e}f();return r={tick:e,restart:function e(){return t.restart(a),r},stop:function e(){return t.stop(),r},nodes:function e(t){return arguments.length?(c=t,f(),h.each(d),r):c},alpha:function e(t){return arguments.length?(o=+t,r):o},alphaMin:function e(t){return arguments.length?(n=+t,r):n},alphaDecay:function e(t){return arguments.length?(s=+t,r):+s},alphaTarget:function e(t){return arguments.length?(l=+t,r):l},velocityDecay:function e(t){return arguments.length?(u=1-t,r):1-u},force:function e(t,n){return arguments.length>1?(n==null?h.remove(t):h.set(t,d(n)),r):h.get(t)},find:function e(t,n,i){var a=0,r=c.length,o,s,l,u,h;if(i==null)i=Infinity;else i*=i;for(a=0;a<r;++a){u=c[a];o=t-u.x;s=n-u.y;l=o*o+s*s;if(l<i)h=u,i=l}return h},on:function e(t,n){return arguments.length>1?(i.on(t,n),r):i.on(t)}}}function Oe(){var a,l,u,i=b(-30),h,c=1,f=Infinity,d=.81;function t(e){var t,n=a.length,i=W(a,Te,Be).visitAfter(r);for(u=e,t=0;t<n;++t){l=a[t],i.visit(o)}}function n(){if(!a)return;var e,t=a.length,n;h=new Array(t);for(e=0;e<t;++e){n=a[e],h[n.index]=+i(n,e,a)}}function r(e){var t=0,n,i,a=0,r,o,s;if(e.length){for(r=o=s=0;s<4;++s){if((n=e[s])&&(i=Math.abs(n.value))){t+=n.value,a+=i,r+=i*n.x,o+=i*n.y}}e.x=r/a;e.y=o/a}else{n=e;n.x=n.data.x;n.y=n.data.y;do{t+=h[n.data.index]}while(n=n.next)}e.value=t}function o(e,t,n,i){if(!e.value)return true;var a=e.x-l.x,r=e.y-l.y,o=i-t,s=a*a+r*r;if(o*o/d<s){if(s<f){if(a===0)a=w(),s+=a*a;if(r===0)r=w(),s+=r*r;if(s<c)s=Math.sqrt(c*s);l.vx+=a*e.value*u/s;l.vy+=r*e.value*u/s}return true}else if(e.length||s>=f)return;if(e.data!==l||e.next){if(a===0)a=w(),s+=a*a;if(r===0)r=w(),s+=r*r;if(s<c)s=Math.sqrt(c*s)}do{if(e.data!==l){o=h[e.data.index]*u/s;l.vx+=a*o;l.vy+=r*o}}while(e=e.next)}t.initialize=function(e){a=e;n()};t.strength=function(e){return arguments.length?(i=typeof e==="function"?e:b(+e),n(),t):i};t.distanceMin=function(e){return arguments.length?(c=e*e,t):Math.sqrt(c)};t.distanceMax=function(e){return arguments.length?(f=e*e,t):Math.sqrt(f)};t.theta=function(e){return arguments.length?(d=e*e,t):Math.sqrt(d)};return t}function He(e){var t=-1,n=e.length,i,a=e[n-1],r=0;while(++t<n){i=a;a=e[t];r+=i[1]*a[0]-i[0]*a[1]}return r/2}function Ve(e){var t=-1,n=e.length,i=0,a=0,r,o=e[n-1],s,l=0;while(++t<n){r=o;o=e[t];l+=s=r[0]*o[1]-o[0]*r[1];i+=(r[0]+o[0])*s;a+=(r[1]+o[1])*s}return l*=3,[i/l,a/l]}function Ge(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Ue(e,t){return e[0]-t[0]||e[1]-t[1]}function We(e){var t=e.length,n=[0,1],i=2;for(var a=2;a<t;++a){while(i>1&&Ge(e[n[i-2]],e[n[i-1]],e[a])<=0){--i}n[i++]=a}return n.slice(0,i)}function Ke(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),a=new Array(n);for(t=0;t<n;++t){i[t]=[+e[t][0],+e[t][1],t]}i.sort(Ue);for(t=0;t<n;++t){a[t]=[i[t][0],-i[t][1]]}var r=We(i),o=We(a);var s=o[0]===r[0],l=o[o.length-1]===r[r.length-1],u=[];for(t=r.length-1;t>=0;--t){u.push(e[i[r[t]][2]])}for(t=+s;t<o.length-l;++t){u.push(e[i[o[t]][2]])}return u}function qe(e,t){var n=e.length,i=e[n-1],a=t[0],r=t[1],o=i[0],s=i[1],l,u,h=false;for(var c=0;c<n;++c){i=e[c],l=i[0],u=i[1];if(u>r!==s>r&&a<(o-l)*(r-u)/(s-u)+l)h=!h;o=l,s=u}return h}function Ye(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xe(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e);break}return this}var $e=Array.prototype;var Ze=$e.map;var Je=$e.slice;var Qe={name:"implicit"};function et(){var r=E(),o=[],i=[],a=Qe;function s(e){var t=e+"",n=r.get(t);if(!n){if(a!==Qe)return a;r.set(t,n=o.push(e))}return i[(n-1)%i.length]}s.domain=function(e){if(!arguments.length)return o.slice();o=[],r=E();var t=-1,n=e.length,i,a;while(++t<n){if(!r.has(a=(i=e[t])+""))r.set(a,o.push(i))}return s};s.range=function(e){return arguments.length?(i=Je.call(e),s):i.slice()};s.unknown=function(e){return arguments.length?(a=e,s):a};s.copy=function(){return et(o,i).unknown(a)};Ye.apply(s,arguments);return s}function tt(){var e=et().unknown(undefined),r=e.domain,o=e.range,s=[0,1],l,u,h=false,c=0,f=0,d=.5;delete e.unknown;function t(){var e=r().length,t=s[1]<s[0],n=s[t-0],i=s[1-t];l=(i-n)/Math.max(1,e-c+f*2);if(h)l=Math.floor(l);n+=(i-n-l*(e-c))*d;u=l*(1-c);if(h)n=Math.round(n),u=Math.round(u);var a=Le(e).map(function(e){return n+l*e});return o(t?a.reverse():a)}e.domain=function(e){return arguments.length?(r(e),t()):r()};e.range=function(e){return arguments.length?(s=[+e[0],+e[1]],t()):s.slice()};e.rangeRound=function(e){return s=[+e[0],+e[1]],h=true,t()};e.bandwidth=function(){return u};e.step=function(){return l};e.round=function(e){return arguments.length?(h=!!e,t()):h};e.padding=function(e){return arguments.length?(c=Math.min(1,f=+e),t()):c};e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),t()):c};e.paddingOuter=function(e){return arguments.length?(f=+e,t()):f};e.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d};e.copy=function(){return tt(r(),s).round(h).paddingInner(c).paddingOuter(f).align(d)};return Ye.apply(t(),arguments)}function nt(e){var t=e.copy;e.padding=e.paddingOuter;delete e.paddingInner;delete e.paddingOuter;e.copy=function(){return nt(t())};return e}function it(){return nt(tt.apply(null,arguments).paddingInner(1))}function at(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function rt(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function ot(){}var st=.7;var lt=1/st;var ut="\\s*([+-]?\\d+)\\s*",ht="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ct="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ft=/^#([0-9a-f]{3})$/,dt=/^#([0-9a-f]{6})$/,gt=new RegExp("^rgb\\("+[ut,ut,ut]+"\\)$"),pt=new RegExp("^rgb\\("+[ct,ct,ct]+"\\)$"),vt=new RegExp("^rgba\\("+[ut,ut,ut,ht]+"\\)$"),mt=new RegExp("^rgba\\("+[ct,ct,ct,ht]+"\\)$"),yt=new RegExp("^hsl\\("+[ht,ct,ct]+"\\)$"),_t=new RegExp("^hsla\\("+[ht,ct,ct,ht]+"\\)$");var bt={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};at(ot,wt,{displayable:function e(){return this.rgb().displayable()},hex:function e(){return this.rgb().hex()},toString:function e(){return this.rgb()+""}});function wt(e){var t;e=(e+"").trim().toLowerCase();return(t=ft.exec(e))?(t=parseInt(t[1],16),new Et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=dt.exec(e))?xt(parseInt(t[1],16)):(t=gt.exec(e))?new Et(t[1],t[2],t[3],1):(t=pt.exec(e))?new Et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vt.exec(e))?kt(t[1],t[2],t[3],t[4]):(t=mt.exec(e))?kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yt.exec(e))?Rt(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?Rt(t[1],t[2]/100,t[3]/100,t[4]):bt.hasOwnProperty(e)?xt(bt[e]):e==="transparent"?new Et(NaN,NaN,NaN,0):null}function xt(e){return new Et(e>>16&255,e>>8&255,e&255,1)}function kt(e,t,n,i){if(i<=0)e=t=n=NaN;return new Et(e,t,n,i)}function St(e){if(!(e instanceof ot))e=wt(e);if(!e)return new Et;e=e.rgb();return new Et(e.r,e.g,e.b,e.opacity)}function Ct(e,t,n,i){return arguments.length===1?St(e):new Et(e,t,n,i==null?1:i)}function Et(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}at(Et,Ct,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new Et(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new Et(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function e(){return"#"+At(this.r)+At(this.g)+At(this.b)},toString:function e(){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 At(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Rt(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new Bt(e,t,n,i)}function Mt(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(!(e instanceof ot))e=wt(e);if(!e)return new Bt;if(e instanceof Bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new Bt(o,s,l,e.opacity)}function Tt(e,t,n,i){return arguments.length===1?Mt(e):new Bt(e,t,n,i==null?1:i)}function Bt(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}at(Bt,Tt,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new Bt(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new Bt(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Et(Nt(t>=240?t-240:t+120,r,a),Nt(t,r,a),Nt(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));function Nt(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Pt=Math.PI/180;var Dt=180/Math.PI;var Ot=18,zt=.96422,Ft=1,Lt=.82521,It=4/29,jt=6/29,Ht=3*jt*jt,Vt=jt*jt*jt;function Gt(e){if(e instanceof Wt)return new Wt(e.l,e.a,e.b,e.opacity);if(e instanceof Jt){if(isNaN(e.h))return new Wt(e.l,0,0,e.opacity);var t=e.h*Pt;return new Wt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}if(!(e instanceof Et))e=St(e);var n=Xt(e.r),i=Xt(e.g),a=Xt(e.b),r=Kt((.2225045*n+.7168786*i+.0606169*a)/Ft),o,s;if(n===i&&i===a)o=s=r;else{o=Kt((.4360747*n+.3850649*i+.1430804*a)/zt);s=Kt((.0139322*n+.0971045*i+.7141733*a)/Lt)}return new Wt(116*r-16,500*(o-r),200*(r-s),e.opacity)}function Ut(e,t,n,i){return arguments.length===1?Gt(e):new Wt(e,t,n,i==null?1:i)}function Wt(e,t,n,i){this.l=+e;this.a=+t;this.b=+n;this.opacity=+i}at(Wt,Ut,rt(ot,{brighter:function e(t){return new Wt(this.l+Ot*(t==null?1:t),this.a,this.b,this.opacity)},darker:function e(t){return new Wt(this.l-Ot*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function e(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;n=zt*qt(n);t=Ft*qt(t);i=Lt*qt(i);return new Et(Yt(3.1338561*n-1.6168667*t-.4906146*i),Yt(-.9787684*n+1.9161415*t+.033454*i),Yt(.0719453*n-.2289914*t+1.4052427*i),this.opacity)}}));function Kt(e){return e>Vt?Math.pow(e,1/3):e/Ht+It}function qt(e){return e>jt?e*e*e:Ht*(e-It)}function Yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $t(e){if(e instanceof Jt)return new Jt(e.h,e.c,e.l,e.opacity);if(!(e instanceof Wt))e=Gt(e);if(e.a===0&&e.b===0)return new Jt(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dt;return new Jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Zt(e,t,n,i){return arguments.length===1?$t(e):new Jt(e,t,n,i==null?1:i)}function Jt(e,t,n,i){this.h=+e;this.c=+t;this.l=+n;this.opacity=+i}at(Jt,Zt,rt(ot,{brighter:function e(t){return new Jt(this.h,this.c,this.l+Ot*(t==null?1:t),this.opacity)},darker:function e(t){return new Jt(this.h,this.c,this.l-Ot*(t==null?1:t),this.opacity)},rgb:function e(){return Gt(this).rgb()}}));var Qt=-.14861,en=+1.78277,tn=-.29227,nn=-.90649,an=+1.97294,rn=an*nn,on=an*en,sn=en*tn-nn*Qt;function ln(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(!(e instanceof Et))e=St(e);var t=e.r/255,n=e.g/255,i=e.b/255,a=(sn*i+rn*t-on*n)/(sn+rn-on),r=i-a,o=(an*(n-a)-tn*r)/nn,s=Math.sqrt(o*o+r*r)/(an*a*(1-a)),l=s?Math.atan2(o,r)*Dt-120:NaN;return new hn(l<0?l+360:l,s,a,e.opacity)}function un(e,t,n,i){return arguments.length===1?ln(e):new hn(e,t,n,i==null?1:i)}function hn(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}at(hn,un,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new hn(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=isNaN(this.h)?0:(this.h+120)*Pt,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),a=Math.cos(t),r=Math.sin(t);return new Et(255*(n+i*(Qt*a+en*r)),255*(n+i*(tn*a+nn*r)),255*(n+i*(an*a)),this.opacity)}}));function cn(e){return function(){return e}}function fn(t,n){return function(e){return t+e*n}}function dn(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}function gn(n){return(n=+n)===1?pn:function(e,t){return t-e?dn(e,t,n):cn(isNaN(e)?t:e)}}function pn(e,t){var n=t-e;return n?fn(e,n):cn(isNaN(e)?t:e)}var vn=function e(t){var o=gn(t);function n(t,e){var n=o((t=Ct(t)).r,(e=Ct(e)).r),i=o(t.g,e.g),a=o(t.b,e.b),r=pn(t.opacity,e.opacity);return function(e){t.r=n(e);t.g=i(e);t.b=a(e);t.opacity=r(e);return t+""}}n.gamma=e;return n}(1);function mn(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(i),r=new Array(n),o;for(o=0;o<i;++o){a[o]=En(e[o],t[o])}for(;o<n;++o){r[o]=t[o]}return function(e){for(o=0;o<i;++o){r[o]=a[o](e)}return r}}function yn(t,n){var i=new Date;return t=+t,n-=t,function(e){return i.setTime(t+n*e),i}}function _n(t,n){return t=+t,n-=t,function(e){return t+n*e}}function bn(e,t){var n={},i={},a;if(e===null||_typeof2(e)!=="object")e={};if(t===null||_typeof2(t)!=="object")t={};for(a in t){if(a in e){n[a]=En(e[a],t[a])}else{i[a]=t[a]}}return function(e){for(a in n){i[a]=n[a](e)}return i}}var wn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xn=new RegExp(wn.source,"g");function kn(e){return function(){return e}}function Sn(t){return function(e){return t(e)+""}}function Cn(e,i){var t=wn.lastIndex=xn.lastIndex=0,n,a,r,o=-1,s=[],l=[];e=e+"",i=i+"";while((n=wn.exec(e))&&(a=xn.exec(i))){if((r=a.index)>t){r=i.slice(t,r);if(s[o])s[o]+=r;else s[++o]=r}if((n=n[0])===(a=a[0])){if(s[o])s[o]+=a;else s[++o]=a}else{s[++o]=null;l.push({i:o,x:_n(n,a)})}t=xn.lastIndex}if(t<i.length){r=i.slice(t);if(s[o])s[o]+=r;else s[++o]=r}return s.length<2?l[0]?Sn(l[0].x):kn(i):(i=l.length,function(e){for(var t=0,n;t<i;++t){s[(n=l[t]).i]=n.x(e)}return s.join("")})}function En(e,t){var n=_typeof2(t),i;return t==null||n==="boolean"?cn(t):(n==="number"?_n:n==="string"?(i=wt(t))?(t=i,vn):Cn:t instanceof wt?vn:t instanceof Date?yn:Array.isArray(t)?mn:typeof t.valueOf!=="function"&&typeof t.toString!=="function"||isNaN(t)?bn:_n)(e,t)}function An(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}var Rn=180/Math.PI;var Mn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Tn(e,t,n,i,a,r){var o,s,l;if(o=Math.sqrt(e*e+t*t))e/=o,t/=o;if(l=e*n+t*i)n-=e*l,i-=t*l;if(s=Math.sqrt(n*n+i*i))n/=s,i/=s,l/=s;if(e*i<t*n)e=-e,t=-t,l=-l,o=-o;return{translateX:a,translateY:r,rotate:Math.atan2(t,e)*Rn,skewX:Math.atan(l)*Rn,scaleX:o,scaleY:s}}var Bn,Nn,Pn,Dn;function On(e){if(e==="none")return Mn;if(!Bn)Bn=document.createElement("DIV"),Nn=document.documentElement,Pn=document.defaultView;Bn.style.transform=e;e=Pn.getComputedStyle(Nn.appendChild(Bn),null).getPropertyValue("transform");Nn.removeChild(Bn);e=e.slice(7,-1).split(",");return Tn(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5])}function zn(e){if(e==null)return Mn;if(!Dn)Dn=document.createElementNS("http://www.w3.org/2000/svg","g");Dn.setAttribute("transform",e);if(!(e=Dn.transform.baseVal.consolidate()))return Mn;e=e.matrix;return Tn(e.a,e.b,e.c,e.d,e.e,e.f)}function Fn(n,s,l,a){function u(e){return e.length?e.pop()+" ":""}function i(e,t,n,i,a,r){if(e!==n||t!==i){var o=a.push("translate(",null,s,null,l);r.push({i:o-4,x:_n(e,n)},{i:o-2,x:_n(t,i)})}else if(n||i){a.push("translate("+n+s+i+l)}}function o(e,t,n,i){if(e!==t){if(e-t>180)t+=360;else if(t-e>180)e+=360;i.push({i:n.push(u(n)+"rotate(",null,a)-2,x:_n(e,t)})}else if(t){n.push(u(n)+"rotate("+t+a)}}function h(e,t,n,i){if(e!==t){i.push({i:n.push(u(n)+"skewX(",null,a)-2,x:_n(e,t)})}else if(t){n.push(u(n)+"skewX("+t+a)}}function c(e,t,n,i,a,r){if(e!==n||t!==i){var o=a.push(u(a)+"scale(",null,",",null,")");r.push({i:o-4,x:_n(e,n)},{i:o-2,x:_n(t,i)})}else if(n!==1||i!==1){a.push(u(a)+"scale("+n+","+i+")")}}return function(e,t){var a=[],r=[];e=n(e),t=n(t);i(e.translateX,e.translateY,t.translateX,t.translateY,a,r);o(e.rotate,t.rotate,a,r);h(e.skewX,t.skewX,a,r);c(e.scaleX,e.scaleY,t.scaleX,t.scaleY,a,r);e=t=null;return function(e){var t=-1,n=r.length,i;while(++t<n){a[(i=r[t]).i]=i.x(e)}return a.join("")}}}var Ln=Fn(On,"px, ","px)","deg)");var In=Fn(zn,", ",")",")");var jn=Math.SQRT2,Hn=2,Vn=4,Gn=1e-12;function Un(e){return((e=Math.exp(e))+1/e)/2}function Wn(e){return((e=Math.exp(e))-1/e)/2}function Kn(e){return((e=Math.exp(2*e))-1)/(e+1)}function qn(e,t){var r=e[0],o=e[1],s=e[2],n=t[0],i=t[1],a=t[2],l=n-r,u=i-o,h=l*l+u*u,c,f;if(h<Gn){f=Math.log(a/s)/jn;c=function e(t){return[r+t*l,o+t*u,s*Math.exp(jn*t*f)]}}else{var d=Math.sqrt(h),g=(a*a-s*s+Vn*h)/(2*s*Hn*d),p=(a*a-s*s-Vn*h)/(2*a*Hn*d),v=Math.log(Math.sqrt(g*g+1)-g),m=Math.log(Math.sqrt(p*p+1)-p);f=(m-v)/jn;c=function e(t){var n=t*f,i=Un(v),a=s/(Hn*d)*(i*Kn(jn*n+v)-Wn(v));return[r+a*l,o+a*u,s*i/Un(jn*n+v)]}}c.duration=f*1e3;return c}function Yn(e){return function(){return e}}function Xn(e){return+e}var $n=[0,1];function Zn(e){return e}function Jn(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:Yn(isNaN(n)?NaN:.5)}function Qn(e){var t=e[0],n=e[e.length-1],i;if(t>n)i=t,t=n,n=i;return function(e){return Math.max(t,Math.min(n,e))}}function ei(e,t,n){var i=e[0],a=e[1],r=t[0],o=t[1];if(a<i)i=Jn(a,i),r=n(o,r);else i=Jn(i,a),r=n(r,o);return function(e){return r(i(e))}}function ti(n,e,t){var i=Math.min(n.length,e.length)-1,a=new Array(i),r=new Array(i),o=-1;if(n[i]<n[0]){n=n.slice().reverse();e=e.slice().reverse()}while(++o<i){a[o]=Jn(n[o],n[o+1]);r[o]=t(e[o],e[o+1])}return function(e){var t=u(n,e,1,i)-1;return r[t](a[t](e))}}function ni(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ii(){var t=$n,n=$n,i=En,a,r,o,s=Zn,l,u,h;function c(){l=Math.min(t.length,n.length)>2?ti:ei;u=h=null;return f}function f(e){return isNaN(e=+e)?o:(u||(u=l(t.map(a),n,i)))(a(s(e)))}f.invert=function(e){return s(r((h||(h=l(n,t.map(a),_n)))(e)))};f.domain=function(e){return arguments.length?(t=Ze.call(e,Xn),s===Zn||(s=Qn(t)),c()):t.slice()};f.range=function(e){return arguments.length?(n=Je.call(e),c()):n.slice()};f.rangeRound=function(e){return n=Je.call(e),i=An,c()};f.clamp=function(e){return arguments.length?(s=e?Qn(t):Zn,f):s!==Zn};f.interpolate=function(e){return arguments.length?(i=e,c()):i};f.unknown=function(e){return arguments.length?(o=e,f):o};return function(e,t){a=e,r=t;return c()}}function ai(e,t){return ii()(e,t)}function ri(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function si(e){return e=oi(Math.abs(e)),e?e[1]:NaN}function li(s,l){return function(e,t){var n=e.length,i=[],a=0,r=s[0],o=0;while(n>0&&r>0){if(o+r+1>t)r=Math.max(1,t-o);i.push(e.substring(n-=r,n+r));if((o+=r+1)>t)break;r=s[a=(a+1)%s.length]}return i.reverse().join(l)}}function ui(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var hi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ci(e){if(!(t=hi.exec(e)))throw new Error("invalid format: "+e);var t;return new fi({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ci.prototype=fi.prototype;function fi(e){this.fill=e.fill===undefined?" ":e.fill+"";this.align=e.align===undefined?">":e.align+"";this.sign=e.sign===undefined?"-":e.sign+"";this.symbol=e.symbol===undefined?"":e.symbol+"";this.zero=!!e.zero;this.width=e.width===undefined?undefined:+e.width;this.comma=!!e.comma;this.precision=e.precision===undefined?undefined:+e.precision;this.trim=!!e.trim;this.type=e.type===undefined?"":e.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 di(e){e:for(var t=e.length,n=1,i=-1,a;n<t;++n){switch(e[n]){case".":i=a=n;break;case"0":if(i===0)i=n;a=n;break;default:if(!+e[n])break e;if(i>0)i=0;break}}return i>0?e.slice(0,i)+e.slice(a+1):e}var gi;function pi(e,t){var n=oi(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(gi=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+oi(e,Math.max(0,t+r-1))[0]}function vi(e,t){var n=oi(e,t);if(!n)return e+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}var mi={"%":function e(t,n){return(t*100).toFixed(n)},b:function e(t){return Math.round(t).toString(2)},c:function e(t){return t+""},d:ri,e:function e(t,n){return t.toExponential(n)},f:function e(t,n){return t.toFixed(n)},g:function e(t,n){return t.toPrecision(n)},o:function e(t){return Math.round(t).toString(8)},p:function e(t,n){return vi(t*100,n)},r:vi,s:pi,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function yi(e){return e}var _i=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wi(e){var x=e.grouping===undefined||e.thousands===undefined?yi:li(_i.call(e.grouping,Number),e.thousands+""),i=e.currency===undefined?"":e.currency[0]+"",a=e.currency===undefined?"":e.currency[1]+"",k=e.decimal===undefined?".":e.decimal+"",S=e.numerals===undefined?yi:ui(_i.call(e.numerals,String)),r=e.percent===undefined?"%":e.percent+"",C=e.minus===undefined?"-":e.minus+"",E=e.nan===undefined?"NaN":e.nan+"";function o(e){e=ci(e);var u=e.fill,h=e.align,c=e.sign,t=e.symbol,f=e.zero,d=e.width,g=e.comma,p=e.precision,v=e.trim,m=e.type;if(m==="n")g=true,m="g";else if(!mi[m])p===undefined&&(p=12),v=true,m="g";if(f||u==="0"&&h==="=")f=true,u="0",h="=";var y=t==="$"?i:t==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=t==="$"?a:/[%p]/.test(m)?r:"";var b=mi[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(e){var t=y,n=_,i,a,r;if(m==="c"){n=b(e)+n;e=""}else{e=+e;var o=e<0||1/e<0;e=isNaN(e)?E:b(Math.abs(e),p);if(v)e=di(e);if(o&&+e===0&&c!=="+")o=false;t=(o?c==="("?c:C:c==="-"||c==="("?"":c)+t;n=(m==="s"?bi[8+gi/3]:"")+n+(o&&c==="("?")":"");if(w){i=-1,a=e.length;while(++i<a){if(r=e.charCodeAt(i),48>r||r>57){n=(r===46?k+e.slice(i+1):e.slice(i))+n;e=e.slice(0,i);break}}}}if(g&&!f)e=x(e,Infinity);var s=t.length+e.length+n.length,l=s<d?new Array(d-s+1).join(u):"";if(g&&f)e=x(l+e,l.length?d-n.length:Infinity),l="";switch(h){case"<":e=t+e+n+l;break;case"=":e=t+l+e+n;break;case"^":e=l.slice(0,s=l.length>>1)+t+e+n+l.slice(s);break;default:e=l+t+e+n;break}return S(e)}n.toString=function(){return e+""};return n}function t(e,t){var n=o((e=ci(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(si(t)/3)))*3,a=Math.pow(10,-i),r=bi[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var xi;var ki;var Si;Ci({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Ci(e){xi=wi(e);ki=xi.format;Si=xi.formatPrefix;return xi}function Ei(e){return Math.max(0,-si(Math.abs(e)))}function Ai(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(si(t)/3)))*3-si(Math.abs(e)))}function Ri(e,t){e=Math.abs(e),t=Math.abs(t)-e;return Math.max(0,si(t)-si(e))+1}function Mi(e,t,n,i){var a=C(e,t,n),r;i=ci(i==null?",f":i);switch(i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));if(i.precision==null&&!isNaN(r=Ai(a,o)))i.precision=r;return Si(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(r=Ri(a,Math.max(Math.abs(e),Math.abs(t)))))i.precision=r-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(r=Ei(a)))i.precision=r-(i.type==="%")*2;break}}return ki(i)}function Ti(s){var l=s.domain;s.ticks=function(e){var t=l();return ve(t[0],t[t.length-1],e==null?10:e)};s.tickFormat=function(e,t){var n=l();return Mi(n[0],n[n.length-1],e==null?10:e,t)};s.nice=function(e){if(e==null)e=10;var t=l(),n=0,i=t.length-1,a=t[n],r=t[i],o;if(r<a){o=a,a=r,r=o;o=n,n=i,i=o}o=c(a,r,e);if(o>0){a=Math.floor(a/o)*o;r=Math.ceil(r/o)*o;o=c(a,r,e)}else if(o<0){a=Math.ceil(a*o)/o;r=Math.floor(r*o)/o;o=c(a,r,e)}if(o>0){t[n]=Math.floor(a/o)*o;t[i]=Math.ceil(r/o)*o;l(t)}else if(o<0){t[n]=Math.ceil(a*o)/o;t[i]=Math.floor(r*o)/o;l(t)}return s};return s}function Bi(){var e=ai(Zn,Zn);e.copy=function(){return ni(e,Bi())};Ye.apply(e,arguments);return Ti(e)}function Ni(t){var n;function i(e){return isNaN(e=+e)?n:e}i.invert=i;i.domain=i.range=function(e){return arguments.length?(t=Ze.call(e,Xn),i):t.slice()};i.unknown=function(e){return arguments.length?(n=e,i):n};i.copy=function(){return Ni(t).unknown(n)};t=arguments.length?Ze.call(t,Xn):[0,1];return Ti(i)}function Pi(e,t){e=e.slice();var n=0,i=e.length-1,a=e[n],r=e[i],o;if(r<a){o=n,n=i,i=o;o=a,a=r,r=o}e[n]=t.floor(a);e[i]=t.ceil(r);return e}function Di(e){return Math.log(e)}function Oi(e){return Math.exp(e)}function zi(e){return-Math.log(-e)}function Fi(e){return-Math.exp(-e)}function Li(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Ii(t){return t===10?Li:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function ji(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function Hi(t){return function(e){return-t(-e)}}function Vi(e){var t=e(Di,Oi),f=t.domain,d=10,g,p;function n(){g=ji(d),p=Ii(d);if(f()[0]<0){g=Hi(g),p=Hi(p);e(zi,Fi)}else{e(Di,Oi)}return t}t.base=function(e){return arguments.length?(d=+e,n()):d};t.domain=function(e){return arguments.length?(f(e),n()):f()};t.ticks=function(e){var t=f(),n=t[0],i=t[t.length-1],a;if(a=i<n)r=n,n=i,i=r;var r=g(n),o=g(i),s,l,u,h=e==null?10:+e,c=[];if(!(d%1)&&o-r<h){r=Math.round(r)-1,o=Math.round(o)+1;if(n>0)for(;r<o;++r){for(l=1,s=p(r);l<d;++l){u=s*l;if(u<n)continue;if(u>i)break;c.push(u)}}else for(;r<o;++r){for(l=d-1,s=p(r);l>=1;--l){u=s*l;if(u<n)continue;if(u>i)break;c.push(u)}}}else{c=ve(r,o,Math.min(o-r,h)).map(p)}return a?c.reverse():c};t.tickFormat=function(e,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=ki(n);if(e===Infinity)return n;if(e==null)e=10;var i=Math.max(1,d*e/t.ticks().length);return function(e){var t=e/p(Math.round(g(e)));if(t*d<d-.5)t*=d;return t<=i?n(e):""}};t.nice=function(){return f(Pi(f(),{floor:function e(t){return p(Math.floor(g(t)))},ceil:function e(t){return p(Math.ceil(g(t)))}}))};return t}function Gi(){var e=Vi(ii()).domain([1,10]);e.copy=function(){return ni(e,Gi()).base(e.base())};Ye.apply(e,arguments);return e}function Ui(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Wi(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Ki(t){var n=1,e=t(Ui(n),Wi(n));e.constant=function(e){return arguments.length?t(Ui(n=+e),Wi(n)):n};return Ti(e)}function qi(){var e=Ki(ii());e.copy=function(){return ni(e,qi()).constant(e.constant())};return Ye.apply(e,arguments)}function Yi(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Xi(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function $i(e){return e<0?-e*e:e*e}function Zi(e){var t=e(Zn,Zn),n=1;function i(){return n===1?e(Zn,Zn):n===.5?e(Xi,$i):e(Yi(n),Yi(1/n))}t.exponent=function(e){return arguments.length?(n=+e,i()):n};return Ti(t)}function Ji(){var e=Zi(ii());e.copy=function(){return ni(e,Ji()).exponent(e.exponent())};Ye.apply(e,arguments);return e}function Qi(){return Ji.apply(null,arguments).exponent(.5)}function ea(){var a=[],n=[],i=[],t;function r(){var e=0,t=Math.max(1,n.length);i=new Array(t-1);while(++e<t){i[e-1]=Ie(a,e/t)}return o}function o(e){return isNaN(e=+e)?t:n[u(i,e)]}o.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:a[0],t<i.length?i[t]:a[a.length-1]]};o.domain=function(e){if(!arguments.length)return a.slice();a=[];for(var t=0,n=e.length,i;t<n;++t){if(i=e[t],i!=null&&!isNaN(i=+i))a.push(i)}a.sort(k);return r()};o.range=function(e){return arguments.length?(n=Je.call(e),r()):n.slice()};o.unknown=function(e){return arguments.length?(t=e,o):t};o.quantiles=function(){return i.slice()};o.copy=function(){return ea().domain(a).range(n).unknown(t)};return Ye.apply(o,arguments)}function ta(){var n=0,i=1,a=1,r=[.5],o=[0,1],t;function s(e){return e<=e?o[u(r,e,0,a)]:t}function l(){var e=-1;r=new Array(a);while(++e<a){r[e]=((e+1)*i-(e-a)*n)/(a+1)}return s}s.domain=function(e){return arguments.length?(n=+e[0],i=+e[1],l()):[n,i]};s.range=function(e){return arguments.length?(a=(o=Je.call(e)).length-1,l()):o.slice()};s.invertExtent=function(e){var t=o.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,r[0]]:t>=a?[r[a-1],i]:[r[t-1],r[t]]};s.unknown=function(e){return arguments.length?(t=e,s):s};s.thresholds=function(){return r.slice()};s.copy=function(){return ta().domain([n,i]).range(o).unknown(t)};return Ye.apply(Ti(s),arguments)}function na(){var n=[.5],i=[0,1],t,a=1;function r(e){return e<=e?i[u(n,e,0,a)]:t}r.domain=function(e){return arguments.length?(n=Je.call(e),a=Math.min(n.length,i.length-1),r):n.slice()};r.range=function(e){return arguments.length?(i=Je.call(e),a=Math.min(n.length,i.length-1),r):i.slice()};r.invertExtent=function(e){var t=i.indexOf(e);return[n[t-1],n[t]]};r.unknown=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return na().domain(n).range(i).unknown(t)};return Ye.apply(r,arguments)}var ia=new Date,aa=new Date;function ra(r,o,n,i){function s(e){return r(e=new Date(+e)),e}s.floor=s;s.ceil=function(e){return r(e=new Date(e-1)),o(e,1),r(e),e};s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n};s.offset=function(e,t){return o(e=new Date(+e),t==null?1:Math.floor(t)),e};s.range=function(e,t,n){var i=[],a;e=s.ceil(e);n=n==null?1:Math.floor(n);if(!(e<t)||!(n>0))return i;do{i.push(a=new Date(+e)),o(e,n),r(e)}while(a<e&&e<t);return i};s.filter=function(n){return ra(function(e){if(e>=e)while(r(e),!n(e)){e.setTime(e-1)}},function(e,t){if(e>=e){if(t<0)while(++t<=0){while(o(e,-1),!n(e)){}}else while(--t>=0){while(o(e,+1),!n(e)){}}}})};if(n){s.count=function(e,t){ia.setTime(+e),aa.setTime(+t);r(ia),r(aa);return Math.floor(n(ia,aa))};s.every=function(t){t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?s:s.filter(i?function(e){return i(e)%t===0}:function(e){return s.count(0,e)%t===0})}}return s}var oa=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});oa.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return oa;return ra(function(e){e.setTime(Math.floor(e/n)*n)},function(e,t){e.setTime(+e+t*n)},function(e,t){return(t-e)/n})};var sa=1e3;var la=6e4;var ua=36e5;var ha=864e5;var ca=6048e5;var fa=ra(function(e){e.setTime(Math.floor(e/sa)*sa)},function(e,t){e.setTime(+e+t*sa)},function(e,t){return(t-e)/sa},function(e){return e.getUTCSeconds()});var da=ra(function(e){e.setTime(Math.floor(e/la)*la)},function(e,t){e.setTime(+e+t*la)},function(e,t){return(t-e)/la},function(e){return e.getMinutes()});var ga=ra(function(e){var t=e.getTimezoneOffset()*la%ua;if(t<0)t+=ua;e.setTime(Math.floor((+e-t)/ua)*ua+t)},function(e,t){e.setTime(+e+t*ua)},function(e,t){return(t-e)/ua},function(e){return e.getHours()});var pa=ra(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*la)/ha},function(e){return e.getDate()-1});function va(t){return ra(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7);e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*la)/ca})}var ma=va(0);var ya=va(1);var _a=va(2);var ba=va(3);var wa=va(4);var xa=va(5);var ka=va(6);var Sa=ra(function(e){e.setDate(1);e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});var Ca=ra(function(e){e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ca.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ra(function(e){e.setFullYear(Math.floor(e.getFullYear()/n)*n);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t*n)})};var Ea=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*la)},function(e,t){return(t-e)/la},function(e){return e.getUTCMinutes()});var Aa=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ua)},function(e,t){return(t-e)/ua},function(e){return e.getUTCHours()});var Ra=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ha},function(e){return e.getUTCDate()-1});function Ma(t){return ra(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/ca})}var Ta=Ma(0);var Ba=Ma(1);var Na=Ma(2);var Pa=Ma(3);var Da=Ma(4);var Oa=Ma(5);var za=Ma(6);var Fa=ra(function(e){e.setUTCDate(1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});var La=ra(function(e){e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});La.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ra(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t*n)})};function Ia(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);t.setFullYear(e.y);return t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ja(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));t.setUTCFullYear(e.y);return t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ha(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Va(e){var i=e.dateTime,a=e.date,r=e.time,t=e.periods,n=e.days,o=e.shortDays,s=e.months,l=e.shortMonths;var u=Xa(t),h=$a(t),c=Xa(n),f=$a(n),d=Xa(o),g=$a(o),p=Xa(s),v=$a(s),m=Xa(l),y=$a(l);var _={a:P,A:D,b:O,B:z,c:null,d:mr,e:mr,f:xr,g:Pr,G:Or,H:yr,I:_r,j:br,L:wr,m:kr,M:Sr,p:F,q:L,Q:ao,s:ro,S:Cr,u:Er,U:Ar,V:Mr,w:Tr,W:Br,x:null,X:null,y:Nr,Y:Dr,Z:zr,"%":io};var b={a:I,A:j,b:H,B:V,c:null,d:Fr,e:Fr,f:Vr,g:Qr,G:to,H:Lr,I:Ir,j:jr,L:Hr,m:Gr,M:Ur,p:G,q:U,Q:ao,s:ro,S:Wr,u:Kr,U:qr,V:Xr,w:$r,W:Zr,x:null,X:null,y:Jr,Y:eo,Z:no,"%":io};var w={a:E,A:A,b:R,B:M,c:T,d:sr,e:sr,f:dr,g:ir,G:nr,H:ur,I:ur,j:lr,L:fr,m:or,M:hr,p:C,q:rr,Q:pr,s:vr,S:cr,u:Ja,U:Qa,V:er,w:Za,W:tr,x:B,X:N,y:ir,Y:nr,Z:ar,"%":gr};_.x=x(a,_);_.X=x(r,_);_.c=x(i,_);b.x=x(a,b);b.X=x(r,b);b.c=x(i,b);function x(l,u){return function(e){var t=[],n=-1,i=0,a=l.length,r,o,s;if(!(e instanceof Date))e=new Date(+e);while(++n<a){if(l.charCodeAt(n)===37){t.push(l.slice(i,n));if((o=Ga[r=l.charAt(++n)])!=null)r=l.charAt(++n);else o=r==="e"?" ":"0";if(s=u[r])r=s(e,o);t.push(r);i=n+1}}t.push(l.slice(i,n));return t.join("")}}function k(r,o){return function(e){var t=Ha(1900,undefined,1),n=S(t,r,e+="",0),i,a;if(n!=e.length)return null;if("Q"in t)return new Date(t.Q);if("s"in t)return new Date(t.s*1e3+("L"in t?t.L:0));if(o&&!("Z"in t))t.Z=0;if("p"in t)t.H=t.H%12+t.p*12;if(t.m===undefined)t.m="q"in t?t.q:0;if("V"in t){if(t.V<1||t.V>53)return null;if(!("w"in t))t.w=1;if("Z"in t){i=ja(Ha(t.y,0,1)),a=i.getUTCDay();i=a>4||a===0?Ba.ceil(i):Ba(i);i=Ra.offset(i,(t.V-1)*7);t.y=i.getUTCFullYear();t.m=i.getUTCMonth();t.d=i.getUTCDate()+(t.w+6)%7}else{i=Ia(Ha(t.y,0,1)),a=i.getDay();i=a>4||a===0?ya.ceil(i):ya(i);i=pa.offset(i,(t.V-1)*7);t.y=i.getFullYear();t.m=i.getMonth();t.d=i.getDate()+(t.w+6)%7}}else if("W"in t||"U"in t){if(!("w"in t))t.w="u"in t?t.u%7:"W"in t?1:0;a="Z"in t?ja(Ha(t.y,0,1)).getUTCDay():Ia(Ha(t.y,0,1)).getDay();t.m=0;t.d="W"in t?(t.w+6)%7+t.W*7-(a+5)%7:t.w+t.U*7-(a+6)%7}if("Z"in t){t.H+=t.Z/100|0;t.M+=t.Z%100;return ja(t)}return Ia(t)}}function S(e,t,n,i){var a=0,r=t.length,o=n.length,s,l;while(a<r){if(i>=o)return-1;s=t.charCodeAt(a++);if(s===37){s=t.charAt(a++);l=w[s in Ga?t.charAt(a++):s];if(!l||(i=l(e,n,i))<0)return-1}else if(s!=n.charCodeAt(i++)){return-1}}return i}function C(e,t,n){var i=u.exec(t.slice(n));return i?(e.p=h[i[0].toLowerCase()],n+i[0].length):-1}function E(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=g[i[0].toLowerCase()],n+i[0].length):-1}function A(e,t,n){var i=c.exec(t.slice(n));return i?(e.w=f[i[0].toLowerCase()],n+i[0].length):-1}function R(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=y[i[0].toLowerCase()],n+i[0].length):-1}function M(e,t,n){var i=p.exec(t.slice(n));return i?(e.m=v[i[0].toLowerCase()],n+i[0].length):-1}function T(e,t,n){return S(e,i,t,n)}function B(e,t,n){return S(e,a,t,n)}function N(e,t,n){return S(e,r,t,n)}function P(e){return o[e.getDay()]}function D(e){return n[e.getDay()]}function O(e){return l[e.getMonth()]}function z(e){return s[e.getMonth()]}function F(e){return t[+(e.getHours()>=12)]}function L(e){return 1+~~(e.getMonth()/3)}function I(e){return o[e.getUTCDay()]}function j(e){return n[e.getUTCDay()]}function H(e){return l[e.getUTCMonth()]}function V(e){return s[e.getUTCMonth()]}function G(e){return t[+(e.getUTCHours()>=12)]}function U(e){return 1+~~(e.getUTCMonth()/3)}return{format:function e(t){var n=x(t+="",_);n.toString=function(){return t};return n},parse:function e(t){var n=k(t+="",false);n.toString=function(){return t};return n},utcFormat:function e(t){var n=x(t+="",b);n.toString=function(){return t};return n},utcParse:function e(t){var n=k(t+="",true);n.toString=function(){return t};return n}}}var Ga={"-":"",_:" ",0:"0"},Ua=/^\s*\d+/,Wa=/^%/,Ka=/[\\^$*+?|[\]().{}]/g;function qa(e,t,n){var i=e<0?"-":"",a=(i?-e:e)+"",r=a.length;return i+(r<n?new Array(n-r+1).join(t)+a:a)}function Ya(e){return e.replace(Ka,"\\$&")}function Xa(e){return new RegExp("^(?:"+e.map(Ya).join("|")+")","i")}function $a(e){var t={},n=-1,i=e.length;while(++n<i){t[e[n].toLowerCase()]=n}return t}function Za(e,t,n){var i=Ua.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function Ja(e,t,n){var i=Ua.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function Qa(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function er(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function tr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function nr(e,t,n){var i=Ua.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function ir(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ar(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function rr(e,t,n){var i=Ua.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function or(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function sr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function lr(e,t,n){var i=Ua.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function ur(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function hr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function cr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function fr(e,t,n){var i=Ua.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function dr(e,t,n){var i=Ua.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function gr(e,t,n){var i=Wa.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function pr(e,t,n){var i=Ua.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function vr(e,t,n){var i=Ua.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function mr(e,t){return qa(e.getDate(),t,2)}function yr(e,t){return qa(e.getHours(),t,2)}function _r(e,t){return qa(e.getHours()%12||12,t,2)}function br(e,t){return qa(1+pa.count(Ca(e),e),t,3)}function wr(e,t){return qa(e.getMilliseconds(),t,3)}function xr(e,t){return wr(e,t)+"000"}function kr(e,t){return qa(e.getMonth()+1,t,2)}function Sr(e,t){return qa(e.getMinutes(),t,2)}function Cr(e,t){return qa(e.getSeconds(),t,2)}function Er(e){var t=e.getDay();return t===0?7:t}function Ar(e,t){return qa(ma.count(Ca(e)-1,e),t,2)}function Rr(e){var t=e.getDay();return t>=4||t===0?wa(e):wa.ceil(e)}function Mr(e,t){e=Rr(e);return qa(wa.count(Ca(e),e)+(Ca(e).getDay()===4),t,2)}function Tr(e){return e.getDay()}function Br(e,t){return qa(ya.count(Ca(e)-1,e),t,2)}function Nr(e,t){return qa(e.getFullYear()%100,t,2)}function Pr(e,t){e=Rr(e);return qa(e.getFullYear()%100,t,2)}function Dr(e,t){return qa(e.getFullYear()%1e4,t,4)}function Or(e,t){var n=e.getDay();e=n>=4||n===0?wa(e):wa.ceil(e);return qa(e.getFullYear()%1e4,t,4)}function zr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qa(t/60|0,"0",2)+qa(t%60,"0",2)}function Fr(e,t){return qa(e.getUTCDate(),t,2)}function Lr(e,t){return qa(e.getUTCHours(),t,2)}function Ir(e,t){return qa(e.getUTCHours()%12||12,t,2)}function jr(e,t){return qa(1+Ra.count(La(e),e),t,3)}function Hr(e,t){return qa(e.getUTCMilliseconds(),t,3)}function Vr(e,t){return Hr(e,t)+"000"}function Gr(e,t){return qa(e.getUTCMonth()+1,t,2)}function Ur(e,t){return qa(e.getUTCMinutes(),t,2)}function Wr(e,t){return qa(e.getUTCSeconds(),t,2)}function Kr(e){var t=e.getUTCDay();return t===0?7:t}function qr(e,t){return qa(Ta.count(La(e)-1,e),t,2)}function Yr(e){var t=e.getUTCDay();return t>=4||t===0?Da(e):Da.ceil(e)}function Xr(e,t){e=Yr(e);return qa(Da.count(La(e),e)+(La(e).getUTCDay()===4),t,2)}function $r(e){return e.getUTCDay()}function Zr(e,t){return qa(Ba.count(La(e)-1,e),t,2)}function Jr(e,t){return qa(e.getUTCFullYear()%100,t,2)}function Qr(e,t){e=Yr(e);return qa(e.getUTCFullYear()%100,t,2)}function eo(e,t){return qa(e.getUTCFullYear()%1e4,t,4)}function to(e,t){var n=e.getUTCDay();e=n>=4||n===0?Da(e):Da.ceil(e);return qa(e.getUTCFullYear()%1e4,t,4)}function no(){return"+0000"}function io(){return"%"}function ao(e){return+e}function ro(e){return Math.floor(+e/1e3)}var oo;var so;var lo;uo({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 uo(e){oo=Va(e);so=oo.format;oo.parse;lo=oo.utcFormat;oo.utcParse;return oo}var ho=1e3,co=ho*60,fo=co*60,go=fo*24,po=go*7,vo=go*30,mo=go*365;function yo(e){return new Date(e)}function _o(e){return e instanceof Date?+e:+new Date(+e)}function bo(o,t,n,i,a,r,s,l,u){var h=ai(Zn,Zn),c=h.invert,f=h.domain;var d=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),y=u("%b %d"),_=u("%B"),b=u("%Y");var w=[[s,1,ho],[s,5,5*ho],[s,15,15*ho],[s,30,30*ho],[r,1,co],[r,5,5*co],[r,15,15*co],[r,30,30*co],[a,1,fo],[a,3,3*fo],[a,6,6*fo],[a,12,12*fo],[i,1,go],[i,2,2*go],[n,1,po],[t,1,vo],[t,3,3*vo],[o,1,mo]];function x(e){return(s(e)<e?d:r(e)<e?g:a(e)<e?p:i(e)<e?v:t(e)<e?n(e)<e?m:y:o(e)<e?_:b)(e)}function k(e,t,n,i){if(e==null)e=10;if(typeof e==="number"){var a=Math.abs(n-t)/e,r=S(function(e){return e[2]}).right(w,a);if(r===w.length){i=C(t/mo,n/mo,e);e=o}else if(r){r=w[a/w[r-1][2]<w[r][2]/a?r-1:r];i=r[1];e=r[0]}else{i=Math.max(C(t,n,e),1);e=l}}return i==null?e:e.every(i)}h.invert=function(e){return new Date(c(e))};h.domain=function(e){return arguments.length?f(Ze.call(e,_o)):f().map(yo)};h.ticks=function(e,t){var n=f(),i=n[0],a=n[n.length-1],r=a<i,o;if(r)o=i,i=a,a=o;o=k(e,i,a,t);o=o?o.range(i,a+1):[];return r?o.reverse():o};h.tickFormat=function(e,t){return t==null?x:u(t)};h.nice=function(e,t){var n=f();return(e=k(e,n[0],n[n.length-1],t))?f(Pi(n,e)):h};h.copy=function(){return ni(h,bo(o,t,n,i,a,r,s,l,u))};return h}function wo(){return Ye.apply(bo(Ca,Sa,ma,pa,ga,da,fa,oa,so).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xo(){return Ye.apply(bo(La,Fa,Ta,Ra,Aa,Ea,fa,oa,lo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function ko(){var t=0,n=1,i,a,r,o,s=Zn,l=false,u;function h(e){return isNaN(e=+e)?u:s(r===0?.5:(e=(o(e)-i)*r,l?Math.max(0,Math.min(1,e)):e))}h.domain=function(e){return arguments.length?(i=o(t=+e[0]),a=o(n=+e[1]),r=i===a?0:1/(a-i),h):[t,n]};h.clamp=function(e){return arguments.length?(l=!!e,h):l};h.interpolator=function(e){return arguments.length?(s=e,h):s};h.unknown=function(e){return arguments.length?(u=e,h):u};return function(e){o=e,i=e(t),a=e(n),r=i===a?0:1/(a-i);return h}}function So(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Co(){var e=Ti(ko()(Zn));e.copy=function(){return So(e,Co())};return Xe.apply(e,arguments)}function Eo(){var e=Vi(ko()).domain([1,10]);e.copy=function(){return So(e,Eo()).base(e.base())};return Xe.apply(e,arguments)}function Ao(){var e=Ki(ko());e.copy=function(){return So(e,Ao()).constant(e.constant())};return Xe.apply(e,arguments)}function Ro(){var e=Zi(ko());e.copy=function(){return So(e,Ro()).exponent(e.exponent())};return Xe.apply(e,arguments)}function Mo(){return Ro.apply(null,arguments).exponent(.5)}function To(){var a=[],t=Zn;function r(e){if(!isNaN(e=+e))return t((u(a,e)-1)/(a.length-1))}r.domain=function(e){if(!arguments.length)return a.slice();a=[];for(var t=0,n=e.length,i;t<n;++t){if(i=e[t],i!=null&&!isNaN(i=+i))a.push(i)}a.sort(k);return r};r.interpolator=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return To(t).domain(a)};return Xe.apply(r,arguments)}function Bo(){var t=0,n=.5,i=1,a,r,o,s,l,u=Zn,h,c=false,f;function d(e){return isNaN(e=+e)?f:(e=.5+((e=+h(e))-r)*(e<r?s:l),u(c?Math.max(0,Math.min(1,e)):e))}d.domain=function(e){return arguments.length?(a=h(t=+e[0]),r=h(n=+e[1]),o=h(i=+e[2]),s=a===r?0:.5/(r-a),l=r===o?0:.5/(o-r),d):[t,n,i]};d.clamp=function(e){return arguments.length?(c=!!e,d):c};d.interpolator=function(e){return arguments.length?(u=e,d):u};d.unknown=function(e){return arguments.length?(f=e,d):f};return function(e){h=e,a=e(t),r=e(n),o=e(i),s=a===r?0:.5/(r-a),l=r===o?0:.5/(o-r);return d}}function No(){var e=Ti(Bo()(Zn));e.copy=function(){return So(e,No())};return Xe.apply(e,arguments)}function Po(){var e=Vi(Bo()).domain([.1,1,10]);e.copy=function(){return So(e,Po()).base(e.base())};return Xe.apply(e,arguments)}function Do(){var e=Ki(Bo());e.copy=function(){return So(e,Do()).constant(e.constant())};return Xe.apply(e,arguments)}function Oo(){var e=Zi(Bo());e.copy=function(){return So(e,Oo()).exponent(e.exponent())};return Xe.apply(e,arguments)}function zo(){return Oo.apply(null,arguments).exponent(.5)}var Fo=Object.freeze({__proto__:null,scaleBand:tt,scalePoint:it,scaleIdentity:Ni,scaleLinear:Bi,scaleLog:Gi,scaleSymlog:qi,scaleOrdinal:et,scaleImplicit:Qe,scalePow:Ji,scaleSqrt:Qi,scaleQuantile:ea,scaleQuantize:ta,scaleThreshold:na,scaleTime:wo,scaleUtc:xo,scaleSequential:Co,scaleSequentialLog:Eo,scaleSequentialPow:Ro,scaleSequentialSqrt:Mo,scaleSequentialSymlog:Ao,scaleSequentialQuantile:To,scaleDiverging:No,scaleDivergingLog:Po,scaleDivergingPow:Oo,scaleDivergingSqrt:zo,scaleDivergingSymlog:Do,tickFormat:Mi});var Lo="http://www.w3.org/1999/xhtml";var Io={svg:"http://www.w3.org/2000/svg",xhtml:Lo,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jo(e){var t=e+="",n=t.indexOf(":");if(n>=0&&(t=e.slice(0,n))!=="xmlns")e=e.slice(n+1);return Io.hasOwnProperty(t)?{space:Io[t],local:e}:e}function Ho(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Lo&&e.documentElement.namespaceURI===Lo?e.createElement(n):e.createElementNS(t,n)}}function Vo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Go(e){var t=jo(e);return(t.local?Vo:Ho)(t)}function Uo(){}function Wo(e){return e==null?Uo:function(){return this.querySelector(e)}}function Ko(e){if(typeof e!=="function")e=Wo(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=new Array(o),l,u,h=0;h<o;++h){if((l=r[h])&&(u=e.call(l,l.__data__,h,r))){if("__data__"in l)u.__data__=l.__data__;s[h]=u}}}return new El(i,this._parents)}function qo(){return[]}function Yo(e){return e==null?qo:function(){return this.querySelectorAll(e)}}function Xo(e){if(typeof e!=="function")e=Yo(e);for(var t=this._groups,n=t.length,i=[],a=[],r=0;r<n;++r){for(var o=t[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){i.push(e.call(l,l.__data__,u,o));a.push(l)}}}return new El(i,a)}function $o(e){return function(){return this.matches(e)}}function Zo(e){if(typeof e!=="function")e=$o(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=[],l,u=0;u<o;++u){if((l=r[u])&&e.call(l,l.__data__,u,r)){s.push(l)}}}return new El(i,this._parents)}function Jo(e){return new Array(e.length)}function Qo(){return new El(this._enter||this._groups.map(Jo),this._parents)}function es(e,t){this.ownerDocument=e.ownerDocument;this.namespaceURI=e.namespaceURI;this._next=null;this._parent=e;this.__data__=t}es.prototype={constructor:es,appendChild:function e(t){return this._parent.insertBefore(t,this._next)},insertBefore:function e(t,n){return this._parent.insertBefore(t,n)},querySelector:function e(t){return this._parent.querySelector(t)},querySelectorAll:function e(t){return this._parent.querySelectorAll(t)}};function ts(e){return function(){return e}}var ns="$";function is(e,t,n,i,a,r){var o=0,s,l=t.length,u=r.length;for(;o<u;++o){if(s=t[o]){s.__data__=r[o];i[o]=s}else{n[o]=new es(e,r[o])}}for(;o<l;++o){if(s=t[o]){a[o]=s}}}function as(e,t,n,i,a,r,o){var s,l,u={},h=t.length,c=r.length,f=new Array(h),d;for(s=0;s<h;++s){if(l=t[s]){f[s]=d=ns+o.call(l,l.__data__,s,t);if(d in u){a[s]=l}else{u[d]=l}}}for(s=0;s<c;++s){d=ns+o.call(e,r[s],s,r);if(l=u[d]){i[s]=l;l.__data__=r[s];u[d]=null}else{n[s]=new es(e,r[s])}}for(s=0;s<h;++s){if((l=t[s])&&u[f[s]]===l){a[s]=l}}}function rs(e,t){if(!e){d=new Array(this.size()),u=-1;this.each(function(e){d[++u]=e});return d}var n=t?as:is,i=this._parents,a=this._groups;if(typeof e!=="function")e=ts(e);for(var r=a.length,o=new Array(r),s=new Array(r),l=new Array(r),u=0;u<r;++u){var h=i[u],c=a[u],f=c.length,d=e.call(h,h&&h.__data__,u,i),g=d.length,p=s[u]=new Array(g),v=o[u]=new Array(g),m=l[u]=new Array(f);n(h,c,p,v,m,d,t);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 El(o,i);o._enter=s;o._exit=l;return o}function os(){return new El(this._exit||this._groups.map(Jo),this._parents)}function ss(e,t,n){var i=this.enter(),a=this,r=this.exit();i=typeof e==="function"?e(i):i.append(e+"");if(t!=null)a=t(a);if(n==null)r.remove();else n(r);return i&&a?i.merge(a).order():a}function ls(e){for(var t=this._groups,n=e._groups,i=t.length,a=n.length,r=Math.min(i,a),o=new Array(i),s=0;s<r;++s){for(var l=t[s],u=n[s],h=l.length,c=o[s]=new Array(h),f,d=0;d<h;++d){if(f=l[d]||u[d]){c[d]=f}}}for(;s<i;++s){o[s]=t[s]}return new El(o,this._parents)}function us(){for(var e=this._groups,t=-1,n=e.length;++t<n;){for(var i=e[t],a=i.length-1,r=i[a],o;--a>=0;){if(o=i[a]){if(r&&o.compareDocumentPosition(r)^4)r.parentNode.insertBefore(o,r);r=o}}}return this}function hs(n){if(!n)n=cs;function e(e,t){return e&&t?n(e.__data__,t.__data__):!e-!t}for(var t=this._groups,i=t.length,a=new Array(i),r=0;r<i;++r){for(var o=t[r],s=o.length,l=a[r]=new Array(s),u,h=0;h<s;++h){if(u=o[h]){l[h]=u}}l.sort(e)}return new El(a,this._parents).order()}function cs(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function fs(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this}function ds(){var e=new Array(this.size()),t=-1;this.each(function(){e[++t]=this});return e}function gs(){for(var e=this._groups,t=0,n=e.length;t<n;++t){for(var i=e[t],a=0,r=i.length;a<r;++a){var o=i[a];if(o)return o}}return null}function ps(){var e=0;this.each(function(){++e});return e}function vs(){return!this.node()}function ms(e){for(var t=this._groups,n=0,i=t.length;n<i;++n){for(var a=t[n],r=0,o=a.length,s;r<o;++r){if(s=a[r])e.call(s,s.__data__,r,a)}}return this}function ys(e){return function(){this.removeAttribute(e)}}function _s(e){return function(){this.removeAttributeNS(e.space,e.local)}}function bs(e,t){return function(){this.setAttribute(e,t)}}function ws(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function xs(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function ks(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,e)}}function Ss(e,t){var n=jo(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?_s:ys:typeof t==="function"?n.local?ks:xs:n.local?ws:bs)(n,t))}function Cs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Es(e){return function(){this.style.removeProperty(e)}}function As(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Rs(t,n,i){return function(){var e=n.apply(this,arguments);if(e==null)this.style.removeProperty(t);else this.style.setProperty(t,e,i)}}function Ms(e,t,n){return arguments.length>1?this.each((t==null?Es:typeof t==="function"?Rs:As)(e,t,n==null?"":n)):Ts(this.node(),e)}function Ts(e,t){return e.style.getPropertyValue(t)||Cs(e).getComputedStyle(e,null).getPropertyValue(t)}function Bs(e){return function(){delete this[e]}}function Ns(e,t){return function(){this[e]=t}}function Ps(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Ds(e,t){return arguments.length>1?this.each((t==null?Bs:typeof t==="function"?Ps:Ns)(e,t)):this.node()[e]}function Os(e){return e.trim().split(/^|\s+/)}function zs(e){return e.classList||new Fs(e)}function Fs(e){this._node=e;this._names=Os(e.getAttribute("class")||"")}Fs.prototype={add:function e(t){var n=this._names.indexOf(t);if(n<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function e(t){var n=this._names.indexOf(t);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function e(t){return this._names.indexOf(t)>=0}};function Ls(e,t){var n=zs(e),i=-1,a=t.length;while(++i<a){n.add(t[i])}}function Is(e,t){var n=zs(e),i=-1,a=t.length;while(++i<a){n.remove(t[i])}}function js(e){return function(){Ls(this,e)}}function Hs(e){return function(){Is(this,e)}}function Vs(e,t){return function(){(t.apply(this,arguments)?Ls:Is)(this,e)}}function Gs(e,t){var n=Os(e+"");if(arguments.length<2){var i=zs(this.node()),a=-1,r=n.length;while(++a<r){if(!i.contains(n[a]))return false}return true}return this.each((typeof t==="function"?Vs:t?js:Hs)(n,t))}function Us(){this.textContent=""}function Ws(e){return function(){this.textContent=e}}function Ks(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function qs(e){return arguments.length?this.each(e==null?Us:(typeof e==="function"?Ks:Ws)(e)):this.node().textContent}function Ys(){this.innerHTML=""}function Xs(e){return function(){this.innerHTML=e}}function $s(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Zs(e){return arguments.length?this.each(e==null?Ys:(typeof e==="function"?$s:Xs)(e)):this.node().innerHTML}function Js(){if(this.nextSibling)this.parentNode.appendChild(this)}function Qs(){return this.each(Js)}function el(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function tl(){return this.each(el)}function nl(e){var t=typeof e==="function"?e:Go(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function il(){return null}function al(e,t){var n=typeof e==="function"?e:Go(e),i=t==null?il:typeof t==="function"?t:Wo(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function rl(){var e=this.parentNode;if(e)e.removeChild(this)}function ol(){return this.each(rl)}function sl(){var e=this.cloneNode(false),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ll(){var e=this.cloneNode(true),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ul(e){return this.select(e?ll:sl)}function hl(e){return arguments.length?this.property("__data__",e):this.node().__data__}var cl={};var fl=null;if(typeof document!=="undefined"){var dl=document.documentElement;if(!("onmouseenter"in dl)){cl={mouseenter:"mouseover",mouseleave:"mouseout"}}}function gl(n,e,t){n=pl(n,e,t);return function(e){var t=e.relatedTarget;if(!t||t!==this&&!(t.compareDocumentPosition(this)&8)){n.call(this,e)}}}function pl(n,i,a){return function(e){var t=fl;fl=e;try{n.call(this,this.__data__,i,a)}finally{fl=t}}}function vl(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0)t=e.slice(n+1),e=e.slice(0,n);return{type:e,name:t}})}function ml(r){return function(){var e=this.__on;if(!e)return;for(var t=0,n=-1,i=e.length,a;t<i;++t){if(a=e[t],(!r.type||a.type===r.type)&&a.name===r.name){this.removeEventListener(a.type,a.listener,a.capture)}else{e[++n]=a}}if(++n)e.length=n;else delete this.__on}}function yl(l,u,h){var c=cl.hasOwnProperty(l.type)?gl:pl;return function(e,t,n){var i=this.__on,a,r=c(u,t,n);if(i)for(var o=0,s=i.length;o<s;++o){if((a=i[o]).type===l.type&&a.name===l.name){this.removeEventListener(a.type,a.listener,a.capture);this.addEventListener(a.type,a.listener=r,a.capture=h);a.value=u;return}}this.addEventListener(l.type,r,h);a={type:l.type,name:l.name,value:u,listener:r,capture:h};if(!i)this.__on=[a];else i.push(a)}}function _l(e,t,n){var i=vl(e+""),a,r=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s)for(var l=0,u=s.length,h;l<u;++l){for(a=0,h=s[l];a<r;++a){if((o=i[a]).type===h.type&&o.name===h.name){return h.value}}}return}s=t?yl:ml;if(n==null)n=false;for(a=0;a<r;++a){this.each(s(i[a],t,n))}return this}function bl(e,t,n,i){var a=fl;e.sourceEvent=fl;fl=e;try{return t.apply(n,i)}finally{fl=a}}function wl(e,t,n){var i=Cs(e),a=i.CustomEvent;if(typeof a==="function"){a=new a(t,n)}else{a=i.document.createEvent("Event");if(n)a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail;else a.initEvent(t,false,false)}e.dispatchEvent(a)}function xl(e,t){return function(){return wl(this,e,t)}}function kl(e,t){return function(){return wl(this,e,t.apply(this,arguments))}}function Sl(e,t){return this.each((typeof t==="function"?kl:xl)(e,t))}var Cl=[null];function El(e,t){this._groups=e;this._parents=t}function Al(){return new El([[document.documentElement]],Cl)}El.prototype=Al.prototype={constructor:El,select:Ko,selectAll:Xo,filter:Zo,data:rs,enter:Qo,exit:os,join:ss,merge:ls,order:us,sort:hs,call:fs,nodes:ds,node:gs,size:ps,empty:vs,each:ms,attr:Ss,style:Ms,property:Ds,classed:Gs,text:qs,html:Zs,raise:Qs,lower:tl,append:nl,insert:al,remove:ol,clone:ul,datum:hl,on:_l,dispatch:Sl};function Rl(e){return typeof e==="string"?new El([[document.querySelector(e)]],[document.documentElement]):new El([[e]],Cl)}function Ml(){var e=fl,t;while(t=e.sourceEvent){e=t}return e}function Tl(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();i.x=t.clientX,i.y=t.clientY;i=i.matrixTransform(e.getScreenCTM().inverse());return[i.x,i.y]}var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}function Bl(e){var t=Ml();if(t.changedTouches)t=t.changedTouches[0];return Tl(e,t)}function Nl(e){return typeof e==="string"?new El([document.querySelectorAll(e)],[document.documentElement]):new El([e==null?[]:e],Cl)}function Pl(e,t,n){if(arguments.length<3)n=t,t=Ml().changedTouches;for(var i=0,a=t?t.length:0,r;i<a;++i){if((r=t[i]).identifier===n){return Tl(e,r)}}return null}function Dl(){fl.preventDefault();fl.stopImmediatePropagation()}function Ol(e){var t=e.document.documentElement,n=Rl(e).on("dragstart.drag",Dl,true);if("onselectstart"in t){n.on("selectstart.drag",Dl,true)}else{t.__noselect=t.style.MozUserSelect;t.style.MozUserSelect="none"}}function zl(e,t){var n=e.document.documentElement,i=Rl(e).on("dragstart.drag",null);if(t){i.on("click.drag",Dl,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}}var Fl=te("start","end","cancel","interrupt");var Ll=[];var Il=0;var jl=1;var Hl=2;var Vl=3;var Gl=4;var Ul=5;var Wl=6;function Kl(e,t,n,i,a,r){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;$l(e,n,{name:t,index:i,group:a,on:Fl,tween:Ll,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:Il})}function ql(e,t){var n=Xl(e,t);if(n.state>Il)throw new Error("too late; already scheduled");return n}function Yl(e,t){var n=Xl(e,t);if(n.state>Vl)throw new Error("too late; already running");return n}function Xl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function $l(r,o,s){var l=r.__transition,u;l[o]=s;s.timer=ke(e,0,s.time);function e(e){s.state=jl;s.timer.restart(h,s.delay,s.time);if(s.delay<=e)h(e-s.delay)}function h(e){var t,n,i,a;if(s.state!==jl)return f();for(t in l){a=l[t];if(a.name!==s.name)continue;if(a.state===Vl)return Me(h);if(a.state===Gl){a.state=Wl;a.timer.stop();a.on.call("interrupt",r,r.__data__,a.index,a.group);delete l[t]}else if(+t<o){a.state=Wl;a.timer.stop();a.on.call("cancel",r,r.__data__,a.index,a.group);delete l[t]}}Me(function(){if(s.state===Vl){s.state=Gl;s.timer.restart(c,s.delay,s.time);c(e)}});s.state=Hl;s.on.call("start",r,r.__data__,s.index,s.group);if(s.state!==Hl)return;s.state=Vl;u=new Array(i=s.tween.length);for(t=0,n=-1;t<i;++t){if(a=s.tween[t].value.call(r,r.__data__,s.index,s.group)){u[++n]=a}}u.length=n+1}function c(e){var t=e<s.duration?s.ease.call(null,e/s.duration):(s.timer.restart(f),s.state=Ul,1),n=-1,i=u.length;while(++n<i){u[n].call(r,t)}if(s.state===Ul){s.on.call("end",r,r.__data__,s.index,s.group);f()}}function f(){s.state=Wl;s.timer.stop();delete l[o];for(var e in l){return}delete r.__transition}}function Zl(e,t){var n=e.__transition,i,a,r=true,o;if(!n)return;t=t==null?null:t+"";for(o in n){if((i=n[o]).name!==t){r=false;continue}a=i.state>Hl&&i.state<Ul;i.state=Wl;i.timer.stop();i.on.call(a?"interrupt":"cancel",e,e.__data__,i.index,i.group);delete n[o]}if(r)delete e.__transition}function Jl(e){return this.each(function(){Zl(this,e)})}function Ql(a,r){var o,s;return function(){var e=Yl(this,a),t=e.tween;if(t!==o){s=o=t;for(var n=0,i=s.length;n<i;++n){if(s[n].name===r){s=s.slice();s.splice(n,1);break}}}e.tween=s}}function eu(r,o,s){var l,u;if(typeof s!=="function")throw new Error;return function(){var e=Yl(this,r),t=e.tween;if(t!==l){u=(l=t).slice();for(var n={name:o,value:s},i=0,a=u.length;i<a;++i){if(u[i].name===o){u[i]=n;break}}if(i===a)u.push(n)}e.tween=u}}function tu(e,t){var n=this._id;e+="";if(arguments.length<2){var i=Xl(this.node(),n).tween;for(var a=0,r=i.length,o;a<r;++a){if((o=i[a]).name===e){return o.value}}return null}return this.each((t==null?Ql:eu)(n,e,t))}function nu(e,t,n){var i=e._id;e.each(function(){var e=Yl(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)});return function(e){return Xl(e,i).value[t]}}function iu(e,t){var n;return(typeof t==="number"?_n:t instanceof wt?vn:(n=wt(t))?(t=n,vn):Cn)(e,t)}function au(e){return function(){this.removeAttribute(e)}}function ru(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ou(t,n,i){var a,r=i+"",o;return function(){var e=this.getAttribute(t);return e===r?null:e===a?o:o=n(a=e,i)}}function su(t,n,i){var a,r=i+"",o;return function(){var e=this.getAttributeNS(t.space,t.local);return e===r?null:e===a?o:o=n(a=e,i)}}function lu(i,a,r){var o,s,l;return function(){var e,t=r(this),n;if(t==null)return void this.removeAttribute(i);e=this.getAttribute(i);n=t+"";return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function uu(i,a,r){var o,s,l;return function(){var e,t=r(this),n;if(t==null)return void this.removeAttributeNS(i.space,i.local);e=this.getAttributeNS(i.space,i.local);n=t+"";return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function hu(e,t){var n=jo(e),i=n==="transform"?In:iu;return this.attrTween(e,typeof t==="function"?(n.local?uu:lu)(n,i,nu(this,"attr."+e,t)):t==null?(n.local?ru:au)(n):(n.local?su:ou)(n,i,t))}function cu(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function fu(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function du(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&fu(t,e);return i}e._value=n;return e}function gu(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&cu(t,e);return i}e._value=n;return e}function pu(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=="function")throw new Error;var i=jo(e);return this.tween(n,(i.local?du:gu)(i,t))}function vu(e,t){return function(){ql(this,e).delay=+t.apply(this,arguments)}}function mu(e,t){return t=+t,function(){ql(this,e).delay=t}}function yu(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?vu:mu)(t,e)):Xl(this.node(),t).delay}function _u(e,t){return function(){Yl(this,e).duration=+t.apply(this,arguments)}}function bu(e,t){return t=+t,function(){Yl(this,e).duration=t}}function wu(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?_u:bu)(t,e)):Xl(this.node(),t).duration}function xu(e,t){if(typeof t!=="function")throw new Error;return function(){Yl(this,e).ease=t}}function ku(e){var t=this._id;return arguments.length?this.each(xu(t,e)):Xl(this.node(),t).ease}function Su(e){if(typeof e!=="function")e=$o(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=[],l,u=0;u<o;++u){if((l=r[u])&&e.call(l,l.__data__,u,r)){s.push(l)}}}return new Qu(i,this._parents,this._name,this._id)}function Cu(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,a=n.length,r=Math.min(i,a),o=new Array(i),s=0;s<r;++s){for(var l=t[s],u=n[s],h=l.length,c=o[s]=new Array(h),f,d=0;d<h;++d){if(f=l[d]||u[d]){c[d]=f}}}for(;s<i;++s){o[s]=t[s]}return new Qu(o,this._parents,this._name,this._id)}function Eu(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");if(t>=0)e=e.slice(0,t);return!e||e==="start"})}function Au(n,i,a){var r,o,s=Eu(i)?ql:Yl;return function(){var e=s(this,n),t=e.on;if(t!==r)(o=(r=t).copy()).on(i,a);e.on=o}}function Ru(e,t){var n=this._id;return arguments.length<2?Xl(this.node(),n).on.on(e):this.each(Au(n,e,t))}function Mu(n){return function(){var e=this.parentNode;for(var t in this.__transition){if(+t!==n)return}if(e)e.removeChild(this)}}function Tu(){return this.on("end.remove",Mu(this._id))}function Bu(e){var t=this._name,n=this._id;if(typeof e!=="function")e=Wo(e);for(var i=this._groups,a=i.length,r=new Array(a),o=0;o<a;++o){for(var s=i[o],l=s.length,u=r[o]=new Array(l),h,c,f=0;f<l;++f){if((h=s[f])&&(c=e.call(h,h.__data__,f,s))){if("__data__"in h)c.__data__=h.__data__;u[f]=c;Kl(u[f],t,n,f,u,Xl(h,n))}}}return new Qu(r,this._parents,t,n)}function Nu(e){var t=this._name,n=this._id;if(typeof e!=="function")e=Yo(e);for(var i=this._groups,a=i.length,r=[],o=[],s=0;s<a;++s){for(var l=i[s],u=l.length,h,c=0;c<u;++c){if(h=l[c]){for(var f=e.call(h,h.__data__,c,l),d,g=Xl(h,n),p=0,v=f.length;p<v;++p){if(d=f[p]){Kl(d,t,n,p,f,g)}}r.push(f);o.push(h)}}}return new Qu(r,o,t,n)}var Pu=Al.prototype.constructor;function Du(){return new Pu(this._groups,this._parents)}function Ou(n,i){var a,r,o;return function(){var e=Ts(this,n),t=(this.style.removeProperty(n),Ts(this,n));return e===t?null:e===a&&t===r?o:o=i(a=e,r=t)}}function zu(e){return function(){this.style.removeProperty(e)}}function Fu(t,n,i){var a,r=i+"",o;return function(){var e=Ts(this,t);return e===r?null:e===a?o:o=n(a=e,i)}}function Lu(i,a,r){var o,s,l;return function(){var e=Ts(this,i),t=r(this),n=t+"";if(t==null)n=t=(this.style.removeProperty(i),Ts(this,i));return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function Iu(i,a){var r,o,s,l="style."+a,u="end."+l,h;return function(){var e=Yl(this,i),t=e.on,n=e.value[l]==null?h||(h=zu(a)):undefined;if(t!==r||s!==n)(o=(r=t).copy()).on(u,s=n);e.on=o}}function ju(e,t,n){var i=(e+="")==="transform"?Ln:iu;return t==null?this.styleTween(e,Ou(e,i)).on("end.style."+e,zu(e)):typeof t==="function"?this.styleTween(e,Lu(e,i,nu(this,"style."+e,t))).each(Iu(this._id,e)):this.styleTween(e,Fu(e,i,t),n).on("end.style."+e,null)}function Hu(t,n,i){return function(e){this.style.setProperty(t,n.call(this,e),i)}}function Vu(t,n,i){var a,r;function e(){var e=n.apply(this,arguments);if(e!==r)a=(r=e)&&Hu(t,e,i);return a}e._value=n;return e}function Gu(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!=="function")throw new Error;return this.tween(i,Vu(e,t,n==null?"":n))}function Uu(e){return function(){this.textContent=e}}function Wu(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Ku(e){return this.tween("text",typeof e==="function"?Wu(nu(this,"text",e)):Uu(e==null?"":e+""))}function qu(t){return function(e){this.textContent=t.call(this,e)}}function Yu(t){var n,i;function e(){var e=t.apply(this,arguments);if(e!==i)n=(i=e)&&qu(e);return n}e._value=t;return e}function Xu(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=="function")throw new Error;return this.tween(t,Yu(e))}function $u(){var e=this._name,t=this._id,n=th();for(var i=this._groups,a=i.length,r=0;r<a;++r){for(var o=i[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){var h=Xl(l,t);Kl(l,e,n,u,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}}}return new Qu(i,this._parents,e,n)}function Zu(){var a,r,o=this,s=o._id,l=o.size();return new Promise(function(t,e){var n={value:e},i={value:function e(){if(--l===0)t()}};o.each(function(){var e=Yl(this,s),t=e.on;if(t!==a){r=(a=t).copy();r._.cancel.push(n);r._.interrupt.push(n);r._.end.push(i)}e.on=r})})}var Ju=0;function Qu(e,t,n,i){this._groups=e;this._parents=t;this._name=n;this._id=i}function eh(e){return Al().transition(e)}function th(){return++Ju}var nh=Al.prototype;Qu.prototype=eh.prototype={constructor:Qu,select:Bu,selectAll:Nu,filter:Su,merge:Cu,selection:Du,transition:$u,call:nh.call,nodes:nh.nodes,node:nh.node,size:nh.size,empty:nh.empty,each:nh.each,on:Ru,attr:hu,attrTween:pu,style:ju,styleTween:Gu,text:Ku,textTween:Xu,remove:Tu,tween:tu,delay:yu,duration:wu,ease:ku,end:Zu};function ih(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ah={time:null,delay:0,duration:250,ease:ih};function rh(e,t){var n;while(!(n=e.__transition)||!(n=n[t])){if(!(e=e.parentNode)){return ah.time=be(),ah}}return n}function oh(e){var t,n;if(e instanceof Qu){t=e._id,e=e._name}else{t=th(),(n=ah).time=be(),e=e==null?null:e+""}for(var i=this._groups,a=i.length,r=0;r<a;++r){for(var o=i[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){Kl(l,e,t,u,o,n||rh(l,t))}}}return new Qu(i,this._parents,e,t)}Al.prototype.interrupt=Jl;Al.prototype.transition=oh;function sh(e){return function(){return e}}function lh(e,t,n){this.target=e;this.type=t;this.transform=n}function uh(e,t,n){this.k=e;this.x=t;this.y=n}uh.prototype={constructor:uh,scale:function e(t){return t===1?this:new uh(this.k*t,this.x,this.y)},translate:function e(t,n){return t===0&n===0?this:new uh(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function e(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function e(t){return t*this.k+this.x},applyY:function e(t){return t*this.k+this.y},invert:function e(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function e(t){return(t-this.x)/this.k},invertY:function e(t){return(t-this.y)/this.k},rescaleX:function e(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function e(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function e(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var hh=new uh(1,0,0);ch.prototype=uh.prototype;function ch(e){while(!e.__zoom){if(!(e=e.parentNode))return hh}return e.__zoom}function fh(){fl.stopImmediatePropagation()}function dh(){fl.preventDefault();fl.stopImmediatePropagation()}function gh(){return!fl.ctrlKey&&!fl.button}function ph(){var e=this;if(e instanceof SVGElement){e=e.ownerSVGElement||e;if(e.hasAttribute("viewBox")){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function vh(){return this.__zoom||hh}function mh(){return-fl.deltaY*(fl.deltaMode===1?.05:fl.deltaMode?1:.002)}function yh(){return navigator.maxTouchPoints||"ontouchstart"in this}function _h(e,t,n){var i=e.invertX(t[0][0])-n[0][0],a=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function bh(){var s=gh,c=ph,d=_h,r=mh,t=yh,o=[0,Infinity],g=[[-Infinity,-Infinity],[Infinity,Infinity]],l=250,f=qn,n=te("start","zoom","end"),p,u,h=500,v=150,m=0;function y(e){e.property("__zoom",vh).on("wheel.zoom",a).on("mousedown.zoom",S).on("dblclick.zoom",C).filter(t).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(e,t,n){var i=e.selection?e.selection():e;i.property("__zoom",vh);if(e!==i){x(e,t,n)}else{i.interrupt().each(function(){k(this,arguments).start().zoom(null,typeof t==="function"?t.apply(this,arguments):t).end()})}};y.scaleBy=function(e,n,t){y.scaleTo(e,function(){var e=this.__zoom.k,t=typeof n==="function"?n.apply(this,arguments):n;return e*t},t)};y.scaleTo=function(e,r,o){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=o==null?w(e):typeof o==="function"?o.apply(this,arguments):o,i=t.invert(n),a=typeof r==="function"?r.apply(this,arguments):r;return d(b(_(t,a),n,i),e,g)},o)};y.translateBy=function(e,t,n){y.transform(e,function(){return d(this.__zoom.translate(typeof t==="function"?t.apply(this,arguments):t,typeof n==="function"?n.apply(this,arguments):n),c.apply(this,arguments),g)})};y.translateTo=function(e,i,a,r){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=r==null?w(e):typeof r==="function"?r.apply(this,arguments):r;return d(hh.translate(n[0],n[1]).scale(t.k).translate(typeof i==="function"?-i.apply(this,arguments):-i,typeof a==="function"?-a.apply(this,arguments):-a),e,g)},r)};function _(e,t){t=Math.max(o[0],Math.min(o[1],t));return t===e.k?e:new uh(t,e.x,e.y)}function b(e,t,n){var i=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return i===e.x&&a===e.y?e:new uh(e.k,i,a)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,u,h){e.on("start.zoom",function(){k(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).end()}).tween("zoom",function(){var e=this,t=arguments,i=k(e,t),n=c.apply(e,t),a=h==null?w(n):typeof h==="function"?h.apply(e,t):h,r=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=e.__zoom,s=typeof u==="function"?u.apply(e,t):u,l=f(o.invert(a).concat(r/o.k),s.invert(a).concat(r/s.k));return function(e){if(e===1)e=s;else{var t=l(e),n=r/t[2];e=new uh(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function k(e,t,n){return!n&&e.__zooming||new i(e,t)}function i(e,t){this.that=e;this.args=t;this.active=0;this.extent=c.apply(e,t);this.taps=0}i.prototype={start:function e(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function e(t,n){if(this.mouse&&t!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function e(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function e(t){bl(new lh(y,t,this.that.__zoom),n.apply,n,[t,this.that,this.args])}};function a(){if(!s.apply(this,arguments))return;var e=k(this,arguments),t=this.__zoom,n=Math.max(o[0],Math.min(o[1],t.k*Math.pow(2,r.apply(this,arguments)))),i=Bl(this);if(e.wheel){if(e.mouse[0][0]!==i[0]||e.mouse[0][1]!==i[1]){e.mouse[1]=t.invert(e.mouse[0]=i)}clearTimeout(e.wheel)}else if(t.k===n)return;else{e.mouse=[i,t.invert(i)];Zl(this);e.start()}dh();e.wheel=setTimeout(a,v);e.zoom("mouse",d(b(_(t,n),e.mouse[0],e.mouse[1]),e.extent,g));function a(){e.wheel=null;e.end()}}function S(){if(u||!s.apply(this,arguments))return;var n=k(this,arguments,true),e=Rl(fl.view).on("mousemove.zoom",r,true).on("mouseup.zoom",o,true),t=Bl(this),i=fl.clientX,a=fl.clientY;Ol(fl.view);fh();n.mouse=[t,this.__zoom.invert(t)];Zl(this);n.start();function r(){dh();if(!n.moved){var e=fl.clientX-i,t=fl.clientY-a;n.moved=e*e+t*t>m}n.zoom("mouse",d(b(n.that.__zoom,n.mouse[0]=Bl(n.that),n.mouse[1]),n.extent,g))}function o(){e.on("mousemove.zoom mouseup.zoom",null);zl(fl.view,n.moved);dh();n.end()}}function C(){if(!s.apply(this,arguments))return;var e=this.__zoom,t=Bl(this),n=e.invert(t),i=e.k*(fl.shiftKey?.5:2),a=d(b(_(e,i),t,n),c.apply(this,arguments),g);dh();if(l>0)Rl(this).transition().duration(l).call(x,a,t);else Rl(this).call(y.transform,a)}function E(){if(!s.apply(this,arguments))return;var e=fl.touches,t=e.length,n=k(this,arguments,fl.changedTouches.length===t),i,a,r,o;fh();for(a=0;a<t;++a){r=e[a],o=Pl(this,e,r.identifier);o=[o,this.__zoom.invert(o),r.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},h);Zl(this);n.start()}}function A(){if(!this.__zooming)return;var e=k(this,arguments),t=fl.changedTouches,n=t.length,i,a,r,o;dh();if(p)p=clearTimeout(p);e.taps=0;for(i=0;i<n;++i){a=t[i],r=Pl(this,t,a.identifier);if(e.touch0&&e.touch0[2]===a.identifier)e.touch0[0]=r;else if(e.touch1&&e.touch1[2]===a.identifier)e.touch1[0]=r}a=e.that.__zoom;if(e.touch1){var s=e.touch0[0],l=e.touch0[1],u=e.touch1[0],h=e.touch1[1],c=(c=u[0]-s[0])*c+(c=u[1]-s[1])*c,f=(f=h[0]-l[0])*f+(f=h[1]-l[1])*f;a=_(a,Math.sqrt(c/f));r=[(s[0]+u[0])/2,(s[1]+u[1])/2];o=[(l[0]+h[0])/2,(l[1]+h[1])/2]}else if(e.touch0)r=e.touch0[0],o=e.touch0[1];else return;e.zoom("touch",d(b(a,r,o),e.extent,g))}function R(){if(!this.__zooming)return;var e=k(this,arguments),t=fl.changedTouches,n=t.length,i,a;fh();if(u)clearTimeout(u);u=setTimeout(function(){u=null},h);for(i=0;i<n;++i){a=t[i];if(e.touch0&&e.touch0[2]===a.identifier)delete e.touch0;else if(e.touch1&&e.touch1[2]===a.identifier)delete e.touch1}if(e.touch1&&!e.touch0)e.touch0=e.touch1,delete e.touch1;if(e.touch0)e.touch0[1]=this.__zoom.invert(e.touch0[0]);else{e.end();if(e.taps===2){var r=Rl(this).on("dblclick.zoom");if(r)r.apply(this,arguments)}}}y.wheelDelta=function(e){return arguments.length?(r=typeof e==="function"?e:sh(+e),y):r};y.filter=function(e){return arguments.length?(s=typeof e==="function"?e:sh(!!e),y):s};y.touchable=function(e){return arguments.length?(t=typeof e==="function"?e:sh(!!e),y):t};y.extent=function(e){return arguments.length?(c=typeof e==="function"?e:sh([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),y):c};y.scaleExtent=function(e){return arguments.length?(o[0]=+e[0],o[1]=+e[1],y):[o[0],o[1]]};y.translateExtent=function(e){return arguments.length?(g[0][0]=+e[0][0],g[1][0]=+e[1][0],g[0][1]=+e[0][1],g[1][1]=+e[1][1],y):[[g[0][0],g[0][1]],[g[1][0],g[1][1]]]};y.constrain=function(e){return arguments.length?(d=e,y):d};y.duration=function(e){return arguments.length?(l=+e,y):l};y.interpolate=function(e){return arguments.length?(f=e,y):f};y.on=function(){var e=n.on.apply(n,arguments);return e===n?y:e};y.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,y):Math.sqrt(m)};return y}function wh(t,n){if(n===void 0)return function(e){return e[t]};return function(e){return e[t]===void 0?n:e[t]}}function xh(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){xh=function e(t){return typeof t}}else{xh=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return xh(e)}function kh(e){return e&&xh(e)==="object"&&(typeof window==="undefined"||e!==window&&e!==window.document&&!(e instanceof Element))&&!Array.isArray(e)?true:false}function Sh(e){if(typeof window==="undefined")return true;else return e!==window&&e!==document}function Ch(){var i=arguments;var a=arguments.length<=0?undefined:arguments[0];var e=function e(t){var n=t<0||i.length<=t?undefined:i[t];Object.keys(n).forEach(function(e){var t=n[e];if(kh(t)&&Sh(t)){if(a.hasOwnProperty(e)&&kh(a[e]))a[e]=Ch({},a[e],t);else a[e]=Ch({},t)}else if(Array.isArray(t))a[e]=t.slice();else a[e]=t})};for(var t=1;t<arguments.length;t++){e(t)}return a}function Eh(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.attr(n,t[n])}}var Ah={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var Rh={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var Mh={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var Th={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var Bh={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var Nh={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var Ph={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var Dh={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var Oh={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var zh={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var Fh={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var Lh={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var Ih={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var jh={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var Hh={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var Vh={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var Gh={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var Uh={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var Wh={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var Kh={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var qh={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var Yh={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var Xh={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var $h={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var Zh={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var Jh={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var Qh={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var ec={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var tc={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var nc={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var ic={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var ac={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var rc={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var oc={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var sc={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var lc={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var uc={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var hc={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var cc={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var fc={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var dc={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var gc={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var pc={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var vc={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var mc={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var yc={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var _c={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var bc={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var wc={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var xc={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var kc={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var Sc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var Cc={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var Ec={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var Ac={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 Mc={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var Tc={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var Bc={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var Nc={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var Pc={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var Dc={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var Oc={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var zc={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var Fc={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var Lc={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var Ic={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var jc={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var Hc={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var Vc={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var Gc={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var Uc={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 Kc={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var qc={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var Yc={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var Xc={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var $c={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var Zc={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var Jc={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var Qc={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var ef={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var tf={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var nf={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var af={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var rf={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var of={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var sf={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var lf={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var uf={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var hf={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var cf={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var ff={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var df={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var gf={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var pf={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var vf={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var mf={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var yf={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var _f={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var bf={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var wf={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var xf={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var kf={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Sf={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var Cf={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 Af={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 Mf={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var Tf={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var Bf={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var Nf={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var Pf={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var Df={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var Of={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var zf={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var Ff={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var Lf={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var If={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var jf={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var Hf={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var Vf={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var Gf={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var Uf={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 Kf={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var qf={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var Yf={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var Xf={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var $f={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var Zf={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var Jf={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var Qf={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var ed={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var td={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var nd={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var id={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var ad={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var rd={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var od={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var sd={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var ld={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var ud={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var hd={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var cd={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var fd={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var dd={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var gd={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var pd={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var vd={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var md={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var yd={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var _d={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var bd={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var wd={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var xd={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var kd={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var Sd={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var Cd={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var Ed={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var Ad={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var Rd={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var Md={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var Td={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var Bd={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var Nd={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var Pd={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var Dd={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var Od={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var zd={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var Fd={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var Ld={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var Id={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var jd={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var Hd={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var Vd={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var Gd={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var Ud={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var Wd={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var Kd={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var qd={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var Yd={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var Xd={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var $d={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var Zd={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var Jd={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var Qd={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var eg={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var tg={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var ng={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var ig={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var ag={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var rg={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var og={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var sg={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var lg={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var ug={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var hg={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var cg={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var fg={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var dg={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var gg={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var pg={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var vg={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var mg={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var yg={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var _g={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var bg={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var wg={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var xg={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var kg={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var Sg={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var Cg={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var Eg={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var Ag={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var Rg={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var Mg={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var Tg={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var Bg={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var Ng={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var Pg={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var Dg={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var Og={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var zg={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var Fg={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var Lg={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var Ig={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var jg={aa:Ah,"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:Rh,"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:Mh,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:Th,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:Bh,"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:Nh,"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:Ph,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:Dh,"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:Oh,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:zh,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:Fh,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:Lh,"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:Ih,"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:jh,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:Hh,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:Vh,"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:Gh,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:Uh,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:Wh,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:Kh,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:qh,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:Yh,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:Xh,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:$h,"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:Zh,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:Jh,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:Qh,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:ec,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:tc,"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:nc,"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:ic,"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:ac,"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:rc,"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:oc,"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:sc,"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:lc,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:uc,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:hc,"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:cc,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:fc,"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:dc,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:gc,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:pc,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:vc,"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:mc,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:yc,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:_c,"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:bc,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:wc,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:xc,"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:kc,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:Sc,"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:Cc,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:Ec,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:Ac,"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:Mc,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:Tc,"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:Bc,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:Nc,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:Pc,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:Dc,"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:Oc,"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:zc,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:Fc,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:Lc,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:Ic,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:jc,"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:Hc,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:Vc,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:Gc,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:Uc,"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:Kc,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:qc,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:Yc,"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:Xc,"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:$c,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:Zc,"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:Jc,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:Qc,"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:ef,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:tf,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:nf,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:af,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:rf,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:of,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:sf,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:lf,"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:uf,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:hf,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:cf,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:ff,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:df,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:gf,"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:pf,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:vf,"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:mf,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:yf,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:_f,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:bf,"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:wf,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:xf,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:kf,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Sf,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:Cf,"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:Af,"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:Mf,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:Tf,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:Bf,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:Nf,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:Pf,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:Df,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:Of,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:zf,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:Ff,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:Lf,"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:If,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:jf,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:Hf,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:Vf,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:Gf,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:Uf,"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:Kf,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:qf,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:Yf,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:Xf,"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:$f,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:Zf,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:Jf,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:Qf,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:ed,"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:td,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:nd,"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:id,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:ad,nb:rd,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:od,"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:sd,"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:ld,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:ud,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:hd,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:cd,"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:fd,"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:dd,"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:gd,"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:pd,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:vd,"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:md,"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:yd,"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:_d,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:bd,"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:wd,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:xd,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:kd,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:Sd,"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:Cd,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:Ed,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:Ad,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:Rd,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:Md,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:Td,"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:Bd,"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:Nd,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:Pd,"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:Dd,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:Od,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:zd,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:Fd,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:Ld,"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:Id,"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:jd,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:Hd,"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:Vd,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:Gd,"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:Ud,"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:Wd,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:Kd,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:qd,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:Yd,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:Xd,"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:$d,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:Zd,"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:Jd,"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:Qd,"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:eg,"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:tg,"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:ng,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:ig,"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:ag,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:rg,"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:og,"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:sg,"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:lg,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:ug,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:hg,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:cg,"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:fg,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:dg,"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:gg,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:pg,"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:vg,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:mg,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:yg,"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:_g,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:bg,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:wg,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:xg,"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:kg,"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:Sg,"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:Cg,"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:Eg,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:Ag,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:Rg,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:Mg,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:Tg,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:Bg,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:Ng,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:Pg,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:Dg,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:Og,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:zg,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:Fg,"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:Lg,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:Ig,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var Hg={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var Vg={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var Gg={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var Ug={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var Wg={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var Kg={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var qg={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var Yg={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var Xg={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var $g={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var Zg={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var Jg={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var Qg={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var ep={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var tp={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var np={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var ip={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var ap={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var rp={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var op={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var sp={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var lp={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var up={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var hp={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var cp={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var fp={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var dp={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var gp={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var pp={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var vp={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var mp={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var yp={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var _p={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var bp={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var wp={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var xp={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var kp={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var Sp={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var Cp={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var Ep={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var Ap={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Rp={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Mp={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var Tp={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var Bp={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var Np={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var Pp={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var Dp={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Op={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var zp={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var Fp={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Lp={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Ip={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var jp={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Hp={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var Vp={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var Gp={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var Up={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var Wp={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var Kp={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var qp={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var Yp={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var Xp={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var $p={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Zp={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var Jp={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var Qp={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var ev={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var tv={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var nv={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var iv={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var av={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var rv={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var ov={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var sv={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var lv={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var uv={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var hv={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var cv={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var fv={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var dv={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var gv={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var pv={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var vv={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var mv={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var yv={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var _v={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var bv={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var wv={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var xv={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var kv={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Sv={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Cv={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ev={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var Av={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Rv={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var Mv={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var Tv={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var Bv={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Nv={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var Pv={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var Dv={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var Ov={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var zv={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var Fv={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var Lv={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var Iv={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var jv={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var Hv={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var Vv={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var Gv={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var Uv={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var Wv={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var Kv={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var qv={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var Yv={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Xv={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var $v={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Zv={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var Jv={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var Qv={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var em={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var tm={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var nm={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var im={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var am={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var rm={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var om={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var sm={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var lm={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var um={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var hm={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var cm={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var fm={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var dm={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var gm={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var pm={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var vm={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var mm={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var ym={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var _m={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var bm={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var wm={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var xm={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var km={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var Sm={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var Cm={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var Em={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var Am={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var Rm={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var Mm={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var Tm={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var Bm={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var Nm={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var Pm={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var Dm={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var Om={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var zm={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var Fm={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var Lm={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Im={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var jm={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var Hm={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var Vm={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var Gm={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var Um={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var Wm={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Km={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var qm={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var Ym={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Xm={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var $m={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Zm={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var Jm={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var Qm={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var ey={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var ty={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var ny={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var iy={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var ay={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var ry={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var oy={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var sy={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var ly={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var uy={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var hy={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var cy={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var fy={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var dy={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var gy={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var py={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var vy={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var my={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var yy={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var _y={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var by={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var wy={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var xy={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var ky={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var Sy={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var Cy={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var Ey={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var Ay={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var Ry={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var My={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var Ty={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var By={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var Ny={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var Py={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var Dy={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Oy={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var zy={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var Fy={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Ly={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Iy={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var jy={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var Hy={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var Vy={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var Gy={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var Uy={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var Wy={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var Ky={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var qy={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var Yy={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var Xy={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var $y={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var Zy={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var Jy={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var Qy={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var e_={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var t_={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var n_={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var i_={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var a_={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var r_={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var o_={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var s_={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var l_={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var u_={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var h_={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var c_={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var f_={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var d_={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var g_={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var p_={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var v_={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var m_={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var y_={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var __={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var b_={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var w_={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var x_={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var k_={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var S_={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var C_={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var E_={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var A_={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var R_={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var M_={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var T_={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var B_={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var N_={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var P_={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var D_={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var O_={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var z_={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var F_={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var L_={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var I_={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var j_={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var H_={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var V_={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var G_={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var U_={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var W_={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var K_={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var q_={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Y_={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var X_={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var $_={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var Z_={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var J_={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var Q_={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var eb={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var tb={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var nb={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var ib={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var ab={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var rb={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var ob={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var sb={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var lb={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var ub={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var hb={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var cb={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var fb={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var db={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var gb={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var pb={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var vb={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var mb={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var yb={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var _b={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var bb={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var wb={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var xb={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var kb={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var Sb={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var Cb={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var Eb={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var Ab={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Rb={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var Mb={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var Tb={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var Bb={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var Nb={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var Pb={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var Db={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var Ob={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var zb={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var Fb={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Lb={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var Ib={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var jb={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var Hb={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var Vb={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var Gb={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var Ub={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var Wb={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var Kb={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var qb={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var Yb={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var Xb={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var $b={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var Zb={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var Jb={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var Qb={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var ew={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var tw={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var nw={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var iw={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var aw={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var rw={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var ow={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var sw={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var lw={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var uw={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var hw={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var cw={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var fw={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var dw={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var gw={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var pw={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var vw={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var mw={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var yw={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var _w={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var bw={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var ww={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var xw={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var kw={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var Sw={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var Cw={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var Ew={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var Aw={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var Rw={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var Mw={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var Tw={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var Bw={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var Nw={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var Pw={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var Dw={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var Ow={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var zw={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Fw={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var Lw={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var Iw={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var jw={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var Hw={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Vw={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var Gw={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var Uw={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Ww={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var Kw={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var qw={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var Yw={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var Xw={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var $w={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var Zw={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var Jw={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var Qw={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var ex={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var tx={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var nx={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var ix={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var ax={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var rx={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var ox={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var sx={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var lx={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var ux={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var hx={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var cx={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var fx={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var dx={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var gx={Abkhazian:Hg,Achinese:Vg,Acoli:Gg,Adangme:Ug,Adygei:Wg,Adyghe:Kg,Afar:qg,Afrihili:Yg,Afrikaans:Xg,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:$g,Akan:Zg,Akkadian:Jg,Albanian:Qg,Alemannic:ep,Aleut:tp,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:np,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:ip,Angika:ap,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:rp,Aragonese:op,Arapaho:sp,Arawak:lp,Armenian:up,Aromanian:hp,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:cp,Assamese:fp,Asturian:dp,Asturleonese:gp,"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:pp,Avestan:vp,Awadhi:mp,Aymara:yp,Azerbaijani:_p,Bable:bp,Balinese:wp,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:xp,Bambara:kp,"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:Sp,Bashkir:Cp,Basque:Ep,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:Ap,Beja:Rp,Belarusian:Mp,Bemba:Tp,Bengali:Bp,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:Np,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:Pp,Bilin:Dp,Bini:Op,Bislama:zp,Blin:Fp,Bliss:Lp,Blissymbolics:Ip,Blissymbols:jp,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:Hp,Braj:Vp,Breton:Gp,Buginese:Up,Bulgarian:Wp,Buriat:Kp,Burmese:qp,Caddo:Yp,Castilian:Xp,Catalan:$p,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:Zp,"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:Jp,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:Qp,Chechen:ev,Cherokee:tv,Chewa:nv,Cheyenne:iv,Chibcha:av,Chichewa:rv,Chinese:ov,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:sv,Choctaw:lv,Chuang:uv,"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:hv,Chuvash:cv,"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:fv,Cornish:dv,Corsican:gv,Cree:pv,Creek:vv,"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:mv,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:yv,Dakota:_v,Danish:bv,Dargwa:wv,Delaware:xv,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:kv,Dimili:Sv,Dimli:Cv,Dinka:Ev,Divehi:Av,Dogri:Rv,Dogrib:Mv,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:Tv,Dutch:Bv,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:Nv,Dzongkha:Pv,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:Dv,Efik:Ov,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:zv,Elamite:Fv,English:Lv,"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:Iv,Esperanto:jv,Estonian:Hv,Ewe:Vv,Ewondo:Gv,Fang:Uv,Fanti:Wv,Faroese:Kv,Fijian:qv,Filipino:Yv,Finnish:Xv,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:$v,Fon:Zv,French:Jv,"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:Qv,Fulah:em,Ga:tm,Gaelic:nm,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:im,Ganda:am,Gayo:rm,Gbaya:om,Geez:sm,Georgian:lm,German:um,"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:hm,Gilbertese:cm,Gondi:fm,Gorontalo:dm,Gothic:gm,Grebo:pm,"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:vm,Guarani:mm,Gujarati:ym,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:_m,Haitian:bm,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:wm,Hawaiian:xm,Hebrew:km,Herero:Sm,Hiligaynon:Cm,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:Em,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:Am,Hmong:Rm,Hungarian:Mm,Hupa:Tm,Iban:Bm,Icelandic:Nm,Ido:Pm,Igbo:Dm,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:Om,"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:zm,Ingush:Fm,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:Lm,Inuktitut:Im,Inupiaq:jm,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:Hm,"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:Vm,Japanese:Gm,Javanese:Um,Jingpho:Wm,"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:Km,Kabyle:qm,Kachin:Ym,Kalaallisut:Xm,Kalmyk:$m,Kamba:Zm,Kannada:Jm,Kanuri:Qm,Kapampangan:ey,"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:ty,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:ny,Kashubian:iy,Kawi:ay,Kazakh:ry,Khasi:oy,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:sy,Kikuyu:ly,Kimbundu:uy,Kinyarwanda:hy,Kirdki:cy,Kirghiz:fy,Kirmanjki:dy,Klingon:gy,Komi:py,Kongo:vy,Konkani:my,Korean:yy,Kosraean:_y,Kpelle:by,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:wy,Kumyk:xy,Kurdish:ky,Kurukh:Sy,Kutenai:Cy,Kwanyama:Ey,Kyrgyz:Ay,Ladino:Ry,Lahnda:My,Lamba:Ty,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:By,Latin:Ny,Latvian:Py,Leonese:Dy,Letzeburgesch:Oy,Lezghian:zy,Limburgan:Fy,Limburger:Ly,Limburgish:Iy,Lingala:jy,Lithuanian:Hy,Lojban:Vy,"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:Gy,"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:Uy,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:Wy,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:Ky,Luxembourgish:qy,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:Yy,Madurese:Xy,Magahi:$y,Maithili:Zy,Makasar:Jy,Malagasy:Qy,Malay:e_,Malayalam:t_,Maldivian:n_,Maltese:i_,Manchu:a_,Mandar:r_,Mandingo:o_,Manipuri:s_,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:l_,Maori:u_,Mapuche:h_,Mapudungun:c_,Marathi:f_,Mari:d_,Marshallese:g_,Marwari:p_,Masai:v_,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:m_,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:y_,Minangkabau:__,Mirandese:b_,Mohawk:w_,Moksha:x_,Moldavian:k_,Moldovan:S_,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:C_,Mongo:E_,Mongolian:A_,Montenegrin:R_,Mossi:M_,"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:T_,Navaho:B_,Navajo:N_,"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:P_,Neapolitan:D_,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:O_,Newari:z_,Nias:F_,"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:L_,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:I_,"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:j_,"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:H_,Nyamwezi:V_,Nyanja:G_,Nyankole:U_,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:W_,Nzima:K_,Occidental:q_,"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:Y_,Ojibwa:X_,"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:$_,Oromo:Z_,Osage:J_,Ossetian:Q_,Ossetic:eb,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:tb,Palauan:nb,Pali:ib,Pampanga:ab,Pangasinan:rb,Panjabi:ob,Papiamento:sb,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:lb,Pedi:ub,Persian:hb,"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:cb,Pilipino:fb,Pohnpeian:db,Polish:gb,Portuguese:pb,"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:vb,Pushto:mb,Quechua:yb,Rajasthani:_b,Rapanui:bb,Rarotongan:wb,"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:xb,Romansh:kb,Romany:Sb,Rundi:Cb,Russian:Eb,Sakan:Ab,"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:Rb,Sandawe:Mb,Sango:Tb,Sanskrit:Bb,Santali:Nb,Sardinian:Pb,Sasak:Db,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:Ob,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:zb,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:Fb,Serbian:Lb,Serer:Ib,Shan:jb,Shona:Hb,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:Vb,Sidamo:Gb,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:Ub,Sindhi:Wb,Sinhala:Kb,Sinhalese:qb,"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:Yb,Slovenian:Xb,Sogdian:$b,Somali:Zb,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:Jb,"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:Qb,"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:ew,Sumerian:tw,Sundanese:nw,Susu:iw,Swahili:aw,Swati:rw,Swedish:ow,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:sw,Tagalog:lw,Tahitian:uw,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:hw,Tamashek:cw,Tamil:fw,Tatar:dw,Telugu:gw,Tereno:pw,Tetum:vw,Thai:mw,Tibetan:yw,Tigre:_w,Tigrinya:bw,Timne:ww,Tiv:xw,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:kw,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:Sw,"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:Cw,Tsonga:Ew,Tswana:Aw,Tumbuka:Rw,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:Mw,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:Tw,Tuvalu:Bw,Tuvinian:Nw,Twi:Pw,Udmurt:Dw,Ugaritic:Ow,Uighur:zw,Ukrainian:Fw,Umbundu:Lw,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:Iw,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:jw,Uyghur:Hw,Uzbek:Vw,Vai:Gw,Valencian:Uw,Venda:Ww,Vietnamese:Kw,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:qw,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:Yw,Waray:Xw,Washo:$w,Welsh:Zw,"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:Jw,Wolaytta:Qw,Wolof:ex,Xhosa:tx,Yakut:nx,Yao:ix,Yapese:ax,Yiddish:rx,Yoruba:ox,"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:sx,Zaza:lx,Zazaki:ux,Zenaga:hx,Zhuang:cx,Zulu:fx,Zuni:dx};function px(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var vx=[];var mx=Object.keys(gx);Object.keys(jg).map(function(e){var t=jg[e];var n=mx.find(function(e){return e.toLowerCase()===t.language.toLowerCase()});if(t.location&&n){var i;vx.push((i={},px(i,"name",t.language),px(i,"location",t.location),px(i,"tag",t.tag),px(i,"lcid",t.id),px(i,"iso639-2",gx[n]["iso639-2"]),px(i,"iso639-1",gx[n]["iso639-1"]),i))}});var yx={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 _x(t){if(typeof t!=="string"||t.length===5)return t;if(yx[t])return yx[t];var e=vx.filter(function(e){return e["iso639-1"]===t});if(!e.length)return t;else if(e.length===1)return e[0].tag;else if(e.find(function(e){return e.tag==="".concat(t,"-").concat(t.toUpperCase())}))return"".concat(t,"-").concat(t.toUpperCase());else return e[0].tag}function bx(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function wx(){return"".concat(bx()).concat(bx(),"-").concat(bx(),"-").concat(bx(),"-").concat(bx(),"-").concat(bx()).concat(bx()).concat(bx())}var xx="D3PLUS-COMMON-RESET";var kx={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 Sx={"es-ES":kx};function Cx(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ex(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function Ax(e,t,n){if(t)Ex(e.prototype,t);if(n)Ex(e,n);return e}function Rx(e,t){if(kh(e)){for(var n in e){if({}.hasOwnProperty.call(e,n)&&!n.startsWith("_")){var i=t&&kh(t)?t[n]:undefined;if(e[n]===xx){if(i)e[n]=i;else delete e[n]}else if(kh(e[n])){Rx(e[n],i)}}}}}function Mx(e){var t=[];do{t=t.concat(Object.getOwnPropertyNames(e));e=Object.getPrototypeOf(e)}while(e&&e!==Object.prototype);return t.filter(function(e){return e.indexOf("_")!==0&&!["config","constructor","parent","render"].includes(e)})}var Tx=function(){function e(){var i=this;Cx(this,e);this._locale="en-US";this._on={};this._parent={};this._translate=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:i._locale;var n=Sx[t];return n&&n[e]?n[e]:e};this._uuid=wx()}Ax(e,[{key:"config",value:function n(e){var i=this;if(!this._configDefault){var n={};Mx(this.__proto__).forEach(function(e){var t=i[e]();if(t!==i)n[e]=kh(t)?Ch({},t):t});this._configDefault=n}if(arguments.length){for(var t in e){if({}.hasOwnProperty.call(e,t)&&t in this){var a=e[t];if(a===xx){if(t==="on")this._on=this._configDefault[t];else this[t](this._configDefault[t])}else{Rx(a,this._configDefault[t]);this[t](a)}}}return this}else{var r={};Mx(this.__proto__).forEach(function(e){r[e]=i[e]()});return r}}},{key:"locale",value:function e(t){return arguments.length?(this._locale=_x(t),this):this._locale}},{key:"on",value:function e(t,n){return arguments.length===2?(this._on[t]=n,this):arguments.length?typeof t==="string"?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"parent",value:function e(t){return arguments.length?(this._parent=t,this):this._parent}},{key:"translate",value:function e(t){return arguments.length?(this._translate=t,this):this._translate}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}}]);return e}();function Bx(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!e||!(e instanceof Array)||!e.length)return undefined;return e.reduce(function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e})}function Nx(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Nx=function e(t){return typeof t}}else{Nx=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Nx(e)}function Px(){var r=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var o=function e(a){return function(e,t,n){var i;while(e.__d3plus__){if(i)e.__d3plusParent__=i;i=e;t=e.i;e=e.data||e.feature}return a.bind(r)(e,t,n||i)}};var s=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)&&!i.includes(".")||i.includes(".".concat(a))){t.on[i]=o(n[i])}}};var l=function t(e){return e.map(function(e){if(e instanceof Array)return t(e);else if(Nx(e)==="object")return i({},e);else if(typeof e==="function")return o(e);else return e})};var i=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)){if(i==="on")s(t,n[i]);else if(typeof n[i]==="function"){t[i]=o(n[i])}else if(n[i]instanceof Array){t[i]=l(n[i])}else if(Nx(n[i])==="object"){t[i]={on:{}};e(t[i],n[i])}else t[i]=n[i]}}};i(n,e);if(this._on)s(n,this._on);if(t&&e[t]){i(n,e[t]);if(e[t].on)s(n,e[t].on)}return n}function Dx(t){return function e(){return t}}function Ox(e,t){t=Object.assign({},{condition:true,enter:{},exit:{},parent:Rl("body"),transition:eh().duration(0),update:{}},t);var n=/\.([^#]+)/g.exec(e),i=/#([^\.]+)/g.exec(e),a=/^([^.^#]+)/g.exec(e)[1];var r=t.parent.selectAll(e.includes(":")?e.split(":")[1]:e).data(t.condition?[null]:[]);var o=r.enter().append(a).call(Eh,t.enter);if(i)o.attr("id",i[1]);if(n)o.attr("class",n[1]);r.exit().transition(t.transition).call(Eh,t.exit).remove();var s=o.merge(r);s.transition(t.transition).call(Eh,t.update);return s}function zx(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function Fx(a){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=zx(_e(a.map(function(e){return p(e)}))),o={};e.forEach(function(t){var e;if(r[t])e=r[t](a,function(e){return e[t]});else{var n=a.map(function(e){return e[t]});var i=n.map(function(e){return e||e===false?e.constructor:e}).filter(function(e){return e!==void 0});if(!i.length)e=undefined;else if(i.indexOf(Array)>=0){e=_e(n.map(function(e){return e instanceof Array?e:[e]}));e=zx(e);if(e.length===1)e=e[0]}else if(i.indexOf(String)>=0){e=zx(n);if(e.length===1)e=e[0]}else if(i.indexOf(Number)>=0)e=O(n);else if(i.indexOf(Object)>=0){e=zx(n.filter(function(e){return e}));if(e.length===1)e=e[0];else e=Fx(e)}else{e=zx(n.filter(function(e){return e!==void 0}));if(e.length===1)e=e[0]}}o[t]=e});return o}function Lx(e){var a;if(typeof e==="number")a=[e];else a=e.split(/\s+/);if(a.length===1)a=[a[0],a[0],a[0],a[0]];else if(a.length===2)a=a.concat(a);else if(a.length===3)a.push(a[1]);return["top","right","bottom","left"].reduce(function(e,t,n){var i=parseFloat(a[n]);e[t]=i||0;return e},{})}function Ix(){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 jx(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.style(n,t[n])}}function Hx(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Vx(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function Gx(e,t,n){if(t)Vx(e.prototype,t);if(n)Vx(e,n);return e}var Ux=function(){function l(){Hx(this,l);this._duration=600;this._height=wh("height");this._id=wh("id");this._opacity=Dx(1);this._pointerEvents=Dx("auto");this._select;this._url=wh("url");this._width=wh("width");this._x=wh("x",0);this._y=wh("y",0)}Gx(l,[{key:"render",value:function e(t){var n=this;if(this._select===void 0)this.select(Rl("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 a=i.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",function(e,t){return n._x(e,t)+n._width(e,t)/2}).attr("y",function(e,t){return n._y(e,t)+n._height(e,t)/2});var r=eh().duration(this._duration),o=this,s=a.merge(i);s.attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(r).attr("opacity",this._opacity).attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return n._x(e,t)}).attr("y",function(e,t){return n._y(e,t)}).each(function(e,t){var n=Rl(this),i=o._url(e,t);var a=i.indexOf("http://")===0||i.indexOf("https://")===0;if(!a||i.indexOf(window.location.hostname)===0){var r=new l;r.src=i;r.crossOrigin="Anonymous";r.onload=function(){var e=document.createElement("canvas");e.width=this.width;e.height=this.height;var t=e.getContext("2d");t.drawImage(this,0,0);n.attr("xlink:href",e.toDataURL("image/png"))}}});i.exit().transition(r).attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return n._x(e,t)}).attr("y",function(e,t){return n._y(e,t)}).attr("opacity",0).remove();if(t)setTimeout(t,this._duration+100);return this}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Dx(t),this):this._height}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Dx(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Dx(t),this):this._pointerEvents}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"url",value:function e(t){return arguments.length?(this._url=t,this):this._url}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Dx(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Dx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Dx(t),this):this._y}}]);return l}();function Wx(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Kx(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function qx(){}var Yx=.7;var Xx=1/Yx;var $x="\\s*([+-]?\\d+)\\s*",Zx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jx="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Qx=/^#([0-9a-f]{3,8})$/,ek=new RegExp("^rgb\\("+[$x,$x,$x]+"\\)$"),tk=new RegExp("^rgb\\("+[Jx,Jx,Jx]+"\\)$"),nk=new RegExp("^rgba\\("+[$x,$x,$x,Zx]+"\\)$"),ik=new RegExp("^rgba\\("+[Jx,Jx,Jx,Zx]+"\\)$"),ak=new RegExp("^hsl\\("+[Zx,Jx,Jx]+"\\)$"),rk=new RegExp("^hsla\\("+[Zx,Jx,Jx,Zx]+"\\)$");var ok={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};Wx(qx,hk,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:sk,formatHex:sk,formatHsl:lk,formatRgb:uk,toString:uk});function sk(){return this.rgb().formatHex()}function lk(){return bk(this).formatHsl()}function uk(){return this.rgb().formatRgb()}function hk(e){var t,n;e=(e+"").trim().toLowerCase();return(t=Qx.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ck(t):n===3?new pk(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ek.exec(e))?new pk(t[1],t[2],t[3],1):(t=tk.exec(e))?new pk(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nk.exec(e))?fk(t[1],t[2],t[3],t[4]):(t=ik.exec(e))?fk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ak.exec(e))?_k(t[1],t[2]/100,t[3]/100,1):(t=rk.exec(e))?_k(t[1],t[2]/100,t[3]/100,t[4]):ok.hasOwnProperty(e)?ck(ok[e]):e==="transparent"?new pk(NaN,NaN,NaN,0):null}function ck(e){return new pk(e>>16&255,e>>8&255,e&255,1)}function fk(e,t,n,i){if(i<=0)e=t=n=NaN;return new pk(e,t,n,i)}function dk(e){if(!(e instanceof qx))e=hk(e);if(!e)return new pk;e=e.rgb();return new pk(e.r,e.g,e.b,e.opacity)}function gk(e,t,n,i){return arguments.length===1?dk(e):new pk(e,t,n,i==null?1:i)}function pk(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}Wx(pk,gk,Kx(qx,{brighter:function e(t){t=t==null?Xx:Math.pow(Xx,t);return new pk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Yx:Math.pow(Yx,t);return new pk(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:vk,formatHex:vk,formatRgb:mk,toString:mk}));function vk(){return"#"+yk(this.r)+yk(this.g)+yk(this.b)}function mk(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function yk(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function _k(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new xk(e,t,n,i)}function bk(e){if(e instanceof xk)return new xk(e.h,e.s,e.l,e.opacity);if(!(e instanceof qx))e=hk(e);if(!e)return new xk;if(e instanceof xk)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new xk(o,s,l,e.opacity)}function wk(e,t,n,i){return arguments.length===1?bk(e):new xk(e,t,n,i==null?1:i)}function xk(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}Wx(xk,wk,Kx(qx,{brighter:function e(t){t=t==null?Xx:Math.pow(Xx,t);return new xk(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Yx:Math.pow(Yx,t);return new xk(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new pk(kk(t>=240?t-240:t+120,r,a),kk(t,r,a),kk(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function kk(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Sk(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Ck(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function Ek(){}var Ak=.7;var Rk=1/Ak;var Mk="\\s*([+-]?\\d+)\\s*",Tk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nk=/^#([0-9a-f]{3,8})$/,Pk=new RegExp("^rgb\\("+[Mk,Mk,Mk]+"\\)$"),Dk=new RegExp("^rgb\\("+[Bk,Bk,Bk]+"\\)$"),Ok=new RegExp("^rgba\\("+[Mk,Mk,Mk,Tk]+"\\)$"),zk=new RegExp("^rgba\\("+[Bk,Bk,Bk,Tk]+"\\)$"),Fk=new RegExp("^hsl\\("+[Tk,Bk,Bk]+"\\)$"),Lk=new RegExp("^hsla\\("+[Tk,Bk,Bk,Tk]+"\\)$");var Ik={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};Sk(Ek,Gk,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHsl:Hk,formatRgb:Vk,toString:Vk});function jk(){return this.rgb().formatHex()}function Hk(){return Qk(this).formatHsl()}function Vk(){return this.rgb().formatRgb()}function Gk(e){var t,n;e=(e+"").trim().toLowerCase();return(t=Nk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Uk(t):n===3?new Yk(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Pk.exec(e))?new Yk(t[1],t[2],t[3],1):(t=Dk.exec(e))?new Yk(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ok.exec(e))?Wk(t[1],t[2],t[3],t[4]):(t=zk.exec(e))?Wk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fk.exec(e))?Jk(t[1],t[2]/100,t[3]/100,1):(t=Lk.exec(e))?Jk(t[1],t[2]/100,t[3]/100,t[4]):Ik.hasOwnProperty(e)?Uk(Ik[e]):e==="transparent"?new Yk(NaN,NaN,NaN,0):null}function Uk(e){return new Yk(e>>16&255,e>>8&255,e&255,1)}function Wk(e,t,n,i){if(i<=0)e=t=n=NaN;return new Yk(e,t,n,i)}function Kk(e){if(!(e instanceof Ek))e=Gk(e);if(!e)return new Yk;e=e.rgb();return new Yk(e.r,e.g,e.b,e.opacity)}function qk(e,t,n,i){return arguments.length===1?Kk(e):new Yk(e,t,n,i==null?1:i)}function Yk(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}Sk(Yk,qk,Ck(Ek,{brighter:function e(t){t=t==null?Rk:Math.pow(Rk,t);return new Yk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Ak:Math.pow(Ak,t);return new Yk(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:Xk,formatHex:Xk,formatRgb:$k,toString:$k}));function Xk(){return"#"+Zk(this.r)+Zk(this.g)+Zk(this.b)}function $k(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function Zk(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Jk(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new tS(e,t,n,i)}function Qk(e){if(e instanceof tS)return new tS(e.h,e.s,e.l,e.opacity);if(!(e instanceof Ek))e=Gk(e);if(!e)return new tS;if(e instanceof tS)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new tS(o,s,l,e.opacity)}function eS(e,t,n,i){return arguments.length===1?Qk(e):new tS(e,t,n,i==null?1:i)}function tS(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}Sk(tS,eS,Ck(Ek,{brighter:function e(t){t=t==null?Rk:Math.pow(Rk,t);return new tS(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Ak:Math.pow(Ak,t);return new tS(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Yk(nS(t>=240?t-240:t+120,r,a),nS(t,r,a),nS(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function nS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var iS={dark:"#444444",light:"#f7f7f7",missing:"#cccccc",off:"#b22200",on:"#224f20",scale:et().range(["#b22200","#282f6b","#eace3f","#b35c1e","#224f20","#5f487c","#759143","#419391","#993c88","#e89c89","#ffee8d","#afd5e8","#f7ba77","#a5c697","#c5b5e5","#d1d392","#bbefd0","#e099cf"])};function aS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e in t?t[e]:e in iS?iS[e]:iS.missing}function rS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(e)>=0)return aS("missing",t);else if(e===true)return aS("on",t);else if(e===false)return aS("off",t);var n=Gk(e);if(!n)return aS("scale",t)(e);return e.toString()}function oS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e=qk(e);var n=(e.r*299+e.g*587+e.b*114)/1e3;return n>=128?aS("dark",t):aS("light",t)}function sS(e){e=eS(e);if(e.l>.45){if(e.s>.8)e.s=.8;e.l=.45}return e.toString()}function lS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;e=eS(e);t*=1-e.l;e.l+=t;e.s-=t;return e.toString()}var uS=Math.PI,hS=2*uS,cS=1e-6,fS=hS-cS;function dS(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function gS(){return new dS}dS.prototype=gS.prototype={constructor:dS,moveTo:function e(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function e(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function e(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function e(t,n,i,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function e(t,n,i,a,r,o){this._+="C"+ +t+","+ +n+","+ +i+","+ +a+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function e(t,n,i,a,r){t=+t,n=+n,i=+i,a=+a,r=+r;var o=this._x1,s=this._y1,l=i-t,u=a-n,h=o-t,c=s-n,f=h*h+c*c;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+(this._x1=t)+","+(this._y1=n)}else if(!(f>cS));else if(!(Math.abs(c*l-u*h)>cS)||!r){this._+="L"+(this._x1=t)+","+(this._y1=n)}else{var d=i-o,g=a-s,p=l*l+u*u,v=d*d+g*g,m=Math.sqrt(p),y=Math.sqrt(f),_=r*Math.tan((uS-Math.acos((p+f-v)/(2*m*y)))/2),b=_/y,w=_/m;if(Math.abs(b-1)>cS){this._+="L"+(t+b*h)+","+(n+b*c)}this._+="A"+r+","+r+",0,0,"+ +(c*d>h*g)+","+(this._x1=t+w*l)+","+(this._y1=n+w*u)}},arc:function e(t,n,i,a,r,o){t=+t,n=+n,i=+i;var s=i*Math.cos(a),l=i*Math.sin(a),u=t+s,h=n+l,c=1^o,f=o?a-r:r-a;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null){this._+="M"+u+","+h}else if(Math.abs(this._x1-u)>cS||Math.abs(this._y1-h)>cS){this._+="L"+u+","+h}if(!i)return;if(f<0)f=f%hS+hS;if(f>fS){this._+="A"+i+","+i+",0,1,"+c+","+(t-s)+","+(n-l)+"A"+i+","+i+",0,1,"+c+","+(this._x1=u)+","+(this._y1=h)}else if(f>cS){this._+="A"+i+","+i+",0,"+ +(f>=uS)+","+c+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=n+i*Math.sin(r))}},rect:function e(t,n,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function e(){return this._}};function pS(t){return function e(){return t}}var vS=Math.abs;var mS=Math.atan2;var yS=Math.cos;var _S=Math.max;var bS=Math.min;var wS=Math.sin;var xS=Math.sqrt;var kS=1e-12;var SS=Math.PI;var CS=SS/2;var ES=2*SS;function AS(e){return e>1?0:e<-1?SS:Math.acos(e)}function RS(e){return e>=1?CS:e<=-1?-CS:Math.asin(e)}function MS(e){return e.innerRadius}function TS(e){return e.outerRadius}function BS(e){return e.startAngle}function NS(e){return e.endAngle}function PS(e){return e&&e.padAngle}function DS(e,t,n,i,a,r,o,s){var l=n-e,u=i-t,h=o-a,c=s-r,f=c*l-h*u;if(f*f<kS)return;f=(h*(t-r)-c*(e-a))/f;return[e+f*l,t+f*u]}function OS(e,t,n,i,a,r,o){var s=e-n,l=t-i,u=(o?r:-r)/xS(s*s+l*l),h=u*l,c=-u*s,f=e+h,d=t+c,g=n+h,p=i+c,v=(f+g)/2,m=(d+p)/2,y=g-f,_=p-d,b=y*y+_*_,w=a-r,x=f*p-g*d,k=(_<0?-1:1)*xS(_S(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,B=A-m;if(R*R+M*M>T*T+B*B)S=E,C=A;return{cx:S,cy:C,x01:-h,y01:-c,x11:S*(a/w-1),y11:C*(a/w-1)}}function zS(){var L=MS,I=TS,j=pS(0),H=null,V=BS,G=NS,U=PS,W=null;function t(){var e,t,n=+L.apply(this,arguments),i=+I.apply(this,arguments),a=V.apply(this,arguments)-CS,r=G.apply(this,arguments)-CS,o=vS(r-a),s=r>a;if(!W)W=e=gS();if(i<n)t=i,i=n,n=t;if(!(i>kS))W.moveTo(0,0);else if(o>ES-kS){W.moveTo(i*yS(a),i*wS(a));W.arc(0,0,i,a,r,!s);if(n>kS){W.moveTo(n*yS(r),n*wS(r));W.arc(0,0,n,r,a,s)}}else{var l=a,u=r,h=a,c=r,f=o,d=o,g=U.apply(this,arguments)/2,p=g>kS&&(H?+H.apply(this,arguments):xS(n*n+i*i)),v=bS(vS(i-n)/2,+j.apply(this,arguments)),m=v,y=v,_,b;if(p>kS){var w=RS(p/n*wS(g)),x=RS(p/i*wS(g));if((f-=w*2)>kS)w*=s?1:-1,h+=w,c-=w;else f=0,h=c=(a+r)/2;if((d-=x*2)>kS)x*=s?1:-1,l+=x,u-=x;else d=0,l=u=(a+r)/2}var k=i*yS(l),S=i*wS(l),C=n*yS(c),E=n*wS(c);if(v>kS){var A=i*yS(u),R=i*wS(u),M=n*yS(h),T=n*wS(h),B;if(o<SS&&(B=DS(k,S,M,T,A,R,C,E))){var N=k-B[0],P=S-B[1],D=A-B[0],O=R-B[1],z=1/wS(AS((N*D+P*O)/(xS(N*N+P*P)*xS(D*D+O*O)))/2),F=xS(B[0]*B[0]+B[1]*B[1]);m=bS(v,(n-F)/(z-1));y=bS(v,(i-F)/(z+1))}}if(!(d>kS))W.moveTo(k,S);else if(y>kS){_=OS(M,T,k,S,i,y,s);b=OS(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(y<v)W.arc(_.cx,_.cy,y,mS(_.y01,_.x01),mS(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,mS(_.y01,_.x01),mS(_.y11,_.x11),!s);W.arc(0,0,i,mS(_.cy+_.y11,_.cx+_.x11),mS(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,y,mS(b.y11,b.x11),mS(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,i,l,u,!s);if(!(n>kS)||!(f>kS))W.lineTo(C,E);else if(m>kS){_=OS(C,E,A,R,n,-m,s);b=OS(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m<v)W.arc(_.cx,_.cy,m,mS(_.y01,_.x01),mS(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,mS(_.y01,_.x01),mS(_.y11,_.x11),!s);W.arc(0,0,n,mS(_.cy+_.y11,_.cx+_.x11),mS(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,m,mS(b.y11,b.x11),mS(b.y01,b.x01),!s)}}else W.arc(0,0,n,c,h,s)}W.closePath();if(e)return W=null,e+""||null}t.centroid=function(){var e=(+L.apply(this,arguments)+ +I.apply(this,arguments))/2,t=(+V.apply(this,arguments)+ +G.apply(this,arguments))/2-SS/2;return[yS(t)*e,wS(t)*e]};t.innerRadius=function(e){return arguments.length?(L=typeof e==="function"?e:pS(+e),t):L};t.outerRadius=function(e){return arguments.length?(I=typeof e==="function"?e:pS(+e),t):I};t.cornerRadius=function(e){return arguments.length?(j=typeof e==="function"?e:pS(+e),t):j};t.padRadius=function(e){return arguments.length?(H=e==null?null:typeof e==="function"?e:pS(+e),t):H};t.startAngle=function(e){return arguments.length?(V=typeof e==="function"?e:pS(+e),t):V};t.endAngle=function(e){return arguments.length?(G=typeof e==="function"?e:pS(+e),t):G};t.padAngle=function(e){return arguments.length?(U=typeof e==="function"?e:pS(+e),t):U};t.context=function(e){return arguments.length?(W=e==null?null:e,t):W};return t}function FS(e){this._context=e}FS.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function LS(e){return new FS(e)}function IS(e){return e[0]}function jS(e){return e[1]}function HS(){var o=IS,s=jS,l=pS(true),u=null,h=LS,c=null;function t(e){var t,n=e.length,i,a=false,r;if(u==null)c=h(r=gS());for(t=0;t<=n;++t){if(!(t<n&&l(i=e[t],t,e))===a){if(a=!a)c.lineStart();else c.lineEnd()}if(a)c.point(+o(i,t,e),+s(i,t,e))}if(r)return c=null,r+""||null}t.x=function(e){return arguments.length?(o=typeof e==="function"?e:pS(+e),t):o};t.y=function(e){return arguments.length?(s=typeof e==="function"?e:pS(+e),t):s};t.defined=function(e){return arguments.length?(l=typeof e==="function"?e:pS(!!e),t):l};t.curve=function(e){return arguments.length?(h=e,u!=null&&(c=h(u)),t):h};t.context=function(e){return arguments.length?(e==null?u=c=null:c=h(u=e),t):u};return t}function VS(){var h=IS,c=null,f=pS(0),d=jS,g=pS(true),p=null,v=LS,m=null;function t(e){var t,n,i,a=e.length,r,o=false,s,l=new Array(a),u=new Array(a);if(p==null)m=v(s=gS());for(t=0;t<=a;++t){if(!(t<a&&g(r=e[t],t,e))===o){if(o=!o){n=t;m.areaStart();m.lineStart()}else{m.lineEnd();m.lineStart();for(i=t-1;i>=n;--i){m.point(l[i],u[i])}m.lineEnd();m.areaEnd()}}if(o){l[t]=+h(r,t,e),u[t]=+f(r,t,e);m.point(c?+c(r,t,e):l[t],d?+d(r,t,e):u[t])}}if(s)return m=null,s+""||null}function e(){return HS().defined(g).curve(v).context(p)}t.x=function(e){return arguments.length?(h=typeof e==="function"?e:pS(+e),c=null,t):h};t.x0=function(e){return arguments.length?(h=typeof e==="function"?e:pS(+e),t):h};t.x1=function(e){return arguments.length?(c=e==null?null:typeof e==="function"?e:pS(+e),t):c};t.y=function(e){return arguments.length?(f=typeof e==="function"?e:pS(+e),d=null,t):f};t.y0=function(e){return arguments.length?(f=typeof e==="function"?e:pS(+e),t):f};t.y1=function(e){return arguments.length?(d=e==null?null:typeof e==="function"?e:pS(+e),t):d};t.lineX0=t.lineY0=function(){return e().x(h).y(f)};t.lineY1=function(){return e().x(h).y(d)};t.lineX1=function(){return e().x(c).y(f)};t.defined=function(e){return arguments.length?(g=typeof e==="function"?e:pS(!!e),t):g};t.curve=function(e){return arguments.length?(v=e,p!=null&&(m=v(p)),t):v};t.context=function(e){return arguments.length?(e==null?p=m=null:m=v(p=e),t):p};return t}function GS(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function US(e){return e}function WS(){var g=US,p=GS,v=null,m=pS(0),y=pS(ES),_=pS(0);function t(n){var e,t=n.length,i,a,r=0,o=new Array(t),s=new Array(t),l=+m.apply(this,arguments),u=Math.min(ES,Math.max(-ES,y.apply(this,arguments)-l)),h,c=Math.min(Math.abs(u)/t,_.apply(this,arguments)),f=c*(u<0?-1:1),d;for(e=0;e<t;++e){if((d=s[o[e]=e]=+g(n[e],e,n))>0){r+=d}}if(p!=null)o.sort(function(e,t){return p(s[e],s[t])});else if(v!=null)o.sort(function(e,t){return v(n[e],n[t])});for(e=0,a=r?(u-t*f)/r:0;e<t;++e,l=h){i=o[e],d=s[i],h=l+(d>0?d*a:0)+f,s[i]={data:n[i],index:e,value:d,startAngle:l,endAngle:h,padAngle:c}}return s}t.value=function(e){return arguments.length?(g=typeof e==="function"?e:pS(+e),t):g};t.sortValues=function(e){return arguments.length?(p=e,v=null,t):p};t.sort=function(e){return arguments.length?(v=e,p=null,t):v};t.startAngle=function(e){return arguments.length?(m=typeof e==="function"?e:pS(+e),t):m};t.endAngle=function(e){return arguments.length?(y=typeof e==="function"?e:pS(+e),t):y};t.padAngle=function(e){return arguments.length?(_=typeof e==="function"?e:pS(+e),t):_};return t}var KS=YS(LS);function qS(e){this._curve=e}qS.prototype={areaStart:function e(){this._curve.areaStart()},areaEnd:function e(){this._curve.areaEnd()},lineStart:function e(){this._curve.lineStart()},lineEnd:function e(){this._curve.lineEnd()},point:function e(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};function YS(t){function e(e){return new qS(t(e))}e._curve=t;return e}function XS(e){var t=e.curve;e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;e.curve=function(e){return arguments.length?t(YS(e)):t()._curve};return e}function $S(){return XS(HS().curve(KS))}function ZS(){var e=VS().curve(KS),t=e.curve,n=e.lineX0,i=e.lineX1,a=e.lineY0,r=e.lineY1;e.angle=e.x,delete e.x;e.startAngle=e.x0,delete e.x0;e.endAngle=e.x1,delete e.x1;e.radius=e.y,delete e.y;e.innerRadius=e.y0,delete e.y0;e.outerRadius=e.y1,delete e.y1;e.lineStartAngle=function(){return XS(n())},delete e.lineX0;e.lineEndAngle=function(){return XS(i())},delete e.lineX1;e.lineInnerRadius=function(){return XS(a())},delete e.lineY0;e.lineOuterRadius=function(){return XS(r())},delete e.lineY1;e.curve=function(e){return arguments.length?t(YS(e)):t()._curve};return e}function JS(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var QS=Array.prototype.slice;function eC(e){return e.source}function tC(e){return e.target}function nC(a){var r=eC,o=tC,s=IS,l=jS,u=null;function t(){var e,t=QS.call(arguments),n=r.apply(this,t),i=o.apply(this,t);if(!u)u=e=gS();a(u,+s.apply(this,(t[0]=n,t)),+l.apply(this,t),+s.apply(this,(t[0]=i,t)),+l.apply(this,t));if(e)return u=null,e+""||null}t.source=function(e){return arguments.length?(r=e,t):r};t.target=function(e){return arguments.length?(o=e,t):o};t.x=function(e){return arguments.length?(s=typeof e==="function"?e:pS(+e),t):s};t.y=function(e){return arguments.length?(l=typeof e==="function"?e:pS(+e),t):l};t.context=function(e){return arguments.length?(u=e==null?null:e,t):u};return t}function iC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t=(t+i)/2,n,t,a,i,a)}function aC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t,n=(n+a)/2,i,n,i,a)}function rC(e,t,n,i,a){var r=JS(t,n),o=JS(t,n=(n+a)/2),s=JS(i,n),l=JS(i,a);e.moveTo(r[0],r[1]);e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function oC(){return nC(iC)}function sC(){return nC(aC)}function lC(){var e=nC(rC);e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;return e}var uC={draw:function e(t,n){var i=Math.sqrt(n/SS);t.moveTo(i,0);t.arc(0,0,i,0,ES)}};var hC={draw:function e(t,n){var i=Math.sqrt(n/5)/2;t.moveTo(-3*i,-i);t.lineTo(-i,-i);t.lineTo(-i,-3*i);t.lineTo(i,-3*i);t.lineTo(i,-i);t.lineTo(3*i,-i);t.lineTo(3*i,i);t.lineTo(i,i);t.lineTo(i,3*i);t.lineTo(-i,3*i);t.lineTo(-i,i);t.lineTo(-3*i,i);t.closePath()}};var cC=Math.sqrt(1/3),fC=cC*2;var dC={draw:function e(t,n){var i=Math.sqrt(n/fC),a=i*cC;t.moveTo(0,-i);t.lineTo(a,0);t.lineTo(0,i);t.lineTo(-a,0);t.closePath()}};var gC=.8908130915292852,pC=Math.sin(SS/10)/Math.sin(7*SS/10),vC=Math.sin(ES/10)*pC,mC=-Math.cos(ES/10)*pC;var yC={draw:function e(t,n){var i=Math.sqrt(n*gC),a=vC*i,r=mC*i;t.moveTo(0,-i);t.lineTo(a,r);for(var o=1;o<5;++o){var s=ES*o/5,l=Math.cos(s),u=Math.sin(s);t.lineTo(u*i,-l*i);t.lineTo(l*a-u*r,u*a+l*r)}t.closePath()}};var _C={draw:function e(t,n){var i=Math.sqrt(n),a=-i/2;t.rect(a,a,i,i)}};var bC=Math.sqrt(3);var wC={draw:function e(t,n){var i=-Math.sqrt(n/(bC*3));t.moveTo(0,i*2);t.lineTo(-bC*i,-i);t.lineTo(bC*i,-i);t.closePath()}};var xC=-.5,kC=Math.sqrt(3)/2,SC=1/Math.sqrt(12),CC=(SC/2+1)*3;var EC={draw:function e(t,n){var i=Math.sqrt(n/CC),a=i/2,r=i*SC,o=a,s=i*SC+i,l=-o,u=s;t.moveTo(a,r);t.lineTo(o,s);t.lineTo(l,u);t.lineTo(xC*a-kC*r,kC*a+xC*r);t.lineTo(xC*o-kC*s,kC*o+xC*s);t.lineTo(xC*l-kC*u,kC*l+xC*u);t.lineTo(xC*a+kC*r,xC*r-kC*a);t.lineTo(xC*o+kC*s,xC*s-kC*o);t.lineTo(xC*l+kC*u,xC*u-kC*l);t.closePath()}};var AC=[uC,hC,dC,_C,yC,wC,EC];function RC(){var t=pS(uC),n=pS(64),i=null;function a(){var e;if(!i)i=e=gS();t.apply(this,arguments).draw(i,+n.apply(this,arguments));if(e)return i=null,e+""||null}a.type=function(e){return arguments.length?(t=typeof e==="function"?e:pS(e),a):t};a.size=function(e){return arguments.length?(n=typeof e==="function"?e:pS(+e),a):n};a.context=function(e){return arguments.length?(i=e==null?null:e,a):i};return a}function MC(){}function TC(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BC(e){this._context=e}BC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 3:TC(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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,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:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function NC(e){return new BC(e)}function PC(e){this._context=e}PC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x2=t,this._y2=n;break;case 1:this._point=2;this._x3=t,this._y3=n;break;case 2:this._point=3;this._x4=t,this._y4=n;this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function DC(e){return new PC(e)}function OC(e){this._context=e}OC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,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+t)/6,a=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 3:this._point=4;default:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function zC(e){return new OC(e)}function FC(e,t){this._basis=new BC(e);this._beta=t}FC.prototype={lineStart:function e(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function e(){var t=this._x,n=this._y,i=t.length-1;if(i>0){var a=t[0],r=n[0],o=t[i]-a,s=n[i]-r,l=-1,u;while(++l<=i){u=l/i;this._basis.point(this._beta*t[l]+(1-this._beta)*(a+u*o),this._beta*n[l]+(1-this._beta)*(r+u*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function e(t,n){this._x.push(+t);this._y.push(+n)}};var LC=function t(n){function e(e){return n===1?new BC(e):new FC(e,n)}e.beta=function(e){return t(+e)};return e}(.85);function IC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function jC(e,t){this._context=e;this._k=(1-t)/6}jC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:IC(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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;this._x1=t,this._y1=n;break;case 2:this._point=3;default:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var HC=function t(n){function e(e){return new jC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function VC(e,t){this._context=e;this._k=(1-t)/6}VC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var GC=function t(n){function e(e){return new VC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function UC(e,t){this._context=e;this._k=(1-t)/6}UC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,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:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var WC=function t(n){function e(e){return new UC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function KC(e,t,n){var i=e._x1,a=e._y1,r=e._x2,o=e._y2;if(e._l01_a>kS){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l;a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>kS){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*u+e._x1*e._l23_2a-t*e._l12_2a)/h;o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/h}e._context.bezierCurveTo(i,a,r,o,e._x2,e._y2)}function qC(e,t){this._context=e;this._alpha=t}qC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:KC(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var YC=function t(n){function e(e){return n?new qC(e,n):new jC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function XC(e,t){this._context=e;this._alpha=t}XC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:KC(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var $C=function t(n){function e(e){return n?new XC(e,n):new VC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function ZC(e,t){this._context=e;this._alpha=t}ZC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){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 e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,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:KC(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var JC=function t(n){function e(e){return n?new ZC(e,n):new UC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function QC(e){this._context=e}QC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){this._point=0},lineEnd:function e(){if(this._point)this._context.closePath()},point:function e(t,n){t=+t,n=+n;if(this._point)this._context.lineTo(t,n);else this._point=1,this._context.moveTo(t,n)}};function eE(e){return new QC(e)}function tE(e){return e<0?-1:1}function nE(e,t,n){var i=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(i||a<0&&-0),o=(n-e._y1)/(a||i<0&&-0),s=(r*a+o*i)/(i+a);return(tE(r)+tE(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function iE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aE(e,t,n){var i=e._x0,a=e._y0,r=e._x1,o=e._y1,s=(r-i)/3;e._context.bezierCurveTo(i+s,a+s*t,r-s,o-s*n,r,o)}function rE(e){this._context=e}rE.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aE(this,this._t0,iE(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){var i=NaN;t=+t,n=+n;if(t===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;aE(this,iE(this,i=nE(this,t,n)),i);break;default:aE(this,this._t0,i=nE(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=i}};function oE(e){this._context=new sE(e)}(oE.prototype=Object.create(rE.prototype)).point=function(e,t){rE.prototype.point.call(this,t,e)};function sE(e){this._context=e}sE.prototype={moveTo:function e(t,n){this._context.moveTo(n,t)},closePath:function e(){this._context.closePath()},lineTo:function e(t,n){this._context.lineTo(n,t)},bezierCurveTo:function e(t,n,i,a,r,o){this._context.bezierCurveTo(n,t,a,i,o,r)}};function lE(e){return new rE(e)}function uE(e){return new oE(e)}function hE(e){this._context=e}hE.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x=[];this._y=[]},lineEnd:function e(){var t=this._x,n=this._y,i=t.length;if(i){this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]);if(i===2){this._context.lineTo(t[1],n[1])}else{var a=cE(t),r=cE(n);for(var o=0,s=1;s<i;++o,++s){this._context.bezierCurveTo(a[0][o],r[0][o],a[1][o],r[1][o],t[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 e(t,n){this._x.push(+t);this._y.push(+n)}};function cE(e){var t,n=e.length-1,i,a=new Array(n),r=new Array(n),o=new Array(n);a[0]=0,r[0]=2,o[0]=e[0]+2*e[1];for(t=1;t<n-1;++t){a[t]=1,r[t]=4,o[t]=4*e[t]+2*e[t+1]}a[n-1]=2,r[n-1]=7,o[n-1]=8*e[n-1]+e[n];for(t=1;t<n;++t){i=a[t]/r[t-1],r[t]-=i,o[t]-=i*o[t-1]}a[n-1]=o[n-1]/r[n-1];for(t=n-2;t>=0;--t){a[t]=(o[t]-a[t+1])/r[t]}r[n-1]=(e[n]+a[n-1])/2;for(t=0;t<n-1;++t){r[t]=2*e[t+1]-a[t+1]}return[a,r]}function fE(e){return new hE(e)}function dE(e,t){this._context=e;this._t=t}dE.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x=this._y=NaN;this._point=0},lineEnd:function e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(t,n)}else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,n)}break}}this._x=t,this._y=n}};function gE(e){return new dE(e,.5)}function pE(e){return new dE(e,0)}function vE(e){return new dE(e,1)}function mE(e,t){if(!((o=e.length)>1))return;for(var n=1,i,a,r=e[t[0]],o,s=r.length;n<o;++n){a=r,r=e[t[n]];for(i=0;i<s;++i){r[i][1]+=r[i][0]=isNaN(a[i][1])?a[i][0]:a[i][1]}}}function yE(e){var t=e.length,n=new Array(t);while(--t>=0){n[t]=t}return n}function _E(e,t){return e[t]}function bE(){var c=pS([]),f=yE,d=mE,g=_E;function t(e){var t=c.apply(this,arguments),n,i=e.length,a=t.length,r=new Array(a),o;for(n=0;n<a;++n){for(var s=t[n],l=r[n]=new Array(i),u=0,h;u<i;++u){l[u]=h=[0,+g(e[u],s,u,e)];h.data=e[u]}l.key=s}for(n=0,o=f(r);n<a;++n){r[o[n]].index=n}d(r,o);return r}t.keys=function(e){return arguments.length?(c=typeof e==="function"?e:pS(QS.call(e)),t):c};t.value=function(e){return arguments.length?(g=typeof e==="function"?e:pS(+e),t):g};t.order=function(e){return arguments.length?(f=e==null?yE:typeof e==="function"?e:pS(QS.call(e)),t):f};t.offset=function(e){return arguments.length?(d=e==null?mE:e,t):d};return t}function wE(e,t){if(!((i=e.length)>0))return;for(var n,i,a=0,r=e[0].length,o;a<r;++a){for(o=n=0;n<i;++n){o+=e[n][a][1]||0}if(o)for(n=0;n<i;++n){e[n][a][1]/=o}}mE(e,t)}function xE(e,t){if(!((l=e.length)>0))return;for(var n,i=0,a,r,o,s,l,u=e[t[0]].length;i<u;++i){for(o=s=0,n=0;n<l;++n){if((r=(a=e[t[n]][i])[1]-a[0])>0){a[0]=o,a[1]=o+=r}else if(r<0){a[1]=s,a[0]=s+=r}else{a[0]=0,a[1]=r}}}}function kE(e,t){if(!((a=e.length)>0))return;for(var n=0,i=e[t[0]],a,r=i.length;n<r;++n){for(var o=0,s=0;o<a;++o){s+=e[o][n][1]||0}i[n][1]+=i[n][0]=-s/2}mE(e,t)}function SE(e,t){if(!((o=e.length)>0)||!((r=(a=e[t[0]]).length)>0))return;for(var n=0,i=1,a,r,o;i<r;++i){for(var s=0,l=0,u=0;s<o;++s){var h=e[t[s]],c=h[i][1]||0,f=h[i-1][1]||0,d=(c-f)/2;for(var g=0;g<s;++g){var p=e[t[g]],v=p[i][1]||0,m=p[i-1][1]||0;d+=v-m}l+=c,u+=d*c}a[i-1][1]+=a[i-1][0]=n;if(l)n-=u/l}a[i-1][1]+=a[i-1][0]=n;mE(e,t)}function CE(e){var n=e.map(EE);return yE(e).sort(function(e,t){return n[e]-n[t]})}function EE(e){var t=-1,n=0,i=e.length,a,r=-Infinity;while(++t<i){if((a=+e[t][1])>r)r=a,n=t}return n}function AE(e){var n=e.map(RE);return yE(e).sort(function(e,t){return n[e]-n[t]})}function RE(e){var t=0,n=-1,i=e.length,a;while(++n<i){if(a=+e[n][1])t+=a}return t}function ME(e){return AE(e).reverse()}function TE(e){var t=e.length,n,i,a=e.map(RE),r=CE(e),o=0,s=0,l=[],u=[];for(n=0;n<t;++n){i=r[n];if(o<s){o+=a[i];l.push(i)}else{s+=a[i];u.push(i)}}return u.reverse().concat(l)}function BE(e){return yE(e).reverse()}var NE=Object.freeze({__proto__:null,arc:zS,area:VS,line:HS,pie:WS,areaRadial:ZS,radialArea:ZS,lineRadial:$S,radialLine:$S,pointRadial:JS,linkHorizontal:oC,linkVertical:sC,linkRadial:lC,symbol:RC,symbols:AC,symbolCircle:uC,symbolCross:hC,symbolDiamond:dC,symbolSquare:_C,symbolStar:yC,symbolTriangle:wC,symbolWye:EC,curveBasisClosed:DC,curveBasisOpen:zC,curveBasis:NC,curveBundle:LC,curveCardinalClosed:GC,curveCardinalOpen:WC,curveCardinal:HC,curveCatmullRomClosed:$C,curveCatmullRomOpen:JC,curveCatmullRom:YC,curveLinearClosed:eE,curveLinear:LS,curveMonotoneX:lE,curveMonotoneY:uE,curveNatural:fE,curveStep:gE,curveStepAfter:vE,curveStepBefore:pE,stack:bE,stackOffsetExpand:wE,stackOffsetDiverging:xE,stackOffsetNone:mE,stackOffsetSilhouette:kE,stackOffsetWiggle:SE,stackOrderAppearance:CE,stackOrderAscending:AE,stackOrderDescending:ME,stackOrderInsideOut:TE,stackOrderNone:yE,stackOrderReverse:BE});function PE(e){if(e.replace(/\s+/g,"")==="")return e;var t=(new DOMParser).parseFromString(e.replace(/<[^>]+>/g,""),"text/html");return t.documentElement?t.documentElement.textContent:e}function DE(e,t){t=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},t);var n=document.createElement("canvas").getContext("2d");var i=[];i.push(t["font-style"]);i.push(t["font-variant"]);i.push(t["font-weight"]);i.push(typeof t["font-size"]==="string"?t["font-size"]:"".concat(t["font-size"],"px"));i.push(t["font-family"]);n.font=i.join(" ");if(e instanceof Array)return e.map(function(e){return n.measureText(PE(e)).width});return n.measureText(PE(e)).width}function OE(e){return e.toString().replace(/^\s+|\s+$/g,"")}function zE(e){return e.toString().replace(/\s+$/,"")}var FE="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",LE={},IE=32;var jE,HE,VE,GE;var UE=function e(t){if(!jE){jE=DE(FE,{"font-family":"DejaVuSans","font-size":IE});HE=DE(FE,{"font-family":"-apple-system","font-size":IE});VE=DE(FE,{"font-family":"monospace","font-size":IE});GE=DE(FE,{"font-family":"sans-serif","font-size":IE})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(e){return OE(e)});for(var n=0;n<t.length;n++){var i=t[n];if(LE[i]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(i))return i;else if(LE[i]===false)continue;var a=DE(FE,{"font-family":i,"font-size":IE});LE[i]=a!==VE;if(LE[i])LE[i]=a!==GE;if(HE&&LE[i])LE[i]=a!==HE;if(jE&&LE[i])LE[i]=a!==jE;if(LE[i])return i}return false};var WE=function e(){return Rl("html").attr("dir")==="rtl"||Rl("body").attr("dir")==="rtl"||Rl("html").style("direction")==="rtl"||Rl("body").style("direction")==="rtl"};function KE(e){if(e===void 0)e="undefined";else if(!(typeof e==="string"||e instanceof String))e=JSON.stringify(e);return e}var qE=[[/[\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 YE(e){return"".concat(e).replace(/[^A-Za-z0-9\-_]/g,function(e){if(e===" ")return"-";var t=false;for(var n=0;n<qE.length;n++){if(new RegExp(qE[n][0]).test(e)){t=qE[n][1];break}}return t||""})}var XE=["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 $E=["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 ZE=XE.concat($E);var JE=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var QE=["'","<","(","{","[","u00AB","u300A","u3008"];var eA=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(JE);var tA="က-ဪဿ-၉ၐ-ၕ";var nA="぀-ゟ゠-ヿ＀--}⦅-゚㐀-䶿";var iA="㐀-龿";var aA="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var rA=tA+iA+nA+aA;var oA=new RegExp("(\\".concat(JE.join("|\\"),")*[^\\s|\\").concat(JE.join("|\\"),"]*(\\").concat(JE.join("|\\"),")*"),"g");var sA=new RegExp("[".concat(rA,"]"));var lA=new RegExp("(\\".concat(QE.join("|\\"),")*[").concat(rA,"](\\").concat(eA.join("|\\"),"|\\").concat(ZE.join("|\\"),")*|[a-z0-9]+"),"gi");function uA(e){if(!sA.test(e))return KE(e).match(oA).filter(function(e){return e.length});return _e(KE(e).match(oA).map(function(e){if(sA.test(e))return e.match(lA);return[e]}))}function hA(){var d="sans-serif",g=10,p=400,v=200,m,y=null,_=false,b=uA,w=200;function t(e){e=KE(e);if(m===void 0)m=Math.ceil(g*1.4);var t=b(e);var n={"font-family":d,"font-size":g,"font-weight":p,"line-height":m};var i=1,a="",r=false,o=0;var s=[],l=DE(t,n),u=DE(" ",n);for(var h=0;h<t.length;h++){var c=t[h];var f=l[t.indexOf(c)];c+=e.slice(a.length+c.length).match("^( |\n)*","g")[0];if(a.slice(-1)==="\n"||o+f>w){if(!h&&!_){r=true;break}if(s.length>=i)s[i-1]=zE(s[i-1]);i++;if(m*i>v||f>w&&!_||y&&i>y){r=true;break}o=0;s.push(c)}else if(!h)s[0]=c;else s[i-1]+=c;a+=c;o+=f;o+=c.match(/[\s]*$/g)[0].length*u}return{lines:s,sentence:e,truncated:r,widths:DE(s,n),words:t}}t.fontFamily=function(e){return arguments.length?(d=e,t):d};t.fontSize=function(e){return arguments.length?(g=e,t):g};t.fontWeight=function(e){return arguments.length?(p=e,t):p};t.height=function(e){return arguments.length?(v=e,t):v};t.lineHeight=function(e){return arguments.length?(m=e,t):m};t.maxLines=function(e){return arguments.length?(y=e,t):y};t.overflow=function(e){return arguments.length?(_=e,t):_};t.split=function(e){return arguments.length?(b=e,t):b};t.width=function(e){return arguments.length?(w=e,t):w};return t}function cA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cA=function e(t){return typeof t}}else{cA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cA(e)}function fA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function dA(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function gA(e,t,n){if(t)dA(e.prototype,t);if(n)dA(e,n);return e}function pA(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)vA(e,t)}function vA(e,t){vA=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return vA(e,t)}function mA(a){var r=bA();return function e(){var t=wA(a),n;if(r){var i=wA(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return yA(this,n)}}function yA(e,t){if(t&&(cA(t)==="object"||typeof t==="function")){return t}return _A(e)}function _A(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function bA(){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(e){return false}}function wA(e){wA=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return wA(e)}var xA={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var kA=function(e){pA(i,e);var t=mA(i);function i(){var n;fA(this,i);n=t.call(this);n._ariaHidden=Dx("false");n._delay=0;n._duration=0;n._ellipsis=function(e,t){return t?"".concat(e.replace(/\.|,$/g,""),"..."):""};n._fontColor=Dx("black");n._fontFamily=Dx(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=Dx(50);n._fontMin=Dx(8);n._fontOpacity=Dx(1);n._fontResize=Dx(false);n._fontSize=Dx(10);n._fontStroke=Dx("transparent");n._fontStrokeWidth=Dx(0);n._fontWeight=Dx(400);n._height=wh("height",200);n._html=xA;n._id=function(e,t){return e.id||"".concat(t)};n._lineHeight=function(e,t){return n._fontSize(e,t)*1.2};n._maxLines=Dx(null);n._on={};n._overflow=Dx(false);n._padding=Dx(0);n._pointerEvents=Dx("auto");n._rotate=Dx(0);n._rotateAnchor=function(e){return[e.w/2,e.h/2]};n._split=uA;n._text=wh("text");n._textAnchor=Dx("start");n._verticalAlign=Dx("top");n._width=wh("width",200);n._x=wh("x",0);n._y=wh("y",0);return n}gA(i,[{key:"render",value:function e(t){var P=this;if(this._select===void 0)this.select(Rl("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(e,t,n){var i=P._text(t,n);if(i===void 0)return e;i=OE(i);var a=P._fontResize(t,n);var r=P._lineHeight(t,n)/P._fontSize(t,n);var o=a?P._fontMax(t,n):P._fontSize(t,n),s=a?o*r:P._lineHeight(t,n),l=1,u=[],h,c;var f={"font-family":UE(P._fontFamily(t,n)),"font-size":o,"font-weight":P._fontWeight(t,n),"line-height":s};var d=Lx(P._padding(t,n));var g=P._height(t,n)-(d.top+d.bottom),p=P._width(t,n)-(d.left+d.right);var v=hA().fontFamily(f["font-family"]).fontSize(o).fontWeight(f["font-weight"]).lineHeight(s).maxLines(P._maxLines(t,n)).height(g).overflow(P._overflow(t,n)).width(p).split(P._split);var m=P._fontMax(t,n),y=P._fontMin(t,n),_=P._verticalAlign(t,n),b=P._split(i,n);function w(){var e=function e(){if(l<1)u=[D._ellipsis("",l)];else u[l-1]=D._ellipsis(u[l-1],l)};o=me([o,y]);o=je([o,m]);if(a){s=o*r;v.fontSize(o).lineHeight(s);f["font-size"]=o;f["line-height"]=s}c=v(i);u=c.lines.filter(function(e){return e!==""});l=u.length;if(c.truncated){if(a){o--;if(o<y){o=y;e();return}else w()}else e()}}if(p>y&&(g>s||a&&g>y*r)){if(a){h=DE(b,f);var x=1.165+p/g*.1,k=p*g,S=me(h),C=O(h,function(e){return e*s})*x;if(S>p||C>k){var E=Math.sqrt(k/C),A=p/S;var R=je([E,A]);o=Math.floor(o*R)}var M=Math.floor(g*.8);if(o>M)o=M}w()}if(u.length){var T=l*s;var B=P._rotate(t,n);var N=B===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;N-=s*.1;e.push({aH:P._ariaHidden(t,n),data:t,i:n,lines:u,fC:P._fontColor(t,n),fStroke:P._fontStroke(t,n),fSW:P._fontStrokeWidth(t,n),fF:f["font-family"],fO:P._fontOpacity(t,n),fW:f["font-weight"],id:P._id(t,n),tA:P._textAnchor(t,n),vA:P._verticalAlign(t,n),widths:c.widths,fS:o,lH:s,w:p,h:g,r:B,x:P._x(t,n)+d.left,y:P._y(t,n)+N+d.top})}return e},[]),function(e){return P._id(e.data,e.i)});var a=eh().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(a).attr("opacity",0).style("opacity",0)}function i(e){e.attr("transform",function(e,t){var n=D._rotateAnchor(e,t);return"translate(".concat(e.x,", ").concat(e.y,") rotate(").concat(e.r,", ").concat(n[0],", ").concat(n[1],")")})}var r=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(e){return"d3plus-textBox-".concat(YE(e.id))}).call(i).merge(n);var o=WE();r.order().style("pointer-events",function(e){return P._pointerEvents(e.data,e.i)}).each(function(n){function e(e){e[D._html?"html":"text"](function(e){return zE(e).replace(/&([^\;&]*)/g,function(e,t){return t==="amp"?e:"&amp;".concat(t)}).replace(/<([^A-z^/]+)/g,function(e,t){return"&lt;".concat(t)}).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(e,t,n){return"".concat(t).concat(n).concat(t.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(e,t,n){return"".concat(n.replace("</","<")).concat(t).concat(n)}).replace(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g,function(e,t,n){var i=D._html[t]?'<tspan style="'.concat(D._html[t],'">'):"";return"".concat(i.length?i:"").concat(n).concat(i.length?"</tspan>":"")})})}function t(e){e.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(e,t){return n.r===0||n.vA==="top"?"".concat((t+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(t-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(t+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var i=Rl(this).selectAll("text").data(n.lines);if(D._duration===0){i.call(e).call(t);i.exit().remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(e).call(t).attr("opacity",n.fO).style("opacity",n.fO)}else{i.call(e).transition(a).call(t);i.exit().transition(a).attr("opacity",0).remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(e).call(t).merge(i).transition(a).delay(D._delay).call(t).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(a).call(i);var s=Object.keys(this._on),l=s.reduce(function(e,n){e[n]=function(e,t){return P._on[n](e.data,t)};return e},{});for(var u=0;u<s.length;u++){r.on(s[u],l[s[u]])}if(t)setTimeout(t,this._duration+100);return this}},{key:"ariaHidden",value:function e(t){return t!==undefined?(this._ariaHidden=typeof t==="function"?t:Dx(t),this):this._ariaHidden}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"delay",value:function e(t){return arguments.length?(this._delay=t,this):this._delay}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"ellipsis",value:function e(t){return arguments.length?(this._ellipsis=typeof t==="function"?t:Dx(t),this):this._ellipsis}},{key:"fontColor",value:function e(t){return arguments.length?(this._fontColor=typeof t==="function"?t:Dx(t),this):this._fontColor}},{key:"fontFamily",value:function e(t){return arguments.length?(this._fontFamily=typeof t==="function"?t:Dx(t),this):this._fontFamily}},{key:"fontMax",value:function e(t){return arguments.length?(this._fontMax=typeof t==="function"?t:Dx(t),this):this._fontMax}},{key:"fontMin",value:function e(t){return arguments.length?(this._fontMin=typeof t==="function"?t:Dx(t),this):this._fontMin}},{key:"fontOpacity",value:function e(t){return arguments.length?(this._fontOpacity=typeof t==="function"?t:Dx(t),this):this._fontOpacity}},{key:"fontResize",value:function e(t){return arguments.length?(this._fontResize=typeof t==="function"?t:Dx(t),this):this._fontResize}},{key:"fontSize",value:function e(t){return arguments.length?(this._fontSize=typeof t==="function"?t:Dx(t),this):this._fontSize}},{key:"fontStroke",value:function e(t){return arguments.length?(this._fontStroke=typeof t==="function"?t:Dx(t),this):this._fontStroke}},{key:"fontStrokeWidth",value:function e(t){return arguments.length?(this._fontStrokeWidth=typeof t==="function"?t:Dx(t),this):this._fontStrokeWidth}},{key:"fontWeight",value:function e(t){return arguments.length?(this._fontWeight=typeof t==="function"?t:Dx(t),this):this._fontWeight}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Dx(t),this):this._height}},{key:"html",value:function e(t){return arguments.length?(this._html=typeof t==="boolean"?t?xA:false:t,this):this._html}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Dx(t),this):this._id}},{key:"lineHeight",value:function e(t){return arguments.length?(this._lineHeight=typeof t==="function"?t:Dx(t),this):this._lineHeight}},{key:"maxLines",value:function e(t){return arguments.length?(this._maxLines=typeof t==="function"?t:Dx(t),this):this._maxLines}},{key:"overflow",value:function e(t){return arguments.length?(this._overflow=typeof t==="function"?t:Dx(t),this):this._overflow}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Dx(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Dx(t),this):this._pointerEvents}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Dx(t),this):this._rotate}},{key:"rotateAnchor",value:function e(t){return arguments.length?(this._rotateAnchor=typeof t==="function"?t:Dx(t),this):this._rotateAnchor}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"split",value:function e(t){return arguments.length?(this._split=t,this):this._split}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Dx(t),this):this._text}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Dx(t),this):this._textAnchor}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Dx(t),this):this._verticalAlign}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Dx(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Dx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Dx(t),this):this._y}}]);return i}(Tx);var SA=function e(t,n){var i=n[0]-t[0],a=n[1]-t[1];return i*i+a*a};var CA=function e(t,n){return Math.sqrt(SA(t,n))};function EA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){EA=function e(t){return typeof t}}else{EA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return EA(e)}function AA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function RA(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function MA(e,t,n){if(t)RA(e.prototype,t);if(n)RA(e,n);return e}function TA(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)BA(e,t)}function BA(e,t){BA=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return BA(e,t)}function NA(a){var r=OA();return function e(){var t=zA(a),n;if(r){var i=zA(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return PA(this,n)}}function PA(e,t){if(t&&(EA(t)==="object"||typeof t==="function")){return t}return DA(e)}function DA(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function OA(){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(e){return false}}function zA(e){zA=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return zA(e)}var FA=function(e){TA(n,e);var t=NA(n);function n(){var a;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";AA(this,n);a=t.call(this);a._activeOpacity=.25;a._activeStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return hk(i).darker(1)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*3}};a._ariaLabel=Dx("");a._backgroundImage=Dx(false);a._backgroundImageClass=new Ux;a._data=[];a._duration=600;a._fill=Dx("black");a._fillOpacity=Dx(1);a._hoverOpacity=.5;a._hoverStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return hk(i).darker(.5)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*2}};a._id=function(e,t){return e.id!==void 0?e.id:t};a._label=Dx(false);a._labelClass=new kA;a._labelConfig={fontColor:function e(t,n){return oS(a._fill(t,n))},fontSize:12,padding:5};a._name="Shape";a._opacity=Dx(1);a._pointerEvents=Dx("visiblePainted");a._role=Dx("presentation");a._rotate=Dx(0);a._rx=Dx(0);a._ry=Dx(0);a._scale=Dx(1);a._shapeRendering=Dx("geometricPrecision");a._stroke=function(e,t){return hk(a._fill(e,t)).darker(1)};a._strokeDasharray=Dx("0");a._strokeLinecap=Dx("butt");a._strokeOpacity=Dx(1);a._strokeWidth=Dx(0);a._tagName=e;a._textAnchor=Dx("start");a._vectorEffect=Dx("non-scaling-stroke");a._verticalAlign=Dx("top");a._x=wh("x",0);a._y=wh("y",0);return a}MA(n,[{key:"_aes",value:function e(){return{}}},{key:"_applyEvents",value:function e(t){var o=this;var s=Object.keys(this._on);var n=function e(r){t.on(s[r],function(e,t){if(!o._on[s[r]])return;if(e.i!==void 0)t=e.i;if(e.nested&&e.values){var n=function e(t,n){if(o._discrete==="x")return[o._x(t,n),i[1]];else if(o._discrete==="y")return[i[0],o._y(t,n)];else return[o._x(t,n),o._y(t,n)]};var i=Bl(o._select.node()),a=e.values.map(function(e){return CA(i,n(e,t))});t=a.indexOf(je(a));e=e.values[t]}o._on[s[r]].bind(o)(e,t)})};for(var i=0;i<s.length;i++){n(i)}}},{key:"_updateStyle",value:function e(t,n){var i=this;if(t.size()&&t.node().tagName==="g")t=t.selectAll("*");function a(e,t){return typeof this!=="function"?this:e.nested&&e.key&&e.values?this(e.values[0],i._data.indexOf(e.values[0])):this(e,t)}var r={};for(var o in n){if({}.hasOwnProperty.call(n,o)){r[o]=a.bind(n[o])}}t.transition().duration(0).call(Eh,r)}},{key:"_applyStyle",value:function e(t){var n=this;if(t.size()&&t.node().tagName==="g")t=t.selectAll("*");function i(e,t){return typeof this!=="function"?this:e.nested&&e.key&&e.values?this(e.values[0],n._data.indexOf(e.values[0])):this(e,t)}t.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 e(t){var n=this;t.attr("transform",function(e,t){return"\n translate(".concat(e.__d3plusShape__?e.translate?e.translate:"".concat(n._x(e.data,e.i),",").concat(n._y(e.data,e.i)):"".concat(n._x(e,t),",").concat(n._y(e,t)),")\n scale(").concat(e.__d3plusShape__?e.scale||n._scale(e.data,e.i):n._scale(e,t),")\n rotate(").concat(e.__d3plusShape__?e.rotate?e.rotate:n._rotate(e.data||e,e.i):n._rotate(e.data||e,e.i),")")})}},{key:"_nestWrapper",value:function e(n){return function(e,t){return n(e.__d3plusShape__?e.data:e,e.__d3plusShape__?e.i:t)}}},{key:"_renderActive",value:function e(){var a=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(e,t){if(!e)e={};if(!e.parentNode)e.parentNode=this.parentNode;var n=e.parentNode;if(Rl(this).classed("d3plus-textBox"))e=e.data;if(e.__d3plusShape__||e.__d3plus__){while(e&&(e.__d3plusShape__||e.__d3plus__)){t=e.i;e=e.data}}else t=a._data.indexOf(e);var i=!a._active||typeof a._active!=="function"||!a._active(e,t)?n:a._activeGroup.node();if(i!==this.parentNode){i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)Rl(this).call(a._applyStyle.bind(a));else Rl(this).call(a._updateStyle.bind(a,Rl(this),a._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 e(){var a=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(e,t){if(!e)e={};if(!e.parentNode)e.parentNode=this.parentNode;var n=e.parentNode;if(Rl(this).classed("d3plus-textBox"))e=e.data;if(e.__d3plusShape__||e.__d3plus__){while(e&&(e.__d3plusShape__||e.__d3plus__)){t=e.i;e=e.data}}else t=a._data.indexOf(e);var i=!a._hover||typeof a._hover!=="function"||!a._hover(e,t)?n:a._hoverGroup.node();if(i!==this.parentNode)i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)Rl(this).call(a._applyStyle.bind(a));else Rl(this).call(a._updateStyle.bind(a,Rl(this),a._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 e(){var u=this;var h=[];this._update.merge(this._enter).data().forEach(function(e,t){var n=u._aes(e,t);if(n.r||n.width&&n.height){var i=e;if(e.nested&&e.key&&e.values){i=e.values[0];t=u._data.indexOf(i)}var a=n.r?n.r*2:n.height,r=u._backgroundImage(i,t),o=n.r?n.r*2:n.width;if(r){var s=i.__d3plusShape__?i.translate?i.translate[0]:u._x(i.data,i.i):u._x(i,t),l=i.__d3plusShape__?i.translate?i.translate[1]:u._y(i.data,i.i):u._y(i,t);if(n.x)s+=n.x;if(n.y)l+=n.y;if(i.__d3plusShape__){i=i.data;t=i.i}h.push({__d3plus__:true,data:i,height:a,i:t,id:u._id(i,t),url:r,width:o,x:s+-o/2,y:l+-a/2})}}});this._backgroundImageClass.data(h).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select(Ox("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function e(){var f=this;var d=[];this._update.merge(this._enter).data().forEach(function(e,t){var n=e;if(e.nested&&e.key&&e.values){n=e.values[0];t=f._data.indexOf(n)}var i=f._label(n,t);if(f._labelBounds&&i!==false&&i!==undefined&&i!==null){var a=f._labelBounds(n,t,f._aes(e,t));if(a){if(i.constructor!==Array)i=[i];var r=n.__d3plusShape__?n.translate?n.translate[0]:f._x(n.data,n.i):f._x(n,t),o=n.__d3plusShape__?n.translate?n.translate[1]:f._y(n.data,n.i):f._y(n,t);if(n.__d3plusShape__){n=n.data;t=n.i}for(var s=0;s<i.length;s++){var l=a.constructor===Array?a[s]:Object.assign({},a);var u=f._rotate(n,t);var h=n.labelConfig&&n.labelConfig.rotate?n.labelConfig.rotate:a.angle!==undefined?a.angle:0;h+=u;var c=u!==0?[l.x*-1||0,l.y*-1||0]:[l.width/2,l.height/2];d.push({__d3plus__:true,data:n,height:l.height,l:s,id:"".concat(f._id(n,t),"_").concat(s),r:h,rotateAnchor:c,text:i[s],width:l.width,x:r+l.x,y:o+l.y})}}}});this._labelClass.data(d).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate(function(e){return e.__d3plus__?e.r:e.data.r}).rotateAnchor(function(e){return e.__d3plus__?e.rotateAnchor:e.data.rotateAnchor}).select(Ox("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(Px.bind(this)(this._labelConfig)).render()}},{key:"render",value:function e(t){var n=this;if(this._select===void 0){this.select(Rl("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=eh().duration(this._duration);var i=this._data,a=this._id;if(this._dataFilter){i=this._dataFilter(i);if(i.key)a=i.key}if(this._sort){i=i.sort(function(e,t){while(e.__d3plusShape__||e.__d3plus__){e=e.data}while(t.__d3plusShape__||t.__d3plus__){t=t.data}return n._sort(e,t)})}Nl("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each(function(e){if(e&&e.parentNode)e.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=Ox("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var r=this._update=Ox("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(i,a);r.order();if(this._duration){r.transition(this._transition).call(this._applyTransform.bind(this))}else{r.call(this._applyTransform.bind(this))}var o=this._enter=r.enter().append(this._tagName).attr("class",function(e,t){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(YE(n._nestWrapper(n._id)(e,t)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(r);var l=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){l=l.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}l.attr("opacity",this._nestWrapper(this._opacity));var u=this._exit=r.exit();if(this._duration)u.transition().delay(this._duration).remove();else u.remove();this._renderImage();this._renderLabels();this._hoverGroup=Ox("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=Ox("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var h=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?i:[],a);h.order().call(this._applyTransform.bind(this));var c=this._name==="Line";c&&this._path.curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var f=h.enter().append(c?"path":"rect").attr("class",function(e,t){return"d3plus-HitArea d3plus-id-".concat(YE(n._nestWrapper(n._id)(e,t)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var d=this;var g=h.merge(f).each(function(e){var t=d._data.indexOf(e);var n=d._hitArea(e,t,d._aes(e,t));return n&&!(d._name==="Line"&&parseFloat(d._strokeWidth(e,t))>10)?Rl(this).call(Eh,n):Rl(this).remove()});h.exit().remove();this._applyEvents(this._hitArea?g:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(t)t()},this._duration+100);return this}},{key:"active",value:function e(t){if(!arguments.length||t===undefined)return this._active;this._active=t;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function e(t){return arguments.length?(this._activeOpacity=t,this):this._activeOpacity}},{key:"activeStyle",value:function e(t){return arguments.length?(this._activeStyle=Ch({},this._activeStyle,t),this):this._activeStyle}},{key:"ariaLabel",value:function e(t){return t!==undefined?(this._ariaLabel=typeof t==="function"?t:Dx(t),this):this._ariaLabel}},{key:"backgroundImage",value:function e(t){return arguments.length?(this._backgroundImage=typeof t==="function"?t:Dx(t),this):this._backgroundImage}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"fill",value:function e(t){return arguments.length?(this._fill=typeof t==="function"?t:Dx(t),this):this._fill}},{key:"fillOpacity",value:function e(t){return arguments.length?(this._fillOpacity=typeof t==="function"?t:Dx(t),this):this._fillOpacity}},{key:"hover",value:function e(t){if(!arguments.length||t===void 0)return this._hover;this._hover=t;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function e(t){return arguments.length?(this._hoverStyle=Ch({},this._hoverStyle,t),this):this._hoverStyle}},{key:"hoverOpacity",value:function e(t){return arguments.length?(this._hoverOpacity=t,this):this._hoverOpacity}},{key:"hitArea",value:function e(t){return arguments.length?(this._hitArea=typeof t==="function"?t:Dx(t),this):this._hitArea}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Dx(t),this):this._label}},{key:"labelBounds",value:function e(t){return arguments.length?(this._labelBounds=typeof t==="function"?t:Dx(t),this):this._labelBounds}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=Ch(this._labelConfig,t),this):this._labelConfig}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Dx(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Dx(t),this):this._pointerEvents}},{key:"role",value:function e(t){return t!==undefined?(this._role=typeof t==="function"?t:Dx(t),this):this._role}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Dx(t),this):this._rotate}},{key:"rx",value:function e(t){return arguments.length?(this._rx=typeof t==="function"?t:Dx(t),this):this._rx}},{key:"ry",value:function e(t){return arguments.length?(this._ry=typeof t==="function"?t:Dx(t),this):this._ry}},{key:"scale",value:function e(t){return arguments.length?(this._scale=typeof t==="function"?t:Dx(t),this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shapeRendering",value:function e(t){return arguments.length?(this._shapeRendering=typeof t==="function"?t:Dx(t),this):this._shapeRendering}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"stroke",value:function e(t){return arguments.length?(this._stroke=typeof t==="function"?t:Dx(t),this):this._stroke}},{key:"strokeDasharray",value:function e(t){return arguments.length?(this._strokeDasharray=typeof t==="function"?t:Dx(t),this):this._strokeDasharray}},{key:"strokeLinecap",value:function e(t){return arguments.length?(this._strokeLinecap=typeof t==="function"?t:Dx(t),this):this._strokeLinecap}},{key:"strokeOpacity",value:function e(t){return arguments.length?(this._strokeOpacity=typeof t==="function"?t:Dx(t),this):this._strokeOpacity}},{key:"strokeWidth",value:function e(t){return arguments.length?(this._strokeWidth=typeof t==="function"?t:Dx(t),this):this._strokeWidth}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Dx(t),this):this._textAnchor}},{key:"vectorEffect",value:function e(t){return arguments.length?(this._vectorEffect=typeof t==="function"?t:Dx(t),this):this._vectorEffect}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Dx(t),this):this._verticalAlign}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Dx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Dx(t),this):this._y}}]);return n}(Tx);function LA(e,t){var a=[];var r=[];function o(e,t){if(e.length===1){a.push(e[0]);r.push(e[0])}else{var n=Array(e.length-1);for(var i=0;i<n.length;i++){if(i===0){a.push(e[0])}if(i===n.length-1){r.push(e[i+1])}n[i]=[(1-t)*e[i][0]+t*e[i+1][0],(1-t)*e[i][1]+t*e[i+1][1]]}o(n,t)}}if(e.length){o(e,t)}return{left:a,right:r.reverse()}}function IA(e){var t={};if(e.length===4){t.x2=e[2][0];t.y2=e[2][1]}if(e.length>=3){t.x1=e[1][0];t.y1=e[1][1]}t.x=e[e.length-1][0];t.y=e[e.length-1][1];if(e.length===4){t.type="C"}else if(e.length===3){t.type="Q"}else{t.type="L"}return t}function jA(e,t){t=t||2;var n=[];var i=e;var a=1/t;for(var r=0;r<t-1;r++){var o=a/(1-a*r);var s=LA(i,o);n.push(s.left);i=s.right}n.push(i);return n}function HA(e,t,n){var i=[[e.x,e.y]];if(t.x1!=null){i.push([t.x1,t.y1])}if(t.x2!=null){i.push([t.x2,t.y2])}i.push([t.x,t.y]);return jA(i,n).map(IA)}var VA=/[MLCSTQAHVmlcstqahv]|-?[\d.e+-]+/g;var GA={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"]};Object.keys(GA).forEach(function(e){GA[e.toLowerCase()]=GA[e]});function UA(e,t){var n=Array(e);for(var i=0;i<e;i++){n[i]=t}return n}function WA(t){return"".concat(t.type).concat(GA[t.type].map(function(e){return t[e]}).join(","))}function KA(i,a){var r={x1:"x",y1:"y",x2:"x",y2:"y"};var o=["xAxisRotation","largeArcFlag","sweepFlag"];if(i.type!==a.type&&a.type.toUpperCase()!=="M"){var s={};Object.keys(a).forEach(function(e){var t=a[e];var n=i[e];if(n===undefined){if(o.includes(e)){n=t}else{if(n===undefined&&r[e]){n=i[r[e]]}if(n===undefined){n=0}}}s[e]=n});s.type=a.type;i=s}return i}function qA(e,t,n){var i=[];if(t.type==="L"||t.type==="Q"||t.type==="C"){i=i.concat(HA(e,t,n))}else{var a=Object.assign({},e);if(a.type==="M"){a.type="L"}i=i.concat(UA(n-1).map(function(){return a}));i.push(t)}return i}function YA(r,e,o){var t=r.length-1;var n=e.length-1;var s=t/n;var i=UA(n).reduce(function(e,t,n){var i=Math.floor(s*n);if(o&&i<r.length-1&&o(r[i],r[i+1])){var a=s*n%1<.5;if(e[i]){if(a){if(i>0){i-=1}else if(i<r.length-1){i+=1}}else if(i<r.length-1){i+=1}else if(i>0){i-=1}}}e[i]=(e[i]||0)+1;return e},[]);var a=i.reduce(function(e,t,n){if(n===r.length-1){var i=UA(t,Object.assign({},r[r.length-1]));if(i[0].type==="M"){i.forEach(function(e){e.type="L"})}return e.concat(i)}return e.concat(qA(r[n],r[n+1],t))},[]);a.unshift(r[0]);return a}function XA(e){var t=(e||"").match(VA)||[];var n=[];var i;var a;for(var r=0;r<t.length;++r){i=GA[t[r]];if(i){a={type:t[r]};for(var o=0;o<i.length;++o){a[i[o]]=+t[r+o+1]}r+=i.length;n.push(a)}}return n}function $A(e,d,t){var g=XA(e);var p=XA(d);if(!g.length&&!p.length){return function e(){return""}}if(!g.length){g.push(p[0])}else if(!p.length){p.push(g[0])}var n=Math.abs(p.length-g.length);if(n!==0){if(p.length>g.length){g=YA(g,p,t)}else if(p.length<g.length){p=YA(p,g,t)}}g=g.map(function(e,t){return KA(e,p[t])});var v=g.map(function(e){return _objectSpread({},e)});var m=(e==null||e[e.length-1]==="Z")&&(d==null||d[d.length-1]==="Z");return function e(t){if(t===1){return d==null?"":d}if(t>0){for(var n=0;n<v.length;++n){var i=g[n];var a=p[n];var r=v[n];var o=_createForOfIteratorHelper(GA[r.type]),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;r[l]=(1-t)*i[l]+t*a[l];if(l==="largeArcFlag"||l==="sweepFlag"){r[l]=Math.round(r[l])}}}catch(e){o.e(e)}finally{o.f()}}}var u="";var h=_createForOfIteratorHelper(v),c;try{for(h.s();!(c=h.n()).done;){var f=c.value;u+=WA(f)}}catch(e){h.e(e)}finally{h.f()}if(m){u+="Z"}return u}}function ZA(e,t,n,i){var a=1e-9;var r=e[0]-t[0],o=n[0]-i[0],s=e[1]-t[1],l=n[1]-i[1];var u=r*l-s*o;if(Math.abs(u)<a)return null;var h=e[0]*t[1]-e[1]*t[0],c=n[0]*i[1]-n[1]*i[0];var f=(h*o-c*r)/u,d=(h*l-c*s)/u;return[f,d]}function JA(e,t){return iR(e)||nR(e,t)||eR(e,t)||QA()}function QA(){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 eR(e,t){if(!e)return;if(typeof e==="string")return tR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tR(e,t)}function tR(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function nR(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function iR(e){if(Array.isArray(e))return e}function aR(e,t,n){var i=1e-9,a=JA(n,2),r=a[0],o=a[1];return!(r<Math.min(e[0],t[0])-i||r>Math.max(e[0],t[0])+i||o<Math.min(e[1],t[1])-i||o>Math.max(e[1],t[1])+i)}function rR(e,t,n,i){var a=ZA(e,t,n,i);if(!a)return false;return aR(e,t,a)&&aR(n,i,a)}function oR(e,t){var n=-1;var i=e.length;var a=t.length;var r=e[i-1];while(++n<i){var o=r;r=e[n];var s=-1;var l=t[a-1];while(++s<a){var u=l;l=t[s];if(rR(o,r,u,l))return false}}return qe(t,e[0])}function sR(e,t){return fR(e)||cR(e,t)||uR(e,t)||lR()}function lR(){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 uR(e,t){if(!e)return;if(typeof e==="string")return hR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hR(e,t)}function hR(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function cR(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function fR(e){if(Array.isArray(e))return e}function dR(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=1e-9;t=[t[0]+i*Math.cos(n),t[1]+i*Math.sin(n)];var a=t,r=sR(a,2),o=r[0],s=r[1];var l=[o+Math.cos(n),s+Math.sin(n)];var u=0;if(Math.abs(l[0]-o)<i)u=1;var h=-1;var c=e.length;var f=e[c-1];var d=Number.MAX_VALUE;var g=Number.MAX_VALUE;var p=null;var v=null;while(++h<c){var m=f;f=e[h];var y=ZA(t,l,m,f);if(y&&aR(m,f,y)){var _=SA(t,y);if(y[u]<t[u]){if(_<d){d=_;p=y}}else if(y[u]>t[u]){if(_<g){g=_;v=y}}}}return[p,v]}function gR(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];var i=Math.cos(t),a=Math.sin(t),r=e[0]-n[0],o=e[1]-n[1];return[i*r-a*o+n[0],a*r+i*o+n[1]]}var pR=function e(t,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return t.map(function(e){return gR(e,n,i)})};function vR(e,t,n){var i=t[0],a=t[1];var r=n[0]-i,o=n[1]-a;if(r!==0||o!==0){var s=((e[0]-i)*r+(e[1]-a)*o)/(r*r+o*o);if(s>1){i=n[0];a=n[1]}else if(s>0){i+=r*s;a+=o*s}}r=e[0]-i;o=e[1]-a;return r*r+o*o}function mR(e,t){var n,i=e[0];var a=[i];for(var r=1,o=e.length;r<o;r++){n=e[r];if(SA(n,i)>t){a.push(n);i=n}}if(i!==n)a.push(n);return a}function yR(e,t,n,i,a){var r,o=i;for(var s=t+1;s<n;s++){var l=vR(e[s],e[t],e[n]);if(l>o){r=s;o=l}}if(o>i){if(r-t>1)yR(e,t,r,i,a);a.push(e[r]);if(n-r>1)yR(e,r,n,i,a)}}function _R(e,t){var n=e.length-1;var i=[e[0]];yR(e,0,n,t,i);i.push(e[n]);return i}var bR=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(t.length<=2)return t;var a=n*n;t=i?t:mR(t,a);t=_R(t,a);return t};function wR(e,t){return ER(e)||CR(e,t)||kR(e,t)||xR()}function xR(){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 kR(e,t){if(!e)return;if(typeof e==="string")return SR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SR(e,t)}function SR(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function CR(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function ER(e){if(Array.isArray(e))return e}var AR=.5;var RR=5;var MR={};function TR(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(e.length<3){if(t.verbose)console.error("polygon has to have at least 3 points",e);return null}var n=[];t=Object.assign({angle:Le(-90,90+RR,RR),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},t);var i=t.angle instanceof Array?t.angle:typeof t.angle==="number"?[t.angle]:typeof t.angle==="string"&&!isNaN(t.angle)?[Number(t.angle)]:[];var a=t.aspectRatio instanceof Array?t.aspectRatio:typeof t.aspectRatio==="number"?[t.aspectRatio]:typeof t.aspectRatio==="string"&&!isNaN(t.aspectRatio)?[Number(t.aspectRatio)]:[];var r=t.origin&&t.origin instanceof Array?t.origin[0]instanceof Array?t.origin:[t.origin]:[];var o;if(t.cache){o=_e(e).join(",");o+="-".concat(t.minAspectRatio);o+="-".concat(t.maxAspectRatio);o+="-".concat(t.minHeight);o+="-".concat(t.minWidth);o+="-".concat(i.join(","));o+="-".concat(r.join(","));if(MR[o])return MR[o]}var s=Math.abs(He(e));if(s===0){if(t.verbose)console.error("polygon has 0 area",e);return null}var l=Fe(e,function(e){return e[0]}),u=wR(l,2),h=u[0],c=u[1];var f=Fe(e,function(e){return e[1]}),d=wR(f,2),g=d[0],p=d[1];var v=Math.min(c-h,p-g)*t.tolerance;if(v>0)e=bR(e,v);if(t.events)n.push({type:"simplify",poly:e});var m=Fe(e,function(e){return e[0]});var y=wR(m,2);h=y[0];c=y[1];var _=Fe(e,function(e){return e[1]});var b=wR(_,2);g=b[0];p=b[1];var w=c-h,x=p-g;var k=Math.min(w,x)/50;if(!r.length){var S=Ve(e);if(!isFinite(S[0])){if(t.verbose)console.error("cannot find centroid",e);return null}if(qe(e,S))r.push(S);var C=t.nTries;while(C){var E=Math.random()*w+h;var A=Math.random()*x+g;var R=[E,A];if(qe(e,R)){r.push(R)}C--}}if(t.events)n.push({type:"origins",points:r});var M=0;var T=null;for(var B=0;B<i.length;B++){var N=i[B];var P=-N*Math.PI/180;if(t.events)n.push({type:"angle",angle:N});for(var D=0;D<r.length;D++){var O=r[D];var z=dR(e,O,P),F=wR(z,2),L=F[0],I=F[1];var j=dR(e,O,P+Math.PI/2),H=wR(j,2),V=H[0],G=H[1];var U=[];if(L&&I)U.push([(L[0]+I[0])/2,(L[1]+I[1])/2]);if(V&&G)U.push([(V[0]+G[0])/2,(V[1]+G[1])/2]);if(t.events)n.push({type:"modifOrigin",idx:D,p1W:L,p2W:I,p1H:V,p2H:G,modifOrigins:U});for(var W=0;W<U.length;W++){var K=U[W];if(t.events)n.push({type:"origin",cx:K[0],cy:K[1]});var q=dR(e,K,P),Y=wR(q,2),X=Y[0],$=Y[1];if(X===null||$===null)continue;var Z=Math.min(SA(K,X),SA(K,$));var J=2*Math.sqrt(Z);var Q=dR(e,K,P+Math.PI/2),ee=wR(Q,2),te=ee[0],ne=ee[1];if(te===null||ne===null)continue;var ie=Math.min(SA(K,te),SA(K,ne));var ae=2*Math.sqrt(ie);if(J*ae<M)continue;var re=a;if(!re.length){var oe=Math.max(t.minAspectRatio,t.minWidth/ae,M/(ae*ae));var se=Math.min(t.maxAspectRatio,J/t.minHeight,J*J/M);re=Le(oe,se+AR,AR)}for(var le=0;le<re.length;le++){var ue=re[le];var he=Math.max(t.minWidth,Math.sqrt(M*ue));var ce=Math.min(J,ae*ue);if(ce*ae<M)continue;if(t.events&&ce-he>=k)n.push({type:"aRatio",aRatio:ue});while(ce-he>=k){var fe=(he+ce)/2;var de=fe/ue;var ge=wR(K,2),pe=ge[0],ve=ge[1];var me=[[pe-fe/2,ve-de/2],[pe+fe/2,ve-de/2],[pe+fe/2,ve+de/2],[pe-fe/2,ve+de/2]];me=pR(me,P,K);var ye=oR(me,e);if(ye){M=fe*de;me.push(me[0]);T={area:M,cx:pe,cy:ve,width:fe,height:de,angle:-N,points:me};he=fe}else{ce=fe}if(t.events)n.push({type:"rectangle",areaFraction:fe*de/s,cx:pe,cy:ve,width:fe,height:de,angle:N,insidePoly:ye})}}}}}if(t.cache){MR[o]=T}return t.events?Object.assign(T||{},{events:n}):T}function BR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){BR=function e(t){return typeof t}}else{BR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return BR(e)}function NR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function PR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function DR(e,t,n){if(t)PR(e.prototype,t);if(n)PR(e,n);return e}function OR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){OR=Reflect.get}else{OR=function e(t,n,i){var a=zR(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return OR(e,t,n||e)}function zR(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=GR(e);if(e===null)break}return e}function FR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)LR(e,t)}function LR(e,t){LR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return LR(e,t)}function IR(a){var r=VR();return function e(){var t=GR(a),n;if(r){var i=GR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return jR(this,n)}}function jR(e,t){if(t&&(BR(t)==="object"||typeof t==="function")){return t}return HR(e)}function HR(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function VR(){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(e){return false}}function GR(e){GR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return GR(e)}var UR=function(e){FR(r,e);var t=IR(r);function r(){var a;NR(this,r);a=t.call(this);a._curve="linear";a._defined=function(){return true};a._labelBounds=function(e,t,n){var i=TR(n.points);if(!i)return null;return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-a._x(e,t),y:i.cy-i.height/2-a._y(e,t)}};a._labelConfig=Object.assign(a._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});a._name="Area";a._x=wh("x");a._x0=wh("x");a._x1=null;a._y=Dx(0);a._y0=Dx(0);a._y1=wh("y");return a}DR(r,[{key:"_aes",value:function e(t){var n=this;var i=t.values.slice().sort(function(e,t){return n._y1?n._x(e)-n._x(t):n._y(e)-n._y(t)});var a=i.map(function(e,t){return[n._x0(e,t),n._y0(e,t)]});var r=i.reverse().map(function(e,t){return n._y1?[n._x(e,t),n._y1(e,t)]:[n._x1(e,t),n._y(e,t)]});var o=a.concat(r);if(a[0][1]>r[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function e(i){var a=this;var t=X().key(this._id).entries(i).map(function(e){e.data=Fx(e.values);e.i=i.indexOf(e.values[0]);var t=Fe(e.values.map(a._x).concat(e.values.map(a._x0)).concat(a._x1?e.values.map(a._x1):[]));e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Fe(e.values.map(a._y).concat(e.values.map(a._y0)).concat(a._y1?e.values.map(a._y1):[]));e.yR=n;e.height=n[1]-n[0];e.y=n[0]+e.height/2;e.nested=true;e.translate=[e.x,e.y];e.__d3plusShape__=true;return e});t.key=function(e){return e.key};return t}},{key:"render",value:function e(t){var n=this;OR(GR(r.prototype),"render",this).call(this,t);var i=this._path=VS().defined(this._defined).curve(NE["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 a=VS().defined(function(e){return e}).curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).y(this._y).x0(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).x1(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).y0(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)}).y1(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)});this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return a(e.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),i(e.values))});this._update.select("path").transition(this._transition).attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attrTween("d",function(e){return $A(Rl(this).attr("d"),i(e.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),a(e.values))});return this}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}},{key:"x",value:function e(t){if(!arguments.length)return this._x;this._x=typeof t==="function"?t:Dx(t);this._x0=this._x;return this}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Dx(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Dx(t),this):this._x1}},{key:"y",value:function e(t){if(!arguments.length)return this._y;this._y=typeof t==="function"?t:Dx(t);this._y0=this._y;return this}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Dx(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Dx(t),this):this._y1}}]);return r}(FA);function WR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){WR=function e(t){return typeof t}}else{WR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return WR(e)}function KR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function qR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function YR(e,t,n){if(t)qR(e.prototype,t);if(n)qR(e,n);return e}function XR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){XR=Reflect.get}else{XR=function e(t,n,i){var a=$R(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return XR(e,t,n||e)}function $R(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=iM(e);if(e===null)break}return e}function ZR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)JR(e,t)}function JR(e,t){JR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return JR(e,t)}function QR(a){var r=nM();return function e(){var t=iM(a),n;if(r){var i=iM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return eM(this,n)}}function eM(e,t){if(t&&(WR(t)==="object"||typeof t==="function")){return t}return tM(e)}function tM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function nM(){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(e){return false}}function iM(e){iM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return iM(e)}var aM=function(e){ZR(r,e);var t=QR(r);function r(){var i;KR(this,r);i=t.call(this,"rect");i._name="Bar";i._height=Dx(10);i._labelBounds=function(e,t,n){return{width:n.width,height:n.height,x:i._x1!==null?i._getX(e,t):-n.width/2,y:i._x1===null?i._getY(e,t):-n.height/2}};i._width=Dx(10);i._x=wh("x");i._x0=wh("x");i._x1=null;i._y=Dx(0);i._y0=Dx(0);i._y1=wh("y");return i}YR(r,[{key:"render",value:function e(t){var n=this;XR(iM(r.prototype),"render",this).call(this,t);var i=this._enter.attr("width",function(e,t){return n._x1===null?n._getWidth(e,t):0}).attr("height",function(e,t){return n._x1!==null?n._getHeight(e,t):0}).attr("x",function(e,t){return n._x1===null?-n._getWidth(e,t)/2:0}).attr("y",function(e,t){return n._x1!==null?-n._getHeight(e,t)/2:0}).call(this._applyStyle.bind(this));var a=this._update;if(this._duration){i=i.transition(this._transition);a=a.transition(this._transition);this._exit.transition(this._transition).attr("width",function(e,t){return n._x1===null?n._getWidth(e,t):0}).attr("height",function(e,t){return n._x1!==null?n._getHeight(e,t):0}).attr("x",function(e,t){return n._x1===null?-n._getWidth(e,t)/2:0}).attr("y",function(e,t){return n._x1!==null?-n._getHeight(e,t)/2:0})}i.call(this._applyPosition.bind(this));a.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function e(t,n){return{height:this._getHeight(t,n),width:this._getWidth(t,n)}}},{key:"_applyPosition",value:function e(t){var n=this;t.attr("width",function(e,t){return n._getWidth(e,t)}).attr("height",function(e,t){return n._getHeight(e,t)}).attr("x",function(e,t){return n._x1!==null?n._getX(e,t):-n._getWidth(e,t)/2}).attr("y",function(e,t){return n._x1===null?n._getY(e,t):-n._getHeight(e,t)/2})}},{key:"_getHeight",value:function e(t,n){if(this._x1!==null)return this._height(t,n);return Math.abs(this._y1(t,n)-this._y(t,n))}},{key:"_getWidth",value:function e(t,n){if(this._x1===null)return this._width(t,n);return Math.abs(this._x1(t,n)-this._x(t,n))}},{key:"_getX",value:function e(t,n){var i=this._x1===null?this._x(t,n):this._x1(t,n)-this._x(t,n);if(i<0)return i;else return 0}},{key:"_getY",value:function e(t,n){var i=this._x1!==null?this._y(t,n):this._y1(t,n)-this._y(t,n);if(i<0)return i;else return 0}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Dx(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Dx(t),this):this._width}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Dx(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Dx(t),this):this._x1}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Dx(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Dx(t),this):this._y1}}]);return r}(FA);function rM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){rM=function e(t){return typeof t}}else{rM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return rM(e)}function oM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function sM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function lM(e,t,n){if(t)sM(e.prototype,t);if(n)sM(e,n);return e}function uM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){uM=Reflect.get}else{uM=function e(t,n,i){var a=hM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return uM(e,t,n||e)}function hM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=mM(e);if(e===null)break}return e}function cM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)fM(e,t)}function fM(e,t){fM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return fM(e,t)}function dM(a){var r=vM();return function e(){var t=mM(a),n;if(r){var i=mM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return gM(this,n)}}function gM(e,t){if(t&&(rM(t)==="object"||typeof t==="function")){return t}return pM(e)}function pM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}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(e){return false}}function mM(e){mM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return mM(e)}var yM=function(e){cM(a,e);var t=dM(a);function a(){var e;oM(this,a);e=t.call(this,"circle");e._labelBounds=function(e,t,n){return{width:n.r*1.5,height:n.r*1.5,x:-n.r*.75,y:-n.r*.75}};e._labelConfig=Ch(e._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});e._name="Circle";e._r=wh("r");return e}lM(a,[{key:"_applyPosition",value:function e(t){var n=this;t.attr("r",function(e,t){return n._r(e,t)}).attr("x",function(e,t){return-n._r(e,t)/2}).attr("y",function(e,t){return-n._r(e,t)/2})}},{key:"render",value:function e(t){uM(mM(a.prototype),"render",this).call(this,t);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 e(t,n){return{r:this._r(t,n)}}},{key:"r",value:function e(t){return arguments.length?(this._r=typeof t==="function"?t:Dx(t),this):this._r}}]);return a}(FA);function _M(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_M=function e(t){return typeof t}}else{_M=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return _M(e)}function bM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function wM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function xM(e,t,n){if(t)wM(e.prototype,t);if(n)wM(e,n);return e}function kM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){kM=Reflect.get}else{kM=function e(t,n,i){var a=SM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return kM(e,t,n||e)}function SM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=BM(e);if(e===null)break}return e}function CM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)EM(e,t)}function EM(e,t){EM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return EM(e,t)}function AM(a){var r=TM();return function e(){var t=BM(a),n;if(r){var i=BM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return RM(this,n)}}function RM(e,t){if(t&&(_M(t)==="object"||typeof t==="function")){return t}return MM(e)}function MM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function TM(){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(e){return false}}function BM(e){BM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return BM(e)}var NM=function(e){CM(a,e);var t=AM(a);function a(){var e;bM(this,a);e=t.call(this,"rect");e._height=wh("height");e._labelBounds=function(e,t,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}};e._name="Rect";e._width=wh("width");return e}xM(a,[{key:"render",value:function e(t){kM(BM(a.prototype),"render",this).call(this,t);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 e(t,n){return{width:this._width(t,n),height:this._height(t,n)}}},{key:"_applyPosition",value:function e(t){var n=this;t.attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return-n._width(e,t)/2}).attr("y",function(e,t){return-n._height(e,t)/2})}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Dx(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Dx(t),this):this._width}}]);return a}(FA);function PM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){PM=function e(t){return typeof t}}else{PM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return PM(e)}function DM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function OM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function zM(e,t,n){if(t)OM(e.prototype,t);if(n)OM(e,n);return e}function FM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){FM=Reflect.get}else{FM=function e(t,n,i){var a=LM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return FM(e,t,n||e)}function LM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=WM(e);if(e===null)break}return e}function IM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)jM(e,t)}function jM(e,t){jM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return jM(e,t)}function HM(a){var r=UM();return function e(){var t=WM(a),n;if(r){var i=WM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return VM(this,n)}}function VM(e,t){if(t&&(PM(t)==="object"||typeof t==="function")){return t}return GM(e)}function GM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function UM(){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(e){return false}}function WM(e){WM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return WM(e)}var KM=function(e){IM(s,e);var t=HM(s);function s(){var n;DM(this,s);n=t.call(this);n._curve="linear";n._defined=function(e){return e};n._fill=Dx("none");n._hitArea=Dx({d:function e(t){return n._path(t.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=HS();n._stroke=Dx("black");n._strokeWidth=Dx(1);return n}zM(s,[{key:"_dataFilter",value:function e(i){var a=this;var t=X().key(this._id).entries(i).map(function(e){e.data=Fx(e.values);e.i=i.indexOf(e.values[0]);var t=Fe(e.values,a._x);e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Fe(e.values,a._y);e.yR=n;e.height=n[1]-n[0];e.y=n[0]+e.height/2;e.nested=true;e.translate=[e.x,e.y];e.__d3plusShape__=true;return e});t.key=function(e){return e.key};return t}},{key:"render",value:function e(t){var n=this;FM(WM(s.prototype),"render",this).call(this,t);var o=this;function i(e){e.initialLength=this.getTotalLength();var t=o._strokeDasharray(e.values[0],o._data.indexOf(e.values[0])).split(" ").map(Number);if(t.length===1&&t[0]===0)t=[e.initialLength];else if(t.length===1)t.push(t[0]);else if(t.length%2)t=t.concat(t);var n=[];var i=0;while(i<e.initialLength){for(var a=0;a<t.length;a++){var r=t[a];i+=r;n.push(r);if(i>=e.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=e.initialLength-O(n);if(n.length%2===0)n.push(0);e.initialStrokeArray=n.join(" ")}this._path.curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var a=this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return n._path(e.values)}).call(this._applyStyle.bind(this));var r=this._update.select("path").attr("stroke-dasharray",function(e){return o._strokeDasharray(e.values[0],o._data.indexOf(e.values[0]))});if(this._duration){a.each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).attr("stroke-dashoffset",function(e){return e.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);r=r.transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),o._path(e.values))});this._exit.selectAll("path").each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(e){return-e.initialLength})}else{r=r.attr("d",function(e){return o._path(e.values)})}r.attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function e(t,n){var i=this;return{points:t.values.map(function(e){return[i._x(e,n),i._y(e,n)]})}}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}}]);return s}(FA);function qM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qM=function e(t){return typeof t}}else{qM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qM(e)}function YM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function XM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function $M(e,t,n){if(t)XM(e.prototype,t);if(n)XM(e,n);return e}function ZM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)JM(e,t)}function JM(e,t){JM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return JM(e,t)}function QM(a){var r=nT();return function e(){var t=iT(a),n;if(r){var i=iT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return eT(this,n)}}function eT(e,t){if(t&&(qM(t)==="object"||typeof t==="function")){return t}return tT(e)}function tT(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function nT(){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(e){return false}}function iT(e){iT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return iT(e)}var aT={Circle:yM,Rect:NM};var rT=function(e){ZM(n,e);var t=QM(n);function n(){var e;YM(this,n);e=t.call(this);e._endpoint=wh("endpoint","Rect");e._endpointConfig={Circle:{r:wh("r",5)}};e._length=wh("length",25);e._lineConfig={};e._orient=wh("orient","top");e._x=wh("x",0);e._y=wh("y",0);return e}$M(n,[{key:"render",value:function e(t){var s=this;if(this._select===void 0){this.select(Rl("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var l=[];this._data.forEach(function(e,t){var n=s._orient(e,t);var i=s._x(e,t);var a=s._y(e,t);var r=i;if(n==="left")r-=s._length(e,t);else if(n==="right")r+=s._length(e,t);var o=a;if(n==="top")o-=s._length(e,t);else if(n==="bottom")o+=s._length(e,t);l.push({__d3plus__:true,data:e,i:t,id:t,x:i,y:a});l.push({__d3plus__:true,data:e,i:t,id:t,x:r,y:o})});this._line=(new KM).data(l).select(Ox("g.d3plus-Whisker",{parent:this._select}).node()).config(Px.bind(this)(this._lineConfig,"shape")).render(t);var n=this._data.map(function(e,t){var n={};n.__d3plus__=true;n.data=e;n.i=t;n.endpoint=s._endpoint(e,t);n.length=s._length(e,t);n.orient=s._orient(e,t);var i=s._x(e,t);if(n.orient==="left")i-=n.length;else if(n.orient==="right")i+=n.length;var a=s._y(e,t);if(n.orient==="top")a-=n.length;else if(n.orient==="bottom")a+=n.length;n.x=i;n.y=a;return n});this._whiskerEndpoint=[];X().key(function(e){return e.endpoint}).entries(n).forEach(function(e){var t=e.key;s._whiskerEndpoint.push((new aT[t]).data(e.values).select(Ox("g.d3plus-Whisker-Endpoint-".concat(t),{parent:s._select}).node()).config({height:function e(t){return t.orient==="top"||t.orient==="bottom"?5:20},width:function e(t){return t.orient==="top"||t.orient==="bottom"?20:5}}).config(Px.bind(s)(s._endpointConfig,"shape",t)).render())});return this}},{key:"active",value:function e(t){if(this._line)this._line.active(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.active(t)})}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"endpoint",value:function e(t){return arguments.length?(this._endpoint=typeof t==="function"?t:Dx(t),this):this._endpoint}},{key:"endpointConfig",value:function e(t){return arguments.length?(this._endpointConfig=Ch(this._endpointConfig,t),this):this._endpointConfig}},{key:"hover",value:function e(t){if(this._line)this._line.hover(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.hover(t)})}},{key:"length",value:function e(t){return arguments.length?(this._length=typeof t==="function"?t:Dx(t),this):this._length}},{key:"lineConfig",value:function e(t){return arguments.length?(this._lineConfig=Ch(this._lineConfig,t),this):this._lineConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Dx(t),this):this._orient}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Dx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Dx(t),this):this._y}}]);return n}(Tx);function oT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){oT=function e(t){return typeof t}}else{oT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return oT(e)}function sT(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function lT(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function uT(e,t,n){if(t)lT(e.prototype,t);if(n)lT(e,n);return e}function hT(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)cT(e,t)}function cT(e,t){cT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return cT(e,t)}function fT(a){var r=pT();return function e(){var t=vT(a),n;if(r){var i=vT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return dT(this,n)}}function dT(e,t){if(t&&(oT(t)==="object"||typeof t==="function")){return t}return gT(e)}function gT(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function pT(){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(e){return false}}function vT(e){vT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return vT(e)}var mT={Circle:yM,Rect:NM};var yT=function(e){hT(n,e);var t=fT(n);function n(){var i;sT(this,n);i=t.call(this);i._medianConfig={fill:Dx("black")};i._orient=wh("orient","vertical");i._outlier=wh("outlier","Circle");i._outlierConfig={Circle:{r:wh("r",5)},Rect:{height:function e(t,n){return i._orient(t,n)==="vertical"?5:20},width:function e(t,n){return i._orient(t,n)==="vertical"?20:5}}};i._rectConfig={fill:Dx("white"),stroke:Dx("black"),strokeWidth:Dx(1)};i._rectWidth=Dx(50);i._whiskerConfig={};i._whiskerMode=["tukey","tukey"];i._x=wh("x",250);i._y=wh("y",250);return i}uT(n,[{key:"render",value:function e(){var r=this;if(this._select===void 0){this.select(Rl("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var t=X().key(function(e,t){return r._orient(e,t)==="vertical"?r._x(e,t):r._y(e,t)}).entries(this._data).map(function(a){a.data=Fx(a.values);a.i=r._data.indexOf(a.values[0]);a.orient=r._orient(a.data,a.i);var e=a.values.map(a.orient==="vertical"?r._y:r._x);e.sort(function(e,t){return e-t});a.first=Ie(e,.25);a.median=Ie(e,.5);a.third=Ie(e,.75);var t=r._whiskerMode;if(t[0]==="tukey"){a.lowerLimit=a.first-(a.third-a.first)*1.5;if(a.lowerLimit<je(e))a.lowerLimit=je(e)}else if(t[0]==="extent")a.lowerLimit=je(e);else if(typeof t[0]==="number")a.lowerLimit=Ie(e,t[0]);if(t[1]==="tukey"){a.upperLimit=a.third+(a.third-a.first)*1.5;if(a.upperLimit>me(e))a.upperLimit=me(e)}else if(t[1]==="extent")a.upperLimit=me(e);else if(typeof t[1]==="number")a.upperLimit=Ie(e,t[1]);var n=a.third-a.first;if(a.orient==="vertical"){a.height=n;a.width=r._rectWidth(a.data,a.i);a.x=r._x(a.data,a.i);a.y=a.first+n/2}else if(a.orient==="horizontal"){a.height=r._rectWidth(a.data,a.i);a.width=n;a.x=a.first+n/2;a.y=r._y(a.data,a.i)}a.values.forEach(function(e,t){var n=a.orient==="vertical"?r._y(e,t):r._x(e,t);if(n<a.lowerLimit||n>a.upperLimit){var i={};i.__d3plus__=true;i.data=e;i.i=t;i.outlier=r._outlier(e,t);if(a.orient==="vertical"){i.x=a.x;i.y=n;o.push(i)}else if(a.orient==="horizontal"){i.y=a.y;i.x=n;o.push(i)}}});a.__d3plus__=true;return a});this._box=(new NM).data(t).x(function(e){return e.x}).y(function(e){return e.y}).select(Ox("g.d3plus-Box",{parent:this._select}).node()).config(Px.bind(this)(this._rectConfig,"shape")).render();this._median=(new NM).data(t).x(function(e){return e.orient==="vertical"?e.x:e.median}).y(function(e){return e.orient==="vertical"?e.median:e.y}).height(function(e){return e.orient==="vertical"?1:e.height}).width(function(e){return e.orient==="vertical"?e.width:1}).select(Ox("g.d3plus-Box-Median",{parent:this._select}).node()).config(Px.bind(this)(this._medianConfig,"shape")).render();var h=[];t.forEach(function(e,t){var n=e.x;var i=e.y;var a=e.first-e.lowerLimit;var r=e.upperLimit-e.third;if(e.orient==="vertical"){var o=i-e.height/2;var s=i+e.height/2;h.push({__d3plus__:true,data:e,i:t,x:n,y:o,length:a,orient:"top"},{__d3plus__:true,data:e,i:t,x:n,y:s,length:r,orient:"bottom"})}else if(e.orient==="horizontal"){var l=n+e.width/2;var u=n-e.width/2;h.push({__d3plus__:true,data:e,i:t,x:l,y:i,length:r,orient:"right"},{__d3plus__:true,data:e,i:t,x:u,y:i,length:a,orient:"left"})}});this._whisker=(new rT).data(h).select(Ox("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(Px.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];X().key(function(e){return e.outlier}).entries(o).forEach(function(e){var t=e.key;r._whiskerEndpoint.push((new mT[t]).data(e.values).select(Ox("g.d3plus-Box-Outlier-".concat(t),{parent:r._select}).node()).config(Px.bind(r)(r._outlierConfig,"shape",t)).render())});return this}},{key:"active",value:function e(t){if(this._box)this._box.active(t);if(this._median)this._median.active(t);if(this._whisker)this._whisker.active(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.active(t)})}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"hover",value:function e(t){if(this._box)this._box.hover(t);if(this._median)this._median.hover(t);if(this._whisker)this._whisker.hover(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.hover(t)})}},{key:"medianConfig",value:function e(t){return arguments.length?(this._medianConfig=Ch(this._medianConfig,t),this):this._medianConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Dx(t),this):this._orient}},{key:"outlier",value:function e(t){return arguments.length?(this._outlier=typeof t==="function"?t:Dx(t),this):this._outlier}},{key:"outlierConfig",value:function e(t){return arguments.length?(this._outlierConfig=Ch(this._outlierConfig,t),this):this._outlierConfig}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=Ch(this._rectConfig,t),this):this._rectConfig}},{key:"rectWidth",value:function e(t){return arguments.length?(this._rectWidth=typeof t==="function"?t:Dx(t),this):this._rectWidth}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"whiskerConfig",value:function e(t){return arguments.length?(this._whiskerConfig=Ch(this._whiskerConfig,t),this):this._whiskerConfig}},{key:"whiskerMode",value:function e(t){return arguments.length?(this._whiskerMode=t instanceof Array?t:[t,t],this):this._whiskerMode}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:wh(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:wh(t),this):this._y}}]);return n}(Tx);var _T=Math.PI;var bT=function e(t,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(t<0)t=_T*2+t;if(i==="square"){var a=45*(_T/180);var r=0,o=0;if(t<_T/2){var s=Math.tan(t);r+=t<a?n:n/s;o+=t<a?s*n:n}else if(t<=_T){var l=Math.tan(_T-t);r-=t<_T-a?n/l:n;o+=t<_T-a?n:l*n}else if(t<a+_T){r-=n;o-=Math.tan(t-_T)*n}else if(t<3*_T/2){r-=n/Math.tan(t-_T);o-=n}else if(t<2*_T-a){r+=n/Math.tan(2*_T-t);o-=n}else{r+=n;o-=Math.tan(2*_T-t)*n}return[r,o]}else if(i==="circle"){return[n*Math.cos(t),n*Math.sin(t)]}else return null};var wT=Math.PI;var xT=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var i=[],a=/([MLA])([^MLAZ]+)/gi;var r=a.exec(t);while(r!==null){if(["M","L"].includes(r[1]))i.push(r[2].split(",").map(Number));else if(r[1]==="A"){var o=r[2].split(",").map(Number);var s=o.slice(o.length-2,o.length),l=i[i.length-1],u=o[0],h=CA(l,s);var c=Math.acos((u*u+u*u-h*h)/(2*u*u));if(o[2])c=wT*2-c;var f=c/(c/(wT*2)*(u*wT*2)/n);var d=Math.atan2(-l[1],-l[0])-wT;var g=f;while(g<c){i.push(bT(o[4]?d+g:d-g,u));g+=f}i.push(s)}r=a.exec(t)}return i};function kT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){kT=function e(t){return typeof t}}else{kT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return kT(e)}function ST(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function CT(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function ET(e,t,n){if(t)CT(e.prototype,t);if(n)CT(e,n);return e}function AT(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){AT=Reflect.get}else{AT=function e(t,n,i){var a=RT(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return AT(e,t,n||e)}function RT(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=OT(e);if(e===null)break}return e}function MT(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)TT(e,t)}function TT(e,t){TT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return TT(e,t)}function BT(a){var r=DT();return function e(){var t=OT(a),n;if(r){var i=OT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return NT(this,n)}}function NT(e,t){if(t&&(kT(t)==="object"||typeof t==="function")){return t}return PT(e)}function PT(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function DT(){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(e){return false}}function OT(e){OT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return OT(e)}var zT=function(e){MT(r,e);var t=BT(r);function r(){var a;ST(this,r);a=t.call(this,"path");a._d=wh("path");a._labelBounds=function(e,t,n){var i=TR(n.points,{angle:a._labelConfig.rotate?a._labelConfig.rotate(e,t):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};a._name="Path";a._labelConfig=Object.assign(a._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});return a}ET(r,[{key:"_aes",value:function e(t,n){return{points:xT(this._d(t,n))}}},{key:"render",value:function e(t){AT(OT(r.prototype),"render",this).call(this,t);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 e(t){return arguments.length?(this._d=typeof t==="function"?t:Dx(t),this):this._d}}]);return r}(FA);var FT=Object.freeze({__proto__:null,Image:Ux,Shape:FA,Area:UR,Bar:aM,Box:yT,Circle:yM,Line:KM,Path:zT,Rect:NM,Whisker:rT,largestRect:TR,lineIntersection:ZA,path2polygon:xT,pointDistance:CA,pointDistanceSquared:SA,pointRotate:gR,polygonInside:oR,polygonRayCast:dR,polygonRotate:pR,segmentBoxContains:aR,segmentsIntersect:rR,shapeEdgePoint:bT,simplify:bR});var LT=function e(t){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return t.reduce(function(e,t){var n=[];if(Array.isArray(t)){n=t}else{if(t[i]){n=t[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:'),t)}}return e.concat(n)},[])};function IT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){IT=function e(t){return typeof t}}else{IT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return IT(e)}var jT=function e(t){return typeof t==="string"||IT(t)==="object"&&t.url&&t.headers};function HT(a,e){var r,o=te("beforesend","progress","load","error"),s,l=E(),u=new XMLHttpRequest,h=null,c=null,i,f,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(a))u=new XDomainRequest;"onload"in u?u.onload=u.onerror=u.ontimeout=t:u.onreadystatechange=function(e){u.readyState>3&&t(e)};function t(e){var t=u.status,n;if(!t&&GT(u)||t>=200&&t<300||t===304){if(i){try{n=i.call(r,u)}catch(e){o.call("error",r,e);return}}else{n=u}o.call("load",r,n)}else{o.call("error",r,e)}}u.onprogress=function(e){o.call("progress",r,e)};r={header:function e(t,n){t=(t+"").toLowerCase();if(arguments.length<2)return l.get(t);if(n==null)l.remove(t);else l.set(t,n+"");return r},mimeType:function e(t){if(!arguments.length)return s;s=t==null?null:t+"";return r},responseType:function e(t){if(!arguments.length)return f;f=t;return r},timeout:function e(t){if(!arguments.length)return d;d=+t;return r},user:function e(t){return arguments.length<1?h:(h=t==null?null:t+"",r)},password:function e(t){return arguments.length<1?c:(c=t==null?null:t+"",r)},response:function e(t){i=t;return r},get:function e(t,n){return r.send("GET",t,n)},post:function e(t,n){return r.send("POST",t,n)},send:function e(t,n,i){u.open(t,a,true,h,c);if(s!=null&&!l.has("accept"))l.set("accept",s+",*/*");if(u.setRequestHeader)l.each(function(e,t){u.setRequestHeader(t,e)});if(s!=null&&u.overrideMimeType)u.overrideMimeType(s);if(f!=null)u.responseType=f;if(d>0)u.timeout=d;if(i==null&&typeof n==="function")i=n,n=null;if(i!=null&&i.length===1)i=VT(i);if(i!=null)r.on("error",i).on("load",function(e){i(null,e)});o.call("beforesend",r,u);u.send(n==null?null:n);return r},abort:function e(){u.abort();return r},on:function e(){var t=o.on.apply(o,arguments);return t===o?r:t}};if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return r.get(e)}return r}function VT(n){return function(e,t){n(e==null?t:null)}}function GT(e){var t=e.responseType;return t&&t!=="text"?e.response:e.responseText}function UT(i,a){return function(e,t){var n=HT(e).mimeType(i).response(a);if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return n.get(t)}return n}}var WT=UT("application/json",function(e){return JSON.parse(e.responseText)});var KT=UT("text/plain",function(e){return e.responseText});var qT={},YT={},XT=34,$T=10,ZT=13;function JT(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function QT(n,i){var a=JT(n);return function(e,t){return i(a(e),t,n)}}function eB(e){var n=Object.create(null),i=[];e.forEach(function(e){for(var t in e){if(!(t in n)){i.push(n[t]=t)}}});return i}function tB(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function nB(e){return e<0?"-"+tB(-e,6):e>9999?"+"+tB(e,6):tB(e,4)}function iB(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":nB(e.getUTCFullYear())+"-"+tB(e.getUTCMonth()+1,2)+"-"+tB(e.getUTCDate(),2)+(a?"T"+tB(t,2)+":"+tB(n,2)+":"+tB(i,2)+"."+tB(a,3)+"Z":i?"T"+tB(t,2)+":"+tB(n,2)+":"+tB(i,2)+"Z":n||t?"T"+tB(t,2)+":"+tB(n,2)+"Z":"")}function aB(i){var t=new RegExp('["'+i+"\n\r]"),c=i.charCodeAt(0);function e(e,n){var i,a,t=r(e,function(e,t){if(i)return i(e,t-1);a=e,i=n?QT(e,n):JT(e)});t.columns=a||[];return t}function r(i,e){var t=[],a=i.length,r=0,n=0,o,s=a<=0,l=false;if(i.charCodeAt(a-1)===$T)--a;if(i.charCodeAt(a-1)===ZT)--a;function u(){if(s)return YT;if(l)return l=false,qT;var e,t=r,n;if(i.charCodeAt(t)===XT){while(r++<a&&i.charCodeAt(r)!==XT||i.charCodeAt(++r)===XT){}if((e=r)>=a)s=true;else if((n=i.charCodeAt(r++))===$T)l=true;else if(n===ZT){l=true;if(i.charCodeAt(r)===$T)++r}return i.slice(t+1,e-1).replace(/""/g,'"')}while(r<a){if((n=i.charCodeAt(e=r++))===$T)l=true;else if(n===ZT){l=true;if(i.charCodeAt(r)===$T)++r}else if(n!==c)continue;return i.slice(t,e)}return s=true,i.slice(t,a)}while((o=u())!==YT){var h=[];while(o!==qT&&o!==YT){h.push(o),o=u()}if(e&&(h=e(h,n++))==null)continue;t.push(h)}return t}function n(e,n){return e.map(function(t){return n.map(function(e){return u(t[e])}).join(i)})}function a(e,t){if(t==null)t=eB(e);return[t.map(u).join(i)].concat(n(e,t)).join("\n")}function o(e,t){if(t==null)t=eB(e);return n(e,t).join("\n")}function s(e){return e.map(l).join("\n")}function l(e){return e.map(u).join(i)}function u(e){return e==null?"":e instanceof Date?iB(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:e,parseRows:r,format:a,formatBody:o,formatRows:s,formatRow:l,formatValue:u}}var rB=aB(",");var oB=rB.parse;var sB=aB("\t");var lB=sB.parse;function uB(a,r){return function(e,t,n){if(arguments.length<3)n=t,t=null;var i=HT(e).mimeType(a);i.row=function(e){return arguments.length?i.response(hB(r,t=e)):t};i.row(t);return n?i.get(n):i}}function hB(t,n){return function(e){return t(e.responseText,n)}}var cB=uB("text/csv",oB);var fB=uB("text/tab-separated-values",lB);var dB=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return t[n].map(function(i){return t[a].reduce(function(e,t,n){return e[t]=i[n],e},{})})};function gB(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){gB=function e(t){return typeof t}}else{gB=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return gB(e)}function pB(r,o,s,l){var u=this;var h;var c=function e(t){var n=t.slice(t.length-4);switch(n){case".csv":return cB;case".tsv":return fB;case".txt":return KT;default:return WT}};var f=function e(t,n,i){if(n!==WT&&!t&&i&&i instanceof Array){i.forEach(function(e){for(var t in e){if(!isNaN(e[t]))e[t]=parseFloat(e[t]);else if(e[t].toLowerCase()==="false")e[t]=false;else if(e[t].toLowerCase()==="true")e[t]=true;else if(e[t].toLowerCase()==="null")e[t]=null;else if(e[t].toLowerCase()==="undefined")e[t]=undefined}})}return i};var d=function e(t){return t.reduce(function(e,t){return t?e+1:e},0)};var g=function e(t,n){return n.indexOf(t)};if(!(r instanceof Array))r=[r];var e=r.find(jT);var p=new Array(r.length);var v=[];if(e){r.forEach(function(e,t){if(jT(e))v.push(e);else p[t]=e})}else{p[0]=r}var m=d(p);v.forEach(function(e){var t={},i=e;if(gB(e)==="object"){i=e.url;t=e.headers}h=c(i);var n=h(i);for(var a in t){if({}.hasOwnProperty.call(t,a)){n.header(a,t[a])}}n.get(function(e,t){t=e?[]:t;if(t&&!(t instanceof Array)&&t.data&&t.headers)t=dB(t);t=f(e,h,t);p[g(i,r)]=t;if(d(p)-m===v.length){t=d(p)===1?p[0]:p;if(u._cache)u._lrucache.set("".concat(s,"_").concat(i),t);if(o){var n=o(d(p)===1?p[0]:p);if(s==="data"&&!(n instanceof Array)){t=n.data;delete n.data;u.config(n)}else t=n}else if(s==="data"){t=LT(p,"data")}if(s&&"_".concat(s)in u)u["_".concat(s)]=t;if(l)l(e,t)}})});if(v.length===0){p=p.map(function(e){if(e&&!(e instanceof Array)&&e.data&&e.headers)e=dB(e);return e});var t=d(p)===1?p[0]:p;if(o){var n=o(d(p)===1?p[0]:p);if(s==="data"&&!(n instanceof Array)){t=n.data;delete n.data;this.config(n)}else t=n}else if(s==="data"){t=LT(p,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=t;if(l)l(null,t)}}function vB(e,t,n){if(!(e instanceof Array))e=[e];var i=e.find(jT);if(i){var a=this._queue.find(function(e){return e[3]==="data"});var r=[pB.bind(this),e,t,"data"];if(a)this._queue[this._queue.indexOf(a)]=r;else this._queue.push(r)}else{this["_".concat(n)]=e}}function mB(e){return function(){return e}}function yB(e,t,n){this.target=e;this.type=t;this.selection=n}function _B(){fl.stopImmediatePropagation()}function bB(){fl.preventDefault();fl.stopImmediatePropagation()}var wB={name:"drag"},xB={name:"space"},kB={name:"handle"},SB={name:"center"};function CB(e){return[+e[0],+e[1]]}function EB(e){return[CB(e[0]),CB(e[1])]}function AB(t){return function(e){return Pl(e,fl.touches,t)}}var RB={name:"x",handles:["w","e"].map(zB),input:function e(t,n){return t==null?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function e(t){return t&&[t[0][0],t[1][0]]}};var MB={name:"y",handles:["n","s"].map(zB),input:function e(t,n){return t==null?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function e(t){return t&&[t[0][1],t[1][1]]}};var TB={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(zB),input:function e(t){return t==null?null:EB(t)},output:function e(t){return t}};var BB={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 NB={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var PB={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var DB={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var OB={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function zB(e){return{type:e}}function FB(){return!fl.ctrlKey&&!fl.button}function LB(){var e=this.ownerSVGElement||this;if(e.hasAttribute("viewBox")){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function IB(){return navigator.maxTouchPoints||"ontouchstart"in this}function jB(e){while(!e.__brush){if(!(e=e.parentNode))return}return e.__brush}function HB(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function VB(){return UB(RB)}function GB(){return UB(TB)}function UB(L){var t=LB,I=FB,i=IB,j=true,n=te("start","brush","end"),a=6,H;function r(e){var t=e.property("__brush",h).selectAll(".overlay").data([zB("overlay")]);t.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",BB.overlay).merge(t).each(function(){var e=jB(this).extent;Rl(this).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])});e.selectAll(".selection").data([zB("selection")]).enter().append("rect").attr("class","selection").attr("cursor",BB.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=e.selectAll(".handle").data(L.handles,function(e){return e.type});n.exit().remove();n.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return BB[e.type]});e.each(V).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(i).on("touchstart.brush",s).on("touchmove.brush",l).on("touchend.brush touchcancel.brush",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}r.move=function(e,s){if(e.selection){e.on("start.brush",function(){G(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){G(this,arguments).end()}).tween("brush",function(){var t=this,n=t.__brush,i=G(t,arguments),e=n.selection,a=L.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),r=En(e,a);function o(e){n.selection=e===1&&a===null?null:r(e);V.call(t);i.brush()}return e!==null&&a!==null?o:o(1)})}else{e.each(function(){var e=this,t=arguments,n=e.__brush,i=L.input(typeof s==="function"?s.apply(e,t):s,n.extent),a=G(e,t).beforestart();Zl(e);n.selection=i===null?null:i;V.call(e);a.start().brush().end()})}};r.clear=function(e){r.move(e,null)};function V(){var e=Rl(this),t=jB(this).selection;if(t){e.selectAll(".selection").style("display",null).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]);e.selectAll(".handle").style("display",null).attr("x",function(e){return e.type[e.type.length-1]==="e"?t[1][0]-a/2:t[0][0]-a/2}).attr("y",function(e){return e.type[0]==="s"?t[1][1]-a/2:t[0][1]-a/2}).attr("width",function(e){return e.type==="n"||e.type==="s"?t[1][0]-t[0][0]+a:a}).attr("height",function(e){return e.type==="e"||e.type==="w"?t[1][1]-t[0][1]+a:a})}else{e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function G(e,t,n){return!n&&e.__brush.emitter||new o(e,t)}function o(e,t){this.that=e;this.args=t;this.state=e.__brush;this.active=0}o.prototype={beforestart:function e(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function e(){if(this.starting)this.starting=false,this.emit("start");else this.emit("brush");return this},brush:function e(){this.emit("brush");return this},end:function e(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function e(t){bl(new yB(r,t,L.output(this.state.selection)),n.apply,n,[t,this.that,this.args])}};function s(){if(H&&!fl.touches)return;if(!I.apply(this,arguments))return;var t=this,n=fl.target.__data__.type,i=(j&&fl.metaKey?n="overlay":n)==="selection"?wB:j&&fl.altKey?SB:kB,a=L===MB?null:DB[n],r=L===RB?null:OB[n],o=jB(t),e=o.extent,s=o.selection,l=e[0][0],u,h,c=e[0][1],f,d,g=e[1][0],p,v,m=e[1][1],y,_,b=0,w=0,x,k=a&&r&&j&&fl.shiftKey,S,C,E=fl.touches?AB(fl.changedTouches[0].identifier):Bl,A=E(t),R=A,M=G(t,arguments,true).beforestart();if(n==="overlay"){if(s)x=true;o.selection=s=[[u=L===MB?l:A[0],f=L===RB?c:A[1]],[p=L===MB?g:u,y=L===RB?m:f]]}else{u=s[0][0];f=s[0][1];p=s[1][0];y=s[1][1]}h=u;d=f;v=p;_=y;var T=Rl(t).attr("pointer-events","none");var B=T.selectAll(".overlay").attr("cursor",BB[n]);if(fl.touches){M.moved=P;M.ended=O}else{var N=Rl(fl.view).on("mousemove.brush",P,true).on("mouseup.brush",O,true);if(j)N.on("keydown.brush",z,true).on("keyup.brush",F,true);Ol(fl.view)}_B();Zl(t);V.call(t);M.start();function P(){var e=E(t);if(k&&!S&&!C){if(Math.abs(e[0]-R[0])>Math.abs(e[1]-R[1]))C=true;else S=true}R=e;x=true;bB();D()}function D(){var e;b=R[0]-A[0];w=R[1]-A[1];switch(i){case xB:case wB:{if(a)b=Math.max(l-u,Math.min(g-p,b)),h=u+b,v=p+b;if(r)w=Math.max(c-f,Math.min(m-y,w)),d=f+w,_=y+w;break}case kB:{if(a<0)b=Math.max(l-u,Math.min(g-u,b)),h=u+b,v=p;else if(a>0)b=Math.max(l-p,Math.min(g-p,b)),h=u,v=p+b;if(r<0)w=Math.max(c-f,Math.min(m-f,w)),d=f+w,_=y;else if(r>0)w=Math.max(c-y,Math.min(m-y,w)),d=f,_=y+w;break}case SB:{if(a)h=Math.max(l,Math.min(g,u-b*a)),v=Math.max(l,Math.min(g,p+b*a));if(r)d=Math.max(c,Math.min(m,f-w*r)),_=Math.max(c,Math.min(m,y+w*r));break}}if(v<h){a*=-1;e=u,u=p,p=e;e=h,h=v,v=e;if(n in NB)B.attr("cursor",BB[n=NB[n]])}if(_<d){r*=-1;e=f,f=y,y=e;e=d,d=_,_=e;if(n in PB)B.attr("cursor",BB[n=PB[n]])}if(o.selection)s=o.selection;if(S)h=s[0][0],v=s[1][0];if(C)d=s[0][1],_=s[1][1];if(s[0][0]!==h||s[0][1]!==d||s[1][0]!==v||s[1][1]!==_){o.selection=[[h,d],[v,_]];V.call(t);M.brush()}}function O(){_B();if(fl.touches){if(fl.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{zl(fl.view,x);N.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}T.attr("pointer-events","all");B.attr("cursor",BB.overlay);if(o.selection)s=o.selection;if(HB(s))o.selection=null,V.call(t);M.end()}function z(){switch(fl.keyCode){case 16:{k=a&&r;break}case 18:{if(i===kB){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=SB;D()}break}case 32:{if(i===kB||i===SB){if(a<0)p=v-b;else if(a>0)u=h-b;if(r<0)y=_-w;else if(r>0)f=d-w;i=xB;B.attr("cursor",BB.selection);D()}break}default:return}bB()}function F(){switch(fl.keyCode){case 16:{if(k){S=C=k=false;D()}break}case 18:{if(i===SB){if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=kB;D()}break}case 32:{if(i===xB){if(fl.altKey){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=SB}else{if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=kB}B.attr("cursor",BB[n]);D()}break}default:return}bB()}}function l(){G(this,arguments).moved()}function u(){G(this,arguments).ended()}function h(){var e=this.__brush||{selection:null};e.extent=EB(t.apply(this,arguments));e.dim=L;return e}r.extent=function(e){return arguments.length?(t=typeof e==="function"?e:mB(EB(e)),r):t};r.filter=function(e){return arguments.length?(I=typeof e==="function"?e:mB(!!e),r):I};r.touchable=function(e){return arguments.length?(i=typeof e==="function"?e:mB(!!e),r):i};r.handleSize=function(e){return arguments.length?(a=+e,r):a};r.keyModifiers=function(e){return arguments.length?(j=!!e,r):j};r.on=function(){var e=n.on.apply(n,arguments);return e===n?r:e};return r}function WB(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function KB(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function qB(){}var YB=.7;var XB=1/YB;var $B="\\s*([+-]?\\d+)\\s*",ZB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",JB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QB=/^#([0-9a-f]{3,8})$/,eN=new RegExp("^rgb\\("+[$B,$B,$B]+"\\)$"),tN=new RegExp("^rgb\\("+[JB,JB,JB]+"\\)$"),nN=new RegExp("^rgba\\("+[$B,$B,$B,ZB]+"\\)$"),iN=new RegExp("^rgba\\("+[JB,JB,JB,ZB]+"\\)$"),aN=new RegExp("^hsl\\("+[ZB,JB,JB]+"\\)$"),rN=new RegExp("^hsla\\("+[ZB,JB,JB,ZB]+"\\)$");var oN={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};WB(qB,hN,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:sN,formatHex:sN,formatHsl:lN,formatRgb:uN,toString:uN});function sN(){return this.rgb().formatHex()}function lN(){return bN(this).formatHsl()}function uN(){return this.rgb().formatRgb()}function hN(e){var t,n;e=(e+"").trim().toLowerCase();return(t=QB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?cN(t):n===3?new pN(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fN(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fN(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=eN.exec(e))?new pN(t[1],t[2],t[3],1):(t=tN.exec(e))?new pN(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nN.exec(e))?fN(t[1],t[2],t[3],t[4]):(t=iN.exec(e))?fN(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aN.exec(e))?_N(t[1],t[2]/100,t[3]/100,1):(t=rN.exec(e))?_N(t[1],t[2]/100,t[3]/100,t[4]):oN.hasOwnProperty(e)?cN(oN[e]):e==="transparent"?new pN(NaN,NaN,NaN,0):null}function cN(e){return new pN(e>>16&255,e>>8&255,e&255,1)}function fN(e,t,n,i){if(i<=0)e=t=n=NaN;return new pN(e,t,n,i)}function dN(e){if(!(e instanceof qB))e=hN(e);if(!e)return new pN;e=e.rgb();return new pN(e.r,e.g,e.b,e.opacity)}function gN(e,t,n,i){return arguments.length===1?dN(e):new pN(e,t,n,i==null?1:i)}function pN(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}WB(pN,gN,KB(qB,{brighter:function e(t){t=t==null?XB:Math.pow(XB,t);return new pN(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?YB:Math.pow(YB,t);return new pN(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:vN,formatHex:vN,formatRgb:mN,toString:mN}));function vN(){return"#"+yN(this.r)+yN(this.g)+yN(this.b)}function mN(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function yN(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function _N(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new xN(e,t,n,i)}function bN(e){if(e instanceof xN)return new xN(e.h,e.s,e.l,e.opacity);if(!(e instanceof qB))e=hN(e);if(!e)return new xN;if(e instanceof xN)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new xN(o,s,l,e.opacity)}function wN(e,t,n,i){return arguments.length===1?bN(e):new xN(e,t,n,i==null?1:i)}function xN(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}WB(xN,wN,KB(qB,{brighter:function e(t){t=t==null?XB:Math.pow(XB,t);return new xN(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?YB:Math.pow(YB,t);return new xN(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new pN(kN(t>=240?t-240:t+120,r,a),kN(t,r,a),kN(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function kN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var SN=[].slice;var CN={};function EN(e){this._size=e;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}EN.prototype=NN.prototype={constructor:EN,defer:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=SN.call(arguments,1);n.push(t);++this._waiting,this._tasks.push(n);AN(this);return this},abort:function e(){if(this._error==null)TN(this,new Error("abort"));return this},await:function e(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(e,t){n.apply(null,[e].concat(t))};BN(this);return this},awaitAll:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=t;BN(this);return this}};function AN(t){if(!t._start){try{RN(t)}catch(e){if(t._tasks[t._ended+t._active-1])TN(t,e);else if(!t._data)throw e}}}function RN(e){while(e._start=e._waiting&&e._active<e._size){var t=e._ended+e._active,n=e._tasks[t],i=n.length-1,a=n[i];n[i]=MN(e,t);--e._waiting,++e._active;n=a.apply(null,n);if(!e._tasks[t])continue;e._tasks[t]=n||CN}}function MN(n,i){return function(e,t){if(!n._tasks[i])return;--n._active,++n._ended;n._tasks[i]=null;if(n._error!=null)return;if(e!=null){TN(n,e)}else{n._data[i]=t;if(n._waiting)AN(n);else BN(n)}}}function TN(e,t){var n=e._tasks.length,i;e._error=t;e._data=undefined;e._waiting=NaN;while(--n>=0){if(i=e._tasks[n]){e._tasks[n]=null;if(i.abort){try{i.abort()}catch(t){}}}}e._active=NaN;BN(e)}function BN(e){if(!e._active&&e._call){var t=e._data;e._data=undefined;e._call(e._error,t)}}function NN(e){if(e==null)e=Infinity;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new EN(e)}var PN=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function DN(e,t,i){return i={path:t,exports:{},require:function e(t,n){return ON(t,n===undefined||n===null?i.path:n)}},e(i,i.exports),i.exports}function ON(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var zN=DN(function(n){(function(e,t){{n.exports=t()}})((typeof window==="undefined"?"undefined":_typeof2(window))==="object"?window:PN,function(){var a=void 0;function t(e){if(!(this instanceof t))return new t(e);this._LRUCacheState=new n(e)}var e=t.prototype;e.get=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return;o(t.linkedList,n);return t.data[e]};e.set=function(e,t){var n=this._LRUCacheState;var i=n.hash[e];if(t===a)return this;if(!i){n.hash[e]=new r(e);n.linkedList.length+=1;i=n.hash[e]}o(n.linkedList,i);n.data[e]=t;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};e.update=function(e,t){if(this.has(e))this.set(e,t(this.get(e)));return this};e.remove=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return this;if(n===t.linkedList.head)t.linkedList.head=n.p;if(n===t.linkedList.end)t.linkedList.end=n.n;s(n.n,n.p);delete t.hash[e];delete t.data[e];t.linkedList.length-=1;return this};e.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};e.info=function(){var e=this._LRUCacheState;return{capacity:e.capacity,length:e.linkedList.length}};e.keys=function(){var e=[];var t=this._LRUCacheState.linkedList.head;while(t){e.push(t.key);t=t.p}return e};e.has=function(e){return!!this._LRUCacheState.hash[e]};e.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};e.popStale=function(){var e=this.staleKey();if(!e)return null;var t=[e,this._LRUCacheState.data[e]];this.remove(e);return t};function n(e){this.capacity=e>0?+e: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 r(e){this.key=e;this.p=null;this.n=null}function o(e,t){if(t===e.head)return;if(!e.end){e.end=t}else if(e.end===t){e.end=t.n}s(t.n,t.p);s(t,e.head);e.head=t;e.head.n=null}function s(e,t){if(e===t)return;if(e)e.p=t;if(t)t.n=e}return t})});var FN={"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 LN(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){LN=function e(t){return typeof t}}else{LN=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return LN(e)}var IN=function e(t,n){return parseFloat(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function jN(e,t,n){var i=0;if(e){if(e<0)e*=-1;i=1+Math.floor(1e-12+Math.log(e)/Math.LN10);i=Math.max(-24,Math.min(24,Math.floor((i-1)/3)*3))}var a=n[8+i/3];return{number:IN(a.scale(e),t),symbol:a.symbol}}function HN(e,t){var n=Math.pow(10,Math.abs(8-t)*3);return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function VN(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(e))e*=1;else return"N/A";var i=e<0;var a=e.toString().split(".")[0].replace("-","").length,r=LN(t)==="object"?t:FN[t]||FN["en-US"],o=r.suffixes.map(HN);var s=r.delimiters.decimal||".",l=r.separator||"",u=r.delimiters.thousands||",";var h=wi({currency:r.currency||["$",""],decimal:s,grouping:r.grouping||[3],thousands:u});var c;if(n)c=h.format(n)(e);else if(e===0)c="0";else if(a>=3){var f=jN(h.format(".3r")(e),2,o);var d=parseFloat(f.number).toString().replace(".",s);var g=f.symbol;c="".concat(d).concat(l).concat(g)}else if(a===3)c=h.format(",f")(e);else if(e<1&&e>-1)c=h.format(".2g")(e);else c=h.format(".3g")(e);return"".concat(i&&c.charAt(0)!=="-"?"-":"").concat(c).replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}function GN(e){if(e.constructor===Date)return e;else if(e.constructor===Number&&"".concat(e).length>5&&e%1===0)return new Date(e);var t="".concat(e);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(t),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(t);if(n){var a=n[1];if(a.indexOf("-")===0)t=t.replace(a,a.substr(1));var r=new Date(t);r.setFullYear(a);return r}else if(i){var o=i[1];if(o.indexOf("-")===0)t=t.replace(o,o.substr(1));var s=new Date(t);s.setFullYear(o);return s}else if(!t.includes("/")&&!t.includes(" ")&&(!t.includes("-")||!t.indexOf("-"))){var l=new Date("".concat(t,"/01/01"));l.setFullYear(e);return l}else return new Date(t)}var UN={"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 WN(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function KN(e){return $N(e)||XN(e)||YN(e)||qN()}function qN(){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 YN(e,t){if(!e)return;if(typeof e==="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}function XN(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function $N(e){if(Array.isArray(e))return ZN(e)}function ZN(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function JN(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){JN=function e(t){return typeof t}}else{JN=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return JN(e)}function QN(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function eP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function tP(e,t,n){if(t)eP(e.prototype,t);if(n)eP(e,n);return e}function nP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)iP(e,t)}function iP(e,t){iP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return iP(e,t)}function aP(a){var r=sP();return function e(){var t=lP(a),n;if(r){var i=lP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return rP(this,n)}}function rP(e,t){if(t&&(JN(t)==="object"||typeof t==="function")){return t}return oP(e)}function oP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function sP(){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(e){return false}}function lP(e){lP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return lP(e)}var uP=function(e){nP(i,e);var t=aP(i);function i(){var n;QN(this,i);n=t.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 e(t){return t.tick?8:0},label:function e(t){return t.text},labelBounds:function e(t){return t.labelBounds},labelConfig:{fontColor:"#000",fontFamily:(new kA).fontFamily(),fontResize:false,fontSize:Dx(10),padding:0,textAnchor:function e(){var t=WE();return n._orient==="left"?t?"start":"end":n._orient==="right"?t?"end":"start":n._rotateLabels?n._orient==="bottom"?"end":"start":"middle"},verticalAlign:function e(){return n._orient==="bottom"?"top":n._orient==="top"?"bottom":"middle"}},r:function e(t){return t.tick?4:0},stroke:"#000",strokeWidth:1,width:function e(t){return t.tick?8:0}};n._tickSize=5;n._tickSpecifier=undefined;n._tickSuffix="normal";n._tickUnit=0;n._timeLocale=undefined;n._titleClass=new kA;n._titleConfig={fontSize:12,textAnchor:"middle"};n._width=400;return n}tP(i,[{key:"_barPosition",value:function e(t){var n=this._position,i=n.height,a=n.x,r=n.y,o=n.opposite,s=this._margin[o],l=["top","left"].includes(this._orient)?this._outerBounds[r]+this._outerBounds[i]-s:this._outerBounds[r]+s;var u=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var h=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var c=(this._d3Scale?this._d3Scale.domain():[]).concat(this._d3ScaleNegative?this._d3ScaleNegative.domain():[]);t.call(Eh,this._barConfig).attr("".concat(a,"1"),this._getPosition(c[0])-u).attr("".concat(a,"2"),this._getPosition(c[c.length-1])+h).attr("".concat(r,"1"),l).attr("".concat(r,"2"),l)}},{key:"_getDomain",value:function e(){var t=[];if(this._d3ScaleNegative)t=this._d3ScaleNegative.domain();if(this._d3Scale)t=t.concat(this._d3Scale.domain());var n=["band","ordinal","point"].includes(this._scale)?t:Fe(t);return t[0]>t[1]?n.reverse():n}},{key:"_getPosition",value:function e(t){return t<0&&this._d3ScaleNegative?this._d3ScaleNegative(t):this._d3Scale(t)}},{key:"_getRange",value:function e(){var t=[];if(this._d3ScaleNegative)t=this._d3ScaleNegative.range();if(this._d3Scale)t=t.concat(this._d3Scale.range());return t[0]>t[1]?Fe(t).reverse():Fe(t)}},{key:"_getTicks",value:function e(){var t=Qi().domain([10,400]).range([10,50]);var n=[];if(this._d3ScaleNegative){var i=this._d3ScaleNegative.range();var a=i[1]-i[0];n=this._d3ScaleNegative.ticks(Math.floor(a/t(a)))}if(this._d3Scale){var r=this._d3Scale.range();var o=r[1]-r[0];n=n.concat(this._d3Scale.ticks(Math.floor(o/t(o))))}return n}},{key:"_gridPosition",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this._position,a=i.height,r=i.x,o=i.y,s=i.opposite,l=this._margin[s],u=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[a]-l:this._outerBounds[o]+l,h=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),c=["top","left"].includes(this._orient)?l:-l,f=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function e(t){return h(t.id)+f};t.call(Eh,this._gridConfig).attr("".concat(r,"1"),d).attr("".concat(r,"2"),d).attr("".concat(o,"1"),u).attr("".concat(o,"2"),n?u:u+c)}},{key:"render",value:function e(t){var d=this,n;if(this._select===void 0){this.select(Rl("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var i=this._timeLocale||UN[this._locale]||UN["en-US"];uo(i).format();var s=so("%a %d"),l=so("%I %p"),u=so(".%L"),h=so("%I:%M"),c=so("%b"),f=so(":%S"),g=so("%b %d"),p=so("%Y");var a=this._position,r=a.width,v=a.height,m=a.x,y=a.y,_=a.horizontal,b=a.opposite,o="d3plus-Axis-clip-".concat(this._uuid),w=["top","left"].includes(this._orient),x=this._padding,k=this._select,C=[x,this["_".concat(r)]-x],S=eh().duration(this._duration);var E=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[r]: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,B;var N=this._tickFormat?this._tickFormat:function(e){if(d._scale==="time"){return(fa(e)<e?u:da(e)<e?f:ga(e)<e?h:pa(e)<e?l:Sa(e)<e?ma(e)<e?s:g:Ca(e)<e?c:p)(e)}else if(["band","ordinal","point"].includes(d._scale)){return e}if(isNaN(e)){return e}else if(d._scale==="linear"&&d._tickSuffix==="smallest"){var t=JN(d._locale)==="object"?d._locale:FN[d._locale];var n=t.separator,i=t.suffixes;var a=e>=1e3?i[d._tickUnit+8]:"";var r=e/Math.pow(10,3*d._tickUnit);var o=VN(r,t,",.".concat(r.toString().length,"r"));return"".concat(o).concat(n).concat(a)}else{return VN(e,d._locale)}};function P(){var a=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;T=e?e.slice():[undefined,undefined];var t=C[0],n=C[1];if(this._range){if(this._range[0]!==undefined)t=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(T[0]===undefined||T[0]<t)T[0]=t;if(T[1]===undefined||T[1]>n)T[1]=n;var i=n-t;if(this._scale==="ordinal"&&this._domain.length>T.length){if(e===this._range){var r=this._domain.length+1;T=Le(r).map(function(e){return T[0]+i*(e/(r-1))}).slice(1,r);T=T.map(function(e){return e-T[0]/2})}else{var o=this._domain.length;var s=T[1]-T[0];T=Le(o).map(function(e){return T[0]+s*(e/(o-1))})}}else if(e===this._range){var l=Qi().domain([10,400]).range([10,50]);var u=this._scale==="time"?this._domain.map(GN):this._domain;var h=ve(u[0],u[1],Math.floor(i/l(i)));B=(this._ticks?this._scale==="time"?this._ticks.map(GN):this._ticks:h).slice();M=(this._labels?this._scale==="time"?this._labels.map(GN):this._labels:h).slice();var c=M.length;if(c){var f=Math.ceil(i/c/2);T=[T[0]+f,T[1]-f]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=Fo[d]().domain(this._scale==="time"?this._domain.map(GN):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=Gi().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])}}B=(this._ticks?this._scale==="time"?this._ticks.map(GN):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();M=(this._labels?this._scale==="time"?this._labels.map(GN):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():B).slice();if(this._scale==="log"){var _=M.filter(function(e,t){return!t||t===M.length-1||Math.abs(e).toString().charAt(0)==="1"&&(a._d3Scale?e!==-1:e!==1)});if(_.length>2){M=_}else if(M.length>=10){M=M.filter(function(e){return e%5===0||N(e).substr(-1)==="1"})}if(M.includes(-1)&&M.includes(1)&&M.some(function(e){return e>10||e<10})){M.splice(M.indexOf(-1),1)}}if(this._scale==="time"){B=B.map(Number);M=M.map(Number)}B=B.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});M=M.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var b=M.filter(function(e){return e>=1e3});if(b.length>0){var w=Math.min.apply(Math,KN(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=B;B.forEach(function(e,t){var n=A({id:e,tick:true},t);if(a._shape==="Circle")n*=2;var i=a._getPosition(e);if(!S.length||Math.abs(Bx(i,S)-i)>n*2)S.push(i);else S.push(false)});B=B.filter(function(e,t){return S[t]!==false});this._visibleTicks=B}P.bind(this)();function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=e.i,i=e.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var a=n-t<0?G.length===1||!this._range?C[0]:(i-G[n+t].position)/2-i:i-(i-G[n-t].position)/2;var r=Math.abs(i-a);var o=n+t>G.length-1?G.length===1||!this._range?C[1]:(i-G[n-t].position)/2-i:i-(i-G[n+t].position)/2;var s=Math.abs(i-o);return je([r,s])*2}}if(this._title){var O=this._titleConfig,z=O.fontFamily,F=O.fontSize,L=O.lineHeight;var I=hA().fontFamily(typeof z==="function"?z():z).fontSize(typeof F==="function"?F():F).lineHeight(typeof L==="function"?L():L).width(T[T.length-1]-T[0]-x*2).height(this["_".concat(v)]-this._tickSize-x*2);var j=I(this._title).lines.length;R[this._orient]=j*I.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,V=A({tick:true});if(typeof H==="function")H=me(B.map(H));if(this._shape==="Rect")H/=2;if(typeof V==="function")V=me(B.map(V));if(this._shape!=="Circle")V/=2;var G=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});function U(e){var t=e.d,n=e.i,i=e.fF,a=e.fS,r=e.rotate,o=e.space;var s=r?"width":"height",l=r?"height":"width";var u=je([this._maxSize,this._width]);var h=je([this._maxSize,this._height]);var c=hA().fontFamily(i).fontSize(a).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(t,n):undefined)[l](_?o:u-H-x-this._margin.left-this._margin.right)[s](_?h-H-x-this._margin.top-this._margin.bottom:o);var f=c(N(t));f.lines=f.lines.filter(function(e){return e!==""});f.width=f.lines.length?Math.ceil(me(f.widths))+a/4:0;if(f.width%2)f.width++;f.height=f.lines.length?Math.ceil(f.lines.length*c.lineHeight())+a/4:0;if(f.height%2)f.height++;return f}function W(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=0;a.forEach(function(e){var t=a[e.i-1];var n=e.rotate&&_||!e.rotate&&!_?"width":"height",i=e.rotate&&_||!e.rotate&&!_?"height":"width";if(!t){r=1}else if(t.position+t[i]/2>e.position-e[i]/2){if(r){e.offset=t[n];r=0}else r=1}})}G=G.map(function(e){e.rotate=d._labelRotation;e.space=D.bind(d)(e);var t=U.bind(d)(e);return Object.assign(t,e)});this._rotateLabels=_&&this._labelRotation===undefined?G.some(function(e){return e.truncated}):this._labelRotation;var K=this._labelOffset&&G.some(function(e){return e.truncated});if(this._rotateLabels){G=G.map(function(e){e.rotate=true;var t=U.bind(d)(e);return Object.assign(e,t)})}else if(K){G=G.map(function(e){e.space=D.bind(d)(e,2);var t=U.bind(d)(e);return Object.assign(e,t)});W.bind(this)(G)}var q=[0,0];for(var Y=0;Y<2;Y++){var X=G[Y?G.length-1:0];if(!X)break;var $=X.height,Z=X.position,J=X.rotate,Q=X.width;var ee=Y?C[1]:C[0];var te=(J||!_?$:Q)/2;var ne=Y?Z+te-ee:Z-te-ee;q[Y]=ne}var ie=T[0];var ae=T[T.length-1];var re=[ie-q[0],ae-q[1]];if(this._range){if(this._range[0]!==undefined)re[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)re[1]=this._range[this._range.length-1]}if(re[0]!==ie||re[1]!==ae){P.bind(this)(re);G=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});G=G.map(function(e){e.rotate=d._rotateLabels;e.space=D.bind(d)(e,K?2:1);var t=U.bind(d)(e);return Object.assign(t,e)});W.bind(this)(G)}var oe=me(G,function(e){return e.height})||0;this._rotateLabels=_&&this._labelRotation===undefined?G.some(function(e){var t=e.i,n=e.height,i=e.position,a=e.truncated;var r=G[t-1];return a||t&&r.position+r.height/2>i-n/2}):this._labelRotation;var se=this._labelOffset?me(G,function(e){return e.offset||0}):0;G.forEach(function(e){return e.offset=e.offset?se:0});var le=this._shape==="Line"?0:H;var ue=this._outerBounds=(n={},WN(n,v,(me(G,function(e){return Math.ceil(e[e.rotate||!_?"width":"height"]+e.offset)})||0)+(G.length?x:0)),WN(n,r,C[C.length-1]-C[0]),WN(n,m,C[0]),n);ue[v]=me([this._minSize,ue[v]]);R[this._orient]+=H;R[b]=this._gridSize!==undefined?me([this._gridSize,le]):this["_".concat(v)]-R[this._orient]-ue[v]-x;ue[v]+=R[b]+R[this._orient];ue[y]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(v)]-ue[v]-this._padding:this["_".concat(v)]/2-ue[v]/2;var he=Ox("g#d3plus-Axis-".concat(this._uuid),{parent:k});this._group=he;var ce=Ox("g.grid",{parent:he}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?M:B:[]).map(function(e){return{id:e}}),function(e){return e.id});ce.exit().transition(S).attr("opacity",0).call(this._gridPosition.bind(this)).remove();ce.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(ce).transition(S).attr("opacity",1).call(this._gridPosition.bind(this));var fe=M.filter(function(e,t){return G[t].lines.length&&!B.includes(e)});var de=G.some(function(e){return e.rotate});var ge=B.concat(fe).map(function(t){var e;var n=G.find(function(e){return e.d===t});var i=d._getPosition(t);var a=n?n.space:0;var r=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var l=_?a:ue.width-R[d._position.opposite]-H-R[d._orient]+x;var u=R[b],h=(H+s)*(w?-1:1),c=w?ue[y]+ue[v]-u:ue[y]+u;var f=(e={id:t,labelBounds:de&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?h+x+(n.width-o*r)/2:h-x*2-(n.width+o*r)/2,width:n.width,height:n.height}:{x:_?-a/2:d._orient==="left"?-l-x+h:h+x,y:_?d._orient==="bottom"?h+x:h-x-oe:-a/2,width:_?a:l,height:_?oe:a},rotate:n?n.rotate:false,size:M.includes(t)?h:0,text:M.includes(t)?N(t):false,tick:B.includes(t)},WN(e,m,i+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),WN(e,y,c),e);return f});if(this._shape==="Line"){ge=ge.concat(ge.map(function(e){var t=Object.assign({},e);t[y]+=e.size;return t}))}(new FT[this._shape]).data(ge).duration(this._duration).labelConfig({ellipsis:function e(t){return t&&t.length?"".concat(t,"..."):""},rotate:function e(t){return t.rotate?-90:0}}).select(Ox("g.ticks",{parent:he}).node()).config(this._shapeConfig).render();var pe=he.selectAll("line.bar").data([null]);pe.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(pe).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(Ox("g.d3plus-Axis-title",{parent:he}).node()).text(function(e){return e.text}).verticalAlign("middle").width(T[T.length-1]-T[0]).x(_?T[0]:this._orient==="left"?ue.x+R.left/2-(T[T.length-1]-T[0])/2:ue.x+ue.width-R.right/2-(T[T.length-1]-T[0])/2).y(_?this._orient==="bottom"?ue.y+ue.height-R.bottom:ue.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(t)setTimeout(t,this._duration+100);return this}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"barConfig",value:function e(t){return arguments.length?(this._barConfig=Object.assign(this._barConfig,t),this):this._barConfig}},{key:"domain",value:function e(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"grid",value:function e(t){return arguments.length?(this._grid=t,this):this._grid}},{key:"gridConfig",value:function e(t){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,t),this):this._gridConfig}},{key:"gridLog",value:function e(t){return arguments.length?(this._gridLog=t,this):this._gridLog}},{key:"gridSize",value:function e(t){return arguments.length?(this._gridSize=t,this):this._gridSize}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"labels",value:function e(t){return arguments.length?(this._labels=t,this):this._labels}},{key:"labelOffset",value:function e(t){return arguments.length?(this._labelOffset=t,this):this._labelOffset}},{key:"labelRotation",value:function e(t){return arguments.length?(this._labelRotation=t,this):this._labelRotation}},{key:"maxSize",value:function e(t){return arguments.length?(this._maxSize=t,this):this._maxSize}},{key:"minSize",value:function e(t){return arguments.length?(this._minSize=t,this):this._minSize}},{key:"orient",value:function e(t){if(arguments.length){var n=["top","bottom"].includes(t),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[t]};return this._orient=t,this}return this._orient}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"paddingInner",value:function e(t){return arguments.length?(this._paddingInner=t,this):this._paddingInner}},{key:"paddingOuter",value:function e(t){return arguments.length?(this._paddingOuter=t,this):this._paddingOuter}},{key:"range",value:function e(t){return arguments.length?(this._range=t,this):this._range}},{key:"scale",value:function e(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"scalePadding",value:function e(t){return arguments.length?(this._scalePadding=t,this):this._scalePadding}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=t,this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}},{key:"tickFormat",value:function e(t){return arguments.length?(this._tickFormat=t,this):this._tickFormat}},{key:"ticks",value:function e(t){return arguments.length?(this._ticks=t,this):this._ticks}},{key:"tickSize",value:function e(t){return arguments.length?(this._tickSize=t,this):this._tickSize}},{key:"tickSpecifier",value:function e(t){return arguments.length?(this._tickSpecifier=t,this):this._tickSpecifier}},{key:"tickSuffix",value:function e(t){return arguments.length?(this._tickSuffix=t,this):this._tickSuffix}},{key:"timeLocale",value:function e(t){return arguments.length?(this._timeLocale=t,this):this._timeLocale}},{key:"title",value:function e(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,t),this):this._titleConfig}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return i}(Tx);function hP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){hP=function e(t){return typeof t}}else{hP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return hP(e)}function cP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function fP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function dP(e,t,n){if(t)fP(e.prototype,t);if(n)fP(e,n);return e}function gP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)pP(e,t)}function pP(e,t){pP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return pP(e,t)}function vP(a){var r=_P();return function e(){var t=bP(a),n;if(r){var i=bP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return mP(this,n)}}function mP(e,t){if(t&&(hP(t)==="object"||typeof t==="function")){return t}return yP(e)}function yP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _P(){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(e){return false}}function bP(e){bP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return bP(e)}var wP=function(e){gP(n,e);var t=vP(n);function n(){var e;cP(this,n);e=t.call(this);e._buttonStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px",margin:"0 5px"};e._data=[];e._text=wh("text");e._value=wh("value");return e}dP(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(Rl("body").append("div").node());var t=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";t=t.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Button").merge(t);var a=t.selectAll("button").data(this._data,function(e,t){return n._value(e,t)});a.exit().remove();a=a.enter().append("button").attr("class","d3plus-Button").attr("type","button").merge(a).call(jx,this._buttonStyle).html(function(e,t){return n._text(e,t)});for(var r in this._on){if({}.hasOwnProperty.call(this._on,r))a.on(r,this._on[r])}return this}},{key:"buttonStyle",value:function e(t){return arguments.length?(this._buttonStyle=t,this):this._buttonStyle}},{key:"container",value:function e(t){return arguments.length?(this._container=Rl(t),this):this._container}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Dx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Tx);function xP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){xP=function e(t){return typeof t}}else{xP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return xP(e)}function kP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function SP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function CP(e,t,n){if(t)SP(e.prototype,t);if(n)SP(e,n);return e}function EP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)AP(e,t)}function AP(e,t){AP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return AP(e,t)}function RP(a){var r=BP();return function e(){var t=NP(a),n;if(r){var i=NP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return MP(this,n)}}function MP(e,t){if(t&&(xP(t)==="object"||typeof t==="function")){return t}return TP(e)}function TP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function BP(){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(e){return false}}function NP(e){NP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return NP(e)}var PP=function(e){EP(n,e);var t=RP(n);function n(){var e;kP(this,n);e=t.call(this);e._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};e._legendStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};e._options=[];e._radioStyle={"margin-right":"10px"};e._text=wh("text");e._value=wh("value");return e}CP(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(Rl("body").append("div").node());var r=this;var t=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";t=t.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Radio").merge(t);var o=t.selectAll("label").data(this._options,function(e,t){return n._value(e,t)});o.exit().each(function(){Rl(this.nextSibling).remove()}).remove();o=o.enter().append("label").attr("class","d3plus-Label").attr("for",function(e,t){return"".concat(n._uuid,"-").concat(n._value(e,t))}).each(function(e,t){var n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("name","d3plus-Radio-".concat(r._uuid));n.setAttribute("id","".concat(r._uuid,"-").concat(r._value(e,t)));n.setAttribute("value",r._value(e,t));this.parentNode.insertBefore(n,this.nextSibling)}).merge(o).call(jx,this._labelStyle).html(function(e,t){return n._text(e,t)}).each(function(e,t){var n=r._checked===void 0?!t:"".concat(r._value(e,t))==="".concat(r._checked);Rl(this).classed("active",n).style("cursor",n?"default":"pointer");var i=Rl(this.nextSibling).property("checked",n).call(jx,r._radioStyle).style("cursor",n?"default":"pointer").on("change.d3plus",function(){r.checked(this.value);o.each(function(e,t){var n="".concat(r._value(e,t))==="".concat(r._checked);Rl(this).classed("active",n).style("cursor",n?"default":"pointer");Rl(this.nextSibling).style("cursor",n?"default":"pointer")})});for(var a in r._on){if({}.hasOwnProperty.call(r._on,a))i.on(a,r._on[a])}});var a=t.selectAll("legend#d3plus-Legend-".concat(this._uuid)).data(this._legend?[0]:[]);a.exit().remove();a.enter().insert("legend",".d3plus-Label").attr("id","d3plus-Legend-".concat(this._uuid)).attr("class","d3plus-Legend").merge(a).call(jx,this._legendStyle).html(this._legend);return this}},{key:"checked",value:function e(t){return arguments.length?(this._checked=t,this):this._checked}},{key:"container",value:function e(t){return arguments.length?(this._container=Rl(t),this):this._container}},{key:"labelStyle",value:function e(t){return arguments.length?(this._labelStyle=t,this):this._labelStyle}},{key:"legend",value:function e(t){return arguments.length?(this._legend=t,this):this._legend}},{key:"legendStyle",value:function e(t){return arguments.length?(this._legendStyle=t,this):this._legendStyle}},{key:"options",value:function e(t){return arguments.length?(this._options=t,this):this._options}},{key:"radioStyle",value:function e(t){return arguments.length?(this._radioStyle=t,this):this._radioStyle}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Dx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Tx);function DP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){DP=function e(t){return typeof t}}else{DP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return DP(e)}function OP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function zP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function FP(e,t,n){if(t)zP(e.prototype,t);if(n)zP(e,n);return e}function LP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)IP(e,t)}function IP(e,t){IP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return IP(e,t)}function jP(a){var r=GP();return function e(){var t=UP(a),n;if(r){var i=UP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return HP(this,n)}}function HP(e,t){if(t&&(DP(t)==="object"||typeof t==="function")){return t}return VP(e)}function VP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function GP(){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(e){return false}}function UP(e){UP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return UP(e)}var WP=function(e){LP(n,e);var t=jP(n);function n(){var e;OP(this,n);e=t.call(this);e._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","margin-right":"5px"};e._options=[];e._optionStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px"};e._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"};e._text=wh("text");e._value=wh("value");return e}FP(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(r("body").append("div").node());var t=this;var i=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var a=this._container.node().tagName.toLowerCase()==="foreignobject";i=i.enter().append(a?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Select").merge(i);var r=i.selectAll("select#d3plus-Select-".concat(this._uuid)).data([0]);r=r.enter().append("select").attr("id","d3plus-Select-".concat(this._uuid)).attr("class","d3plus-Select").merge(r).call(jx,this._selectStyle).on("change.d3plus",function(){t.selected(this.value)});for(var o in this._on){if({}.hasOwnProperty.call(this._on,o))r.on(o,this._on[o])}var s=r.selectAll("option").data(this._options,function(e,t){return n._value(e,t)});s.exit().remove();s.enter().append("option").attr("class","d3plus-Option").merge(s).call(jx,this._optionStyle).attr("value",function(e,t){return n._value(e,t)}).html(function(e,t){return n._text(e,t)}).property("selected",function(e,t){return n._selected===void 0?!t:"".concat(n._value(e,t))==="".concat(n._selected)});var l=i.selectAll("label#d3plus-Label-".concat(this._uuid)).data(this._label?[0]:[]);l.exit().remove();l.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(l).call(jx,this._labelStyle).html(this._label);return this}},{key:"container",value:function e(t){return arguments.length?(this._container=Rl(t),this):this._container}},{key:"label",value:function e(t){return arguments.length?(this._label=t,this):this._label}},{key:"labelStyle",value:function e(t){return arguments.length?(this._labelStyle=t,this):this._labelStyle}},{key:"options",value:function e(t){return arguments.length?(this._options=t,this):this._options}},{key:"optionStyle",value:function e(t){return arguments.length?(this._optionStyle=t,this):this._optionStyle}},{key:"selected",value:function e(t){return arguments.length?(this._selected=t,this):this._selected}},{key:"selectStyle",value:function e(t){return arguments.length?(this._selectStyle=t,this):this._selectStyle}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Dx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Tx);function KP(e){return e.slice().sort(function(e,t){return e-t})}function qP(e){var t,n=0;for(var i=0;i<e.length;i++){if(i===0||e[i]!==t){t=e[i];n++}}return n}function YP(e,t){var n=[];for(var i=0;i<e;i++){var a=[];for(var r=0;r<t;r++){a.push(0)}n.push(a)}return n}function XP(e,t,n,i){var a;if(e>0){var r=(n[t]-n[e-1])/(t-e+1);a=i[t]-i[e-1]-(t-e+1)*r*r}else a=i[t]-n[t]*n[t]/(t+1);if(a<0)return 0;return a}function $P(e,t,n,i,a,r,o){if(e>t)return;var s=Math.floor((e+t)/2);i[n][s]=i[n-1][s-1];a[n][s]=s;var l=n;if(e>n)l=Math.max(l,a[n][e-1]||0);l=Math.max(l,a[n-1][s]||0);var u=s-1;if(t<i.length-1)u=Math.min(u,a[n][t+1]||0);for(var h=u;h>=l;--h){var c=XP(h,s,r,o);if(c+i[n-1][l-1]>=i[n][s])break;var f=XP(l,s,r,o);var d=f+i[n-1][l-1];if(d<i[n][s]){i[n][s]=d;a[n][s]=l}l++;var g=c+i[n-1][h-1];if(g<i[n][s]){i[n][s]=g;a[n][s]=h}}$P(e,s-1,n,i,a,r,o);$P(s+1,t,n,i,a,r,o)}function ZP(e,t,n){var i=t[0]?t[0].length:0;var a=e[Math.floor(i/2)];var r=[];var o=[];for(var s=0,l=void 0;s<i;++s){l=e[s]-a;if(s===0){r.push(l);o.push(l*l)}else{r.push(r[s-1]+l);o.push(o[s-1]+l*l)}t[0][s]=XP(0,s,r,o);n[0][s]=0}for(var u=1;u<t.length;++u){var h=i-1;if(u<t.length-1)h=u;$P(h,i-1,u,t,n,r,o)}}function JP(e,t){if(t>e.length){throw new Error("Cannot generate more classes than there are data values")}var n=KP(e);var i=qP(n);if(i===1){return[n]}var a=YP(t,n.length),r=YP(t,n.length);ZP(n,r,a);var o=a[0]?a[0].length-1:0;var s=[];for(var l=a.length-1;l>=0;l--){var u=a[l][o];s[l]=n.slice(u,o+1);if(l>0)o=u-1}return s}function QP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){QP=function e(t){return typeof t}}else{QP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return QP(e)}function eD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function tD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function nD(e,t,n){if(t)tD(e.prototype,t);if(n)tD(e,n);return e}function iD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)aD(e,t)}function aD(e,t){aD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return aD(e,t)}function rD(a){var r=lD();return function e(){var t=uD(a),n;if(r){var i=uD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return oD(this,n)}}function oD(e,t){if(t&&(QP(t)==="object"||typeof t==="function")){return t}return sD(e)}function sD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function lD(){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(e){return false}}function uD(e){uD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return uD(e)}var hD=function(e){iD(n,e);var t=rD(n);function n(){var s;eD(this,n);s=t.call(this);s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=wh("id");s._label=wh("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=Dx("Rect");s._shapes=[];s._shapeConfig={fill:wh("color"),height:Dx(10),hitArea:function e(t,n){var i=s._lineData[n],a=me([i.height,i.shapeHeight]);return{width:i.width+i.shapeWidth,height:a,x:-i.shapeWidth/2,y:-a/2}},labelBounds:function e(t,n){var i=s._lineData[n];var a=i.shapeWidth;if(i.shape==="Circle")a-=i.shapeR;var r=me([i.shapeHeight,i.height]);return{width:i.width,height:r,x:a,y:-r/2}},labelConfig:{fontColor:Dx("#444"),fontFamily:(new kA).fontFamily(),fontResize:false,fontSize:Dx(10),verticalAlign:"middle"},opacity:1,r:Dx(5),width:Dx(10),x:function e(t,n){var i=s._lineData[n];var a=i.y;var r=s._align==="left"||s._align==="right"&&s._direction==="column"?0:s._align==="center"?(s._outerBounds.width-s._rowWidth(s._lineData.filter(function(e){return a===e.y})))/2:s._outerBounds.width-s._rowWidth(s._lineData.filter(function(e){return a===e.y}));var o=s._lineData.slice(0,n).filter(function(e){return a===e.y});return s._rowWidth(o)+s._padding*(o.length?i.sentence?2:1:0)+s._outerBounds.x+i.shapeWidth/2+r},y:function e(t,n){var i=s._lineData[n];return i.y+s._titleHeight+s._outerBounds.y+me(s._lineData.filter(function(e){return i.y===e.y}).map(function(e){return e.height}).concat(s._data.map(function(e,t){return s._fetchConfig("height",e,t)})))/2}};s._titleClass=new kA;s._titleConfig={};s._verticalAlign="middle";s._width=400;return s}nD(n,[{key:"_fetchConfig",value:function e(t,n,i){var a=this._shapeConfig[t]!==undefined?this._shapeConfig[t]:this._shapeConfig.labelConfig[t];if(!a&&t==="lineHeight")return this._fetchConfig("fontSize",n,i)*1.4;return typeof a==="function"?a(n,i):a}},{key:"_rowHeight",value:function e(t){return me(t.map(function(e){return e.height}).concat(t.map(function(e){return e.shapeHeight})))+this._padding}},{key:"_rowWidth",value:function e(i){var a=this;return O(i.map(function(e,t){var n=a._padding*(t===i.length-1?0:e.width?2:1);return e.shapeWidth+e.width+n}))}},{key:"render",value:function e(t){var c=this;if(this._select===void 0)this.select(Rl("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=Ox("g.d3plus-Legend",{parent:this._select});this._titleGroup=Ox("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=Ox("g.d3plus-Legend-shape",{parent:this._group});var f=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 a=a=this._titleConfig.lineHeight||this._titleClass.lineHeight();a=a?a():i*1.4;var r=hA().fontFamily(n).fontSize(i).lineHeight(a).width(this._width).height(this._height)(this._title);this._titleHeight=a+r.lines.length+this._padding;this._titleWidth=me(r.widths);f-=this._titleHeight}this._lineData=this._data.map(function(e,t){var n=c._label(e,t);var i=c._shape(e,t);var a=c._fetchConfig("r",e,t);var r={data:e,i:t,id:c._id(e,t),shape:i,shapeR:a,shapeWidth:i==="Circle"?a*2:c._fetchConfig("width",e,t),shapeHeight:i==="Circle"?a*2:c._fetchConfig("height",e,t),y:0};if(!n){r.sentence=false;r.words=[];r.height=0;r.width=0;return r}var o=c._fetchConfig("fontFamily",e,t),s=c._fetchConfig("lineHeight",e,t),l=c._fetchConfig("fontSize",e,t);var u=f-(c._data.length+1)*c._padding,h=c._width;r=Object.assign(r,hA().fontFamily(o).fontSize(l).lineHeight(s).width(h).height(u)(n));r.width=Math.ceil(me(r.lines.map(function(e){return DE(e,{"font-family":o,"font-size":l})})))+l*.75;r.height=Math.ceil(r.lines.length*(s+1));r.og={height:r.height,width:r.width};r.f=o;r.s=l;r.lh=s;return r});var o;var l=this._width-this._padding*2;o=this._rowWidth(this._lineData);if(this._direction==="column"||o>l){var u=1,h=[];var d=me(this._lineData.map(function(e){return e.words.length}));this._wrapLines=function(){var t=this;u++;if(u>d)return;var o=u===1?this._lineData.slice():this._lineData.filter(function(e){return e.width+e.shapeWidth+t._padding*(e.width?2:1)>l&&e.words.length>=u}).sort(function(e,t){return t.sentence.length-e.sentence.length});if(o.length&&f>o[0].height*u){var s=false;var e=function e(t){var n=o[t];var i=n.og.height*u,a=n.og.width*(1.5*(1/u));var r=hA().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(a).height(i)(n.sentence);if(!r.truncated){n.width=Math.ceil(me(r.lines.map(function(e){return DE(e,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=r.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;n<o.length;n++){var i=e(n);if(i==="break")break}if(!s)this._wrapRows()}else{h=[];return}};this._wrapRows=function(){h=[];var e=1,t=0;for(var n=0;n<this._lineData.length;n++){var i=this._lineData[n],a=i.width+this._padding*(i.width?2:1)+i.shapeWidth;if(O(h.map(function(e){return me(e,function(e){return me([e.height,e.shapeHeight])})}))>f){h=[];break}if(a>l){h=[];this._wrapLines();break}else if(t+a<l){t+=a}else if(this._direction!=="column"){t=a;e++}if(!h[e-1])h[e-1]=[];h[e-1].push(i);if(this._direction==="column"){t=0;e++}}};this._wrapRows();if(!h.length||O(h,this._rowHeight.bind(this))+this._padding>f){o=O(this._lineData.map(function(e){return e.shapeWidth+c._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(h.length&&O(h,this._rowHeight.bind(this))+this._padding<f){h.forEach(function(e,t){e.forEach(function(e){if(t){e.y=O(h.slice(0,t),c._rowHeight.bind(c))}})});o=me(h,this._rowWidth.bind(this))}}var g=me(this._lineData,function(e,t){return me([e.height,c._fetchConfig("height",e.data,t)])+e.y})+this._titleHeight,p=me([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=Px.bind(this)(this._shapeConfig,"legend"),_={id:function e(t){return t.id},label:function e(t){return t.label},lineHeight:function e(t){return t.lH}};var b=this._data.map(function(e,t){var n={__d3plus__:true,data:e,i:t,id:c._id(e,t),label:c._lineData[t].width?c._label(e,t):false,lH:c._fetchConfig("lineHeight",e,t),shape:c._shape(e,t)};return n});this._shapes=[];["Circle","Rect"].forEach(function(t){c._shapes.push((new FT[t]).parent(c).data(b.filter(function(e){return e.shape===t})).duration(c._duration).labelConfig({padding:0}).select(c._shapeGroup.node()).verticalAlign("top").config(Ch({},y,_)).render())});if(t)setTimeout(t,this._duration+100);return this}},{key:"active",value:function e(t){this._shapes.forEach(function(e){return e.active(t)});return this}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"direction",value:function e(t){return arguments.length?(this._direction=t,this):this._direction}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"hover",value:function e(t){this._shapes.forEach(function(e){return e.hover(t)});return this}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Dx(t),this):this._label}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Dx(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}},{key:"title",value:function e(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Ch(this._titleConfig,t),this):this._titleConfig}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=t,this):this._verticalAlign}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return n}(Tx);function cD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cD=function e(t){return typeof t}}else{cD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cD(e)}function fD(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function dD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function gD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function pD(e,t,n){if(t)gD(e.prototype,t);if(n)gD(e,n);return e}function vD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)mD(e,t)}function mD(e,t){mD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return mD(e,t)}function yD(a){var r=wD();return function e(){var t=xD(a),n;if(r){var i=xD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return _D(this,n)}}function _D(e,t){if(t&&(cD(t)==="object"||typeof t==="function")){return t}return bD(e)}function bD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function wD(){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(e){return false}}function xD(e){xD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return xD(e)}var kD=function(e){vD(n,e);var t=yD(n);function n(){var f;dD(this,n);f=t.call(this);f._axisClass=new uP;f._axisConfig={gridSize:0,shapeConfig:{labelConfig:{fontColor:"#222"}},titleConfig:{fontSize:12}};f._axisTest=new uP;f._align="middle";f._buckets=5;f._bucketAxis=false;f._bucketFormat=function(t,e,n,i){var a=f._axisConfig.tickFormat?f._axisConfig.tickFormat:VN;var r=n[e+1];var o=e?n[e-1]:false;var s=e===n.length-1;if(t===r||s){var l=s&&t<me(i)?"+":"";return"".concat(a(t)).concat(l)}else{var u=r?r/100:t/100;var h=u>=1||u<=-1?Math.round(u).toString().length-1:u.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var c=Math.pow(10,h);return o===t&&e===1?"".concat(a(je([t+c,i.find(function(e){return e>t&&e<r})]))," - ").concat(a(r)):"".concat(a(t)," - ").concat(a(me([r-c,i.reverse().find(function(e){return e>t&&e<r})])))}};f._centered=true;f._colorMax="#0C8040";f._colorMid="#f7f7f7";f._colorMin="#b22200";f._data=[];f._duration=600;f._height=200;f._labelClass=new kA;f._legendClass=new hD;f._legendConfig={shapeConfig:{labelConfig:{fontColor:"#222"},stroke:"#444",strokeWidth:1}};f._midpoint=0;f._orient="bottom";f._outerBounds={width:0,height:0,x:0,y:0};f._padding=5;f._rectClass=(new NM).parent(bD(f));f._rectConfig={stroke:"#444",strokeWidth:1};f._scale="linear";f._size=10;f._value=wh("value");f._width=400;return f}pD(n,[{key:"render",value:function e(t){var a=this;if(this._select===void 0)this.select(Rl("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",r=n?"width":"height",o=n?"x":"y",s=n?"y":"x";this._group=Ox("g.d3plus-ColorScale",{parent:this._select});var l=this._data.map(this._value).sort(function(e,t){return e-t});var u=this._domain||Fe(l);var h=u[0]<this._midpoint;var c=u[1]>this._midpoint;var f=h&&c;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(e){return lS(g,(e+1)/d)}).reverse()}if(this._scale==="jenks"){var m=this._data.map(this._value).filter(function(e){return e!==null&&typeof e==="number"});var y=je([g?g.length:d,m.length]);var _=[];if(this._buckets instanceof Array){v=this._buckets}else{if(f&&this._centered){var b=Math.floor(y/2);var w=y%2;var x=m.filter(function(e){return e<a._midpoint});var k=ze(x);var S=m.concat(this._midpoint).filter(function(e){return e>=a._midpoint});var C=ze(S);var E=k>C?1:0;var A=C>k?1:0;var R=JP(x,b+w*E);var M=JP(S,b+w*A);_=R.concat(M)}else{_=JP(m,y)}v=_.map(function(e){return e[0]})}var T=new Set(v);if(v.length!==T.size){p=Array.from(T)}if(!g){if(f){g=[this._colorMin,this._colorMid,this._colorMax];var B=v.slice(0,y).filter(function(e,t){return e<a._midpoint&&v[t+1]<=a._midpoint});var N=v.slice(0,y).filter(function(e,t){return e<=a._midpoint&&v[t+1]>a._midpoint});var P=v.slice(0,y).filter(function(e,t){return e>a._midpoint&&v[t+1]>a._midpoint});var D=B.map(function(e,t){return!t?g[0]:lS(g[0],t/B.length)});var O=N.map(function(){return g[1]});var z=P.map(function(e,t){return t===P.length-1?g[2]:lS(g[2],1-(t+1)/P.length)});g=D.concat(O).concat(z)}else{g=Le(0,d,1).map(function(e){return lS(a._colorMax,e/d)}).reverse()}}if(m.length<=y){g=g.slice(y-m.length)}g=[g[0]].concat(g);this._colorScale=na().domain(v).range(g)}else{var F=this._buckets instanceof Array?this._buckets:undefined;if(f&&!g){var L=Math.floor(d/2);var I=Le(0,L,1).map(function(e){return!e?a._colorMin:lS(a._colorMin,e/L)});var j=(d%2?[0]:[]).map(function(){return a._colorMid});var H=Le(0,L,1).map(function(e){return!e?a._colorMax:lS(a._colorMax,e/L)}).reverse();g=I.concat(j).concat(H);if(!F){var V=(g.length-1)/2;F=[u[0],this._midpoint,u[1]];F=Le(u[0],this._midpoint,-(u[0]-this._midpoint)/V).concat(Le(this._midpoint,u[1],(u[1]-this._midpoint)/V)).concat([u[1]])}}else{if(!g){if(this._scale==="buckets"||this._scale==="quantile"){g=Le(0,d,1).map(function(e){return lS(h?a._colorMin:a._colorMax,e/d)});if(c)g=g.reverse()}else{g=h?[this._colorMin,lS(this._colorMin,.8)]:[lS(this._colorMax,.8),this._colorMax]}}if(!F){if(this._scale==="quantile"){var G=1/(g.length-1);F=Le(0,1+G/2,G).map(function(e){return Ie(l,e)})}else if(f&&this._color&&this._centered){var U=(this._midpoint-u[0])/Math.floor(g.length/2);var W=(u[1]-this._midpoint)/Math.floor(g.length/2);var K=Le(u[0],this._midpoint,U);var q=Le(this._midpoint,u[1]+W/2,W);F=K.concat(q)}else{var Y=(u[1]-u[0])/(g.length-1);F=Le(u[0],u[1]+Y/2,Y)}}}if(this._scale==="buckets"||this._scale==="quantile"){v=F;g=[g[0]].concat(g)}else if(this._scale==="log"){var X=F.filter(function(e){return e<0});if(X.length){var $=X[0];var Z=X.map(function(e){return-Math.pow(Math.abs($),e/$)});X.forEach(function(e,t){F[F.indexOf(e)]=Z[t]})}var J=F.filter(function(e){return e>0});if(J.length){var Q=J[J.length-1];var ee=J.map(function(e){return Math.pow(Q,e/Q)});J.forEach(function(e,t){F[F.indexOf(e)]=ee[t]})}if(F.includes(0))F[F.indexOf(0)]=1}this._colorScale=(this._scale==="buckets"||this._scale==="quantile"?na:Bi)().domain(F).range(g)}if(this._colorScale.clamp)this._colorScale.clamp(true);var te=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var ne=eh().duration(this._duration);var ie={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:ne,update:{opacity:1}};var ae=Ox("g.d3plus-ColorScale-labels",Object.assign({condition:te},ie));var re=Ox("g.d3plus-ColorScale-Rect",Object.assign({condition:te},ie));var oe=Ox("g.d3plus-ColorScale-legend",Object.assign({condition:!te},ie));if(te){var se;var le={x:0,y:0};var ue=u.slice();if(this._bucketAxis){var he=ue[ue.length-1];var ce=ue[ue.length-2];var fe=he?he/10:ce/10;var de=fe>=1||fe<=-1?Math.round(fe).toString().length-1:fe.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var ge=Math.pow(10,de);ue[ue.length-1]=he+ge}var pe=Ch({domain:ue,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 ve=Ch({height:this["_".concat(i)]/2,width:this["_".concat(r)]/2},this._labelConfig||this._axisConfig.titleConfig);this._labelClass.config(ve);var me=[];if(n&&this._labelMin){var ye={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(ye["font-family"]instanceof Array)ye["font-family"]=ye["font-family"][0];var _e=DE(this._labelMin,ye);if(_e&&_e<this["_".concat(r)]/2){me.push(this._labelMin);_e+=this._padding;if(n)le.x+=_e;pe[r]-=_e}}if(n&&this._labelMax){var be={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(be["font-family"]instanceof Array)be["font-family"]=be["font-family"][0];var we=DE(this._labelMax,be);if(we&&we<this["_".concat(r)]/2){me.push(this._labelMax);we+=this._padding;if(!n)le.y+=we;pe[r]-=we}}this._axisTest.select(Ox("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(pe).duration(0).render();var xe=this._axisTest.outerBounds();this._outerBounds[r]=this["_".concat(r)]-this._padding*2;this._outerBounds[i]=xe[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 ke=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(pe.padding||this._axisClass.padding());var Se="translate(".concat(le.x+(n?0:ke),", ").concat(le.y+(n?ke:0),")");this._axisClass.select(Ox("g.d3plus-ColorScale-axis",Ch(ie,{condition:true,enter:{transform:Se},update:{transform:Se}})).node()).config(pe).align("start").render();var Ce=this._axisTest._getPosition.bind(this._axisTest);var Ee=this._axisTest._getRange();var Ae=this._group.selectAll("defs").data([0]);var Re=Ae.enter().append("defs");Re.append("linearGradient").attr("id","gradient-".concat(this._uuid));Ae=Re.merge(Ae);Ae.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 Me=Ae.select("linearGradient").selectAll("stop").data(g);var Te=this._colorScale.domain();var Be=Bi().domain(Ee).range(n?[0,100]:[100,0]);Me.enter().append("stop").merge(Me).attr("offset",function(e,t){return"".concat(t<=Te.length-1?Be(Ce(Te[t])):100,"%")}).attr("stop-color",String);var Ne=function e(t,n){var i=v[n+1]||ue[ue.length-1];return Math.abs(Ce(i)-Ce(t))};var Pe=Ch((se={duration:this._duration,fill:v?function(e){return a._colorScale(e)}:"url(#gradient-".concat(this._uuid,")")},fD(se,o,v?function(e,t){return Ce(e)+Ne(e,t)/2-(["left","right"].includes(a._orient)?Ne(e,t):0)}:Ee[0]+(Ee[1]-Ee[0])/2+le[o]),fD(se,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?xe[i]:0)+this._size/2+le[s]),fD(se,r,v?Ne:Ee[1]-Ee[0]),fD(se,i,this._size),se),this._rectConfig);this._rectClass.data(v||[0]).id(function(e,t){return t}).select(re.node()).config(Pe).render();ve.height=this._outerBounds[i];ve.width=this._outerBounds[r];this._labelClass.config(ve).data(me).select(ae.node()).x(function(e){return e===a._labelMax?Pe.x+Pe.width/2+a._padding:a._outerBounds.x}).y(function(e){return Pe.y-a._labelClass.fontSize()(e)/2}).text(function(e){return e}).rotate(n?0:this._orient==="right"?90:-90).render()}else{Ox("g.d3plus-ColorScale-axis",Object.assign({condition:te},ie));var De=v.reduce(function(e,t,n){var i=a._bucketFormat.bind(a)(t,n,v,l);e.push({color:g[n+1],id:i});return e},[]);var Oe=Ch({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:Ch({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(De).select(oe.node()).config(Oe).render();this._outerBounds=this._legendClass.outerBounds()}if(t)setTimeout(t,this._duration+100);return this}},{key:"axisConfig",value:function e(t){return arguments.length?(this._axisConfig=Ch(this._axisConfig,t),this):this._axisConfig}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"buckets",value:function e(t){return arguments.length?(this._buckets=t,this):this._buckets}},{key:"bucketAxis",value:function e(t){return arguments.length?(this._bucketAxis=t,this):this._bucketAxis}},{key:"bucketFormat",value:function e(t){return arguments.length?(this._bucketFormat=t,this):this._bucketFormat}},{key:"centered",value:function e(t){return arguments.length?(this._centered=t,this):this._centered}},{key:"color",value:function e(t){return arguments.length?(this._color=t,this):this._color}},{key:"colorMax",value:function e(t){return arguments.length?(this._colorMax=t,this):this._colorMax}},{key:"colorMid",value:function e(t){return arguments.length?(this._colorMid=t,this):this._colorMid}},{key:"colorMin",value:function e(t){return arguments.length?(this._colorMin=t,this):this._colorMin}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"domain",value:function e(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=t,this):this._labelConfig}},{key:"labelMin",value:function e(t){return arguments.length?(this._labelMin=t,this):this._labelMin}},{key:"labelMax",value:function e(t){return arguments.length?(this._labelMax=t,this):this._labelMax}},{key:"legendConfig",value:function e(t){return arguments.length?(this._legendConfig=Ch(this._legendConfig,t),this):this._legendConfig}},{key:"midpoint",value:function e(t){return arguments.length?(this._midpoint=t,this):this._midpoint}},{key:"orient",value:function e(t){return arguments.length?(this._orient=t,this):this._orient}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=Ch(this._rectConfig,t),this):this._rectConfig}},{key:"scale",value:function e(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"size",value:function e(t){return arguments.length?(this._size=t,this):this._size}},{key:"value",value:function e(t){return arguments.length?(this._value=typeof t==="function"?t:Dx(t),this):this._value}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return n}(Tx);function SD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){SD=function e(t){return typeof t}}else{SD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return SD(e)}function CD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ED(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function AD(e,t,n){if(t)ED(e.prototype,t);if(n)ED(e,n);return e}function RD(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){RD=Reflect.get}else{RD=function e(t,n,i){var a=MD(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return RD(e,t,n||e)}function MD(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=zD(e);if(e===null)break}return e}function TD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)BD(e,t)}function BD(e,t){BD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return BD(e,t)}function ND(a){var r=OD();return function e(){var t=zD(a),n;if(r){var i=zD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return PD(this,n)}}function PD(e,t){if(t&&(SD(t)==="object"||typeof t==="function")){return t}return DD(e)}function DD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function OD(){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(e){return false}}function zD(e){zD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return zD(e)}var FD=function(e){TD(m,e);var t=ND(m);function m(){var n;CD(this,m);n=t.call(this);n._barConfig=Object.assign({},n._barConfig,{"stroke-width":function e(){return n._buttonBehaviorCurrent==="buttons"?0:1}});n._brushing=true;n._brushFilter=function(){return!fl.button&&fl.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 e(t){return n._buttonBehaviorCurrent==="buttons"?{x:t.labelBounds.x,y:-5,width:t.labelBounds.width,height:n._buttonHeight}:t.labelBounds},fill:function e(){return n._buttonBehaviorCurrent==="buttons"?"#EEE":"#444"},height:function e(t){return n._buttonBehaviorCurrent==="buttons"?n._buttonHeight:t.tick?10:0},width:function e(t){return n._buttonBehaviorCurrent==="buttons"?n._ticksWidth/n._availableTicks.length:t.tick?n._domain.map(function(e){return GN(e).getTime()}).includes(t.id)?2:1:0},y:function e(t){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:t.y}});n._snapping=true;return n}AD(m,[{key:"_brushBrush",value:function e(){if(fl.sourceEvent&&fl.sourceEvent.offsetX&&fl.selection!==null&&(!this._brushing||this._snapping)){var t=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(t))}this._brushStyle();if(this._on.brush)this._on.brush(this._selection)}},{key:"_brushEnd",value:function e(){if(!fl.sourceEvent)return;var t=this._updateDomain();this._brushStyle();if(this._brushing||!this._snapping)this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(t));if(this._on.end)this._on.end(this._selection)}},{key:"_brushStart",value:function e(){if(fl.sourceEvent!==null&&(!this._brushing||this._snapping)){var t=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(t))}this._brushStyle();if(this._on.start)this._on.start()}},{key:"_brushStyle",value:function e(){var t=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[t]==="function"?this._shapeConfig[t]({tick:true}):this._shapeConfig[t]:this._tickSize;var i=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer");var a=this._brushGroup.selectAll(".selection").call(Eh,this._selectionConfig).attr("height",n);var r=this._brushGroup.selectAll(".handle").call(Eh,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;r.attr("y",o);i.attr("x",this._marginLeft).attr("width",this._ticksWidth);a.attr("y",o)}}},{key:"_updateDomain",value:function e(){var t=Bl(this._select.node())[0];var n=fl.selection&&this._brushing?fl.selection:[t,t];if(this._buttonBehaviorCurrent==="ticks")n=n.map(this._d3Scale.invert);n=n.map(Number);if(fl.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=fl.selection.map(function(e){return Math.abs(e-fl.sourceEvent.offsetX)});n=i[1]<=i[0]?[fl.selection[0],fl.sourceEvent.offsetX].sort(function(e,t){return e-t}):[fl.sourceEvent.offsetX,fl.selection[1]].sort(function(e,t){return e-t})}var a=this._buttonBehaviorCurrent==="ticks"?this._availableTicks.map(Number):this._d3Scale.range();if(this._buttonBehaviorCurrent==="ticks"){n[0]=GN(Bx(n[0],a));n[1]=GN(Bx(n[1],a))}else{n[0]=Bx(n[0],a);n[1]=Bx(n[1],a)}var r=+n[0]===+n[1];if(fl.type==="brush"||fl.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?r?n[0]:n:r?GN(this._availableTicks[a.indexOf(n[0])]):[GN(this._availableTicks[a.indexOf(n[0])]),GN(this._availableTicks[a.indexOf(n[1])])]}return n}},{key:"_updateBrushLimit",value:function e(t){var n=this._buttonBehaviorCurrent==="ticks"?t.map(GN).map(this._d3Scale):t;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 e(t){var s=this;var n=this._position,i=n.height,a=n.y;if(this._buttonBehavior!=="ticks"){var l=this._ticks?this._ticks.map(GN):this._domain.map(GN);var u=wo().domain(l).range([0,this._width]);l=this._ticks?l:u.ticks();if(!this._tickFormat)this._tickFormat=u.tickFormat(l.length-1,this._tickSpecifier);var h=0;l.forEach(function(e,t){var n=s._shapeConfig.labelConfig.fontFamily(e,t),i=s._shapeConfig.labelConfig.fontSize(e,t);var a=hA().fontFamily(n).fontSize(i).lineHeight(s._shapeConfig.lineHeight?s._shapeConfig.lineHeight(e,t):undefined);var r=a(u.tickFormat(l.length-1,s._tickSpecifier)(e));var o=r.lines.length?Math.ceil(me(r.lines.map(function(e){return DE(e,{"font-family":n,"font-size":i})})))+i/4:0;if(o%2)o++;if(h<o)h=o+2*s._buttonPadding});this._ticksWidth=h*l.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 r=wo().domain(this._domain.map(GN)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(GN):Array.from(Array(r[r.length-1]-r[0]+1),function(e,t){return r[0]+t}).map(GN);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 c=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:c-o]}if(this._ticks)this._domain=this._buttonBehaviorCurrent==="ticks"?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(GN);this._labels=this._ticks;RD(zD(m.prototype),"render",this).call(this,t);var f=this._outerBounds[a],d=this._d3Scale.range();var g=this._brush=VB().extent([[d[0],f],[d[d.length-1],f+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(e){return d[s._ticks.map(Number).indexOf(+e)]}).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=Ox("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 e(t){return arguments.length?(this._buttonPadding=t,this):this._buttonPadding}},{key:"brushing",value:function e(t){return arguments.length?(this._brushing=t,this):this._brushing}},{key:"brushFilter",value:function e(t){return arguments.length?(this._brushFilter=t,this):this._brushFilter}},{key:"buttonAlign",value:function e(t){return arguments.length?(this._buttonAlign=t,this):this._buttonAlign}},{key:"buttonBehavior",value:function e(t){return arguments.length?(this._buttonBehavior=t,this):this._buttonBehavior}},{key:"buttonHeight",value:function e(t){return arguments.length?(this._buttonHeight=t,this):this._buttonHeight}},{key:"handleConfig",value:function e(t){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,t),this):this._handleConfig}},{key:"handleSize",value:function e(t){return arguments.length?(this._handleSize=t,this):this._handleSize}},{key:"on",value:function e(t,n){return arguments.length===2?(this._on[t]=n,this):arguments.length?typeof t==="string"?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"selectionConfig",value:function e(t){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,t),this):this._selectionConfig}},{key:"selection",value:function e(t){return arguments.length?(this._selection=t,this):this._selection}},{key:"snapping",value:function e(t){return arguments.length?(this._snapping=t,this):this._snapping}}]);return m}(uP);
/**!
* @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 LD=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var ID=function(){var e=["Edge","Trident","Firefox"];for(var t=0;t<e.length;t+=1){if(LD&&navigator.userAgent.indexOf(e[t])>=0){return 1}}return 0}();function jD(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function HD(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},ID)}}}var VD=LD&&window.Promise;var GD=VD?jD:HD;function UD(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function WD(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function KD(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function qD(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=WD(e),n=t.overflow,i=t.overflowX,a=t.overflowY;if(/(auto|scroll|overlay)/.test(n+a+i)){return e}return qD(KD(e))}function YD(e){return e&&e.referenceNode?e.referenceNode:e}var XD=LD&&!!(window.MSInputMethodContext&&document.documentMode);var $D=LD&&/MSIE 10/.test(navigator.userAgent);function ZD(e){if(e===11){return XD}if(e===10){return $D}return XD||$D}function JD(e){if(!e){return document.documentElement}var t=ZD(10)?document.body:null;var n=e.offsetParent||null;while(n===t&&e.nextElementSibling){n=(e=e.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&WD(n,"position")==="static"){return JD(n)}return n}function QD(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||JD(e.firstElementChild)===e}function eO(e){if(e.parentNode!==null){return eO(e.parentNode)}return e}function tO(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?e:t;var a=n?t:e;var r=document.createRange();r.setStart(i,0);r.setEnd(a,0);var o=r.commonAncestorContainer;if(e!==o&&t!==o||i.contains(a)){if(QD(o)){return o}return JD(o)}var s=eO(e);if(s.host){return tO(s.host,t)}else{return tO(e,eO(t).host)}}function nO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=t==="top"?"scrollTop":"scrollLeft";var i=e.nodeName;if(i==="BODY"||i==="HTML"){var a=e.ownerDocument.documentElement;var r=e.ownerDocument.scrollingElement||a;return r[n]}return e[n]}function iO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=nO(t,"top");var a=nO(t,"left");var r=n?-1:1;e.top+=i*r;e.bottom+=i*r;e.left+=a*r;e.right+=a*r;return e}function aO(e,t){var n=t==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function rO(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ZD(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function oO(e){var t=e.body;var n=e.documentElement;var i=ZD(10)&&getComputedStyle(n);return{height:rO("Height",t,n,i),width:rO("Width",t,n,i)}}var sO=function e(t,n){if(!(t instanceof n)){throw new TypeError("Cannot call a class as a function")}};var lO=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}();var uO=function e(t,n,i){if(n in t){Object.defineProperty(t,n,{value:i,enumerable:true,configurable:true,writable:true})}else{t[n]=i}return t};var hO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};function cO(e){return hO({},e,{right:e.left+e.width,bottom:e.top+e.height})}function fO(e){var t={};try{if(ZD(10)){t=e.getBoundingClientRect();var n=nO(e,"top");var i=nO(e,"left");t.top+=n;t.left+=i;t.bottom+=n;t.right+=i}else{t=e.getBoundingClientRect()}}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top};var r=e.nodeName==="HTML"?oO(e.ownerDocument):{};var o=r.width||e.clientWidth||a.width;var s=r.height||e.clientHeight||a.height;var l=e.offsetWidth-o;var u=e.offsetHeight-s;if(l||u){var h=WD(e);l-=aO(h,"x");u-=aO(h,"y");a.width-=l;a.height-=u}return cO(a)}function dO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=ZD(10);var a=t.nodeName==="HTML";var r=fO(e);var o=fO(t);var s=qD(e);var l=WD(t);var u=parseFloat(l.borderTopWidth);var h=parseFloat(l.borderLeftWidth);if(n&&a){o.top=Math.max(o.top,0);o.left=Math.max(o.left,0)}var c=cO({top:r.top-o.top-u,left:r.left-o.left-h,width:r.width,height:r.height});c.marginTop=0;c.marginLeft=0;if(!i&&a){var f=parseFloat(l.marginTop);var d=parseFloat(l.marginLeft);c.top-=u-f;c.bottom-=u-f;c.left-=h-d;c.right-=h-d;c.marginTop=f;c.marginLeft=d}if(i&&!n?t.contains(s):t===s&&s.nodeName!=="BODY"){c=iO(c,t)}return c}function gO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=dO(e,n);var a=Math.max(n.clientWidth,window.innerWidth||0);var r=Math.max(n.clientHeight,window.innerHeight||0);var o=!t?nO(n):0;var s=!t?nO(n,"left"):0;var l={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:a,height:r};return cO(l)}function pO(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(WD(e,"position")==="fixed"){return true}var n=KD(e);if(!n){return false}return pO(n)}function vO(e){if(!e||!e.parentElement||ZD()){return document.documentElement}var t=e.parentElement;while(t&&WD(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function mO(e,t,n,i){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var r={top:0,left:0};var o=a?vO(e):tO(e,YD(t));if(i==="viewport"){r=gO(o,a)}else{var s=void 0;if(i==="scrollParent"){s=qD(KD(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=dO(s,o,a);if(s.nodeName==="HTML"&&!pO(o)){var u=oO(e.ownerDocument),h=u.height,c=u.width;r.top+=l.top-l.marginTop;r.bottom=h+l.top;r.left+=l.left-l.marginLeft;r.right=c+l.left}else{r=l}}n=n||0;var f=typeof n==="number";r.left+=f?n:n.left||0;r.top+=f?n:n.top||0;r.right-=f?n:n.right||0;r.bottom-=f?n:n.bottom||0;return r}function yO(e){var t=e.width,n=e.height;return t*n}function _O(e,t,i,n,a){var r=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var o=mO(i,n,r,a);var s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}};var l=Object.keys(s).map(function(e){return hO({key:e},s[e],{area:yO(s[e])})}).sort(function(e,t){return t.area-e.area});var u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight});var h=u.length>0?u[0].key:l[0].key;var c=e.split("-")[1];return h+(c?"-"+c:"")}function bO(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var a=i?vO(t):tO(t,YD(n));return dO(n,a,i)}function wO(e){var t=e.ownerDocument.defaultView;var n=t.getComputedStyle(e);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var r={width:e.offsetWidth+a,height:e.offsetHeight+i};return r}function xO(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function kO(e,t,n){n=n.split("-")[0];var i=wO(e);var a={width:i.width,height:i.height};var r=["right","left"].indexOf(n)!==-1;var o=r?"top":"left";var s=r?"left":"top";var l=r?"height":"width";var u=!r?"height":"width";a[o]=t[o]+t[l]/2-i[l]/2;if(n===s){a[s]=t[s]-i[u]}else{a[s]=t[xO(s)]}return a}function SO(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function CO(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=SO(e,function(e){return e[t]===n});return e.indexOf(i)}function EO(e,n,t){var i=t===undefined?e:e.slice(0,CO(e,"name",t));i.forEach(function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var t=e["function"]||e.fn;if(e.enabled&&UD(t)){n.offsets.popper=cO(n.offsets.popper);n.offsets.reference=cO(n.offsets.reference);n=t(n,e)}});return n}function AO(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=bO(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=_O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=kO(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=EO(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function RO(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function MO(e){var t=[false,"ms","Webkit","Moz","O"];var n=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0;i<t.length;i++){var a=t[i];var r=a?""+a+n:e;if(typeof document.body.style[r]!=="undefined"){return r}}return null}function TO(){this.state.isDestroyed=true;if(RO(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[MO("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function BO(e){var t=e.ownerDocument;return t?t.defaultView:window}function NO(e,t,n,i){var a=e.nodeName==="BODY";var r=a?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:true});if(!a){NO(qD(r.parentNode),t,n,i)}i.push(r)}function PO(e,t,n,i){n.updateBound=i;BO(e).addEventListener("resize",n.updateBound,{passive:true});var a=qD(e);NO(a,"scroll",n.updateBound,n.scrollParents);n.scrollElement=a;n.eventsEnabled=true;return n}function DO(){if(!this.state.eventsEnabled){this.state=PO(this.reference,this.options,this.state,this.scheduleUpdate)}}function OO(e,t){BO(e).removeEventListener("resize",t.updateBound);t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)});t.updateBound=null;t.scrollParents=[];t.scrollElement=null;t.eventsEnabled=false;return t}function zO(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=OO(this.reference,this.state)}}function FO(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function LO(n,i){Object.keys(i).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&FO(i[e])){t="px"}n.style[e]=i[e]+t})}function IO(n,i){Object.keys(i).forEach(function(e){var t=i[e];if(t!==false){n.setAttribute(e,i[e])}else{n.removeAttribute(e)}})}function jO(e){LO(e.instance.popper,e.styles);IO(e.instance.popper,e.attributes);if(e.arrowElement&&Object.keys(e.arrowStyles).length){LO(e.arrowElement,e.arrowStyles)}return e}function HO(e,t,n,i,a){var r=bO(a,t,e,n.positionFixed);var o=_O(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);t.setAttribute("x-placement",o);LO(t,{position:n.positionFixed?"fixed":"absolute"});return n}function VO(e,t){var n=e.offsets,i=n.popper,a=n.reference;var r=Math.round,o=Math.floor;var s=function e(t){return t};var l=r(a.width);var u=r(i.width);var h=["left","right"].indexOf(e.placement)!==-1;var c=e.placement.indexOf("-")!==-1;var f=l%2===u%2;var d=l%2===1&&u%2===1;var g=!t?s:h||c||f?r:o;var p=!t?s:r;return{left:g(d&&!c&&t?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:g(i.right)}}var GO=LD&&/Firefox/i.test(navigator.userAgent);function UO(e,t){var n=t.x,i=t.y;var a=e.offsets.popper;var r=SO(e.instance.modifiers,function(e){return e.name==="applyStyle"}).gpuAcceleration;if(r!==undefined){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var o=r!==undefined?r:t.gpuAcceleration;var s=JD(e.instance.popper);var l=fO(s);var u={position:a.position};var h=VO(e,window.devicePixelRatio<2||!GO);var c=n==="bottom"?"top":"bottom";var f=i==="right"?"left":"right";var d=MO("transform");var g=void 0,p=void 0;if(c==="bottom"){if(s.nodeName==="HTML"){p=-s.clientHeight+h.bottom}else{p=-l.height+h.bottom}}else{p=h.top}if(f==="right"){if(s.nodeName==="HTML"){g=-s.clientWidth+h.right}else{g=-l.width+h.right}}else{g=h.left}if(o&&d){u[d]="translate3d("+g+"px, "+p+"px, 0)";u[c]=0;u[f]=0;u.willChange="transform"}else{var v=c==="bottom"?-1:1;var m=f==="right"?-1:1;u[c]=p*v;u[f]=g*m;u.willChange=c+", "+f}var y={"x-placement":e.placement};e.attributes=hO({},y,e.attributes);e.styles=hO({},u,e.styles);e.arrowStyles=hO({},e.offsets.arrow,e.arrowStyles);return e}function WO(e,n,t){var i=SO(e,function(e){var t=e.name;return t===n});var a=!!i&&e.some(function(e){return e.name===t&&e.enabled&&e.order<i.order});if(!a){var r="`"+n+"`";var o="`"+t+"`";console.warn(o+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return a}function KO(e,t){var n;if(!WO(e.instance.modifiers,"arrow","keepTogether")){return e}var i=t.element;if(typeof i==="string"){i=e.instance.popper.querySelector(i);if(!i){return e}}else{if(!e.instance.popper.contains(i)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return e}}var a=e.placement.split("-")[0];var r=e.offsets,o=r.popper,s=r.reference;var l=["left","right"].indexOf(a)!==-1;var u=l?"height":"width";var h=l?"Top":"Left";var c=h.toLowerCase();var f=l?"left":"top";var d=l?"bottom":"right";var g=wO(i)[u];if(s[d]-g<o[c]){e.offsets.popper[c]-=o[c]-(s[d]-g)}if(s[c]+g>o[d]){e.offsets.popper[c]+=s[c]+g-o[d]}e.offsets.popper=cO(e.offsets.popper);var p=s[c]+s[u]/2-g/2;var v=WD(e.instance.popper);var m=parseFloat(v["margin"+h]);var y=parseFloat(v["border"+h+"Width"]);var _=p-e.offsets.popper[c]-m-y;_=Math.max(Math.min(o[u]-g,_),0);e.arrowElement=i;e.offsets.arrow=(n={},uO(n,c,Math.round(_)),uO(n,f,""),n);return e}function qO(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var YO=["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 XO=YO.slice(3);function $O(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=XO.indexOf(e);var i=XO.slice(n+1).concat(XO.slice(0,n));return t?i.reverse():i}var ZO={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function JO(p,v){if(RO(p.instance.modifiers,"inner")){return p}if(p.flipped&&p.placement===p.originalPlacement){return p}var m=mO(p.instance.popper,p.instance.reference,v.padding,v.boundariesElement,p.positionFixed);var y=p.placement.split("-")[0];var _=xO(y);var b=p.placement.split("-")[1]||"";var w=[];switch(v.behavior){case ZO.FLIP:w=[y,_];break;case ZO.CLOCKWISE:w=$O(y);break;case ZO.COUNTERCLOCKWISE:w=$O(y,true);break;default:w=v.behavior}w.forEach(function(e,t){if(y!==e||w.length===t+1){return p}y=p.placement.split("-")[0];_=xO(y);var n=p.offsets.popper;var i=p.offsets.reference;var a=Math.floor;var r=y==="left"&&a(n.right)>a(i.left)||y==="right"&&a(n.left)<a(i.right)||y==="top"&&a(n.bottom)>a(i.top)||y==="bottom"&&a(n.top)<a(i.bottom);var o=a(n.left)<a(m.left);var s=a(n.right)>a(m.right);var l=a(n.top)<a(m.top);var u=a(n.bottom)>a(m.bottom);var h=y==="left"&&o||y==="right"&&s||y==="top"&&l||y==="bottom"&&u;var c=["top","bottom"].indexOf(y)!==-1;var f=!!v.flipVariations&&(c&&b==="start"&&o||c&&b==="end"&&s||!c&&b==="start"&&l||!c&&b==="end"&&u);var d=!!v.flipVariationsByContent&&(c&&b==="start"&&s||c&&b==="end"&&o||!c&&b==="start"&&u||!c&&b==="end"&&l);var g=f||d;if(r||h||g){p.flipped=true;if(r||h){y=w[t+1]}if(g){b=qO(b)}p.placement=y+(b?"-"+b:"");p.offsets.popper=hO({},p.offsets.popper,kO(p.instance.popper,p.offsets.reference,p.placement));p=EO(p.instance.modifiers,p,"flip")}});return p}function QO(e){var t=e.offsets,n=t.popper,i=t.reference;var a=e.placement.split("-")[0];var r=Math.floor;var o=["top","bottom"].indexOf(a)!==-1;var s=o?"right":"bottom";var l=o?"left":"top";var u=o?"width":"height";if(n[s]<r(i[l])){e.offsets.popper[l]=r(i[l])-n[u]}if(n[l]>r(i[s])){e.offsets.popper[l]=r(i[s])}return e}function ez(e,t,n,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var r=+a[1];var o=a[2];if(!r){return e}if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=i}var l=cO(s);return l[t]/100*r}else if(o==="vh"||o==="vw"){var u=void 0;if(o==="vh"){u=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{u=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return u/100*r}else{return r}}function tz(e,a,r,t){var o=[0,0];var s=["right","left"].indexOf(t)!==-1;var n=e.split(/(\+|\-)/).map(function(e){return e.trim()});var i=n.indexOf(SO(n,function(e){return e.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 l=/\s*,\s*|\s+/;var u=i!==-1?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];u=u.map(function(e,t){var n=(t===1?!s:s)?"height":"width";var i=false;return e.reduce(function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;i=true;return e}else if(i){e[e.length-1]+=t;i=false;return e}else{return e.concat(t)}},[]).map(function(e){return ez(e,n,a,r)})});u.forEach(function(n,i){n.forEach(function(e,t){if(FO(e)){o[i]+=e*(n[t-1]==="-"?-1:1)}})});return o}function nz(e,t){var n=t.offset;var i=e.placement,a=e.offsets,r=a.popper,o=a.reference;var s=i.split("-")[0];var l=void 0;if(FO(+n)){l=[+n,0]}else{l=tz(n,r,o,s)}if(s==="left"){r.top+=l[0];r.left-=l[1]}else if(s==="right"){r.top+=l[0];r.left+=l[1]}else if(s==="top"){r.left+=l[0];r.top-=l[1]}else if(s==="bottom"){r.left+=l[0];r.top+=l[1]}e.popper=r;return e}function iz(e,a){var t=a.boundariesElement||JD(e.instance.popper);if(e.instance.reference===t){t=JD(t)}var n=MO("transform");var i=e.instance.popper.style;var r=i.top,o=i.left,s=i[n];i.top="";i.left="";i[n]="";var l=mO(e.instance.popper,e.instance.reference,a.padding,t,e.positionFixed);i.top=r;i.left=o;i[n]=s;a.boundaries=l;var u=a.priority;var h=e.offsets.popper;var c={primary:function e(t){var n=h[t];if(h[t]<l[t]&&!a.escapeWithReference){n=Math.max(h[t],l[t])}return uO({},t,n)},secondary:function e(t){var n=t==="right"?"left":"top";var i=h[n];if(h[t]>l[t]&&!a.escapeWithReference){i=Math.min(h[n],l[t]-(t==="right"?h.width:h.height))}return uO({},n,i)}};u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";h=hO({},h,c[t](e))});e.offsets.popper=h;return e}function az(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var a=e.offsets,r=a.reference,o=a.popper;var s=["bottom","top"].indexOf(n)!==-1;var l=s?"left":"top";var u=s?"width":"height";var h={start:uO({},l,r[l]),end:uO({},l,r[l]+r[u]-o[u])};e.offsets.popper=hO({},o,h[i])}return e}function rz(e){if(!WO(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=SO(e.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===true){return e}e.hide=true;e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===false){return e}e.hide=false;e.attributes["x-out-of-boundaries"]=false}return e}function oz(e){var t=e.placement;var n=t.split("-")[0];var i=e.offsets,a=i.popper,r=i.reference;var o=["left","right"].indexOf(n)!==-1;var s=["top","left"].indexOf(n)===-1;a[o?"left":"top"]=r[n]-(s?a[o?"width":"height"]:0);e.placement=xO(t);e.offsets.popper=cO(a);return e}var sz={shift:{order:100,enabled:true,fn:az},offset:{order:200,enabled:true,fn:nz,offset:0},preventOverflow:{order:300,enabled:true,fn:iz,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:QO},arrow:{order:500,enabled:true,fn:KO,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:JO,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:oz},hide:{order:800,enabled:true,fn:rz},computeStyle:{order:850,enabled:true,fn:UO,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:jO,onLoad:HO,gpuAcceleration:undefined}};var lz={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function e(){},onUpdate:function e(){},modifiers:sz};var uz=function(){function r(e,t){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};sO(this,r);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=GD(this.update.bind(this));this.options=hO({},r.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(hO({},r.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=hO({},r.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(e){return hO({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order});this.modifiers.forEach(function(e){if(e.enabled&&UD(e.onLoad)){e.onLoad(n.reference,n.popper,n.options,e,n.state)}});this.update();var a=this.options.eventsEnabled;if(a){this.enableEventListeners()}this.state.eventsEnabled=a}lO(r,[{key:"update",value:function e(){return AO.call(this)}},{key:"destroy",value:function e(){return TO.call(this)}},{key:"enableEventListeners",value:function e(){return DO.call(this)}},{key:"disableEventListeners",value:function e(){return zO.call(this)}}]);return r}();uz.Utils=(typeof window!=="undefined"?window:global).PopperUtils;uz.placements=YO;uz.Defaults=lz;function hz(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){hz=function e(t){return typeof t}}else{hz=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return hz(e)}function cz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function fz(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function dz(e,t,n){if(t)fz(e.prototype,t);if(n)fz(e,n);return e}function gz(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)pz(e,t)}function pz(e,t){pz=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return pz(e,t)}function vz(a){var r=_z();return function e(){var t=bz(a),n;if(r){var i=bz(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return mz(this,n)}}function mz(e,t){if(t&&(hz(t)==="object"||typeof t==="function")){return t}return yz(e)}function yz(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _z(){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(e){return false}}function bz(e){bz=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return bz(e)}var wz=function(e){gz(n,e);var t=vz(n);function n(){var e;cz(this,n);e=t.call(this);e._arrow=wh("arrow","");e._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"};e._background=Dx("rgba(255, 255, 255, 1)");e._body=wh("body","");e._bodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._border=Dx("1px solid rgba(0, 0, 0, 0.1)");e._borderRadius=Dx("2px");e._className="d3plus-tooltip";e._data=[];e._footer=wh("footer","");e._footerStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._height=Dx("auto");e._id=function(e,t){return"".concat(t)};e._offset=Dx(5);e._padding=Dx("5px");e._pointerEvents=Dx("auto");e._popperClasses={};e._position=function(e){return[e.x,e.y]};e._prefix=Ix();e._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"};e._tbody=[];e._tbodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"};e._thead=[];e._theadStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"};e._title=wh("title","");e._titleStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","font-weight":"600"};e._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"};e._tdStyle={};e._width=Dx("auto");return e}dz(n,[{key:"render",value:function e(t){var u=this;var h=this;var n=Rl("body").selectAll(".".concat(this._className)).data(this._data,this._id);var i=n.enter().append("div").attr("class",this._className);var r=n.merge(i);function a(a){i.append("div").attr("class","d3plus-tooltip-".concat(a)).attr("id",function(e,t){return"d3plus-tooltip-".concat(a,"-").concat(e?h._id(e,t):"")});var e=r.select(".d3plus-tooltip-".concat(a)).html(function(e,t){return h["_".concat(a)](e,t)}).style("display",function(e,t){var n=h["_".concat(a)](e,t);var i=n!==false&&n!==undefined&&n!==null;return i?"block":"none"});jx(e,h["_".concat(a,"Style")])}function o(e){if(typeof e==="function"){var t=Rl(this.parentNode.parentNode).datum();return e(t,h._data.indexOf(t))}else return e}function s(e){e.style("background",h._background).style("".concat(h._prefix,"border-radius"),h._borderRadius).style("pointer-events",h._pointerEvents).style("padding",h._padding).style("width",h._width).style("height",h._height).style("border",function(e,t){var n=Rl(this).style("border");return n!=="0px none rgb(0, 0, 0)"?n:h._border(e,t)})}a("title");a("body");var l=i.append("table").attr("class","d3plus-tooltip-table");var c=r.select(".d3plus-tooltip-table");jx(c,this._tableStyle);l.append("thead").attr("class","d3plus-tooltip-thead");var f=r.select(".d3plus-tooltip-thead");jx(f,this._theadStyle);var d=f.selectAll("th").data(this._thead);d.enter().append("th").merge(d).html(o);d.exit().remove();l.append("tbody").attr("class","d3plus-tooltip-tbody");var g=r.select(".d3plus-tooltip-tbody");jx(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);jx(m,this._trStyle);var y=m.selectAll("td").data(function(e){return e});y.enter().append("td").merge(y).html(o);jx(y,this._tdStyle);a("footer");a("arrow");i.attr("id",function(e,t){return"d3plus-tooltip-".concat(e?u._id(e,t):"")}).call(s).each(function(e,t){var n=h._id(e,t);var i=document.getElementById("d3plus-tooltip-".concat(n));var a=document.getElementById("d3plus-tooltip-arrow-".concat(n));var r=a.offsetHeight;var o=a.getBoundingClientRect().height/2;a.style.bottom="-".concat(r/2,"px");var s=h._position(e,t);var l=Array.isArray(s)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function e(){return{top:s[1],right:s[0],bottom:s[1],left:s[0],width:0,height:0}}}:s;u._popperClasses[n]=new uz(l,i,{placement:"top",placements:["top","bottom","left","right"],modifiers:{arrow:{element:a},offset:{offset:"0,".concat(h._offset(e,t)+o)},preventOverflow:{boundariesElement:"scrollParent"},flip:{behavior:"flip",boundariesElement:"viewport"}},onUpdate:function e(t){var n=t.arrowElement,i=t.flipped;if(i){n.style.transform="rotate(225deg)";n.style.top="-".concat(r/2,"px")}else{n.style.transform="rotate(45deg)";n.style.bottom="-".concat(r/2,"px")}},removeOnDestroy:true})});r.each(function(e,t){var n=h._id(e,t);var i=h._position(e,t);var a=u._popperClasses[n];if(a){var r=Array.isArray(i)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function e(){return{top:i[1],right:i[0],bottom:i[1],left:i[0],width:0,height:0}}}:i;a.reference=r;a.scheduleUpdate()}}).call(s);n.exit().each(function(e,t){var n=h._id(e,t);var i=u._popperClasses[n];if(i){i.destroy();delete u._popperClasses[n]}}).remove();if(t)setTimeout(t,100);return this}},{key:"arrow",value:function e(t){return arguments.length?(this._arrow=typeof t==="function"?t:Dx(t),this):this._arrow}},{key:"arrowStyle",value:function e(t){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,t),this):this._arrowStyle}},{key:"background",value:function e(t){return arguments.length?(this._background=typeof t==="function"?t:Dx(t),this):this._background}},{key:"body",value:function e(t){return arguments.length?(this._body=typeof t==="function"?t:Dx(t),this):this._body}},{key:"bodyStyle",value:function e(t){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,t),this):this._bodyStyle}},{key:"border",value:function e(t){return arguments.length?(this._border=typeof t==="function"?t:Dx(t),this):this._border}},{key:"borderRadius",value:function e(t){return arguments.length?(this._borderRadius=typeof t==="function"?t:Dx(t),this):this._borderRadius}},{key:"className",value:function e(t){return arguments.length?(this._className=t,this):this._className}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"footer",value:function e(t){return arguments.length?(this._footer=typeof t==="function"?t:Dx(t),this):this._footer}},{key:"footerStyle",value:function e(t){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,t),this):this._footerStyle}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Dx(t),this):this._height}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Dx(t),this):this._id}},{key:"offset",value:function e(t){return arguments.length?(this._offset=typeof t==="function"?t:Dx(t),this):this._offset}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Dx(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Dx(t),this):this._pointerEvents}},{key:"position",value:function e(t){return arguments.length?(this._position=typeof t==="string"?Dx(Rl(t).node()||[0,0]):typeof t==="function"?t:Dx(t),this):this._position}},{key:"tableStyle",value:function e(t){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,t),this):this._tableStyle}},{key:"tbody",value:function e(t){return arguments.length?(this._tbody=t,this):this._tbody}},{key:"tbodyStyle",value:function e(t){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,t),this):this._tbodyStyle}},{key:"thead",value:function e(t){return arguments.length?(this._thead=t,this):this._thead}},{key:"theadStyle",value:function e(t){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,t),this):this._theadStyle}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Dx(t),this):this._title}},{key:"titleStyle",value:function e(t){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,t),this):this._titleStyle}},{key:"trStyle",value:function e(t){return arguments.length?(this._trStyle=Object.assign(this._trStyle,t),this):this._trStyle}},{key:"tdStyle",value:function e(t){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,t),this):this._tdStyle}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Dx(t),this):this._width}}]);return n}(Tx);function xz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function kz(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function Sz(e,t,n){if(t)kz(e.prototype,t);if(n)kz(e,n);return e}var Cz=function(){function e(){xz(this,e);this._isVisible=false}Sz(e,[{key:"exit",value:function e(t,n){t.transition().duration(n).style("opacity",0).transition().remove();this._isVisible=false}},{key:"hide",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.duration,i=n===void 0?600:n,a=t.callback;this.mask.call(this.exit.bind(this),i);this.elem.call(this.exit.bind(this),i);if(a)setTimeout(a,i+100);this._isVisible=false;return this}},{key:"render",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.callback,i=t.container,a=i===void 0?"body":i,r=t.duration,o=r===void 0?600:r,s=t.html,l=s===void 0?"Please Wait":s,u=t.mask,h=u===void 0?"rgba(0, 0, 0, 0.05)":u,c=t.style,f=c===void 0?{}:c;var d=Rl(a);this.mask=d.selectAll("div.d3plus-Mask").data(h?[h]:[]);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);jx(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([l]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);jx(this.elem,f);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return e}();function Ez(){var e=this._history.length;var t=Ox("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(e?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(t).config(this._backConfig).render();this._margin.top+=e?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function Az(){var i=this;var e=this._data;var t=this._colorScalePosition||"bottom";var n=["top","bottom"].includes(t);var a=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r=this._width-(this._margin.left+this._margin.right+a.left+a.right);var o=n?je([this._colorScaleMaxSize,r]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top);var l=!n?je([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var u={opacity:this._colorScalePosition?1:0,transform:"translate(".concat(n?this._margin.left+a.left+(r-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+a.top+(s-l)/2,")")};var h=this._colorScale&&e&&e.length>1;var c=Ox("g.d3plus-viz-colorScale",{condition:h&&!this._colorScaleConfig.select,enter:u,parent:this._select,transition:this._transition,update:u}).node();if(h){var f=e.filter(function(e,t){var n=i._colorScale(e,t);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[t]||"bottom").duration(this._duration).data(f).height(l).locale(this._locale).orient(t).select(c).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[t]+=d.height+this._legendClass.padding()*2;else this._margin[t]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}var Rz=DN(function(t,e){(function(e){{t.exports=e()}})(function(){return function r(o,s,l){function u(n,e){if(!s[n]){if(!o[n]){var t=typeof ON=="function"&&ON;if(!e&&t)return t(n,!0);if(h)return h(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var a=s[n]={exports:{}};o[n][0].call(a.exports,function(e){var t=o[n][1][e];return u(t?t:e)},a,a.exports,r,o,s,l)}return s[n].exports}var h=typeof ON=="function"&&ON;for(var e=0;e<l.length;e++){u(l[e])}return u}({1:[function(e,O,z){(function(D){(function(e){var t=_typeof2(z)=="object"&&z&&!z.nodeType&&z;var n=_typeof2(O)=="object"&&O&&!O.nodeType&&O;var i=_typeof2(D)=="object"&&D;if(i.global===i||i.window===i||i.self===i){e=i}var a,m=2147483647,y=36,_=1,b=26,r=38,o=700,w=72,x=128,k="-",s=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=y-_,S=Math.floor,C=String.fromCharCode,f;function E(e){throw new RangeError(h[e])}function d(e,t){var n=e.length;var i=[];while(n--){i[n]=t(e[n])}return i}function g(e,t){var n=e.split("@");var i="";if(n.length>1){i=n[0]+"@";e=n[1]}e=e.replace(u,".");var a=e.split(".");var r=d(a,t).join(".");return i+r}function A(e){var t=[],n=0,i=e.length,a,r;while(n<i){a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){r=e.charCodeAt(n++);if((r&64512)==56320){t.push(((a&1023)<<10)+(r&1023)+65536)}else{t.push(a);n--}}else{t.push(a)}}return t}function v(e){return d(e,function(e){var t="";if(e>65535){e-=65536;t+=C(e>>>10&1023|55296);e=56320|e&1023}t+=C(e);return t}).join("")}function R(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return y}function M(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function T(e,t,n){var i=0;e=n?S(e/o):e>>1;e+=S(e/t);for(;e>c*b>>1;i+=y){e=S(e/c)}return S(i+(c+1)*e/(e+r))}function p(e){var t=[],n=e.length,i,a=0,r=x,o=w,s,l,u,h,c,f,d,g,p;s=e.lastIndexOf(k);if(s<0){s=0}for(l=0;l<s;++l){if(e.charCodeAt(l)>=128){E("not-basic")}t.push(e.charCodeAt(l))}for(u=s>0?s+1:0;u<n;){for(h=a,c=1,f=y;;f+=y){if(u>=n){E("invalid-input")}d=R(e.charCodeAt(u++));if(d>=y||d>S((m-a)/c)){E("overflow")}a+=d*c;g=f<=o?_:f>=o+b?b:f-o;if(d<g){break}p=y-g;if(c>S(m/p)){E("overflow")}c*=p}i=t.length+1;o=T(a-h,i,h==0);if(S(a/i)>m-r){E("overflow")}r+=S(a/i);a%=i;t.splice(a++,0,r)}return v(t)}function B(e){var t,n,i,a,r,o,s,l,u,h,c,f=[],d,g,p,v;e=A(e);d=e.length;t=x;n=0;r=w;for(o=0;o<d;++o){c=e[o];if(c<128){f.push(C(c))}}i=a=f.length;if(a){f.push(k)}while(i<d){for(s=m,o=0;o<d;++o){c=e[o];if(c>=t&&c<s){s=c}}g=i+1;if(s-t>S((m-n)/g)){E("overflow")}n+=(s-t)*g;t=s;for(o=0;o<d;++o){c=e[o];if(c<t&&++n>m){E("overflow")}if(c==t){for(l=n,u=y;;u+=y){h=u<=r?_:u>=r+b?b:u-r;if(l<h){break}v=l-h;p=y-h;f.push(C(M(h+v%p,0)));l=S(v/p)}f.push(C(M(l,0)));r=T(n,g,i==a);n=0;++i}}++n;++t}return f.join("")}function N(e){return g(e,function(e){return s.test(e)?p(e.slice(4).toLowerCase()):e})}function P(e){return g(e,function(e){return l.test(e)?"xn--"+B(e):e})}a={version:"1.3.2",ucs2:{decode:A,encode:v},decode:p,encode:B,toASCII:P,toUnicode:N};if(t&&n){if(O.exports==t){n.exports=a}else{for(f in a){a.hasOwnProperty(f)&&(t[f]=a[f])}}}else{e.punycode=a}})(this)}).call(this,typeof PN!=="undefined"?PN:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,t,n){var i=e("./log");function u(e,t,n){if(e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)){e.defaultView.scrollTo(t,n)}}function a(t,e){try{if(e){e.width=t.width;e.height=t.height;e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0)}}catch(e){i("Unable to copy canvas content from",t,e)}}function h(e,t){var n=e.nodeType===3?document.createTextNode(e.nodeValue):e.cloneNode(false);var i=e.firstChild;while(i){if(t===true||i.nodeType!==1||i.nodeName!=="SCRIPT"){n.appendChild(h(i,t))}i=i.nextSibling}if(e.nodeType===1){n._scrollTop=e.scrollTop;n._scrollLeft=e.scrollLeft;if(e.nodeName==="CANVAS"){a(e,n)}else if(e.nodeName==="TEXTAREA"||e.nodeName==="SELECT"){n.value=e.value}}return n}function c(e){if(e.nodeType===1){e.scrollTop=e._scrollTop;e.scrollLeft=e._scrollLeft;var t=e.firstChild;while(t){c(t);t=t.nextSibling}}}t.exports=function(e,t,n,i,a,r,o){var s=h(e.documentElement,a.javascriptEnabled);var l=t.createElement("iframe");l.className="html2canvas-container";l.style.visibility="hidden";l.style.position="fixed";l.style.left="-10000px";l.style.top="0px";l.style.border="0";l.width=n;l.height=i;l.scrolling="no";t.body.appendChild(l);return new Promise(function(t){var n=l.contentWindow.document;l.contentWindow.onload=l.onload=function(){var e=setInterval(function(){if(n.body.childNodes.length>0){c(n.documentElement);clearInterval(e);if(a.type==="view"){l.contentWindow.scrollTo(r,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.contentWindow.scrollY!==o||l.contentWindow.scrollX!==r)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-r+"px";n.documentElement.style.position="absolute"}}t(l)}},50)};n.open();n.write("<!DOCTYPE html><html></html>");u(e,r,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(e,t,n){function i(e){this.r=0;this.g=0;this.b=0;this.a=null;var t=this.fromArray(e)||this.namedColor(e)||this.rgb(e)||this.rgba(e)||this.hex6(e)||this.hex3(e)}i.prototype.darken=function(e){var t=1-e;return new i([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),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(e){if(Array.isArray(e)){this.r=Math.min(e[0],255);this.g=Math.min(e[1],255);this.b=Math.min(e[2],255);if(e.length>3){this.a=e[3]}}return Array.isArray(e)};var a=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(e){var t=null;if((t=e.match(a))!==null){this.r=parseInt(t[1][0]+t[1][0],16);this.g=parseInt(t[1][1]+t[1][1],16);this.b=parseInt(t[1][2]+t[1][2],16)}return t!==null};var r=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(e){var t=null;if((t=e.match(r))!==null){this.r=parseInt(t[1].substring(0,2),16);this.g=parseInt(t[1].substring(2,4),16);this.b=parseInt(t[1].substring(4,6),16)}return t!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(e){var t=null;if((t=e.match(o))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3])}return t!==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(e){var t=null;if((t=e.match(s))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3]);this.a=Number(t[4])}return t!==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(e){e=e.toLowerCase();var t=l[e];if(t){this.r=t[0];this.g=t[1];this.b=t[2]}else if(e==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!t};i.prototype.isColor=true;var l={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]};t.exports=i},{}],4:[function(e,t,n){var d=e("./support");var o=e("./renderers/canvas");var g=e("./imageloader");var p=e("./nodeparser");var i=e("./nodecontainer");var v=e("./log");var a=e("./utils");var r=e("./clone");var s=e("./proxy").loadUrlDocument;var m=a.getBounds;var c="data-html2canvas-node";var l=0;function u(e,t){var n=l++;t=t||{};if(t.logging){v.options.logging=true;v.options.start=Date.now()}t.async=typeof t.async==="undefined"?true:t.async;t.allowTaint=typeof t.allowTaint==="undefined"?false:t.allowTaint;t.removeContainer=typeof t.removeContainer==="undefined"?true:t.removeContainer;t.javascriptEnabled=typeof t.javascriptEnabled==="undefined"?false:t.javascriptEnabled;t.imageTimeout=typeof t.imageTimeout==="undefined"?1e4:t.imageTimeout;t.renderer=typeof t.renderer==="function"?t.renderer:o;t.strict=!!t.strict;if(typeof e==="string"){if(typeof t.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var i=t.width!=null?t.width:window.innerWidth;var a=t.height!=null?t.height:window.innerHeight;return s(k(e),t.proxy,document,i,a,t).then(function(e){return y(e.contentWindow.document.documentElement,e,t,i,a)})}var r=(e===undefined?[document.documentElement]:e.length?e:[e])[0];r.setAttribute(c+n,n);return f(r.ownerDocument,t,r.ownerDocument.defaultView.innerWidth,r.ownerDocument.defaultView.innerHeight,n).then(function(e){if(typeof t.onrendered==="function"){v("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");t.onrendered(e)}return e})}u.CanvasRenderer=o;u.NodeContainer=i;u.log=v;u.utils=a;var h=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:u;t.exports=h;function f(o,s,l,u,h){return r(o,o,l,u,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(e){v("Document cloned");var t=c+h;var n="["+t+"='"+h+"']";o.querySelector(n).removeAttribute(t);var i=e.contentWindow;var a=i.document.querySelector(n);var r=typeof s.onclone==="function"?Promise.resolve(s.onclone(i.document)):Promise.resolve(true);return r.then(function(){return y(a,e,s,l,u)})})}function y(t,n,i,e,a){var r=n.contentWindow;var o=new d(r.document);var s=new g(i,o);var l=m(t);var u=i.type==="view"?e:w(r.document);var h=i.type==="view"?a:x(r.document);var c=new i.renderer(u,h,s,i,document);var f=new p(t,c,o,s,i);return f.ready.then(function(){v("Finished rendering");var e;if(i.type==="view"){e=b(c.canvas,{width:c.canvas.width,height:c.canvas.height,top:0,left:0,x:0,y:0})}else if(t===r.document.body||t===r.document.documentElement||i.canvas!=null){e=c.canvas}else{e=b(c.canvas,{width:i.width!=null?i.width:l.width,height:i.height!=null?i.height:l.height,top:l.top,left:l.left,x:0,y:0})}_(n,i);return e})}function _(e,t){if(t.removeContainer){e.parentNode.removeChild(e);v("Cleaned up container")}}function b(e,t){var n=document.createElement("canvas");var i=Math.min(e.width-1,Math.max(0,t.left));var a=Math.min(e.width,Math.max(1,t.left+t.width));var r=Math.min(e.height-1,Math.max(0,t.top));var o=Math.min(e.height,Math.max(1,t.top+t.height));n.width=t.width;n.height=t.height;var s=a-i;var l=o-r;v("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",s,"height:",l);v("Resulting crop with width",t.width,"and height",t.height,"with x",i,"and y",r);n.getContext("2d").drawImage(e,i,r,s,l,t.x,t.y,s,l);return n}function w(e){return Math.max(Math.max(e.body.scrollWidth,e.documentElement.scrollWidth),Math.max(e.body.offsetWidth,e.documentElement.offsetWidth),Math.max(e.body.clientWidth,e.documentElement.clientWidth))}function x(e){return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}function k(e){var t=document.createElement("a");t.href=e;t.href=t.href;return t}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(e,t,n){var i=e("./log");var a=e("./utils").smallImage;function r(e){this.src=e;i("DummyImageContainer for",e);if(!this.promise||!this.image){i("Initiating DummyImageContainer");r.prototype.image=new Image;var n=this.image;r.prototype.promise=new Promise(function(e,t){n.onload=e;n.onerror=t;n.src=a();if(n.complete===true){e(n)}})}}t.exports=r},{"./log":13,"./utils":26}],6:[function(e,t,n){var l=e("./utils").smallImage;function i(e,t){var n=document.createElement("div"),i=document.createElement("img"),a=document.createElement("span"),r="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=e;n.style.fontSize=t;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);i.src=l();i.width=1;i.height=1;i.style.margin=0;i.style.padding=0;i.style.verticalAlign="baseline";a.style.fontFamily=e;a.style.fontSize=t;a.style.margin=0;a.style.padding=0;a.appendChild(document.createTextNode(r));n.appendChild(a);n.appendChild(i);o=i.offsetTop-a.offsetTop+1;n.removeChild(a);n.appendChild(document.createTextNode(r));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}t.exports=i},{"./utils":26}],7:[function(e,t,n){var i=e("./font");function a(){this.data={}}a.prototype.getMetrics=function(e,t){if(this.data[e+"-"+t]===undefined){this.data[e+"-"+t]=new i(e,t)}return this.data[e+"-"+t]};t.exports=a},{"./font":6}],8:[function(r,e,t){var n=r("./utils");var o=n.getBounds;var a=r("./proxy").loadUrlDocument;function i(t,e,n){this.image=null;this.src=t;var i=this;var a=o(t);this.promise=(!e?this.proxyLoad(n.proxy,a,n):new Promise(function(e){if(t.contentWindow.document.URL==="about:blank"||t.contentWindow.document.documentElement==null){t.contentWindow.onload=t.onload=function(){e(t)}}else{e(t)}})).then(function(e){var t=r("./core");return t(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(e){return i.image=e})}i.prototype.proxyLoad=function(e,t,n){var i=this.src;return a(i.src,e,i.ownerDocument,t.width,t.height,n)};e.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(e,t,n){function i(e){this.src=e.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;t.exports=i},{}],10:[function(e,t,n){function i(n,i){this.src=n;this.image=new Image;var a=this;this.tainted=null;this.promise=new Promise(function(e,t){a.image.onload=e;a.image.onerror=t;if(i){a.image.crossOrigin="anonymous"}a.image.src=n;if(a.image.complete===true){e(a.image)}})}t.exports=i},{}],11:[function(e,t,n){var r=e("./log");var i=e("./imagecontainer");var a=e("./dummyimagecontainer");var o=e("./proxyimagecontainer");var s=e("./framecontainer");var l=e("./svgcontainer");var u=e("./svgnodecontainer");var h=e("./lineargradientcontainer");var c=e("./webkitgradientcontainer");var f=e("./utils").bind;function d(e,t){this.link=null;this.options=e;this.support=t;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(e){var t=[];e.reduce(function(e,t){switch(t.node.nodeName){case"IMG":return e.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return e.concat([{args:[t.node],method:t.node.nodeName}])}return e},[]).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.findBackgroundImage=function(e,t){t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.addImage=function(n,i){return function(t){t.args.forEach(function(e){if(!this.imageExists(n,e)){n.splice(0,0,i.call(this,t));r("Added image #"+n.length,typeof e==="string"?e.substring(0,100):e)}},this)}};d.prototype.hasImageBackground=function(e){return e.method!=="none"};d.prototype.loadImage=function(e){if(e.method==="url"){var t=e.args[0];if(this.isSVG(t)&&!this.support.svg&&!this.options.allowTaint){return new l(t)}else if(t.match(/data:image\/.*;base64,/i)){return new i(t.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(t)||this.options.allowTaint===true||this.isSVG(t)){return new i(t,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new i(t,true)}else if(this.options.proxy){return new o(t,this.options.proxy)}else{return new a(t)}}else if(e.method==="linear-gradient"){return new h(e)}else if(e.method==="gradient"){return new c(e)}else if(e.method==="svg"){return new u(e.args[0],this.support.svg)}else if(e.method==="IFRAME"){return new s(e.args[0],this.isSameOrigin(e.args[0].src),this.options)}else{return new a(e)}};d.prototype.isSVG=function(e){return e.substring(e.length-3).toLowerCase()==="svg"||l.prototype.isInline(e)};d.prototype.imageExists=function(e,t){return e.some(function(e){return e.src===t})};d.prototype.isSameOrigin=function(e){return this.getOrigin(e)===this.origin};d.prototype.getOrigin=function(e){var t=this.link||(this.link=document.createElement("a"));t.href=e;t.href=t.href;return t.protocol+t.hostname+t.port};d.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout)["catch"](function(){var e=new a(t.src);return e.promise.then(function(e){t.image=e})})};d.prototype.get=function(t){var n=null;return this.images.some(function(e){return(n=e).src===t})?n:null};d.prototype.fetch=function(e){this.images=e.reduce(f(this.findBackgroundImage,this),this.findImages(e));this.images.forEach(function(t,n){t.promise.then(function(){r("Succesfully loaded image #"+(n+1),t)},function(e){r("Failed loading image #"+(n+1),t,e)})});this.ready=Promise.all(this.images.map(this.getPromise,this));r("Finished searching images");return this};d.prototype.timeout=function(n,i){var a;var e=Promise.race([n.promise,new Promise(function(e,t){a=setTimeout(function(){r("Timed out loading image",n);t(n)},i)})]).then(function(e){clearTimeout(a);return e});e["catch"](function(){clearTimeout(a)});return e};t.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(e,t,n){var a=e("./gradientcontainer");var r=e("./color");function i(e){a.apply(this,arguments);this.type=a.TYPES.LINEAR;var t=i.REGEXP_DIRECTION.test(e.args[0])||!a.REGEXP_COLORSTOP.test(e.args[0]);if(t){e.args[0].split(/\s+/).reverse().forEach(function(e,t){switch(e){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 a=parseFloat(e,10)*.01;if(isNaN(a)){break}if(t===0){this.y0=a;this.y1=1-this.y0}else{this.x0=a;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=e.args.slice(t?1:0).map(function(e){var t=e.match(a.REGEXP_COLORSTOP);var n=+t[2];var i=n===0?"%":t[3];return{color:new r(t[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(e,t){if(e.stop!==null){n.stop=(e.stop-this.colorStops[i-1].stop)/(t+1)+this.colorStops[i-1].stop;return true}else{return false}},this)}},this)}i.prototype=Object.create(a.prototype);i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;t.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(e,t,n){var i=function e(){if(e.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-e.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};i.options={logging:false};t.exports=i},{}],14:[function(e,t,n){var r=e("./color");var i=e("./utils");var a=i.getBounds;var o=i.parseBackgrounds;var s=i.offsetBounds;function l(e,t){this.node=e;this.parent=t;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}l.prototype.cloneTo=function(e){e.visible=this.visible;e.borders=this.borders;e.bounds=this.bounds;e.clip=this.clip;e.backgroundClip=this.backgroundClip;e.computedStyles=this.computedStyles;e.styles=this.styles;e.backgroundImages=this.backgroundImages;e.opacity=this.opacity};l.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};l.prototype.assignStack=function(e){this.stack=e;e.children.push(this)};l.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")};l.prototype.css=function(e){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[e]||(this.styles[e]=this.computedStyles[e])};l.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"];var n=this.css(t);if(n===undefined){e.some(function(e){n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1));return n!==undefined},this)}return n===undefined?null:n};l.prototype.computedStyle=function(e){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,e)};l.prototype.cssInt=function(e){var t=parseInt(this.css(e),10);return isNaN(t)?0:t};l.prototype.color=function(e){return this.colors[e]||(this.colors[e]=new r(this.css(e)))};l.prototype.cssFloat=function(e){var t=parseFloat(this.css(e));return isNaN(t)?0:t};l.prototype.fontWeight=function(){var e=this.css("fontWeight");switch(parseInt(e,10)){case 401:e="bold";break;case 400:e="normal";break}return e};l.prototype.parseClip=function(){var e=this.css("clip").match(this.CLIP);if(e){return{top:parseInt(e[1],10),right:parseInt(e[2],10),bottom:parseInt(e[3],10),left:parseInt(e[4],10)}}return null};l.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};l.prototype.cssList=function(e,t){var n=(this.css(e)||"").split(",");n=n[t||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],c(n[0])?"auto":n[0]]}return n};l.prototype.parseBackgroundSize=function(e,t,n){var i=this.cssList("backgroundSize",n);var a,r;if(c(i[0])){a=e.width*parseFloat(i[0])/100}else if(/contain|cover/.test(i[0])){var o=e.width/e.height,s=t.width/t.height;return o<s^i[0]==="contain"?{width:e.height*s,height:e.height}:{width:e.width,height:e.width/s}}else{a=parseInt(i[0],10)}if(i[0]==="auto"&&i[1]==="auto"){r=t.height}else if(i[1]==="auto"){r=a/t.width*t.height}else if(c(i[1])){r=e.height*parseFloat(i[1])/100}else{r=parseInt(i[1],10)}if(i[0]==="auto"){a=r/t.height*t.width}return{width:a,height:r}};l.prototype.parseBackgroundPosition=function(e,t,n,i){var a=this.cssList("backgroundPosition",n);var r,o;if(c(a[0])){r=(e.width-(i||t).width)*(parseFloat(a[0])/100)}else{r=parseInt(a[0],10)}if(a[1]==="auto"){o=r/t.width*t.height}else if(c(a[1])){o=(e.height-(i||t).height)*parseFloat(a[1])/100}else{o=parseInt(a[1],10)}if(a[0]==="auto"){r=o/t.height*t.width}return{left:r,top:o}};l.prototype.parseBackgroundRepeat=function(e){return this.cssList("backgroundRepeat",e)[0]};l.prototype.parseTextShadows=function(){var e=this.css("textShadow");var t=[];if(e&&e!=="none"){var n=e.match(this.TEXT_SHADOW_PROPERTY);for(var i=0;n&&i<n.length;i++){var a=n[i].match(this.TEXT_SHADOW_VALUES);t.push({color:new r(a[0]),offsetX:a[1]?parseFloat(a[1].replace("px","")):0,offsetY:a[2]?parseFloat(a[2].replace("px","")):0,blur:a[3]?a[3].replace("px",""):0})}}return t};l.prototype.parseTransform=function(){if(!this.transformData){if(this.hasTransform()){var e=this.parseBounds();var t=this.prefixedCss("transformOrigin").split(" ").map(f).map(d);t[0]+=e.left;t[1]+=e.top;this.transformData={origin:t,matrix:this.parseTransformMatrix()}}else{this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]}}}return this.transformData};l.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var e=this.prefixedCss("transform");var t=e?h(e.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=t?t:[1,0,0,1,0,0]}return this.transformMatrix};l.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):a(this.node))};l.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};l.prototype.getValue=function(){var e=this.node.value||"";if(this.node.tagName==="SELECT"){e=u(this.node)}else if(this.node.type==="password"){e=Array(e.length+1).join("•")}return e.length===0?this.node.placeholder||"":e};l.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;l.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;l.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;l.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;function u(e){var t=e.options[e.selectedIndex||0];return t?t.text||"":""}function h(e){if(e&&e[1]==="matrix"){return e[2].split(",").map(function(e){return parseFloat(e.trim())})}else if(e&&e[1]==="matrix3d"){var t=e[2].split(",").map(function(e){return parseFloat(e.trim())});return[t[0],t[1],t[4],t[5],t[12],t[13]]}}function c(e){return e.toString().indexOf("%")!==-1}function f(e){return e.replace("px","")}function d(e){return parseFloat(e)}t.exports=l},{"./color":3,"./utils":26}],15:[function(e,t,n){var s=e("./log");var l=e("punycode");var u=e("./nodecontainer");var h=e("./textcontainer");var c=e("./pseudoelementcontainer");var f=e("./fontmetrics");var d=e("./color");var g=e("./stackingcontext");var i=e("./utils");var p=i.bind;var o=i.getBounds;var v=i.parseBackgrounds;var m=i.offsetBounds;function a(e,t,n,i,a){s("Starting NodeParser");this.renderer=t;this.options=a;this.range=null;this.support=n;this.renderQueue=[];this.stack=new g(true,1,e.ownerDocument,null);var r=new u(e,null);if(a.background){t.rectangle(0,0,t.width,t.height,new d(a.background))}if(e===e.ownerDocument.documentElement){var o=new u(r.color("backgroundColor").isTransparent()?e.ownerDocument.body:e.ownerDocument.documentElement,null);t.rectangle(0,0,t.width,t.height,o.color("backgroundColor"))}r.visibile=r.isElementVisible();this.createPseudoHideStyles(e.ownerDocument);this.disableAnimations(e.ownerDocument);this.nodes=X([r].concat(this.getChildren(r)).filter(function(e){return e.visible=e.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new f;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(e){if(!a.async){this.renderQueue.forEach(this.paint,this);e()}else if(typeof a.async==="function"){a.async.call(this,this.renderQueue,e)}else if(this.renderQueue.length>0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,e)}else{e()}},this))},this))}a.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(e){if(H(e)){if(V(e)){e.appendToDOM()}e.borders=this.parseBorders(e);var t=e.css("overflow")==="hidden"?[e.borders.clip]:[];var n=e.parseClip();if(n&&["absolute","fixed"].indexOf(e.css("position"))!==-1){t.push([["rect",e.bounds.left+n.left,e.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}e.clip=r(e)?e.parent.clip.concat(t):t;e.backgroundClip=e.css("overflow")!=="hidden"?e.clip.concat([e.borders.clip]):e.clip;if(V(e)){e.cleanDOM()}}else if(G(e)){e.clip=r(e)?e.parent.clip:[]}if(!V(e)){e.bounds=null}},this)};function r(e){return e.parent&&e.parent.clip.length}a.prototype.asyncRenderer=function(e,t,n){n=n||Date.now();this.paint(e[this.renderIndex++]);if(e.length===this.renderIndex){t()}else if(n+20>Date.now()){this.asyncRenderer(e,t,n)}else{setTimeout(p(function(){this.asyncRenderer(e,t)},this),0)}};a.prototype.createPseudoHideStyles=function(e){this.createStyles(e,"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};a.prototype.disableAnimations=function(e){this.createStyles(e,"* { -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;}")};a.prototype.createStyles=function(e,t){var n=e.createElement("style");n.innerHTML=t;e.body.appendChild(n)};a.prototype.getPseudoElements=function(e){var t=[[e]];if(e.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(e,":before");var i=this.getPseudoElement(e,":after");if(n){t.push(n)}if(i){t.push(i)}}return X(t)};function y(e){return e.replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")})}a.prototype.getPseudoElement=function(e,t){var n=e.computedStyle(t);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var i=$(n.content);var a=i.substr(0,3)==="url";var r=document.createElement(a?"img":"html2canvaspseudoelement");var o=new c(r,e,t);for(var s=n.length-1;s>=0;s--){var l=y(n.item(s));r.style[l]=n[l]}r.className=c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(a){r.src=v(i)[0].args[0];return[o]}else{var u=document.createTextNode(i);r.appendChild(u);return[o,new h(u,o)]}};a.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,O).map(function(e){var t=[e.nodeType===Node.TEXT_NODE?new h(e,n):new u(e,n)].filter(Y);return e.nodeType===Node.ELEMENT_NODE&&t.length&&e.tagName!=="TEXTAREA"?t[0].isElementVisible()?t.concat(this.getChildren(t[0])):[]:t},this))};a.prototype.newStackingContext=function(e,t){var n=new g(t,e.getOpacity(),e.node,e.parent);e.cloneTo(n);var i=t?n.getParentStack(this):n.parent.stack;i.contexts.push(n);e.stack=n};a.prototype.createStackingContexts=function(){this.nodes.forEach(function(e){if(H(e)&&(this.isRootElement(e)||W(e)||z(e)||this.isBodyWithTransparentRoot(e)||e.hasTransform())){this.newStackingContext(e,true)}else if(H(e)&&(F(e)&&M(e)||I(e)||L(e))){this.newStackingContext(e,false)}else{e.assignStack(e.parent.stack)}},this)};a.prototype.isBodyWithTransparentRoot=function(e){return e.node.nodeName==="BODY"&&e.parent.color("backgroundColor").isTransparent()};a.prototype.isRootElement=function(e){return e.parent===null};a.prototype.sortStackingContexts=function(e){e.contexts.sort(U(e.contexts.slice(0)));e.contexts.forEach(this.sortStackingContexts,this)};a.prototype.parseTextBounds=function(o){return function(e,t,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||e.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var i=n.slice(0,t).join("").length;return this.getRangeBounds(o.node,i,e.length)}else if(o.node&&typeof o.node.data==="string"){var a=o.node.splitText(e.length);var r=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=a;return r}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(e.length)}return{}}};a.prototype.getWrapperBounds=function(e,t){var n=e.ownerDocument.createElement("html2canvaswrapper");var i=e.parentNode,a=e.cloneNode(true);n.appendChild(e.cloneNode(true));i.replaceChild(n,e);var r=t?m(n):o(n);i.replaceChild(a,n);return r};a.prototype.getRangeBounds=function(e,t,n){var i=this.range||(this.range=e.ownerDocument.createRange());i.setStart(e,t);i.setEnd(e,t+n);return i.getBoundingClientRect()};function _(){}a.prototype.parse=function(e){var t=e.contexts.filter(A);var n=e.children.filter(H);var i=n.filter(j(L));var a=i.filter(j(F)).filter(j(T));var r=n.filter(j(F)).filter(L);var o=i.filter(j(F)).filter(T);var s=e.contexts.concat(i.filter(F)).filter(M);var l=e.children.filter(G).filter(N);var u=e.contexts.filter(R);t.concat(a).concat(r).concat(o).concat(s).concat(l).concat(u).forEach(function(e){this.renderQueue.push(e);if(B(e)){this.parse(e);this.renderQueue.push(new _)}},this)};a.prototype.paint=function(e){try{if(e instanceof _){this.renderer.ctx.restore()}else if(G(e)){if(V(e.parent)){e.parent.appendToDOM()}this.paintText(e);if(V(e.parent)){e.parent.cleanDOM()}}else{this.paintNode(e)}}catch(e){s(e);if(this.options.strict){throw e}}};a.prototype.paintNode=function(e){if(B(e)){this.renderer.setOpacity(e.opacity);this.renderer.ctx.save();if(e.hasTransform()){this.renderer.setTransform(e.parseTransform())}}if(e.node.nodeName==="INPUT"&&e.node.type==="checkbox"){this.paintCheckbox(e)}else if(e.node.nodeName==="INPUT"&&e.node.type==="radio"){this.paintRadio(e)}else{this.paintElement(e)}};a.prototype.paintElement=function(n){var i=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,i,n.borders.borders.map(q))},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 e=this.images.get(n.node);if(e){this.renderer.renderImage(n,i,n.borders,e)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var t=this.images.get(n.node.src);if(t){this.renderer.renderImage(n,i,n.borders,t)}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)};a.prototype.paintCheckbox=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height);var i={width:n-1,height:n-1,top:t.top,left:t.left};var a=[3,3];var r=[a,a,a,a];var o=[1,1,1,1].map(function(e){return{color:new d("#A5A5A5"),width:e}});var s=k(i,r,o);this.renderer.clip(e.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,r));if(e.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)};a.prototype.paintRadio=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height)-2;this.renderer.clip(e.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(e.node.checked){this.renderer.circle(Math.ceil(t.left+n/4)+1,Math.ceil(t.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};a.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument;var i=n.createElement("html2canvaswrapper");var a=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];a.forEach(function(e){try{i.style[e]=t.css(e)}catch(e){s("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}});var r=t.parseBounds();i.style.position="fixed";i.style.left=r.left+"px";i.style.top=r.top+"px";i.textContent=e;n.body.appendChild(i);this.paintText(new h(i.firstChild,t));n.body.removeChild(i)}};a.prototype.paintText=function(n){n.applyTextTransform();var e=l.ucs2.decode(n.node.data);var i=(!this.options.letterRendering||P(n))&&!Q(n.node.data)?Z(e):e.map(function(e){return l.ucs2.encode([e])});var t=n.parent.fontWeight();var a=n.parent.css("fontSize");var r=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),t,a,r);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(e,t){if(e){this.renderer.text(i[t],e.left,e.bottom);this.renderTextDecoration(n.parent,e,this.fontMetrics.getMetrics(r,a))}},this)},this)};a.prototype.renderTextDecoration=function(e,t,n){switch(e.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+n.baseline+n.lineWidth),t.width,1,e.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,e.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+n.middle+n.lineWidth),t.width,1,e.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};a.prototype.parseBorders=function(r){var e=r.parseBounds();var t=D(r);var n=["Top","Right","Bottom","Left"].map(function(e,t){var n=r.css("border"+e+"Style");var i=r.color("border"+e+"Color");if(n==="inset"&&i.isBlack()){i=new d([255,255,255,i.a])}var a=b[n]?b[n][t]:null;return{width:r.cssInt("border"+e+"Width"),color:a?i[a[0]](a[1]):i,args:null}});var i=k(e,t,n);return{clip:this.parseBackgroundClip(r,i,n,t,e),borders:w(n,e,i,t)}};function w(o,s,l,u){return o.map(function(e,t){if(e.width>0){var n=s.left;var i=s.top;var a=s.width;var r=s.height-o[2].width;switch(t){case 0:r=o[0].width;e.args=C({c1:[n,i],c2:[n+a,i],c3:[n+a-o[1].width,i+r],c4:[n+o[3].width,i+r]},u[0],u[1],l.topLeftOuter,l.topLeftInner,l.topRightOuter,l.topRightInner);break;case 1:n=s.left+s.width-o[1].width;a=o[1].width;e.args=C({c1:[n+a,i],c2:[n+a,i+r+o[2].width],c3:[n,i+r],c4:[n,i+o[0].width]},u[1],u[2],l.topRightOuter,l.topRightInner,l.bottomRightOuter,l.bottomRightInner);break;case 2:i=i+s.height-o[2].width;r=o[2].width;e.args=C({c1:[n+a,i+r],c2:[n,i+r],c3:[n+o[3].width,i],c4:[n+a-o[3].width,i]},u[2],u[3],l.bottomRightOuter,l.bottomRightInner,l.bottomLeftOuter,l.bottomLeftInner);break;case 3:a=o[3].width;e.args=C({c1:[n,i+r+o[2].width],c2:[n,i],c3:[n+a,i+o[0].width],c4:[n+a,i+r]},u[3],u[0],l.bottomLeftOuter,l.bottomLeftInner,l.topLeftOuter,l.topLeftInner);break}}return e})}a.prototype.parseBackgroundClip=function(e,t,n,i,a){var r=e.css("backgroundClip"),o=[];switch(r){case"content-box":case"padding-box":E(o,i[0],i[1],t.topLeftInner,t.topRightInner,a.left+n[3].width,a.top+n[0].width);E(o,i[1],i[2],t.topRightInner,t.bottomRightInner,a.left+a.width-n[1].width,a.top+n[0].width);E(o,i[2],i[3],t.bottomRightInner,t.bottomLeftInner,a.left+a.width-n[1].width,a.top+a.height-n[2].width);E(o,i[3],i[0],t.bottomLeftInner,t.topLeftInner,a.left+n[3].width,a.top+a.height-n[2].width);break;default:E(o,i[0],i[1],t.topLeftOuter,t.topRightOuter,a.left,a.top);E(o,i[1],i[2],t.topRightOuter,t.bottomRightOuter,a.left+a.width,a.top);E(o,i[2],i[3],t.bottomRightOuter,t.bottomLeftOuter,a.left+a.width,a.top+a.height);E(o,i[3],i[0],t.bottomLeftOuter,t.topLeftOuter,a.left,a.top+a.height);break}return o};function x(e,t,n,i){var a=4*((Math.sqrt(2)-1)/3);var r=n*a,o=i*a,s=e+n,l=t+i;return{topLeft:S({x:e,y:l},{x:e,y:l-o},{x:s-r,y:t},{x:s,y:t}),topRight:S({x:e,y:t},{x:e+r,y:t},{x:s,y:l-o},{x:s,y:l}),bottomRight:S({x:s,y:t},{x:s,y:t+o},{x:e+r,y:l},{x:e,y:l}),bottomLeft:S({x:s,y:l},{x:s-r,y:l},{x:e,y:t+o},{x:e,y:t})}}function k(e,t,n){var i=e.left,a=e.top,r=e.width,o=e.height,s=t[0][0]<r/2?t[0][0]:r/2,l=t[0][1]<o/2?t[0][1]:o/2,u=t[1][0]<r/2?t[1][0]:r/2,h=t[1][1]<o/2?t[1][1]:o/2,c=t[2][0]<r/2?t[2][0]:r/2,f=t[2][1]<o/2?t[2][1]:o/2,d=t[3][0]<r/2?t[3][0]:r/2,g=t[3][1]<o/2?t[3][1]:o/2;var p=r-u,v=o-f,m=r-c,y=o-g;return{topLeftOuter:x(i,a,s,l).topLeft.subdivide(.5),topLeftInner:x(i+n[3].width,a+n[0].width,Math.max(0,s-n[3].width),Math.max(0,l-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(i+p,a,u,h).topRight.subdivide(.5),topRightInner:x(i+Math.min(p,r+n[3].width),a+n[0].width,p>r+n[3].width?0:u-n[3].width,h-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(i+m,a+v,c,f).bottomRight.subdivide(.5),bottomRightInner:x(i+Math.min(m,r-n[3].width),a+Math.min(v,o+n[0].width),Math.max(0,c-n[1].width),f-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(i,a+y,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(i+n[3].width,a+y,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(l,u,h,c){var f=function e(t,n,i){return{x:t.x+(n.x-t.x)*i,y:t.y+(n.y-t.y)*i}};return{start:l,startControl:u,endControl:h,end:c,subdivide:function e(t){var n=f(l,u,t),i=f(u,h,t),a=f(h,c,t),r=f(n,i,t),o=f(i,a,t),s=f(r,o,t);return[S(l,n,r,s),S(s,o,a,c)]},curveTo:function e(t){t.push(["bezierCurve",u.x,u.y,h.x,h.y,c.x,c.y])},curveToReversed:function e(t){t.push(["bezierCurve",h.x,h.y,u.x,u.y,l.x,l.y])}}}function C(e,t,n,i,a,r,o){var s=[];if(t[0]>0||t[1]>0){s.push(["line",i[1].start.x,i[1].start.y]);i[1].curveTo(s)}else{s.push(["line",e.c1[0],e.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",r[0].start.x,r[0].start.y]);r[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",e.c2[0],e.c2[1]]);s.push(["line",e.c3[0],e.c3[1]])}if(t[0]>0||t[1]>0){s.push(["line",a[1].end.x,a[1].end.y]);a[1].curveToReversed(s)}else{s.push(["line",e.c4[0],e.c4[1]])}return s}function E(e,t,n,i,a,r,o){if(t[0]>0||t[1]>0){e.push(["line",i[0].start.x,i[0].start.y]);i[0].curveTo(e);i[1].curveTo(e)}else{e.push(["line",r,o])}if(n[0]>0||n[1]>0){e.push(["line",a[0].start.x,a[0].start.y])}}function A(e){return e.cssInt("zIndex")<0}function R(e){return e.cssInt("zIndex")>0}function M(e){return e.cssInt("zIndex")===0}function T(e){return["inline","inline-block","inline-table"].indexOf(e.css("display"))!==-1}function B(e){return e instanceof g}function N(e){return e.node.data.trim().length>0}function P(e){return/^(normal|none|0px)$/.test(e.parent.css("letterSpacing"))}function D(i){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(e){var t=i.css("border"+e+"Radius");var n=t.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(K)})}function O(e){return e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE}function z(e){var t=e.css("position");var n=["absolute","relative","fixed"].indexOf(t)!==-1?e.css("zIndex"):"auto";return n!=="auto"}function F(e){return e.css("position")!=="static"}function L(e){return e.css("float")!=="none"}function I(e){return["inline-block","inline-table"].indexOf(e.css("display"))!==-1}function j(e){var t=this;return function(){return!e.apply(t,arguments)}}function H(e){return e.node.nodeType===Node.ELEMENT_NODE}function V(e){return e.isPseudoElement===true}function G(e){return e.node.nodeType===Node.TEXT_NODE}function U(n){return function(e,t){return e.cssInt("zIndex")+n.indexOf(e)/n.length-(t.cssInt("zIndex")+n.indexOf(t)/n.length)}}function W(e){return e.getOpacity()<1}function K(e){return parseInt(e,10)}function q(e){return e.width}function Y(e){return e.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(e.node.nodeName)===-1}function X(e){return[].concat.apply([],e)}function $(e){var t=e.substr(0,1);return t===e.substr(e.length-1)&&t.match(/'|"/)?e.substr(1,e.length-2):e}function Z(e){var t=[],n=0,i=false,a;while(e.length){if(J(e[n])===i){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}i=!i;n=0}else{n++}if(n>=e.length){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}}}return t}function J(e){return[32,13,10,9,45].indexOf(e)!==-1}function Q(e){return/[^\u0000-\u00ff]/.test(e)}t.exports=a},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(e,t,n){var o=e("./xhr");var i=e("./utils");var s=e("./log");var l=e("./clone");var u=i.decode64;function h(e,t,n){var i="withCredentials"in new XMLHttpRequest;if(!t){return Promise.reject("No proxy configured")}var a=f(i);var r=d(t,e,a);return i?o(r):c(n,r,a).then(function(e){return u(e.content)})}var a=0;function r(e,t,n){var i="crossOrigin"in new Image;var a=f(i);var r=d(t,e,a);return i?Promise.resolve(r):c(n,r,a).then(function(e){return"data:"+e.type+";base64,"+e.content})}function c(r,e,o){return new Promise(function(t,n){var i=r.createElement("script");var a=function e(){delete window.html2canvas.proxy[o];r.body.removeChild(i)};window.html2canvas.proxy[o]=function(e){a();t(e)};i.src=e;i.onerror=function(e){a();n(e)};r.body.appendChild(i)})}function f(e){return!e?"html2canvas_"+Date.now()+"_"+ ++a+"_"+Math.round(Math.random()*1e5):""}function d(e,t,n){return e+"?url="+encodeURIComponent(t)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(r){return function(t){var e=new DOMParser,n;try{n=e.parseFromString(t,"text/html")}catch(e){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(t);n.close()}catch(e){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=t}}var i=n.querySelector("base");if(!i||!i.href.host){var a=n.createElement("base");a.href=r;n.head.insertBefore(a,n.head.firstChild)}return n}}function p(e,t,n,i,a,r){return new h(e,t,window.document).then(g(e)).then(function(e){return l(e,n,i,a,r,0,0)})}n.Proxy=h;n.ProxyURL=r;n.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(e,t,n){var r=e("./proxy").ProxyURL;function i(n,i){var e=document.createElement("a");e.href=n;n=e.href;this.src=n;this.image=new Image;var a=this;this.promise=new Promise(function(e,t){a.image.crossOrigin="Anonymous";a.image.onload=e;a.image.onerror=t;new r(n,i,document).then(function(e){a.image.src=e})["catch"](t)})}t.exports=i},{"./proxy":16}],18:[function(e,t,n){var i=e("./nodecontainer");function a(e,t,n){i.call(this,e,t);this.isPseudoElement=true;this.before=n===":before"}a.prototype.cloneTo=function(e){a.prototype.cloneTo.call(this,e);e.isPseudoElement=true;e.before=this.before};a.prototype=Object.create(i.prototype);a.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()};a.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};a.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";t.exports=a},{"./nodecontainer":14}],19:[function(e,t,n){var l=e("./log");function i(e,t,n,i,a){this.width=e;this.height=t;this.images=n;this.options=i;this.document=a}i.prototype.renderImage=function(e,t,n,i){var a=e.cssInt("paddingLeft"),r=e.cssInt("paddingTop"),o=e.cssInt("paddingRight"),s=e.cssInt("paddingBottom"),l=n.borders;var u=t.width-(l[1].width+l[3].width+a+o);var h=t.height-(l[0].width+l[2].width+r+s);this.drawImage(i,0,0,i.image.width||u,i.image.height||h,t.left+a+l[3].width,t.top+r+l[0].width,u,h)};i.prototype.renderBackground=function(e,t,n){if(t.height>0&&t.width>0){this.renderBackgroundColor(e,t);this.renderBackgroundImage(e,t,n)}};i.prototype.renderBackgroundColor=function(e,t){var n=e.color("backgroundColor");if(!n.isTransparent()){this.rectangle(t.left,t.top,t.width,t.height,n)}};i.prototype.renderBorders=function(e){e.forEach(this.renderBorder,this)};i.prototype.renderBorder=function(e){if(!e.color.isTransparent()&&e.args!==null){this.drawShape(e.args,e.color)}};i.prototype.renderBackgroundImage=function(r,o,s){var e=r.parseBackgroundImages();e.reverse().forEach(function(e,t,n){switch(e.method){case"url":var i=this.images.get(e.args[0]);if(i){this.renderBackgroundRepeating(r,o,i,n.length-(t+1),s)}else{l("Error loading background-image",e.args[0])}break;case"linear-gradient":case"gradient":var a=this.images.get(e.value);if(a){this.renderBackgroundGradient(a,o,s)}else{l("Error loading background-image",e.args[0])}break;case"none":break;default:l("Unknown background-image type",e.args[0])}},this)};i.prototype.renderBackgroundRepeating=function(e,t,n,i,a){var r=e.parseBackgroundSize(t,n.image,i);var o=e.parseBackgroundPosition(t,n.image,i,r);var s=e.parseBackgroundRepeat(i);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+a[3],t.top+o.top+a[0],99999,r.height,a);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+a[0],r.width,99999,a);break;case"no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+o.top+a[0],r.width,r.height,a);break;default:this.renderBackgroundRepeat(n,o,r,{top:t.top,left:t.left},a[3],a[0]);break}};t.exports=i},{"./log":13}],20:[function(e,t,n){var i=e("../renderer");var a=e("../lineargradientcontainer");var r=e("../log");function o(e,t){i.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=e;this.canvas.height=t}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};r("Initialized CanvasRenderer with size",e,"x",t)}o.prototype=Object.create(i.prototype);o.prototype.setFillStyle=function(e){this.ctx.fillStyle=_typeof2(e)==="object"&&!!e.isColor?e.toString():e;return this.ctx};o.prototype.rectangle=function(e,t,n,i,a){this.setFillStyle(a).fillRect(e,t,n,i)};o.prototype.circle=function(e,t,n,i){this.setFillStyle(i);this.ctx.beginPath();this.ctx.arc(e+n/2,t+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(e,t,n,i,a,r){this.circle(e,t,n,i);this.ctx.strokeStyle=r.toString();this.ctx.stroke()};o.prototype.drawShape=function(e,t){this.shape(e);this.setFillStyle(t).fill()};o.prototype.taints=function(t){if(t.tainted===null){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);t.tainted=false}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d");t.tainted=true}}return t.tainted};o.prototype.drawImage=function(e,t,n,i,a,r,o,s,l){if(!this.taints(e)||this.options.allowTaint){this.ctx.drawImage(e.image,t,n,i,a,r,o,s,l)}};o.prototype.clip=function(e,t,n){this.ctx.save();e.filter(s).forEach(function(e){this.shape(e).clip()},this);t.call(n);this.ctx.restore()};o.prototype.shape=function(e){this.ctx.beginPath();e.forEach(function(e,t){if(e[0]==="rect"){this.ctx.rect.apply(this.ctx,e.slice(1))}else{this.ctx[t===0?"moveTo":e[0]+"To"].apply(this.ctx,e.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(e,t,n,i,a,r){this.setFillStyle(e).font=[t,n,i,a,r].join(" ").split(",")[0]};o.prototype.fontShadow=function(e,t,n,i){this.setVariable("shadowColor",e.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",n).setVariable("shadowBlur",i)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(e){this.ctx.globalAlpha=e};o.prototype.setTransform=function(e){this.ctx.translate(e.origin[0],e.origin[1]);this.ctx.transform.apply(this.ctx,e.matrix);this.ctx.translate(-e.origin[0],-e.origin[1])};o.prototype.setVariable=function(e,t){if(this.variables[e]!==t){this.variables[e]=this.ctx[e]=t}return this};o.prototype.text=function(e,t,n){this.ctx.fillText(e,t,n)};o.prototype.backgroundRepeatShape=function(e,t,n,i,a,r,o,s,l){var u=[["line",Math.round(a),Math.round(r)],["line",Math.round(a+o),Math.round(r)],["line",Math.round(a+o),Math.round(s+r)],["line",Math.round(a),Math.round(s+r)]];this.clip([u],function(){this.renderBackgroundRepeat(e,t,n,i,l[3],l[0])},this)};o.prototype.renderBackgroundRepeat=function(e,t,n,i,a,r){var o=Math.round(i.left+t.left+a),s=Math.round(i.top+t.top+r);this.setFillStyle(this.ctx.createPattern(this.resizeImage(e,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(e,t){if(e instanceof a){var n=this.ctx.createLinearGradient(t.left+t.width*e.x0,t.top+t.height*e.y0,t.left+t.width*e.x1,t.top+t.height*e.y1);e.colorStops.forEach(function(e){n.addColorStop(e.stop,e.color.toString())});this.rectangle(t.left,t.top,t.width,t.height,n)}};o.prototype.resizeImage=function(e,t){var n=e.image;if(n.width===t.width&&n.height===t.height){return n}var i,a=document.createElement("canvas");a.width=t.width;a.height=t.height;i=a.getContext("2d");i.drawImage(n,0,0,n.width,n.height,0,0,t.width,t.height);return a};function s(e){return e.length>0}t.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(e,t,n){var a=e("./nodecontainer");function i(e,t,n,i){a.call(this,n,i);this.ownStacking=e;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*t}i.prototype=Object.create(a.prototype);i.prototype.getParentStack=function(e){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(e):e.stack};t.exports=i},{"./nodecontainer":14}],22:[function(e,t,n){function i(e){this.rangeBounds=this.testRangeBounds(e);this.cors=this.testCORS();this.svg=this.testSVG()}i.prototype.testRangeBounds=function(e){var t,n,i,a,r=false;if(e.createRange){t=e.createRange();if(t.getBoundingClientRect){n=e.createElement("boundtest");n.style.height="123px";n.style.display="block";e.body.appendChild(n);t.selectNode(n);i=t.getBoundingClientRect();a=i.height;if(a===123){r=true}e.body.removeChild(n)}}return r};i.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};i.prototype.testSVG=function(){var e=new Image;var t=document.createElement("canvas");var n=t.getContext("2d");e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0);t.toDataURL()}catch(e){return false}return true};t.exports=i},{}],23:[function(e,t,n){var i=e("./xhr");var a=e("./utils").decode64;function r(e){this.src=e;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(e)?Promise.resolve(n.inlineFormatting(e)):i(e)}).then(function(t){return new Promise(function(e){window.html2canvas.svg.fabric.loadSVGFromString(t,n.createCanvas.call(n,e))})})}r.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()};r.prototype.inlineFormatting=function(e){return/^data:image\/svg\+xml;base64,/.test(e)?this.decode64(this.removeContentType(e)):this.removeContentType(e)};r.prototype.removeContentType=function(e){return e.replace(/^data:image\/svg\+xml(;base64)?,/,"")};r.prototype.isInline=function(e){return/^data:image\/svg\+xml/i.test(e)};r.prototype.createCanvas=function(i){var a=this;return function(e,t){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");a.image=n.lowerCanvasEl;n.setWidth(t.width).setHeight(t.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(e,t)).renderAll();i(n.lowerCanvasEl)}};r.prototype.decode64=function(e){return typeof window.atob==="function"?window.atob(e):a(e)};t.exports=r},{"./utils":26,"./xhr":28}],24:[function(e,t,n){var i=e("./svgcontainer");function a(n,e){this.src=n;this.image=null;var i=this;this.promise=e?new Promise(function(e,t){i.image=new Image;i.image.onload=e;i.image.onerror=t;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(i.image.complete===true){e(i.image)}}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(n,i.createCanvas.call(i,e))})})}a.prototype=Object.create(i.prototype);t.exports=a},{"./svgcontainer":23}],25:[function(e,t,n){var i=e("./nodecontainer");function a(e,t){i.call(this,e,t)}a.prototype=Object.create(i.prototype);a.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};a.prototype.transform=function(e){var t=this.node.data;switch(e){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,r);case"uppercase":return t.toUpperCase();default:return t}};function r(e,t,n){if(e.length>0){return t+n.toUpperCase()}}t.exports=a},{"./nodecontainer":14}],26:[function(e,t,n){n.smallImage=function e(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(e,t){return function(){return e.apply(t,arguments)}};n.decode64=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=e.length,i,a,r,o,s,l,u,h;var c="";for(i=0;i<n;i+=4){a=t.indexOf(e[i]);r=t.indexOf(e[i+1]);o=t.indexOf(e[i+2]);s=t.indexOf(e[i+3]);l=a<<2|r>>4;u=(r&15)<<4|o>>2;h=(o&3)<<6|s;if(o===64){c+=String.fromCharCode(l)}else if(s===64||s===-1){c+=String.fromCharCode(l,u)}else{c+=String.fromCharCode(l,u,h)}}return c};n.getBounds=function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect();var n=e.offsetWidth==null?t.width:e.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+n,left:t.left,width:n,height:e.offsetHeight==null?t.height:e.offsetHeight}}return{}};n.offsetBounds=function(e){var t=e.offsetParent?n.offsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+t.top,bottom:e.offsetTop+e.offsetHeight+t.top,right:e.offsetLeft+t.left+e.offsetWidth,left:e.offsetLeft+t.left,width:e.offsetWidth,height:e.offsetHeight}};n.parseBackgrounds=function(e){var t=" \r\n\t",n,i,a,r,o,s=[],l=0,u=0,h,c;var f=function e(){if(n){if(i.substr(0,1)==='"'){i=i.substr(1,i.length-2)}if(i){c.push(i)}if(n.substr(0,1)==="-"&&(r=n.indexOf("-",1)+1)>0){a=n.substr(0,r);n=n.substr(r)}s.push({prefix:a,method:n.toLowerCase(),value:o,args:c,image:null})}c=[];n=a=i=o=""};c=[];n=a=i=o="";e.split("").forEach(function(e){if(l===0&&t.indexOf(e)>-1){return}switch(e){case'"':if(!h){h=e}else if(h===e){h=null}break;case"(":if(h){break}else if(l===0){l=1;o+=e;return}else{u++}break;case")":if(h){break}else if(l===1){if(u===0){l=0;o+=e;f();return}else{u--}}break;case",":if(h){break}else if(l===0){f();return}else if(l===1){if(u===0&&!n.match(/^url$/i)){c.push(i);i="";o+=e;return}}break}o+=e;if(l===0){n+=e}else{i+=e}});f();return s}},{}],27:[function(e,t,n){var i=e("./gradientcontainer");function a(e){i.apply(this,arguments);this.type=e.args[0]==="linear"?i.TYPES.LINEAR:i.TYPES.RADIAL}a.prototype=Object.create(i.prototype);t.exports=a},{"./gradientcontainer":9}],28:[function(e,t,n){function i(i){return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i);n.onload=function(){if(n.status===200){e(n.responseText)}else{t(new Error(n.statusText))}};n.onerror=function(){t(new Error("Network Error"))};n.send()})}t.exports=i},{}]},{},[4])(4)})});var Mz=function e(t){this.ok=false;this.alpha=1;if(t.charAt(0)=="#"){t=t.substr(1,6)}t=t.replace(/ /g,"");t=t.toLowerCase();var h={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"};t=h[t]||t;var c=[{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 e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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 e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function e(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function e(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}];for(var n=0;n<c.length;n++){var i=c[n].re;var a=c[n].process;var r=i.exec(t);if(r){var o=a(r);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 e=this.r.toString(16);var t=this.g.toString(16);var n=this.b.toString(16);if(e.length==1)e="0"+e;if(t.length==1)t="0"+t;if(n.length==1)n="0"+n;return"#"+e+t+n};this.getHelpXML=function(){var e=new Array;for(var t=0;t<c.length;t++){var n=c[t].example;for(var i=0;i<n.length;i++){e[e.length]=n[i]}}for(var a in h){e[e.length]=a}var r=document.createElement("ul");r.setAttribute("id","rgbcolor-examples");for(var t=0;t<e.length;t++){try{var o=document.createElement("li");var s=new RGBColor(e[t]);var l=document.createElement("div");l.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex();l.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+e[t]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(l);o.appendChild(u);r.appendChild(o)}catch(e){}}return r}};var Tz=[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 Bz=[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 Nz(e,t,n,i){if(isNaN(i)||i<1)return;i|=0;var a,r,o,s,l,u,h,c,f,d,g,p,v,m,y,_,b,w,x,k,S,C,E,A;var R=i+i+1;var M=t-1;var T=n-1;var B=i+1;var N=B*(B+1)/2;var P=new Pz;var D=P;for(o=1;o<R;o++){D=D.next=new Pz;if(o==B)var O=D}D.next=P;var z=null;var F=null;h=u=0;var L=Tz[i];var I=Bz[i];for(r=0;r<n;r++){_=b=w=x=c=f=d=g=0;p=B*(k=e[u]);v=B*(S=e[u+1]);m=B*(C=e[u+2]);y=B*(E=e[u+3]);c+=N*k;f+=N*S;d+=N*C;g+=N*E;D=P;for(o=0;o<B;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}for(o=1;o<B;o++){s=u+((M<o?M:o)<<2);c+=(D.r=k=e[s])*(A=B-o);f+=(D.g=S=e[s+1])*A;d+=(D.b=C=e[s+2])*A;g+=(D.a=E=e[s+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next}z=P;F=O;for(a=0;a<t;a++){e[u+3]=E=g*L>>I;if(E!=0){E=255/E;e[u]=(c*L>>I)*E;e[u+1]=(f*L>>I)*E;e[u+2]=(d*L>>I)*E}else{e[u]=e[u+1]=e[u+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=h+((s=a+i+1)<M?s:M)<<2;_+=z.r=e[s];b+=z.g=e[s+1];w+=z.b=e[s+2];x+=z.a=e[s+3];c+=_;f+=b;d+=w;g+=x;z=z.next;p+=k=F.r;v+=S=F.g;m+=C=F.b;y+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;u+=4}h+=t}for(a=0;a<t;a++){b=w=x=_=f=d=g=c=0;u=a<<2;p=B*(k=e[u]);v=B*(S=e[u+1]);m=B*(C=e[u+2]);y=B*(E=e[u+3]);c+=N*k;f+=N*S;d+=N*C;g+=N*E;D=P;for(o=0;o<B;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}l=t;for(o=1;o<=i;o++){u=l+a<<2;c+=(D.r=k=e[u])*(A=B-o);f+=(D.g=S=e[u+1])*A;d+=(D.b=C=e[u+2])*A;g+=(D.a=E=e[u+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next;if(o<T){l+=t}}u=a;z=P;F=O;for(r=0;r<n;r++){s=u<<2;e[s+3]=E=g*L>>I;if(E>0){E=255/E;e[s]=(c*L>>I)*E;e[s+1]=(f*L>>I)*E;e[s+2]=(d*L>>I)*E}else{e[s]=e[s+1]=e[s+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=a+((s=r+B)<T?s:T)*t<<2;c+=_+=z.r=e[s];f+=b+=z.g=e[s+1];d+=w+=z.b=e[s+2];g+=x+=z.a=e[s+3];z=z.next;p+=k=F.r;v+=S=F.g;m+=C=F.b;y+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;u+=t}}}function Pz(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var Dz=Nz;var Oz=/[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 zz=new RegExp("[\\-\\.0-9"+Oz.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var Fz=new RegExp("^"+Oz.source+zz.source+"*(?::"+Oz.source+zz.source+"*)?$");var Lz=0;var Iz=1;var jz=2;var Hz=3;var Vz=4;var Gz=5;var Uz=6;var Wz=7;function Kz(){}Kz.prototype={parse:function e(t,n,i){var a=this.domBuilder;a.startDocument();Qz(n,n={});qz(t,n,i,a,this.errorHandler);a.endDocument()}};function qz(n,e,i,a,r){function o(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}else{return String.fromCharCode(e)}}function s(e){var t=e.slice(1,-1);if(t in i){return i[t]}else if(t.charAt(0)==="#"){return o(parseInt(t.substr(1).replace("x","0x")))}else{r.error("entity not found:"+e);return e}}function t(e){if(e>p){var t=n.substring(p,e).replace(/&#?\w+;/g,s);f&&l(p);a.characters(t,0,e-p);p=e}}function l(e,t){while(e>=h&&(t=c.exec(n))){u=t.index;h=u+t[0].length;f.lineNumber++}f.columnNumber=e-u+1}var u=0;var h=0;var c=/.*(?:\r\n?|\n)|.*$/g;var f=a.locator;var d=[{currentNSMap:e}];var g={};var p=0;while(true){try{var v=n.indexOf("<",p);if(v<0){if(!n.substr(p).match(/^\s*$/)){var m=a.doc;var y=m.createTextNode(n.substr(p));m.appendChild(y);a.currentElement=y}return}if(v>p){t(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<].*/,"");r.error("end tag name: "+b+" is not complete:"+w.tagName);_=v+1+b.length}else if(b.match(/\s</)){b=b.replace(/[\s<].*/,"");r.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){a.endElement(w.uri,w.localName,b);if(x){for(var C in x){a.endPrefixMapping(C)}}if(!k){r.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}}else{d.push(w)}_++;break;case"?":f&&l(v);_=tF(n,v,a);break;case"!":f&&l(v);_=eF(n,v,a,r);break;default:f&&l(v);var E=new nF;var A=d[d.length-1].currentNSMap;var _=Xz(n,v,E,A,s,r);var R=E.length;if(!E.closed&&Jz(n,_,E.tagName,g)){E.closed=true;if(!i.nbsp){r.warning("unclosed xml attribute")}}if(f&&R){var M=Yz(f,{});for(var T=0;T<R;T++){var B=E[T];l(B.offset);B.locator=Yz(f,{})}a.locator=M;if($z(E,a,A)){d.push(E)}a.locator=f}else{if($z(E,a,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=Zz(n,_,E.tagName,s,a)}else{_++}}}catch(e){r.error("element parse error: "+e);_=-1}if(_>p){p=_}else{t(Math.max(v,p)+1)}}}function Yz(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber;return t}function Xz(e,t,n,i,a,r){var o;var s;var l=++t;var u=Lz;while(true){var h=e.charAt(l);switch(h){case"=":if(u===Iz){o=e.slice(t,l);u=Hz}else if(u===jz){u=Hz}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(u===Hz||u===Iz){if(u===Iz){r.warning('attribute value must after "="');o=e.slice(t,l)}t=l+1;l=e.indexOf(h,t);if(l>0){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t-1);u=Gz}else{throw new Error("attribute value no end '"+h+"' match")}}else if(u==Vz){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t);r.warning('attribute "'+o+'" missed start quot('+h+")!!");t=l+1;u=Gz}else{throw new Error('attribute value must after "="')}break;case"/":switch(u){case Lz:n.setTagName(e.slice(t,l));case Gz:case Uz:case Wz:u=Wz;n.closed=true;case Vz:case Iz:case jz:break;default:throw new Error("attribute invalid close char('/')")}break;case"":r.error("unexpected end of input");if(u==Lz){n.setTagName(e.slice(t,l))}return l;case">":switch(u){case Lz:n.setTagName(e.slice(t,l));case Gz:case Uz:case Wz:break;case Vz:case Iz:s=e.slice(t,l);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case jz:if(u===jz){s=o}if(u==Vz){r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,a),t)}else{if(i[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,t)}break;case Hz:throw new Error("attribute value missed!!")}return l;case"€":h=" ";default:if(h<=" "){switch(u){case Lz:n.setTagName(e.slice(t,l));u=Uz;break;case Iz:o=e.slice(t,l);u=jz;break;case Vz:var s=e.slice(t,l).replace(/&#?\w+;/g,a);r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,t);case Gz:u=Uz;break}}else{switch(u){case jz:var c=n.tagName;if(i[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,t);t=l;u=Iz;break;case Gz:r.warning('attribute space is required"'+o+'"!!');case Uz:u=Iz;t=l;break;case Hz:u=Vz;t=l;break;case Wz:throw new Error("elements closed character '/' and '>' must be connected to")}}}l++}}function $z(e,t,n){var i=e.tagName;var a=null;var r=e.length;while(r--){var o=e[r];var s=o.qName;var l=o.value;var u=s.indexOf(":");if(u>0){var h=o.prefix=s.slice(0,u);var c=s.slice(u+1);var f=h==="xmlns"&&c}else{c=s;h=null;f=s==="xmlns"&&""}o.localName=c;if(f!==false){if(a==null){a={};Qz(n,n={})}n[f]=a[f]=l;o.uri="http://www.w3.org/2000/xmlns/";t.startPrefixMapping(f,l)}}var r=e.length;while(r--){o=e[r];var h=o.prefix;if(h){if(h==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(h!=="xmlns"){o.uri=n[h||""]}}}var u=i.indexOf(":");if(u>0){h=e.prefix=i.slice(0,u);c=e.localName=i.slice(u+1)}else{h=null;c=e.localName=i}var d=e.uri=n[h||""];t.startElement(d,c,i,e);if(e.closed){t.endElement(d,c,i);if(a){for(h in a){t.endPrefixMapping(h)}}}else{e.currentNSMap=n;e.localNSMap=a;return true}}function Zz(e,t,n,i,a){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("</"+n+">",t);var o=e.substring(t+1,r);if(/[&<]/.test(o)){if(/^script$/i.test(n)){a.characters(o,0,o.length);return r}o=o.replace(/&#?\w+;/g,i);a.characters(o,0,o.length);return r}}return t+1}function Jz(e,t,n,i){var a=i[n];if(a==null){a=e.lastIndexOf("</"+n+">");if(a<t){a=e.lastIndexOf("</"+n)}i[n]=a}return a<t}function Qz(e,t){for(var n in e){t[n]=e[n]}}function eF(e,t,n,i){var a=e.charAt(t+2);switch(a){case"-":if(e.charAt(t+3)==="-"){var r=e.indexOf("--\x3e",t+4);if(r>t){n.comment(e,t+4,r-t-4);return r+3}else{i.error("Unclosed comment");return-1}}else{return-1}default:if(e.substr(t+3,6)=="CDATA["){var r=e.indexOf("]]>",t+9);n.startCDATA();n.characters(e,t+9,r-t-9);n.endCDATA();return r+3}var o=aF(e,t);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0];var u=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var h=s>4&&o[4][0];var c=o[s-1];n.startDTD(l,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),h&&h.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return c.index+c[0].length}}return-1}function tF(e,t,n){var i=e.indexOf("?>",t);if(i){var a=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(a){var r=a[0].length;n.processingInstruction(a[1],a[2]);return i+2}else{return-1}}return-1}function nF(e){}nF.prototype={setTagName:function e(t){if(!Fz.test(t)){throw new Error("invalid tagName:"+t)}this.tagName=t},add:function e(t,n,i){if(!Fz.test(t)){throw new Error("invalid attribute:"+t)}this[this.length++]={qName:t,value:n,offset:i}},length:0,getLocalName:function e(t){return this[t].localName},getLocator:function e(t){return this[t].locator},getQName:function e(t){return this[t].qName},getURI:function e(t){return this[t].uri},getValue:function e(t){return this[t].value}};function iF(e,t){e.__proto__=t;return e}if(!(iF({},iF.prototype)instanceof iF)){iF=function e(t,n){function i(){}i.prototype=n;i=new i;for(n in t){i[n]=t[n]}return i}}function aF(e,t){var n;var i=[];var a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;a.lastIndex=t;a.exec(e);while(n=a.exec(e)){i.push(n);if(n[1])return i}}var rF=Kz;var oF={XMLReader:rF};function sF(e,t){for(var n in e){t[n]=e[n]}}function lF(e,t){var n=e.prototype;if(Object.create){var i=Object.create(t.prototype);n.__proto__=i}if(!(n instanceof t)){var a=function e(){};a.prototype=t.prototype;a=new a;sF(n,a);e.prototype=n=a}if(n.constructor!=e){if(typeof e!="function"){console.error("unknow Class:"+e)}n.constructor=e}}var uF="http://www.w3.org/1999/xhtml";var hF={};var cF=hF.ELEMENT_NODE=1;var fF=hF.ATTRIBUTE_NODE=2;var dF=hF.TEXT_NODE=3;var gF=hF.CDATA_SECTION_NODE=4;var pF=hF.ENTITY_REFERENCE_NODE=5;var vF=hF.ENTITY_NODE=6;var mF=hF.PROCESSING_INSTRUCTION_NODE=7;var yF=hF.COMMENT_NODE=8;var _F=hF.DOCUMENT_NODE=9;var bF=hF.DOCUMENT_TYPE_NODE=10;var wF=hF.DOCUMENT_FRAGMENT_NODE=11;var xF=hF.NOTATION_NODE=12;var kF={};var SF={};var CF=kF.INDEX_SIZE_ERR=(SF[1]="Index size error",1);var EF=kF.DOMSTRING_SIZE_ERR=(SF[2]="DOMString size error",2);var AF=kF.HIERARCHY_REQUEST_ERR=(SF[3]="Hierarchy request error",3);var RF=kF.WRONG_DOCUMENT_ERR=(SF[4]="Wrong document",4);var MF=kF.INVALID_CHARACTER_ERR=(SF[5]="Invalid character",5);var TF=kF.NO_DATA_ALLOWED_ERR=(SF[6]="No data allowed",6);var BF=kF.NO_MODIFICATION_ALLOWED_ERR=(SF[7]="No modification allowed",7);var NF=kF.NOT_FOUND_ERR=(SF[8]="Not found",8);var PF=kF.NOT_SUPPORTED_ERR=(SF[9]="Not supported",9);var DF=kF.INUSE_ATTRIBUTE_ERR=(SF[10]="Attribute in use",10);var OF=kF.INVALID_STATE_ERR=(SF[11]="Invalid state",11);var zF=kF.SYNTAX_ERR=(SF[12]="Syntax error",12);var FF=kF.INVALID_MODIFICATION_ERR=(SF[13]="Invalid modification",13);var LF=kF.NAMESPACE_ERR=(SF[14]="Invalid namespace",14);var IF=kF.INVALID_ACCESS_ERR=(SF[15]="Invalid access",15);function jF(e,t){if(t instanceof Error){var n=t}else{n=this;Error.call(this,SF[e]);this.message=SF[e];if(Error.captureStackTrace)Error.captureStackTrace(this,jF)}n.code=e;if(t)this.message=this.message+": "+t;return n}jF.prototype=Error.prototype;sF(kF,jF);function HF(){}HF.prototype={length:0,item:function e(t){return this[t]||null},toString:function e(t,n){for(var i=[],a=0;a<this.length;a++){bL(this[a],i,t,n)}return i.join("")}};function VF(e,t){this._node=e;this._refresh=t;GF(this)}function GF(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);kL(e,"length",n.length);sF(n,e);e._inc=t}}VF.prototype.item=function(e){GF(this);return this[e]};lF(VF,HF);function UF(){}function WF(e,t){var n=e.length;while(n--){if(e[n]===t){return n}}}function KF(e,t,n,i){if(i){t[WF(t,i)]=n}else{t[t.length++]=n}if(e){n.ownerElement=e;var a=e.ownerDocument;if(a){i&&eL(a,e,i);QF(a,e,n)}}}function qF(e,t,n){var i=WF(t,n);if(i>=0){var a=t.length-1;while(i<a){t[i]=t[++i]}t.length=a;if(e){var r=e.ownerDocument;if(r){eL(r,e,n);n.ownerElement=null}}}else{throw jF(NF,new Error(e.tagName+"@"+n))}}UF.prototype={length:0,item:HF.prototype.item,getNamedItem:function e(t){var n=this.length;while(n--){var i=this[n];if(i.nodeName==t){return i}}},setNamedItem:function e(t){var n=t.ownerElement;if(n&&n!=this._ownerElement){throw new jF(DF)}var i=this.getNamedItem(t.nodeName);KF(this._ownerElement,this,t,i);return i},setNamedItemNS:function e(t){var n=t.ownerElement,i;if(n&&n!=this._ownerElement){throw new jF(DF)}i=this.getNamedItemNS(t.namespaceURI,t.localName);KF(this._ownerElement,this,t,i);return i},removeNamedItem:function e(t){var n=this.getNamedItem(t);qF(this._ownerElement,this,n);return n},removeNamedItemNS:function e(t,n){var i=this.getNamedItemNS(t,n);qF(this._ownerElement,this,i);return i},getNamedItemNS:function e(t,n){var i=this.length;while(i--){var a=this[i];if(a.localName==n&&a.namespaceURI==t){return a}}return null}};function YF(e){this._features={};if(e){for(var t in e){this._features=e[t]}}}YF.prototype={hasFeature:function e(t,n){var i=this._features[t.toLowerCase()];if(i&&(!n||n in i)){return true}else{return false}},createDocument:function e(t,n,i){var a=new JF;a.implementation=this;a.childNodes=new HF;a.doctype=i;if(i){a.appendChild(i)}if(n){var r=a.createElementNS(t,n);a.appendChild(r)}return a},createDocumentType:function e(t,n,i){var a=new cL;a.name=t;a.nodeName=t;a.publicId=n;a.systemId=i;return a}};function XF(){}XF.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 e(t,n){return iL(this,t,n)},replaceChild:function e(t,n){this.insertBefore(t,n);if(n){this.removeChild(n)}},removeChild:function e(t){return nL(this,t)},appendChild:function e(t){return this.insertBefore(t,null)},hasChildNodes:function e(){return this.firstChild!=null},cloneNode:function e(t){return xL(this.ownerDocument||this,this,t)},normalize:function e(){var t=this.firstChild;while(t){var n=t.nextSibling;if(n&&n.nodeType==dF&&t.nodeType==dF){this.removeChild(n);t.appendData(n.data)}else{t.normalize();t=n}}},isSupported:function e(t,n){return this.ownerDocument.implementation.hasFeature(t,n)},hasAttributes:function e(){return this.attributes.length>0},lookupPrefix:function e(t){var n=this;while(n){var i=n._nsMap;if(i){for(var a in i){if(i[a]==t){return a}}}n=n.nodeType==fF?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function e(t){var n=this;while(n){var i=n._nsMap;if(i){if(t in i){return i[t]}}n=n.nodeType==fF?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function e(t){var n=this.lookupPrefix(t);return n==null}};function $F(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}sF(hF,XF);sF(hF,XF.prototype);function ZF(e,t){if(t(e)){return true}if(e=e.firstChild){do{if(ZF(e,t)){return true}}while(e=e.nextSibling)}}function JF(){}function QF(e,t,n){e&&e._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){t._nsMap[n.prefix?n.localName:""]=n.value}}function eL(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;if(a=="http://www.w3.org/2000/xmlns/"){delete t._nsMap[n.prefix?n.localName:""]}}function tL(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n){i[i.length++]=n}else{var a=t.firstChild;var r=0;while(a){i[r++]=a;a=a.nextSibling}i.length=r}}}function nL(e,t){var n=t.previousSibling;var i=t.nextSibling;if(n){n.nextSibling=i}else{e.firstChild=i}if(i){i.previousSibling=n}else{e.lastChild=n}tL(e.ownerDocument,e);return t}function iL(e,t,n){var i=t.parentNode;if(i){i.removeChild(t)}if(t.nodeType===wF){var a=t.firstChild;if(a==null){return t}var r=t.lastChild}else{a=r=t}var o=n?n.previousSibling:e.lastChild;a.previousSibling=o;r.nextSibling=n;if(o){o.nextSibling=a}else{e.firstChild=a}if(n==null){e.lastChild=r}else{n.previousSibling=r}do{a.parentNode=e}while(a!==r&&(a=a.nextSibling));tL(e.ownerDocument||e,e);if(t.nodeType==wF){t.firstChild=t.lastChild=null}return t}function aL(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);var i=e.lastChild}var i=e.lastChild;t.parentNode=e;t.previousSibling=i;t.nextSibling=null;if(i){i.nextSibling=t}else{e.firstChild=t}e.lastChild=t;tL(e.ownerDocument,e,t);return t}JF.prototype={nodeName:"#document",nodeType:_F,doctype:null,documentElement:null,_inc:1,insertBefore:function e(t,n){if(t.nodeType==wF){var i=t.firstChild;while(i){var a=i.nextSibling;this.insertBefore(i,n);i=a}return t}if(this.documentElement==null&&t.nodeType==cF){this.documentElement=t}return iL(this,t,n),t.ownerDocument=this,t},removeChild:function e(t){if(this.documentElement==t){this.documentElement=null}return nL(this,t)},importNode:function e(t,n){return wL(this,t,n)},getElementById:function e(t){var n=null;ZF(this.documentElement,function(e){if(e.nodeType==cF){if(e.getAttribute("id")==t){n=e;return true}}});return n},createElement:function e(t){var n=new rL;n.ownerDocument=this;n.nodeName=t;n.tagName=t;n.childNodes=new HF;var i=n.attributes=new UF;i._ownerElement=n;return n},createDocumentFragment:function e(){var t=new pL;t.ownerDocument=this;t.childNodes=new HF;return t},createTextNode:function e(t){var n=new lL;n.ownerDocument=this;n.appendData(t);return n},createComment:function e(t){var n=new uL;n.ownerDocument=this;n.appendData(t);return n},createCDATASection:function e(t){var n=new hL;n.ownerDocument=this;n.appendData(t);return n},createProcessingInstruction:function e(t,n){var i=new vL;i.ownerDocument=this;i.tagName=i.target=t;i.nodeValue=i.data=n;return i},createAttribute:function e(t){var n=new oL;n.ownerDocument=this;n.name=t;n.nodeName=t;n.localName=t;n.specified=true;return n},createEntityReference:function e(t){var n=new gL;n.ownerDocument=this;n.nodeName=t;return n},createElementNS:function e(t,n){var i=new rL;var a=n.split(":");var r=i.attributes=new UF;i.childNodes=new HF;i.ownerDocument=this;i.nodeName=n;i.tagName=n;i.namespaceURI=t;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}r._ownerElement=i;return i},createAttributeNS:function e(t,n){var i=new oL;var a=n.split(":");i.ownerDocument=this;i.nodeName=n;i.name=n;i.namespaceURI=t;i.specified=true;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}return i}};lF(JF,XF);function rL(){this._nsMap={}}rL.prototype={nodeType:cF,hasAttribute:function e(t){return this.getAttributeNode(t)!=null},getAttribute:function e(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function e(t){return this.attributes.getNamedItem(t)},setAttribute:function e(t,n){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+n;this.setAttributeNode(i)},removeAttribute:function e(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function e(t){if(t.nodeType===wF){return this.insertBefore(t,null)}else{return aL(this,t)}},setAttributeNode:function e(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function e(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function e(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);i&&this.removeAttributeNode(i)},hasAttributeNS:function e(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);return i&&i.value||""},setAttributeNS:function e(t,n,i){var a=this.ownerDocument.createAttributeNS(t,n);a.value=a.nodeValue=""+i;this.setAttributeNode(a)},getAttributeNodeNS:function e(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function e(i){return new VF(this,function(t){var n=[];ZF(t,function(e){if(e!==t&&e.nodeType==cF&&(i==="*"||e.tagName==i)){n.push(e)}});return n})},getElementsByTagNameNS:function e(i,a){return new VF(this,function(t){var n=[];ZF(t,function(e){if(e!==t&&e.nodeType===cF&&(i==="*"||e.namespaceURI===i)&&(a==="*"||e.localName==a)){n.push(e)}});return n})}};JF.prototype.getElementsByTagName=rL.prototype.getElementsByTagName;JF.prototype.getElementsByTagNameNS=rL.prototype.getElementsByTagNameNS;lF(rL,XF);function oL(){}oL.prototype.nodeType=fF;lF(oL,XF);function sL(){}sL.prototype={data:"",substringData:function e(t,n){return this.data.substring(t,t+n)},appendData:function e(t){t=this.data+t;this.nodeValue=this.data=t;this.length=t.length},insertData:function e(t,n){this.replaceData(t,0,n)},appendChild:function e(t){throw new Error(SF[AF])},deleteData:function e(t,n){this.replaceData(t,n,"")},replaceData:function e(t,n,i){var a=this.data.substring(0,t);var r=this.data.substring(t+n);i=a+i+r;this.nodeValue=this.data=i;this.length=i.length}};lF(sL,XF);function lL(){}lL.prototype={nodeName:"#text",nodeType:dF,splitText:function e(t){var n=this.data;var i=n.substring(t);n=n.substring(0,t);this.data=this.nodeValue=n;this.length=n.length;var a=this.ownerDocument.createTextNode(i);if(this.parentNode){this.parentNode.insertBefore(a,this.nextSibling)}return a}};lF(lL,sL);function uL(){}uL.prototype={nodeName:"#comment",nodeType:yF};lF(uL,sL);function hL(){}hL.prototype={nodeName:"#cdata-section",nodeType:gF};lF(hL,sL);function cL(){}cL.prototype.nodeType=bF;lF(cL,XF);function fL(){}fL.prototype.nodeType=xF;lF(fL,XF);function dL(){}dL.prototype.nodeType=vF;lF(dL,XF);function gL(){}gL.prototype.nodeType=pF;lF(gL,XF);function pL(){}pL.prototype.nodeName="#document-fragment";pL.prototype.nodeType=wF;lF(pL,XF);function vL(){}vL.prototype.nodeType=mF;lF(vL,XF);function mL(){}mL.prototype.serializeToString=function(e,t,n){return yL.call(e,t,n)};XF.prototype.toString=yL;function yL(e,t){var n=[];var i=this.nodeType==9?this.documentElement:this;var a=i.prefix;var r=i.namespaceURI;if(r&&a==null){var a=i.lookupPrefix(r);if(a==null){var o=[{namespace:r,prefix:null}]}}bL(this,n,e,t,o);return n.join("")}function _L(e,t,n){var i=e.prefix||"";var a=e.namespaceURI;if(!i&&!a){return false}if(i==="xml"&&a==="http://www.w3.org/XML/1998/namespace"||a=="http://www.w3.org/2000/xmlns/"){return false}var r=n.length;while(r--){var o=n[r];if(o.prefix==i){return o.namespace!=a}}return true}function bL(e,t,n,i,a){if(i){e=i(e);if(e){if(typeof e=="string"){t.push(e);return}}else{return}}switch(e.nodeType){case cF:if(!a)a=[];var r=a.length;var o=e.attributes;var s=o.length;var l=e.firstChild;var u=e.tagName;n=uF===e.namespaceURI||n;t.push("<",u);for(var h=0;h<s;h++){var c=o.item(h);if(c.prefix=="xmlns"){a.push({prefix:c.localName,namespace:c.value})}else if(c.nodeName=="xmlns"){a.push({prefix:"",namespace:c.value})}}for(var h=0;h<s;h++){var c=o.item(h);if(_L(c,n,a)){var f=c.prefix||"";var d=c.namespaceURI;var g=f?" xmlns:"+f:" xmlns";t.push(g,'="',d,'"');a.push({prefix:f,namespace:d})}bL(c,t,n,i,a)}if(_L(e,n,a)){var f=e.prefix||"";var d=e.namespaceURI;var g=f?" xmlns:"+f:" xmlns";t.push(g,'="',d,'"');a.push({prefix:f,namespace:d})}if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){t.push(">");if(n&&/^script$/i.test(u)){while(l){if(l.data){t.push(l.data)}else{bL(l,t,n,i,a)}l=l.nextSibling}}else{while(l){bL(l,t,n,i,a);l=l.nextSibling}}t.push("</",u,">")}else{t.push("/>")}return;case _F:case wF:var l=e.firstChild;while(l){bL(l,t,n,i,a);l=l.nextSibling}return;case fF:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,$F),'"');case dF:return t.push(e.data.replace(/[<&]/g,$F));case gF:return t.push("<![CDATA[",e.data,"]]>");case yF:return t.push("\x3c!--",e.data,"--\x3e");case bF:var p=e.publicId;var v=e.systemId;t.push("<!DOCTYPE ",e.name);if(p){t.push(' PUBLIC "',p);if(v&&v!="."){t.push('" "',v)}t.push('">')}else if(v&&v!="."){t.push(' SYSTEM "',v,'">')}else{var m=e.internalSubset;if(m){t.push(" [",m,"]")}t.push(">")}return;case mF:return t.push("<?",e.target," ",e.data,"?>");case pF:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function wL(e,t,n){var i;switch(t.nodeType){case cF:i=t.cloneNode(false);i.ownerDocument=e;case wF:break;case fF:n=true;break}if(!i){i=t.cloneNode(false)}i.ownerDocument=e;i.parentNode=null;if(n){var a=t.firstChild;while(a){i.appendChild(wL(e,a,n));a=a.nextSibling}}return i}function xL(e,t,n){var i=new t.constructor;for(var a in t){var r=t[a];if(_typeof2(r)!="object"){if(r!=i[a]){i[a]=r}}}if(t.childNodes){i.childNodes=new HF}i.ownerDocument=e;switch(i.nodeType){case cF:var o=t.attributes;var s=i.attributes=new UF;var l=o.length;s._ownerElement=i;for(var u=0;u<l;u++){i.setAttributeNode(xL(e,o.item(u),true))}break;case fF:n=true}if(n){var h=t.firstChild;while(h){i.appendChild(xL(e,h,n));h=h.nextSibling}}return i}function kL(e,t,n){e[t]=n}try{if(Object.defineProperty){var SL=function e(t){switch(t.nodeType){case cF:case wF:var n=[];t=t.firstChild;while(t){if(t.nodeType!==7&&t.nodeType!==8){n.push(e(t))}t=t.nextSibling}return n.join("");default:return t.nodeValue}};Object.defineProperty(VF.prototype,"length",{get:function e(){GF(this);return this.$$length}});Object.defineProperty(XF.prototype,"textContent",{get:function e(){return SL(this)},set:function e(t){switch(this.nodeType){case cF:case wF:while(this.firstChild){this.removeChild(this.firstChild)}if(t||String(t)){this.appendChild(this.ownerDocument.createTextNode(t))}break;default:this.data=t;this.value=t;this.nodeValue=t}}});kL=function e(t,n,i){t["$$"+n]=i}}}catch(e){}var CL=YF;var EL=mL;var AL={DOMImplementation:CL,XMLSerializer:EL};var RL=DN(function(e,t){function n(e){this.options=e||{locator:{}}}n.prototype.parseFromString=function(e,t){var n=this.options;var i=new d;var a=n.domBuilder||new h;var r=n.errorHandler;var o=n.locator;var s=n.xmlns||{};var l={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};if(o){a.setDocumentLocator(o)}i.errorHandler=u(r,a,o);i.domBuilder=n.domBuilder||a;if(/\/x?html?$/.test(t)){l.nbsp=" ";l.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(e){i.parse(e,s,l)}else{i.errorHandler.error("invalid doc source")}return a.doc};function u(i,e,a){if(!i){if(e instanceof h){return e}i=e}var r={};var o=i instanceof Function;a=a||{};function t(t){var n=i[t];if(!n&&o){n=i.length==2?function(e){i(t,e)}:i}r[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+s(a))}||function(){}}t("warning");t("error");t("fatalError");return r}function h(){this.cdata=false}function c(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber}h.prototype={startDocument:function e(){this.doc=(new i).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function e(t,n,i,a){var r=this.doc;var o=r.createElementNS(t,i||n);var s=a.length;f(this,o);this.currentElement=o;this.locator&&c(this.locator,o);for(var l=0;l<s;l++){var t=a.getURI(l);var u=a.getValue(l);var i=a.getQName(l);var h=r.createAttributeNS(t,i);this.locator&&c(a.getLocator(l),h);h.value=h.nodeValue=u;o.setAttributeNode(h)}},endElement:function e(t,n,i){var a=this.currentElement;var r=a.tagName;this.currentElement=a.parentNode},startPrefixMapping:function e(t,n){},endPrefixMapping:function e(t){},processingInstruction:function e(t,n){var i=this.doc.createProcessingInstruction(t,n);this.locator&&c(this.locator,i);f(this,i)},ignorableWhitespace:function e(t,n,i){},characters:function e(t,n,i){t=r.apply(this,arguments);if(t){if(this.cdata){var a=this.doc.createCDATASection(t)}else{var a=this.doc.createTextNode(t)}if(this.currentElement){this.currentElement.appendChild(a)}else if(/^\s*$/.test(t)){this.doc.appendChild(a)}this.locator&&c(this.locator,a)}},skippedEntity:function e(t){},endDocument:function e(){this.doc.normalize()},setDocumentLocator:function e(t){if(this.locator=t){t.lineNumber=0}},comment:function e(t,n,i){t=r.apply(this,arguments);var a=this.doc.createComment(t);this.locator&&c(this.locator,a);f(this,a)},startCDATA:function e(){this.cdata=true},endCDATA:function e(){this.cdata=false},startDTD:function e(t,n,i){var a=this.doc.implementation;if(a&&a.createDocumentType){var r=a.createDocumentType(t,n,i);this.locator&&c(this.locator,r);f(this,r)}},warning:function e(t){console.warn("[xmldom warning]\t"+t,s(this.locator))},error:function e(t){console.error("[xmldom error]\t"+t,s(this.locator))},fatalError:function e(t){console.error("[xmldom fatalError]\t"+t,s(this.locator));throw t}};function s(e){if(e){return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}}function r(e,t,n){if(typeof e=="string"){return e.substr(t,n)}else{if(e.length>=t+n||t){return new java.lang.String(e,t,n)+""}return e}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}});function f(e,t){if(!e.currentElement){e.doc.appendChild(t)}else{e.currentElement.appendChild(t)}}var d=oF.XMLReader;var i=t.DOMImplementation=AL.DOMImplementation;t.XMLSerializer=AL.XMLSerializer;t.DOMParser=n});function ML(e,t,n){if(e==null&&t==null&&n==null){var i=document.querySelectorAll("svg");for(var a=0;a<i.length;a++){var r=i[a];var o=document.createElement("canvas");o.width=r.clientWidth;o.height=r.clientHeight;r.parentNode.insertBefore(o,r);r.parentNode.removeChild(r);var s=document.createElement("div");s.appendChild(r);ML(o,s.innerHTML)}return}if(typeof e=="string"){e=document.getElementById(e)}if(e.svg!=null)e.svg.stop();var l=NL(n||{});if(!(e.childNodes.length==1&&e.childNodes[0].nodeName=="OBJECT"))e.svg=l;var u=e.getContext("2d");if(typeof t.documentElement!="undefined"){l.loadXmlDoc(u,t)}else if(t.substr(0,1)=="<"){l.loadXml(u,t)}else{l.load(u,t)}}function TL(){var e;if(typeof Element.prototype.matches!="undefined"){e=function e(t,n){return t.matches(n)}}else if(typeof Element.prototype.webkitMatchesSelector!="undefined"){e=function e(t,n){return t.webkitMatchesSelector(n)}}else if(typeof Element.prototype.mozMatchesSelector!="undefined"){e=function e(t,n){return t.mozMatchesSelector(n)}}else if(typeof Element.prototype.msMatchesSelector!="undefined"){e=function e(t,n){return t.msMatchesSelector(n)}}else if(typeof Element.prototype.oMatchesSelector!="undefined"){e=function e(t,n){return t.oMatchesSelector(n)}}else{if(typeof jQuery=="function"||typeof Zepto=="function"){e=function e(t,n){return $(t).is(n)}}if(typeof e=="undefined"){e=Sizzle.matchesSelector}}return e}function BL(a){var r=[0,0,0];var e=/(\[[^\]]+\])/g;var t=/(#[^\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 l=/([^\s\+>~\.\[:]+)/g;var u=function e(t,n){var i=a.match(t);if(i==null){return}r[n]+=i.length;a=a.replace(t," ")};a=a.replace(/:not\(([^\)]*)\)/g," $1 ");a=a.replace(/{[^]*/gm," ");u(e,1);u(t,0);u(n,1);u(i,2);u(o,1);u(s,1);a=a.replace(/[\*\s\+>~]/g," ");a=a.replace(/[#\.]/g," ");u(l,2);return r.join("")}function NL(e){var N={opts:e};var u=TL();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(e,t,n,i,a,r){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:t,offsetY:n,scaleWidth:i,scaleHeight:a};for(var s in r){if(r.hasOwnProperty(s)){o[s]=r[s]}}ML(this.canvas,e,o)}}N.FRAMERATE=30;N.MAX_VIRTUAL_PIXELS=3e4;N.log=function(e){};if(N.opts.log==true&&typeof console!="undefined"){N.log=function(e){console.log(e)}}N.init=function(e){var t=0;N.UniqueId=function(){t++;return"canvg"+t};N.Definitions={};N.Styles={};N.StylesSpecificity={};N.Animations=[];N.Images=[];N.ctx=e;N.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(e,t){this.viewPorts.push({width:e,height:t})};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(e){if(e!=null&&typeof e=="number")return e;if(e=="x")return this.width();if(e=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};N.init();N.ImagesLoaded=function(){for(var e=0;e<N.Images.length;e++){if(!N.Images[e].loaded)return false}return true};N.trim=function(e){return e.replace(/^\s+|\s+$/g,"")};N.compressSpaces=function(e){return e.replace(/[\s\r\t\n]+/gm," ")};N.ajax=function(e){var t;if(window.XMLHttpRequest){t=new XMLHttpRequest}else{t=new ActiveXObject("Microsoft.XMLHTTP")}if(t){t.open("GET",e,false);t.send(null);return t.responseText}return null};N.parseXml=function(e){if(typeof Windows!="undefined"&&typeof Windows.Data!="undefined"&&typeof Windows.Data.Xml!="undefined"){var t=new Windows.Data.Xml.Dom.XmlDocument;var n=new Windows.Data.Xml.Dom.XmlLoadSettings;n.prohibitDtd=false;t.loadXml(e,n);return t}else if(window.DOMParser){var i=new DOMParser;return i.parseFromString(e,"text/xml")}else{e=e.replace(/<!DOCTYPE svg[^>]*>/,"");var t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(e);return t}};N.Property=function(e,t){this.name=e;this.value=t};N.Property.prototype.getValue=function(){return this.value};N.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};N.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);if((this.value+"").match(/%$/)){e=e/100}return e};N.Property.prototype.valueOrDefault=function(e){if(this.hasValue())return this.value;return e};N.Property.prototype.numValueOrDefault=function(e){if(this.hasValue())return this.numValue();return e};N.Property.prototype.addOpacity=function(e){var t=this.value;if(e.value!=null&&e.value!=""&&typeof this.value=="string"){var n=new Mz(this.value);if(n.ok){t="rgba("+n.r+", "+n.g+", "+n.b+", "+e.numValue()+")"}}return new N.Property(this.name,t)};N.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);if(e){e=e[1]}if(!e){e=this.value}return N.Definitions[e]};N.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};N.Property.prototype.getFillStyleDefinition=function(e,t){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(N.ctx,e,t)}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(N.ctx,e)}return null};N.Property.prototype.getDPI=function(e){return 96};N.Property.prototype.getEM=function(e){var t=12;var n=new N.Property("fontSize",N.Font.Parse(N.ctx.font).fontSize);if(n.hasValue())t=n.toPixels(e);return t};N.Property.prototype.getUnits=function(){var e=this.value+"";return e.replace(/[0-9\.\-]/g,"")};N.Property.prototype.toPixels=function(e,t){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(e);if(n.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(e);if(n.match(/%$/))return this.numValue()*N.ViewPort.ComputeSize(e);var i=this.numValue();if(t&&i<1)return i*N.ViewPort.ComputeSize(e);return i};N.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/s$/))return this.numValue()*1e3;if(e.match(/ms$/))return this.numValue();return this.numValue()};N.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/deg$/))return this.numValue()*(Math.PI/180);if(e.match(/grad$/))return this.numValue()*(Math.PI/200);if(e.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var t={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"};N.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return t[this.value]};N.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(e,t,n,i,a,r){var o=r!=null?this.Parse(r):this.CreateFont("","","","","",N.ctx.font);return{fontFamily:a||o.fontFamily,fontSize:i||o.fontSize,fontStyle:e||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:t||o.fontVariant,toString:function e(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(e){var t={};var n=N.trim(N.compressSpaces(e||"")).split(" ");var i={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var a="";for(var r=0;r<n.length;r++){if(!i.fontStyle&&o.Styles.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontStyle=n[r];i.fontStyle=true}else if(!i.fontVariant&&o.Variants.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontVariant=n[r];i.fontStyle=i.fontVariant=true}else if(!i.fontWeight&&o.Weights.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontWeight=n[r];i.fontStyle=i.fontVariant=i.fontWeight=true}else if(!i.fontSize){if(n[r]!="inherit")t.fontSize=n[r].split("/")[0];i.fontStyle=i.fontVariant=i.fontWeight=i.fontSize=true}else{if(n[r]!="inherit")a+=n[r]}}if(a!="")t.fontFamily=a;return t}};N.ToNumberArray=function(e){var t=N.trim(N.compressSpaces((e||"").replace(/,/g," "))).split(" ");for(var n=0;n<t.length;n++){t[n]=parseFloat(t[n])}return t};N.Point=function(e,t){this.x=e;this.y=t};N.Point.prototype.angleTo=function(e){return Math.atan2(e.y-this.y,e.x-this.x)};N.Point.prototype.applyTransform=function(e){var t=this.x*e[0]+this.y*e[2]+e[4];var n=this.x*e[1]+this.y*e[3]+e[5];this.x=t;this.y=n};N.CreatePoint=function(e){var t=N.ToNumberArray(e);return new N.Point(t[0],t[1])};N.CreatePath=function(e){var t=N.ToNumberArray(e);var n=[];for(var i=0;i<t.length;i+=2){n.push(new N.Point(t[i],t[i+1]))}return n};N.BoundingBox=function(e,t,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(e,t){if(e!=null){if(isNaN(this.x1)||isNaN(this.x2)){this.x1=e;this.x2=e}if(e<this.x1)this.x1=e;if(e>this.x2)this.x2=e}if(t!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=t;this.y2=t}if(t<this.y1)this.y1=t;if(t>this.y2)this.y2=t}};this.addX=function(e){this.addPoint(e,null)};this.addY=function(e){this.addPoint(null,e)};this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1);this.addPoint(e.x2,e.y2)};this.addQuadraticCurve=function(e,t,n,i,a,r){var o=e+2/3*(n-e);var s=t+2/3*(i-t);var l=o+1/3*(a-e);var u=s+1/3*(r-t);this.addBezierCurve(e,t,o,l,s,u,a,r)};this.addBezierCurve=function(e,t,n,i,a,r,o,s){var l=[e,t],u=[n,i],h=[a,r],c=[o,s];this.addPoint(l[0],l[1]);this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var d=function e(t){return Math.pow(1-t,3)*l[f]+3*Math.pow(1-t,2)*t*u[f]+3*(1-t)*Math.pow(t,2)*h[f]+Math.pow(t,3)*c[f]};var g=6*l[f]-12*u[f]+6*h[f];var p=-3*l[f]+9*u[f]-9*h[f]+3*c[f];var v=3*u[f]-3*l[f];if(p==0){if(g==0)continue;var m=-v/g;if(0<m&&m<1){if(f==0)this.addX(d(m));if(f==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(f==0)this.addX(d(_));if(f==1)this.addY(d(_))}var b=(-g-Math.sqrt(y))/(2*p);if(0<b&&b<1){if(f==0)this.addX(d(b));if(f==1)this.addY(d(b))}}};this.isPointInBox=function(e,t){return this.x1<=e&&e<=this.x2&&this.y1<=t&&t<=this.y2};this.addPoint(e,t);this.addPoint(n,i)};N.Transform=function(e){var t=this;this.Type={};this.Type.translate=function(e){this.p=N.CreatePoint(e);this.apply=function(e){e.translate(this.p.x||0,this.p.y||0)};this.unapply=function(e){e.translate(-1*this.p.x||0,-1*this.p.y||0)};this.applyToPoint=function(e){e.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}};this.Type.rotate=function(e){var t=N.ToNumberArray(e);this.angle=new N.Property("angle",t[0]);this.cx=t[1]||0;this.cy=t[2]||0;this.apply=function(e){e.translate(this.cx,this.cy);e.rotate(this.angle.toRadians());e.translate(-this.cx,-this.cy)};this.unapply=function(e){e.translate(this.cx,this.cy);e.rotate(-1*this.angle.toRadians());e.translate(-this.cx,-this.cy)};this.applyToPoint=function(e){var t=this.angle.toRadians();e.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]);e.applyTransform([Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0]);e.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}};this.Type.scale=function(e){this.p=N.CreatePoint(e);this.apply=function(e){e.scale(this.p.x||1,this.p.y||this.p.x||1)};this.unapply=function(e){e.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)};this.applyToPoint=function(e){e.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}};this.Type.matrix=function(e){this.m=N.ToNumberArray(e);this.apply=function(e){e.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};this.unapply=function(e){var t=this.m[0];var n=this.m[2];var i=this.m[4];var a=this.m[1];var r=this.m[3];var o=this.m[5];var s=0;var l=0;var u=1;var h=1/(t*(r*u-o*l)-n*(a*u-o*s)+i*(a*l-r*s));e.transform(h*(r*u-o*l),h*(o*s-a*u),h*(i*l-n*u),h*(t*u-i*s),h*(n*o-i*r),h*(i*a-t*o))};this.applyToPoint=function(e){e.applyTransform(this.m)}};this.Type.SkewBase=function(e){this.base=t.Type.matrix;this.base(e);this.angle=new N.Property("angle",e)};this.Type.SkewBase.prototype=new this.Type.matrix;this.Type.skewX=function(e){this.base=t.Type.SkewBase;this.base(e);this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]};this.Type.skewX.prototype=new this.Type.SkewBase;this.Type.skewY=function(e){this.base=t.Type.SkewBase;this.base(e);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(e){for(var t=0;t<this.transforms.length;t++){this.transforms[t].apply(e)}};this.unapply=function(e){for(var t=this.transforms.length-1;t>=0;t--){this.transforms[t].unapply(e)}};this.applyToPoint=function(e){for(var t=0;t<this.transforms.length;t++){this.transforms[t].applyToPoint(e)}};var n=N.trim(N.compressSpaces(e)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);for(var i=0;i<n.length;i++){var a=N.trim(n[i].split("(")[0]);var r=n[i].split("(")[1].replace(")","");var o=this.Type[a];if(typeof o!="undefined"){var s=new o(r);s.type=a;this.transforms.push(s)}}};N.AspectRatio=function(e,t,n,i,a,r,o,s,l,u){t=N.compressSpaces(t);t=t.replace(/^defer\s/,"");var h=t.split(" ")[0]||"xMidYMid";var c=t.split(" ")[1]||"meet";var f=n/i;var d=a/r;var g=Math.min(f,d);var p=Math.max(f,d);if(c=="meet"){i*=g;r*=g}if(c=="slice"){i*=p;r*=p}l=new N.Property("refX",l);u=new N.Property("refY",u);if(l.hasValue()&&u.hasValue()){e.translate(-g*l.toPixels("x"),-g*u.toPixels("y"))}else{if(h.match(/^xMid/)&&(c=="meet"&&g==d||c=="slice"&&p==d))e.translate(n/2-i/2,0);if(h.match(/YMid$/)&&(c=="meet"&&g==f||c=="slice"&&p==f))e.translate(0,a/2-r/2);if(h.match(/^xMax/)&&(c=="meet"&&g==d||c=="slice"&&p==d))e.translate(n-i,0);if(h.match(/YMax$/)&&(c=="meet"&&g==f||c=="slice"&&p==f))e.translate(0,a-r)}if(h=="none")e.scale(f,d);else if(c=="meet")e.scale(g,g);else if(c=="slice")e.scale(p,p);e.translate(o==null?0:-o,s==null?0:-s)};N.Element={};N.EmptyProperty=new N.Property("EMPTY","");N.Element.ElementBase=function(r){this.attributes={};this.styles={};this.stylesSpecificity={};this.children=[];this.attribute=function(e,t){var n=this.attributes[e];if(n!=null)return n;if(t==true){n=new N.Property(e,"");this.attributes[e]=n}return n||N.EmptyProperty};this.getHrefAttribute=function(){for(var e in this.attributes){if(e=="href"||e.match(/:href$/)){return this.attributes[e]}}return N.EmptyProperty};this.style=function(e,t,n){var i=this.styles[e];if(i!=null)return i;var a=this.attribute(e);if(a!=null&&a.hasValue()){this.styles[e]=a;return a}if(n!=true){var r=this.parent;if(r!=null){var o=r.style(e);if(o!=null&&o.hasValue()){return o}}}if(t==true){i=new N.Property(e,"");this.styles[e]=i}return i||N.EmptyProperty};this.render=function(e){if(this.style("display").value=="none")return;if(this.style("visibility").value=="hidden")return;e.save();if(this.style("mask").hasValue()){var t=this.style("mask").getDefinition();if(t!=null)t.apply(e,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();if(n!=null)n.apply(e,this)}else{this.setContext(e);this.renderChildren(e);this.clearContext(e)}e.restore()};this.setContext=function(e){};this.clearContext=function(e){};this.renderChildren=function(e){for(var t=0;t<this.children.length;t++){this.children[t].render(e)}};this.addChild=function(e,t){var n=e;if(t)n=N.CreateElement(e);n.parent=this;if(n.type!="title"){this.children.push(n)}};this.addStylesFromStyleDefinition=function(){for(var e in N.Styles){if(e[0]!="@"&&u(r,e)){var t=N.Styles[e];var n=N.StylesSpecificity[e];if(t!=null){for(var i in t){var a=this.stylesSpecificity[i];if(typeof a=="undefined"){a="000"}if(n>a){this.styles[i]=t[i];this.stylesSpecificity[i]=n}}}}}};if(r!=null&&r.nodeType==1){for(var e=0;e<r.attributes.length;e++){var t=r.attributes[e];this.attributes[t.nodeName]=new N.Property(t.nodeName,t.value)}this.addStylesFromStyleDefinition();if(this.attribute("style").hasValue()){var n=this.attribute("style").value.split(";");for(var e=0;e<n.length;e++){if(N.trim(n[e])!=""){var i=n[e].split(":");var a=N.trim(i[0]);var o=N.trim(i[1]);this.styles[a]=new N.Property(a,o)}}}if(this.attribute("id").hasValue()){if(N.Definitions[this.attribute("id").value]==null){N.Definitions[this.attribute("id").value]=this}}for(var e=0;e<r.childNodes.length;e++){var s=r.childNodes[e];if(s.nodeType==1)this.addChild(s,true);if(this.captureTextNodes&&(s.nodeType==3||s.nodeType==4)){var l=s.value||s.text||s.textContent||"";if(N.compressSpaces(l)!=""){this.addChild(new N.Element.tspan(s),false)}}}}};N.Element.RenderedElementBase=function(e){this.base=N.Element.ElementBase;this.base(e);this.setContext=function(e){if(this.style("fill").isUrlDefinition()){var t=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));if(t!=null)e.fillStyle=t}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")e.fillStyle=n.value=="none"?"rgba(0,0,0,0)":n.value}if(this.style("fill-opacity").hasValue()){var n=new N.Property("fill",e.fillStyle);n=n.addOpacity(this.style("fill-opacity"));e.fillStyle=n.value}if(this.style("stroke").isUrlDefinition()){var t=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));if(t!=null)e.strokeStyle=t}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")e.strokeStyle=i.value=="none"?"rgba(0,0,0,0)":i.value}if(this.style("stroke-opacity").hasValue()){var i=new N.Property("stroke",e.strokeStyle);i=i.addOpacity(this.style("stroke-opacity"));e.strokeStyle=i.value}if(this.style("stroke-width").hasValue()){var a=this.style("stroke-width").toPixels();e.lineWidth=a==0?.001:a}if(this.style("stroke-linecap").hasValue())e.lineCap=this.style("stroke-linecap").value;if(this.style("stroke-linejoin").hasValue())e.lineJoin=this.style("stroke-linejoin").value;if(this.style("stroke-miterlimit").hasValue())e.miterLimit=this.style("stroke-miterlimit").value;if(this.style("stroke-dasharray").hasValue()&&this.style("stroke-dasharray").value!="none"){var r=N.ToNumberArray(this.style("stroke-dasharray").value);if(typeof e.setLineDash!="undefined"){e.setLineDash(r)}else if(typeof e.webkitLineDash!="undefined"){e.webkitLineDash=r}else if(typeof e.mozDash!="undefined"&&!(r.length==1&&r[0]==0)){e.mozDash=r}var o=this.style("stroke-dashoffset").numValueOrDefault(1);if(typeof e.lineDashOffset!="undefined"){e.lineDashOffset=o}else if(typeof e.webkitLineDashOffset!="undefined"){e.webkitLineDashOffset=o}else if(typeof e.mozDashOffset!="undefined"){e.mozDashOffset=o}}if(typeof e.font!="undefined"){e.font=N.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 N.Transform(this.style("transform",false,true).value);s.apply(e)}if(this.style("clip-path",false,true).hasValue()){var l=this.style("clip-path",false,true).getDefinition();if(l!=null)l.apply(e)}if(this.style("opacity").hasValue()){e.globalAlpha=this.style("opacity").numValue()}}};N.Element.RenderedElementBase.prototype=new N.Element.ElementBase;N.Element.PathElementBase=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.path=function(e){if(e!=null)e.beginPath();return new N.BoundingBox};this.renderChildren=function(e){this.path(e);N.Mouse.checkPath(this,e);if(e.fillStyle!=""){if(this.style("fill-rule").valueOrDefault("inherit")!="inherit"){e.fill(this.style("fill-rule").value)}else{e.fill()}}if(e.strokeStyle!="")e.stroke();var t=this.getMarkers();if(t!=null){if(this.style("marker-start").isUrlDefinition()){var n=this.style("marker-start").getDefinition();n.render(e,t[0][0],t[0][1])}if(this.style("marker-mid").isUrlDefinition()){var n=this.style("marker-mid").getDefinition();for(var i=1;i<t.length-1;i++){n.render(e,t[i][0],t[i][1])}}if(this.style("marker-end").isUrlDefinition()){var n=this.style("marker-end").getDefinition();n.render(e,t[t.length-1][0],t[t.length-1][1])}}};this.getBoundingBox=function(){return this.path()};this.getMarkers=function(){return null}};N.Element.PathElementBase.prototype=new N.Element.RenderedElementBase;N.Element.svg=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.baseClearContext=this.clearContext;this.clearContext=function(e){this.baseClearContext(e);N.ViewPort.RemoveCurrent()};this.baseSetContext=this.setContext;this.setContext=function(e){e.strokeStyle="rgba(0,0,0,0)";e.lineCap="butt";e.lineJoin="miter";e.miterLimit=4;if(typeof e.font!="undefined"&&typeof window.getComputedStyle!="undefined"){e.font=window.getComputedStyle(e.canvas).getPropertyValue("font")}this.baseSetContext(e);if(!this.attribute("x").hasValue())this.attribute("x",true).value=0;if(!this.attribute("y").hasValue())this.attribute("y",true).value=0;e.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var t=N.ViewPort.width();var n=N.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"){t=this.attribute("width").toPixels("x");n=this.attribute("height").toPixels("y");var i=0;var a=0;if(this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()){i=-this.attribute("refX").toPixels("x");a=-this.attribute("refY").toPixels("y")}if(this.attribute("overflow").valueOrDefault("hidden")!="visible"){e.beginPath();e.moveTo(i,a);e.lineTo(t,a);e.lineTo(t,n);e.lineTo(i,n);e.closePath();e.clip()}}N.ViewPort.SetCurrent(t,n);if(this.attribute("viewBox").hasValue()){var r=N.ToNumberArray(this.attribute("viewBox").value);var o=r[0];var s=r[1];t=r[2];n=r[3];N.AspectRatio(e,this.attribute("preserveAspectRatio").value,N.ViewPort.width(),t,N.ViewPort.height(),n,o,s,this.attribute("refX").value,this.attribute("refY").value);N.ViewPort.RemoveCurrent();N.ViewPort.SetCurrent(r[2],r[3])}}};N.Element.svg.prototype=new N.Element.RenderedElementBase;N.Element.rect=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");var r=this.attribute("rx").toPixels("x");var o=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue())o=r;if(this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue())r=o;r=Math.min(r,i/2);o=Math.min(o,a/2);if(e!=null){e.beginPath();e.moveTo(t+r,n);e.lineTo(t+i-r,n);e.quadraticCurveTo(t+i,n,t+i,n+o);e.lineTo(t+i,n+a-o);e.quadraticCurveTo(t+i,n+a,t+i-r,n+a);e.lineTo(t+r,n+a);e.quadraticCurveTo(t,n+a,t,n+a-o);e.lineTo(t,n+o);e.quadraticCurveTo(t,n,t+r,n);e.closePath()}return new N.BoundingBox(t,n,t+i,n+a)}};N.Element.rect.prototype=new N.Element.PathElementBase;N.Element.circle=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=this.attribute("cx").toPixels("x");var n=this.attribute("cy").toPixels("y");var i=this.attribute("r").toPixels();if(e!=null){e.beginPath();e.arc(t,n,i,0,Math.PI*2,true);e.closePath()}return new N.BoundingBox(t-i,n-i,t+i,n+i)}};N.Element.circle.prototype=new N.Element.PathElementBase;N.Element.ellipse=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=4*((Math.sqrt(2)-1)/3);var n=this.attribute("rx").toPixels("x");var i=this.attribute("ry").toPixels("y");var a=this.attribute("cx").toPixels("x");var r=this.attribute("cy").toPixels("y");if(e!=null){e.beginPath();e.moveTo(a,r-i);e.bezierCurveTo(a+t*n,r-i,a+n,r-t*i,a+n,r);e.bezierCurveTo(a+n,r+t*i,a+t*n,r+i,a,r+i);e.bezierCurveTo(a-t*n,r+i,a-n,r+t*i,a-n,r);e.bezierCurveTo(a-n,r-t*i,a-t*n,r-i,a,r-i);e.closePath()}return new N.BoundingBox(a-n,r-i,a+n,r+i)}};N.Element.ellipse.prototype=new N.Element.PathElementBase;N.Element.line=function(e){this.base=N.Element.PathElementBase;this.base(e);this.getPoints=function(){return[new N.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new N.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]};this.path=function(e){var t=this.getPoints();if(e!=null){e.beginPath();e.moveTo(t[0].x,t[0].y);e.lineTo(t[1].x,t[1].y)}return new N.BoundingBox(t[0].x,t[0].y,t[1].x,t[1].y)};this.getMarkers=function(){var e=this.getPoints();var t=e[0].angleTo(e[1]);return[[e[0],t],[e[1],t]]}};N.Element.line.prototype=new N.Element.PathElementBase;N.Element.polyline=function(e){this.base=N.Element.PathElementBase;this.base(e);this.points=N.CreatePath(this.attribute("points").value);this.path=function(e){var t=new N.BoundingBox(this.points[0].x,this.points[0].y);if(e!=null){e.beginPath();e.moveTo(this.points[0].x,this.points[0].y)}for(var n=1;n<this.points.length;n++){t.addPoint(this.points[n].x,this.points[n].y);if(e!=null)e.lineTo(this.points[n].x,this.points[n].y)}return t};this.getMarkers=function(){var e=[];for(var t=0;t<this.points.length-1;t++){e.push([this.points[t],this.points[t].angleTo(this.points[t+1])])}if(e.length>0){e.push([this.points[this.points.length-1],e[e.length-1][1]])}return e}};N.Element.polyline.prototype=new N.Element.PathElementBase;N.Element.polygon=function(e){this.base=N.Element.polyline;this.base(e);this.basePath=this.path;this.path=function(e){var t=this.basePath(e);if(e!=null){e.lineTo(this.points[0].x,this.points[0].y);e.closePath()}return t}};N.Element.polygon.prototype=new N.Element.polyline;N.Element.path=function(e){this.base=N.Element.PathElementBase;this.base(e);var t=this.attribute("d").value;t=t.replace(/,/gm," ");for(var n=0;n<2;n++){t=t.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}t=t.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");t=t.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){t=t.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}t=t.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");t=N.compressSpaces(t);t=N.trim(t);this.PathParser=new function(e){this.tokens=e.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new N.Point(0,0);this.control=new N.Point(0,0);this.current=new N.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 e=new N.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)};this.getAsControlPoint=function(){var e=this.getPoint();this.control=e;return e};this.getAsCurrentPoint=function(){var e=this.getPoint();this.current=e;return e};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var e=new N.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return e};this.makeAbsolute=function(e){if(this.isRelativeCommand()){e.x+=this.current.x;e.y+=this.current.y}return e};this.addMarker=function(e,t,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(e,t==null?null:t.angleTo(e))};this.addMarkerAngle=function(e,t){this.points.push(e);this.angles.push(t)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var e=0;e<this.angles.length;e++){if(this.angles[e]==null){for(var t=e+1;t<this.angles.length;t++){if(this.angles[t]!=null){this.angles[e]=this.angles[t];break}}}}return this.angles}}(t);this.path=function(e){var t=this.PathParser;t.reset();var n=new N.BoundingBox;if(e!=null)e.beginPath();while(!t.isEnd()){t.nextCommand();switch(t.command){case"M":case"m":var i=t.getAsCurrentPoint();t.addMarker(i);n.addPoint(i.x,i.y);if(e!=null)e.moveTo(i.x,i.y);t.start=t.current;while(!t.isCommandOrEnd()){var i=t.getAsCurrentPoint();t.addMarker(i,t.start);n.addPoint(i.x,i.y);if(e!=null)e.lineTo(i.x,i.y)}break;case"L":case"l":while(!t.isCommandOrEnd()){var a=t.current;var i=t.getAsCurrentPoint();t.addMarker(i,a);n.addPoint(i.x,i.y);if(e!=null)e.lineTo(i.x,i.y)}break;case"H":case"h":while(!t.isCommandOrEnd()){var r=new N.Point((t.isRelativeCommand()?t.current.x:0)+t.getScalar(),t.current.y);t.addMarker(r,t.current);t.current=r;n.addPoint(t.current.x,t.current.y);if(e!=null)e.lineTo(t.current.x,t.current.y)}break;case"V":case"v":while(!t.isCommandOrEnd()){var r=new N.Point(t.current.x,(t.isRelativeCommand()?t.current.y:0)+t.getScalar());t.addMarker(r,t.current);t.current=r;n.addPoint(t.current.x,t.current.y);if(e!=null)e.lineTo(t.current.x,t.current.y)}break;case"C":case"c":while(!t.isCommandOrEnd()){var o=t.current;var s=t.getPoint();var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,s);n.addBezierCurve(o.x,o.y,s.x,s.y,l.x,l.y,u.x,u.y);if(e!=null)e.bezierCurveTo(s.x,s.y,l.x,l.y,u.x,u.y)}break;case"S":case"s":while(!t.isCommandOrEnd()){var o=t.current;var s=t.getReflectedControlPoint();var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,s);n.addBezierCurve(o.x,o.y,s.x,s.y,l.x,l.y,u.x,u.y);if(e!=null)e.bezierCurveTo(s.x,s.y,l.x,l.y,u.x,u.y)}break;case"Q":case"q":while(!t.isCommandOrEnd()){var o=t.current;var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,l);n.addQuadraticCurve(o.x,o.y,l.x,l.y,u.x,u.y);if(e!=null)e.quadraticCurveTo(l.x,l.y,u.x,u.y)}break;case"T":case"t":while(!t.isCommandOrEnd()){var o=t.current;var l=t.getReflectedControlPoint();t.control=l;var u=t.getAsCurrentPoint();t.addMarker(u,l,l);n.addQuadraticCurve(o.x,o.y,l.x,l.y,u.x,u.y);if(e!=null)e.quadraticCurveTo(l.x,l.y,u.x,u.y)}break;case"A":case"a":while(!t.isCommandOrEnd()){var o=t.current;var h=t.getScalar();var c=t.getScalar();var f=t.getScalar()*(Math.PI/180);var d=t.getScalar();var g=t.getScalar();var u=t.getAsCurrentPoint();var p=new N.Point(Math.cos(f)*(o.x-u.x)/2+Math.sin(f)*(o.y-u.y)/2,-Math.sin(f)*(o.x-u.x)/2+Math.cos(f)*(o.y-u.y)/2);var v=Math.pow(p.x,2)/Math.pow(h,2)+Math.pow(p.y,2)/Math.pow(c,2);if(v>1){h*=Math.sqrt(v);c*=Math.sqrt(v)}var m=(d==g?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(c,2)-Math.pow(h,2)*Math.pow(p.y,2)-Math.pow(c,2)*Math.pow(p.x,2))/(Math.pow(h,2)*Math.pow(p.y,2)+Math.pow(c,2)*Math.pow(p.x,2)));if(isNaN(m))m=0;var y=new N.Point(m*h*p.y/c,m*-c*p.x/h);var _=new N.Point((o.x+u.x)/2+Math.cos(f)*y.x-Math.sin(f)*y.y,(o.y+u.y)/2+Math.sin(f)*y.x+Math.cos(f)*y.y);var b=function e(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))};var w=function e(t,n){return(t[0]*n[0]+t[1]*n[1])/(b(t)*b(n))};var x=function e(t,n){return(t[0]*n[1]<t[1]*n[0]?-1:1)*Math.acos(w(t,n))};var k=x([1,0],[(p.x-y.x)/h,(p.y-y.y)/c]);var S=[(p.x-y.x)/h,(p.y-y.y)/c];var C=[(-p.x-y.x)/h,(-p.y-y.y)/c];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 N.Point(_.x+h*Math.cos(R),_.y+c*Math.sin(R));t.addMarkerAngle(M,R-A*Math.PI/2);t.addMarkerAngle(u,R-A*Math.PI);n.addPoint(u.x,u.y);if(e!=null){var w=h>c?h:c;var T=h>c?1:h/c;var B=h>c?c/h:1;e.translate(_.x,_.y);e.rotate(f);e.scale(T,B);e.arc(0,0,w,k,k+E,1-g);e.scale(1/T,1/B);e.rotate(-f);e.translate(-_.x,-_.y)}}break;case"Z":case"z":if(e!=null)e.closePath();t.current=t.start}}return n};this.getMarkers=function(){var e=this.PathParser.getMarkerPoints();var t=this.PathParser.getMarkerAngles();var n=[];for(var i=0;i<e.length;i++){n.push([e[i],t[i]])}return n}};N.Element.path.prototype=new N.Element.PathElementBase;N.Element.pattern=function(e){this.base=N.Element.ElementBase;this.base(e);this.createPattern=function(e,t){var n=this.attribute("width").toPixels("x",true);var i=this.attribute("height").toPixels("y",true);var a=new N.Element.svg;a.attributes["viewBox"]=new N.Property("viewBox",this.attribute("viewBox").value);a.attributes["width"]=new N.Property("width",n+"px");a.attributes["height"]=new N.Property("height",i+"px");a.attributes["transform"]=new N.Property("transform",this.attribute("patternTransform").value);a.children=this.children;var r=document.createElement("canvas");r.width=n;r.height=i;var o=r.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 l=-1;l<=1;l++){o.save();a.attributes["x"]=new N.Property("x",s*r.width);a.attributes["y"]=new N.Property("y",l*r.height);a.render(o);o.restore()}}var u=e.createPattern(r,"repeat");return u}};N.Element.pattern.prototype=new N.Element.ElementBase;N.Element.marker=function(e){this.base=N.Element.ElementBase;this.base(e);this.baseRender=this.render;this.render=function(e,t,n){e.translate(t.x,t.y);if(this.attribute("orient").valueOrDefault("auto")=="auto")e.rotate(n);if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")e.scale(e.lineWidth,e.lineWidth);e.save();var i=new N.Element.svg;i.attributes["viewBox"]=new N.Property("viewBox",this.attribute("viewBox").value);i.attributes["refX"]=new N.Property("refX",this.attribute("refX").value);i.attributes["refY"]=new N.Property("refY",this.attribute("refY").value);i.attributes["width"]=new N.Property("width",this.attribute("markerWidth").value);i.attributes["height"]=new N.Property("height",this.attribute("markerHeight").value);i.attributes["fill"]=new N.Property("fill",this.attribute("fill").valueOrDefault("black"));i.attributes["stroke"]=new N.Property("stroke",this.attribute("stroke").valueOrDefault("none"));i.children=this.children;i.render(e);e.restore();if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")e.scale(1/e.lineWidth,1/e.lineWidth);if(this.attribute("orient").valueOrDefault("auto")=="auto")e.rotate(-n);e.translate(-t.x,-t.y)}};N.Element.marker.prototype=new N.Element.ElementBase;N.Element.defs=function(e){this.base=N.Element.ElementBase;this.base(e);this.render=function(e){}};N.Element.defs.prototype=new N.Element.ElementBase;N.Element.GradientBase=function(e){this.base=N.Element.ElementBase;this.base(e);this.stops=[];for(var t=0;t<this.children.length;t++){var n=this.children[t];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(e){for(var t=0;t<this.attributesToInherit.length;t++){var n=this.attributesToInherit[t];if(!this.attribute(n).hasValue()&&e.attribute(n).hasValue()){this.attribute(n,true).value=e.attribute(n).value}}};this.createGradient=function(e,t,i){var n=this;if(this.getHrefAttribute().hasValue()){n=this.getHrefAttribute().getDefinition();this.inheritStopContainer(n)}var a=function e(t){if(i.hasValue()){var n=new N.Property("color",t);return n.addOpacity(i).value}return t};var r=this.getGradient(e,t);if(r==null)return a(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++){r.addColorStop(n.stops[o].offset,a(n.stops[o].color))}if(this.attribute("gradientTransform").hasValue()){var s=N.ViewPort.viewPorts[0];var l=new N.Element.rect;l.attributes["x"]=new N.Property("x",-N.MAX_VIRTUAL_PIXELS/3);l.attributes["y"]=new N.Property("y",-N.MAX_VIRTUAL_PIXELS/3);l.attributes["width"]=new N.Property("width",N.MAX_VIRTUAL_PIXELS);l.attributes["height"]=new N.Property("height",N.MAX_VIRTUAL_PIXELS);var u=new N.Element.g;u.attributes["transform"]=new N.Property("transform",this.attribute("gradientTransform").value);u.children=[l];var h=new N.Element.svg;h.attributes["x"]=new N.Property("x",0);h.attributes["y"]=new N.Property("y",0);h.attributes["width"]=new N.Property("width",s.width);h.attributes["height"]=new N.Property("height",s.height);h.children=[u];var c=document.createElement("canvas");c.width=s.width;c.height=s.height;var f=c.getContext("2d");f.fillStyle=r;h.render(f);return f.createPattern(c,"no-repeat")}return r}};N.Element.GradientBase.prototype=new N.Element.ElementBase;N.Element.linearGradient=function(e){this.base=N.Element.GradientBase;this.base(e);this.attributesToInherit.push("x1");this.attributesToInherit.push("y1");this.attributesToInherit.push("x2");this.attributesToInherit.push("y2");this.getGradient=function(e,t){var n=this.gradientUnits()=="objectBoundingBox"?t.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 a=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y");var r=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==r&&a==o)return null;return e.createLinearGradient(i,a,r,o)}};N.Element.linearGradient.prototype=new N.Element.GradientBase;N.Element.radialGradient=function(e){this.base=N.Element.GradientBase;this.base(e);this.attributesToInherit.push("cx");this.attributesToInherit.push("cy");this.attributesToInherit.push("r");this.attributesToInherit.push("fx");this.attributesToInherit.push("fy");this.getGradient=function(e,t){var n=t.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 a=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y");var r=i;var o=a;if(this.attribute("fx").hasValue()){r=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 e.createRadialGradient(r,o,0,i,a,s)}};N.Element.radialGradient.prototype=new N.Element.GradientBase;N.Element.stop=function(e){this.base=N.Element.ElementBase;this.base(e);this.offset=this.attribute("offset").numValue();if(this.offset<0)this.offset=0;if(this.offset>1)this.offset=1;var t=this.style("stop-color",true);if(t.value=="")t.value="#000";if(this.style("stop-opacity").hasValue())t=t.addOpacity(this.style("stop-opacity"));this.color=t.value};N.Element.stop.prototype=new N.Element.ElementBase;N.Element.AnimateBase=function(e){this.base=N.Element.ElementBase;this.base(e);N.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var e=this.attribute("attributeType").value;var t=this.attribute("attributeName").value;if(e=="CSS"){return this.parent.style(t,true)}return this.parent.attribute(t,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(e){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+e;var t=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;t=true}return t};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 e={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var t=e.progress*(this.values.value.length-1);var n=Math.floor(t),i=Math.ceil(t);e.from=new N.Property("from",parseFloat(this.values.value[n]));e.to=new N.Property("to",parseFloat(this.values.value[i]));e.progress=(t-n)/(i-n)}else{e.from=this.from;e.to=this.to}return e}};N.Element.AnimateBase.prototype=new N.Element.ElementBase;N.Element.animate=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=e.from.numValue()+(e.to.numValue()-e.from.numValue())*e.progress;return t+this.initialUnits}};N.Element.animate.prototype=new N.Element.AnimateBase;N.Element.animateColor=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=new Mz(e.from.value);var n=new Mz(e.to.value);if(t.ok&&n.ok){var i=t.r+(n.r-t.r)*e.progress;var a=t.g+(n.g-t.g)*e.progress;var r=t.b+(n.b-t.b)*e.progress;return"rgb("+parseInt(i,10)+","+parseInt(a,10)+","+parseInt(r,10)+")"}return this.attribute("from").value}};N.Element.animateColor.prototype=new N.Element.AnimateBase;N.Element.animateTransform=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=N.ToNumberArray(e.from.value);var n=N.ToNumberArray(e.to.value);var i="";for(var a=0;a<t.length;a++){i+=t[a]+(n[a]-t[a])*e.progress+" "}return i}};N.Element.animateTransform.prototype=new N.Element.animate;N.Element.font=function(e){this.base=N.Element.ElementBase;this.base(e);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.isRTL=false;this.isArabic=false;this.fontFace=null;this.missingGlyph=null;this.glyphs=[];for(var t=0;t<this.children.length;t++){var n=this.children[t];if(n.type=="font-face"){this.fontFace=n;if(n.style("font-family").hasValue()){N.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}}}};N.Element.font.prototype=new N.Element.ElementBase;N.Element.fontface=function(e){this.base=N.Element.ElementBase;this.base(e);this.ascent=this.attribute("ascent").value;this.descent=this.attribute("descent").value;this.unitsPerEm=this.attribute("units-per-em").numValue()};N.Element.fontface.prototype=new N.Element.ElementBase;N.Element.missingglyph=function(e){this.base=N.Element.path;this.base(e);this.horizAdvX=0};N.Element.missingglyph.prototype=new N.Element.path;N.Element.glyph=function(e){this.base=N.Element.path;this.base(e);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.unicode=this.attribute("unicode").value;this.arabicForm=this.attribute("arabic-form").value};N.Element.glyph.prototype=new N.Element.path;N.Element.text=function(e){this.captureTextNodes=true;this.base=N.Element.RenderedElementBase;this.base(e);this.baseSetContext=this.setContext;this.setContext=function(e){this.baseSetContext(e);var t=this.style("dominant-baseline").toTextBaseline();if(t==null)t=this.style("alignment-baseline").toTextBaseline();if(t!=null)e.textBaseline=t};this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x");var t=this.attribute("y").toPixels("y");var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);return new N.BoundingBox(e,t-n,e+Math.floor(n*2/3)*this.children[0].getText().length,t)};this.renderChildren=function(e){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(e,this,0);for(var t=0;t<this.children.length;t++){this.renderChild(e,this,this,t)}};this.getAnchorDelta=function(e,t,n){var i=this.style("text-anchor").valueOrDefault("start");if(i!="start"){var a=0;for(var r=n;r<t.children.length;r++){var o=t.children[r];if(r>n&&o.attribute("x").hasValue())break;a+=o.measureTextRecursive(e)}return-1*(i=="end"?a:a/2)}return 0};this.renderChild=function(e,t,n,i){var a=n.children[i];if(a.attribute("x").hasValue()){a.x=a.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,i);if(a.attribute("dx").hasValue())a.x+=a.attribute("dx").toPixels("x")}else{if(a.attribute("dx").hasValue())t.x+=a.attribute("dx").toPixels("x");a.x=t.x}t.x=a.x+a.measureText(e);if(a.attribute("y").hasValue()){a.y=a.attribute("y").toPixels("y");if(a.attribute("dy").hasValue())a.y+=a.attribute("dy").toPixels("y")}else{if(a.attribute("dy").hasValue())t.y+=a.attribute("dy").toPixels("y");a.y=t.y}t.y=a.y;a.render(e);for(var i=0;i<a.children.length;i++){t.renderChild(e,t,a,i)}}};N.Element.text.prototype=new N.Element.RenderedElementBase;N.Element.TextElementBase=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.getGlyph=function(e,t,n){var i=t[n];var a=null;if(e.isArabic){var r="isolated";if((n==0||t[n-1]==" ")&&n<t.length-2&&t[n+1]!=" ")r="terminal";if(n>0&&t[n-1]!=" "&&n<t.length-2&&t[n+1]!=" ")r="medial";if(n>0&&t[n-1]!=" "&&(n==t.length-1||t[n+1]==" "))r="initial";if(typeof e.glyphs[i]!="undefined"){a=e.glyphs[i][r];if(a==null&&e.glyphs[i].type=="glyph")a=e.glyphs[i]}}else{a=e.glyphs[i]}if(a==null)a=e.missingGlyph;return a};this.renderChildren=function(e){var t=this.parent.style("font-family").getDefinition();if(t!=null){var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);var i=this.parent.style("font-style").valueOrDefault(N.Font.Parse(N.ctx.font).fontStyle);var a=this.getText();if(t.isRTL)a=a.split("").reverse().join("");var r=N.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<a.length;o++){var s=this.getGlyph(t,a,o);var l=n/t.fontFace.unitsPerEm;e.translate(this.x,this.y);e.scale(l,-l);var u=e.lineWidth;e.lineWidth=e.lineWidth*t.fontFace.unitsPerEm/n;if(i=="italic")e.transform(1,0,.4,1,0,0);s.render(e);if(i=="italic")e.transform(1,0,-.4,1,0,0);e.lineWidth=u;e.scale(1/l,-1/l);e.translate(-this.x,-this.y);this.x+=n*(s.horizAdvX||t.horizAdvX)/t.fontFace.unitsPerEm;if(typeof r[o]!="undefined"&&!isNaN(r[o])){this.x+=r[o]}}return}if(e.fillStyle!="")e.fillText(N.compressSpaces(this.getText()),this.x,this.y);if(e.strokeStyle!="")e.strokeText(N.compressSpaces(this.getText()),this.x,this.y)};this.getText=function(){};this.measureTextRecursive=function(e){var t=this.measureText(e);for(var n=0;n<this.children.length;n++){t+=this.children[n].measureTextRecursive(e)}return t};this.measureText=function(e){var t=this.parent.style("font-family").getDefinition();if(t!=null){var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);var i=0;var a=this.getText();if(t.isRTL)a=a.split("").reverse().join("");var r=N.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<a.length;o++){var s=this.getGlyph(t,a,o);i+=(s.horizAdvX||t.horizAdvX)*n/t.fontFace.unitsPerEm;if(typeof r[o]!="undefined"&&!isNaN(r[o])){i+=r[o]}}return i}var l=N.compressSpaces(this.getText());if(!e.measureText)return l.length*10;e.save();this.setContext(e);var u=e.measureText(l).width;e.restore();return u}};N.Element.TextElementBase.prototype=new N.Element.RenderedElementBase;N.Element.tspan=function(e){this.captureTextNodes=true;this.base=N.Element.TextElementBase;this.base(e);this.text=N.compressSpaces(e.value||e.text||e.textContent||"");this.getText=function(){if(this.children.length>0){return""}return this.text}};N.Element.tspan.prototype=new N.Element.TextElementBase;N.Element.tref=function(e){this.base=N.Element.TextElementBase;this.base(e);this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(e!=null)return e.children[0].getText()}};N.Element.tref.prototype=new N.Element.TextElementBase;N.Element.a=function(e){this.base=N.Element.TextElementBase;this.base(e);this.hasText=e.childNodes.length>0;for(var t=0;t<e.childNodes.length;t++){if(e.childNodes[t].nodeType!=3)this.hasText=false}this.text=this.hasText?e.childNodes[0].value:"";this.getText=function(){return this.text};this.baseRenderChildren=this.renderChildren;this.renderChildren=function(e){if(this.hasText){this.baseRenderChildren(e);var t=new N.Property("fontSize",N.Font.Parse(N.ctx.font).fontSize);N.Mouse.checkBoundingBox(this,new N.BoundingBox(this.x,this.y-t.toPixels("y"),this.x+this.measureText(e),this.y))}else if(this.children.length>0){var n=new N.Element.g;n.children=this.children;n.parent=this;n.render(e)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){N.ctx.canvas.style.cursor="pointer"}};N.Element.a.prototype=new N.Element.TextElementBase;N.Element.image=function(e){this.base=N.Element.RenderedElementBase;this.base(e);var t=this.getHrefAttribute().value;if(t==""){return}var r=t.match(/\.svg$/);N.Images.push(this);this.loaded=false;if(!r){this.img=document.createElement("img");if(N.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){N.log('ERROR: image "'+t+'" not found');n.loaded=true};this.img.src=t}else{this.img=N.ajax(t);this.loaded=true}this.renderChildren=function(e){var t=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(i==0||a==0)return;e.save();if(r){e.drawSvg(this.img,t,n,i,a)}else{e.translate(t,n);N.AspectRatio(e,this.attribute("preserveAspectRatio").value,i,this.img.width,a,this.img.height,0,0);e.drawImage(this.img,0,0)}e.restore()};this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x");var t=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");return new N.BoundingBox(e,t,e+n,t+i)}};N.Element.image.prototype=new N.Element.RenderedElementBase;N.Element.g=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.getBoundingBox=function(){var e=new N.BoundingBox;for(var t=0;t<this.children.length;t++){e.addBoundingBox(this.children[t].getBoundingBox())}return e}};N.Element.g.prototype=new N.Element.RenderedElementBase;N.Element.symbol=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.render=function(e){}};N.Element.symbol.prototype=new N.Element.RenderedElementBase;N.Element.style=function(e){this.base=N.Element.ElementBase;this.base(e);var t="";for(var n=0;n<e.childNodes.length;n++){t+=e.childNodes[n].data}t=t.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");t=N.compressSpaces(t);var i=t.split("}");for(var n=0;n<i.length;n++){if(N.trim(i[n])!=""){var a=i[n].split("{");var r=a[0].split(",");var o=a[1].split(";");for(var s=0;s<r.length;s++){var l=N.trim(r[s]);if(l!=""){var u=N.Styles[l]||{};for(var h=0;h<o.length;h++){var c=o[h].indexOf(":");var f=o[h].substr(0,c);var d=o[h].substr(c+1,o[h].length-c);if(f!=null&&d!=null){u[N.trim(f)]=new N.Property(N.trim(f),N.trim(d))}}N.Styles[l]=u;N.StylesSpecificity[l]=BL(l);if(l=="@font-face"){var g=u["font-family"].value.replace(/"/g,"");var p=u["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=N.parseXml(N.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;x<w.length;x++){var k=N.CreateElement(w[x]);N.Definitions[g]=k}}}}}}}}};N.Element.style.prototype=new N.Element.ElementBase;N.Element.use=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.baseSetContext=this.setContext;this.setContext=function(e){this.baseSetContext(e);if(this.attribute("x").hasValue())e.translate(this.attribute("x").toPixels("x"),0);if(this.attribute("y").hasValue())e.translate(0,this.attribute("y").toPixels("y"))};var i=this.getHrefAttribute().getDefinition();this.path=function(e){if(i!=null)i.path(e)};this.getBoundingBox=function(){if(i!=null)return i.getBoundingBox()};this.renderChildren=function(e){if(i!=null){var t=i;if(i.type=="symbol"){t=new N.Element.svg;t.type="svg";t.attributes["viewBox"]=new N.Property("viewBox",i.attribute("viewBox").value);t.attributes["preserveAspectRatio"]=new N.Property("preserveAspectRatio",i.attribute("preserveAspectRatio").value);t.attributes["overflow"]=new N.Property("overflow",i.attribute("overflow").value);t.children=i.children}if(t.type=="svg"){if(this.attribute("width").hasValue())t.attributes["width"]=new N.Property("width",this.attribute("width").value);if(this.attribute("height").hasValue())t.attributes["height"]=new N.Property("height",this.attribute("height").value)}var n=t.parent;t.parent=null;t.render(e);t.parent=n}}};N.Element.use.prototype=new N.Element.RenderedElementBase;N.Element.mask=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t){var n=this.attribute("x").toPixels("x");var i=this.attribute("y").toPixels("y");var a=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");if(a==0&&r==0){var o=new N.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 a=Math.floor(o.width());var r=Math.floor(o.height())}var l=t.attribute("mask").value;t.attribute("mask").value="";var u=document.createElement("canvas");u.width=n+a;u.height=i+r;var h=u.getContext("2d");this.renderChildren(h);var c=document.createElement("canvas");c.width=n+a;c.height=i+r;var f=c.getContext("2d");t.render(f);f.globalCompositeOperation="destination-in";f.fillStyle=h.createPattern(u,"no-repeat");f.fillRect(0,0,n+a,i+r);e.fillStyle=f.createPattern(c,"no-repeat");e.fillRect(0,0,n+a,i+r);t.attribute("mask").value=l};this.render=function(e){}};N.Element.mask.prototype=new N.Element.ElementBase;N.Element.clipPath=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e){var t=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var n=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){};t.call(e);for(var i=0;i<this.children.length;i++){var a=this.children[i];if(typeof a.path!="undefined"){var r=null;if(a.style("transform",false,true).hasValue()){r=new N.Transform(a.style("transform",false,true).value);r.apply(e)}a.path(e);CanvasRenderingContext2D.prototype.closePath=n;if(r){r.unapply(e)}}}n.call(e);e.clip();CanvasRenderingContext2D.prototype.beginPath=t;CanvasRenderingContext2D.prototype.closePath=n};this.render=function(e){}};N.Element.clipPath.prototype=new N.Element.ElementBase;N.Element.filter=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t){var n=t.getBoundingBox();var i=Math.floor(n.x1);var a=Math.floor(n.y1);var r=Math.floor(n.width());var o=Math.floor(n.height());var s=t.style("filter").value;t.style("filter").value="";var l=0,u=0;for(var h=0;h<this.children.length;h++){var c=this.children[h].extraFilterDistance||0;l=Math.max(l,c);u=Math.max(u,c)}var f=document.createElement("canvas");f.width=r+2*l;f.height=o+2*u;var d=f.getContext("2d");d.translate(-i+l,-a+u);t.render(d);for(var h=0;h<this.children.length;h++){if(typeof this.children[h].apply=="function"){this.children[h].apply(d,0,0,r+2*l,o+2*u)}}e.drawImage(f,0,0,r+2*l,o+2*u,i-l,a-u,r+2*l,o+2*u);t.style("filter",true).value=s};this.render=function(e){}};N.Element.filter.prototype=new N.Element.ElementBase;N.Element.feMorphology=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t,n,i,a){}};N.Element.feMorphology.prototype=new N.Element.ElementBase;N.Element.feComposite=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t,n,i,a){}};N.Element.feComposite.prototype=new N.Element.ElementBase;N.Element.feColorMatrix=function(e){this.base=N.Element.ElementBase;this.base(e);var i=N.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var t=i[0];i=[.213+.787*t,.715-.715*t,.072-.072*t,0,0,.213-.213*t,.715+.285*t,.072-.072*t,0,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=i[0]*Math.PI/180;var n=function e(t,n,i){return t+Math.cos(a)*n+Math.sin(a)*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 h(e,t,n,i,a,r){return e[n*i*4+t*4+r]}function c(e,t,n,i,a,r,o){e[n*i*4+t*4+r]=o}function f(e,t){var n=i[e];return n*(n<0?t-255:t)}this.apply=function(e,t,n,i,a){var r=e.getImageData(0,0,i,a);for(var n=0;n<a;n++){for(var t=0;t<i;t++){var o=h(r.data,t,n,i,a,0);var s=h(r.data,t,n,i,a,1);var l=h(r.data,t,n,i,a,2);var u=h(r.data,t,n,i,a,3);c(r.data,t,n,i,a,0,f(0,o)+f(1,s)+f(2,l)+f(3,u)+f(4,1));c(r.data,t,n,i,a,1,f(5,o)+f(6,s)+f(7,l)+f(8,u)+f(9,1));c(r.data,t,n,i,a,2,f(10,o)+f(11,s)+f(12,l)+f(13,u)+f(14,1));c(r.data,t,n,i,a,3,f(15,o)+f(16,s)+f(17,l)+f(18,u)+f(19,1))}}e.clearRect(0,0,i,a);e.putImageData(r,0,0)}};N.Element.feColorMatrix.prototype=new N.Element.ElementBase;N.Element.feGaussianBlur=function(e){this.base=N.Element.ElementBase;this.base(e);this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue());this.extraFilterDistance=this.blurRadius;this.apply=function(e,t,n,i,a){if(typeof Dz.canvasRGBA=="undefined"){N.log("ERROR: StackBlur.js must be included for blur to work");return}e.canvas.id=N.UniqueId();e.canvas.style.display="none";document.body.appendChild(e.canvas);Dz.canvasRGBA(e.canvas.id,t,n,i,a,this.blurRadius);document.body.removeChild(e.canvas)}};N.Element.feGaussianBlur.prototype=new N.Element.ElementBase;N.Element.title=function(e){};N.Element.title.prototype=new N.Element.ElementBase;N.Element.desc=function(e){};N.Element.desc.prototype=new N.Element.ElementBase;N.Element.MISSING=function(e){N.log("ERROR: Element '"+e.nodeName+"' not yet implemented.")};N.Element.MISSING.prototype=new N.Element.ElementBase;N.CreateElement=function(e){var t=e.nodeName.replace(/^[^:]+:/,"");t=t.replace(/\-/g,"");var n=null;if(typeof N.Element[t]!="undefined"){n=new N.Element[t](e)}else{n=new N.Element.MISSING(e)}n.type=e.nodeName;return n};N.load=function(e,t){N.loadXml(e,N.ajax(t))};N.loadXml=function(e,t){N.loadXmlDoc(e,N.parseXml(t))};N.loadXmlDoc=function(o,s){N.init(o);var n=function e(t){var n=o.canvas;while(n){t.x-=n.offsetLeft;t.y-=n.offsetTop;n=n.offsetParent}if(window.scrollX)t.x+=window.scrollX;if(window.scrollY)t.y+=window.scrollY;return t};if(N.opts["ignoreMouse"]!=true){o.canvas.onclick=function(e){var t=n(new N.Point(e!=null?e.clientX:event.clientX,e!=null?e.clientY:event.clientY));N.Mouse.onclick(t.x,t.y)};o.canvas.onmousemove=function(e){var t=n(new N.Point(e!=null?e.clientX:event.clientX,e!=null?e.clientY:event.clientY));N.Mouse.onmousemove(t.x,t.y)}}var l=N.CreateElement(s.documentElement);l.root=true;l.addStylesFromStyleDefinition();var u=true;var i=function e(){N.ViewPort.Clear();if(o.canvas.parentNode)N.ViewPort.SetCurrent(o.canvas.parentNode.clientWidth,o.canvas.parentNode.clientHeight);if(N.opts["ignoreDimensions"]!=true){if(l.style("width").hasValue()){o.canvas.width=l.style("width").toPixels("x");o.canvas.style.width=o.canvas.width+"px"}if(l.style("height").hasValue()){o.canvas.height=l.style("height").toPixels("y");o.canvas.style.height=o.canvas.height+"px"}}var t=o.canvas.clientWidth||o.canvas.width;var n=o.canvas.clientHeight||o.canvas.height;if(N.opts["ignoreDimensions"]==true&&l.style("width").hasValue()&&l.style("height").hasValue()){t=l.style("width").toPixels("x");n=l.style("height").toPixels("y")}N.ViewPort.SetCurrent(t,n);if(N.opts["offsetX"]!=null)l.attribute("x",true).value=N.opts["offsetX"];if(N.opts["offsetY"]!=null)l.attribute("y",true).value=N.opts["offsetY"];if(N.opts["scaleWidth"]!=null||N.opts["scaleHeight"]!=null){var i=null,a=null,r=N.ToNumberArray(l.attribute("viewBox").value);if(N.opts["scaleWidth"]!=null){if(l.attribute("width").hasValue())i=l.attribute("width").toPixels("x")/N.opts["scaleWidth"];else if(!isNaN(r[2]))i=r[2]/N.opts["scaleWidth"]}if(N.opts["scaleHeight"]!=null){if(l.attribute("height").hasValue())a=l.attribute("height").toPixels("y")/N.opts["scaleHeight"];else if(!isNaN(r[3]))a=r[3]/N.opts["scaleHeight"]}if(i==null){i=a}if(a==null){a=i}l.attribute("width",true).value=N.opts["scaleWidth"];l.attribute("height",true).value=N.opts["scaleHeight"];l.style("transform",true,true).value+=" scale("+1/i+","+1/a+")"}if(N.opts["ignoreClear"]!=true){o.clearRect(0,0,t,n)}l.render(o);if(u){u=false;if(typeof N.opts["renderCallback"]=="function")N.opts["renderCallback"](s)}};var a=true;if(N.ImagesLoaded()){a=false;i()}N.intervalID=setInterval(function(){var e=false;if(a&&N.ImagesLoaded()){a=false;e=true}if(N.opts["ignoreMouse"]!=true){e=e|N.Mouse.hasEvents()}if(N.opts["ignoreAnimation"]!=true){for(var t=0;t<N.Animations.length;t++){e=e|N.Animations[t].update(1e3/N.FRAMERATE)}}if(typeof N.opts["forceRedraw"]=="function"){if(N.opts["forceRedraw"]()==true)e=true}if(e){i();N.Mouse.runEvents()}},1e3/N.FRAMERATE)};N.stop=function(){if(N.intervalID){clearInterval(N.intervalID)}};N.Mouse=new function(){this.events=[];this.hasEvents=function(){return this.events.length!=0};this.onclick=function(e,t){this.events.push({type:"onclick",x:e,y:t,run:function e(t){if(t.onclick)t.onclick()}})};this.onmousemove=function(e,t){this.events.push({type:"onmousemove",x:e,y:t,run:function e(t){if(t.onmousemove)t.onmousemove()}})};this.eventElements=[];this.checkPath=function(e,t){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(t.isPointInPath&&t.isPointInPath(i.x,i.y))this.eventElements[n]=e}};this.checkBoundingBox=function(e,t){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(t.isPointInBox(i.x,i.y))this.eventElements[n]=e}};this.runEvents=function(){N.ctx.canvas.style.cursor="";for(var e=0;e<this.events.length;e++){var t=this.events[e];var n=this.eventElements[e];while(n){t.run(n);n=n.parent}}this.events=[];this.eventElements=[]}};return N}var PL=ML;function DL(e){var t=e.attr("stroke-width");e.attr("stroke-width",!t?0:t);if(!t)e.attr("stroke","transparent");var n=["none","transparent"].includes(e.attr("fill"));var i=e.attr("fill-opacity");e.attr("fill-opacity",n?0:i);e.attr("aria-label",null)}function OL(e){e.selectAll("*").each(function(){var e=this.tagName.toLowerCase();if(!["option"].includes(e)){var t=Rl(this);var n=t.style("letter-spacing");t.style("letter-spacing",n==="normal"?"0.1px":n)}})}function zL(e,t){return HL(e)||jL(e,t)||LL(e,t)||FL()}function FL(){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 LL(e,t){if(!e)return;if(typeof e==="string")return IL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return IL(e,t)}function IL(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function jL(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function HL(e){if(Array.isArray(e))return e}var VL={background:false,callback:function e(){},exclude:[],padding:0,scale:1};var GL={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function UL(e){var t=Rl(e).attr("transform");var n=1,i=0,a=0;if(t){n=t.match(/scale\(([^a-z]+)\)/i);if(n)n=parseFloat(n[1]);else n=1;var r=t.match(/translate\(([^a-z]+)\)/i);if(r){var o=r[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map(function(e){return parseFloat(e)*n});var s=zL(o,2);i=s[0];a=s[1]}}return[n,i,a]}function WL(e,q){if(!e)return;if(!(e instanceof Array))e=[e];q=Object.assign({},VL,q);var h=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);var Y=window?window.devicePixelRatio||1:1;var t=e[0];if(t.constructor===Object)t=t.element;var X=q.height||parseFloat(Rl(t).style("height"))+parseFloat(Rl(t).style("padding-top"))+parseFloat(Rl(t).style("padding-bottom")),$=q.width||parseFloat(Rl(t).style("width"))+parseFloat(Rl(t).style("padding-left"))+parseFloat(Rl(t).style("padding-right"));var Z,J,Q=0,ee=0;if(t.getBoundingClientRect){var n=t.getBoundingClientRect();Q=n.left;ee=n.top}else{Q=t.offsetLeft;ee=t.offsetTop}var c=q.canvas||document.createElement("canvas");c.width=($+q.padding*2)*q.scale*Y;c.height=(X+q.padding*2)*q.scale*Y;c.style.width=($+q.padding*2)*q.scale;c.style.height=(X+q.padding*2)*q.scale;var f=c.getContext("2d");f.scale(q.scale*Y,q.scale*Y);f.clearRect(0,0,c.width/Y,c.height/Y);if(q.background){f.beginPath();f.rect(0,0,c.width/Y,c.height/Y);f.fillStyle=q.background;f.fill()}var te=[];function i(e){var t=(this.tagName||"").toLowerCase();if(q.exclude.includes(this)||t==="foreignobject")return;var n=Object.assign({},e);if(this.tagName){var i=Rl(this).attr("opacity")||Rl(this).style("opacity");var a=Rl(this).style("display");var r=Rl(this).style("visibility");if(a==="none"||r==="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(),l=s.left,u=s.top;n.x+=l-Q;n.y+=u-ee;n.svg=true}var h=Rl(this).attr("x");h=h?parseFloat(h)*n.scale:0;n.x+=h;var c=Rl(this).attr("y");c=c?parseFloat(c)*n.scale:0;n.y+=c;n.clip={height:parseFloat(Rl(this).attr("height")||Rl(this).style("height")),width:parseFloat(Rl(this).attr("width")||Rl(this).style("width")),x:h,y:c}}else{var f=Rl(this).attr("x");if(f)n.x+=parseFloat(f)*n.scale;var d=Rl(this).attr("y");if(d)n.y+=parseFloat(d)*n.scale}}if(!t.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$/,"");te.push({type:"text",style:this.parentNode,value:p,x:n.x,y:n.y})}}else if(t==="text"){var v=this.cloneNode(true);Rl(v).call(DL);te.push(Object.assign({},n,{type:"svg",value:v}))}else if(["image","img"].includes(t)){var m=Rl(this).attr("href")||Rl(this).attr("xlink:href");if(m.length){var y=parseFloat(Rl(this).attr("height"))*n.scale,_=parseFloat(Rl(this).attr("width"))*n.scale;var b={clip:n.clip,height:y,loaded:false,type:"img",width:_,x:n.x,y:n.y};te.push(b);var w=new Image;w.crossOrigin="Anonymous";w.onload=function(){var e=document.createElement("canvas");var t=e.getContext("2d");e.height=y*Y;e.width=_*Y;t.drawImage(this,0,0,_*Y,y*Y);var n=document.createElement("img");n.src=e.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(t)&&!Rl(this).selectAll("svg").size()){var x=q.scale*Y;var k={height:Math.floor(X+q.padding*2+ee),loaded:false,type:"html",width:Math.floor($+q.padding*2+Q),x:Math.floor(Z-Q),y:Math.floor(J-ee)};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);te.push(k);OL(Rl(this));Rz(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(e){k.value=e;k.loaded=true})}else if(t!=="svg"&&this.childNodes.length>0&&!Rl(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);Rl(E).selectAll("*").each(function(){Rl(this).call(DL);if(Rl(this).attr("opacity")==="0")this.parentNode.removeChild(this)});te.push(Object.assign({},n,{type:"svg",value:E,tag:t}))}else if(this.childNodes.length>0){var A=UL(this),R=zL(A,3),M=R[0],T=R[1],B=R[2];n.scale*=M;n.x+=T;n.y+=B;ne(this,n)}else{var N=this.cloneNode(true);Rl(N).selectAll("*").each(function(){if(Rl(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(t==="line"){Rl(N).attr("x1",parseFloat(Rl(N).attr("x1"))+n.x);Rl(N).attr("x2",parseFloat(Rl(N).attr("x2"))+n.x);Rl(N).attr("y1",parseFloat(Rl(N).attr("y1"))+n.y);Rl(N).attr("y2",parseFloat(Rl(N).attr("y2"))+n.y)}else if(t==="path"){var P=UL(N),D=zL(P,3),O=D[0],z=D[1],F=D[2];if(Rl(N).attr("transform"))Rl(N).attr("transform","scale(".concat(O,")translate(").concat(z+n.x,",").concat(F+n.y,")"))}Rl(N).call(DL);var L=Rl(N).attr("fill");var I=L&&L.indexOf("url")===0;te.push(Object.assign({},n,{type:"svg",value:N,tag:t}));if(I){var j=Rl(L.slice(4,-1)).node().cloneNode(true);var H=(j.tagName||"").toLowerCase();if(H==="pattern"){var V=UL(N),G=zL(V,3),U=G[0],W=G[1],K=G[2];n.scale*=U;n.x+=W;n.y+=K;ne(j,n)}}}}function ne(e,t){Nl(e.childNodes).each(function(){i.bind(this)(t)})}for(var a=0;a<e.length;a++){var r=e[a],o={scale:1,x:0,y:0,svg:false};if(r.constructor===Object){o=Object.assign(o,r);r=r.element}Z=o.x;J=o.y;i.bind(r)(o)}function s(){var e=true;for(var t=0;t<te.length;t++){if(te[t].loaded===false){e=false;break}}if(e)l();else setTimeout(s,500)}s();function l(){for(var e=0;e<te.length;e++){var t=te[e];var n=t.clip||{height:X,width:$,x:0,y:0};switch(t.type){case"img":if(t.value){f.save();f.beginPath();f.translate(q.padding+n.x,q.padding+n.y);f.rect(0,0,n.width,n.height);f.clip();f.drawImage(t.value,t.x+n.x,t.y+n.y,t.width,t.height);f.restore()}break;case"html":f.save();f.beginPath();f.translate(q.padding,q.padding);f.drawImage(t.value,t.x,t.y,t.width,t.height);f.restore();break;case"text":var i=Rl(t.style);var a=t.value.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");var r=i.style("color"),o=i.style("font-size");var s=i.style("font-family").split(",")[0];if(s.indexOf("'")!==0)s="'".concat(s,"'");var l="<text stroke='none' dy='".concat(o,"' fill='").concat(r,"' font-family=").concat(s," font-size='").concat(o,"'>").concat(a,"</text>");f.save();f.translate(q.padding,q.padding);PL(c,l,Object.assign({},GL,{offsetX:t.x,offsetY:t.y}));f.restore();break;case"svg":var u=h?(new XMLSerializer).serializeToString(t.value):t.value.outerHTML;f.save();f.translate(q.padding+n.x+t.x,q.padding+n.y+t.y);f.rect(0,0,n.width,n.height);f.clip();PL(c,u,Object.assign({},GL,{offsetX:t.x+n.x,offsetY:t.y+n.y}));f.restore();break;default:console.warn("uncaught",t);break}}q.callback(c)}}(function(e){var f=e.Uint8Array,t=e.HTMLCanvasElement,n=t&&t.prototype,l=/\s*;\s*base64\s*(?:;|$)/i,u="toDataURL",d,h=function e(t){var n=t.length,i=new f(n/4*3|0),a=0,r=0,o=[0,0],s=0,l=0,u,h,c;while(n--){h=t.charCodeAt(a++);u=d[h-43];if(u!==255&&u!==c){o[1]=o[0];o[0]=h;l=l<<6|u;s++;if(s===4){i[r++]=l>>>16;if(o[1]!==61){i[r++]=l>>>8}if(o[0]!==61){i[r++]=l}s=0}}}return i};if(f){d=new f([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(t&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(e,t){if(!t){t="image/png"}if(this.mozGetAsFile){e(this.mozGetAsFile("canvas",t));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t)){e(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),i=this[u].apply(this,n),a=i.indexOf(","),r=i.substring(a+1),o=l.test(i.substring(0,a)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=r;s.size=r.length}else if(f){if(o){s=new Blob([h(r)],{type:t})}else{s=new Blob([decodeURIComponent(r)],{type:t})}}e(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){u="toDataURLHD";var e=this.toBlob();u="toDataURL";return e}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||PN.content||PN);var KL=DN(function(e){var t=t||function(h){if(typeof h==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var e=h.document,c=function e(){return h.URL||h.webkitURL||h},f=e.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in f,g=function e(t){var n=new MouseEvent("click");t.dispatchEvent(n)},p=/constructor/i.test(h.HTMLElement)||h.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent),o=function e(t){(h.setImmediate||h.setTimeout)(function(){throw t},0)},m="application/octet-stream",i=1e3*40,y=function e(t){var n=function e(){if(typeof t==="string"){c().revokeObjectURL(t)}else{t.remove()}};setTimeout(n,i)},_=function e(t,n,i){n=[].concat(n);var a=n.length;while(a--){var r=t["on"+n[a]];if(typeof r==="function"){try{r.call(t,i||t)}catch(e){o(e)}}}},b=function e(t){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)){return new Blob([String.fromCharCode(65279),t],{type:t.type})}return t},a=function e(i,t,n){if(!n){i=b(i)}var a=this,r=i.type,o=r===m,s,l=function e(){_(a,"writestart progress write writeend".split(" "))},u=function e(){if((v||o&&p)&&h.FileReader){var n=new FileReader;n.onloadend=function(){var e=v?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var t=h.open(e,"_blank");if(!t)h.location.href=e;e=undefined;a.readyState=a.DONE;l()};n.readAsDataURL(i);a.readyState=a.INIT;return}if(!s){s=c().createObjectURL(i)}if(o){h.location.href=s}else{var t=h.open(s,"_blank");if(!t){h.location.href=s}}a.readyState=a.DONE;l();y(s)};a.readyState=a.INIT;if(d){s=c().createObjectURL(i);setTimeout(function(){f.href=s;f.download=t;g(f);l();y(s);a.readyState=a.DONE});return}u()},t=a.prototype,n=function e(t,n,i){return new a(t,n||t.name||"download",i)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){t=t||e.name||"download";if(!n){e=b(e)}return navigator.msSaveOrOpenBlob(e,t)}}t.abort=function(){};t.readyState=t.INIT=0;t.WRITING=1;t.DONE=2;t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||PN.content);if(e.exports){e.exports.saveAs=t}});var qL={filename:"download",type:"png"};function YL(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!e)return;n=Object.assign({},qL,n);var t=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(e instanceof Array)&&n.type==="svg"){var a=t?(new XMLSerializer).serializeToString(e):e.outerHTML;KL.saveAs(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}WL(e,Object.assign({},i,{callback:function e(t){if(i.callback)i.callback(t);if(["jpg","png"].includes(n.type)){t.toBlob(function(e){return KL.saveAs(e,"".concat(n.filename,".").concat(n.type))})}}}))}var XL={Button:wP,Radio:PP,Select:WP};function $L(){var c=this;var f=this;var d=this._controlPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var g=["left","right","top","bottom"];var e=function e(t){var l=g[t];var u=(c._controls||[]).filter(function(e){return!e.position&&l==="bottom"||e.position===l});if(c._downloadButton&&c._downloadPosition===l){u.push({data:[{text:c._translate("Download"),value:1}],label:"downloadButton",on:{click:function e(){var t=c._detectResize;if(t)c.detectResize(false).render();YL(c._select.node(),Object.assign({title:c._title||undefined},c._downloadConfig),{callback:function e(){setTimeout(function(){if(t)c.detectResize(t).render()},5e3)}})}},type:"Button"})}var n=l==="top"||l==="bottom";var i={height:n?c._height-(c._margin.top+c._margin.bottom):c._height-(c._margin.top+c._margin.bottom+d.top+d.bottom),width:n?c._width-(c._margin.left+c._margin.right+d.left+d.right):c._width-(c._margin.left+c._margin.right)};i.x=(n?c._margin.left+d.left:c._margin.left)+(l==="right"?c._width-c._margin.bottom:0);i.y=(n?c._margin.top:c._margin.top+d.top)+(l==="bottom"?c._height-c._margin.bottom:0);var a=Ox("foreignObject.d3plus-viz-controls-".concat(l),{condition:u.length,enter:Object.assign({opacity:0},i),exit:Object.assign({opacity:0},i),parent:c._select,transition:c._transition,update:{height:i.height,opacity:1,width:i.width}});var h=a.selectAll("div.d3plus-viz-controls-container").data([null]);h=h.enter().append("xhtml:div").attr("class","d3plus-viz-controls-container").merge(h);if(u.length){var r=function e(t){var n=Object.assign({},u[t]);var i={};if(n.on){var a=function e(t){if({}.hasOwnProperty.call(n.on,t)){i[t]=function(){n.on[t].bind(f)(this.value)}}};for(var r in n.on){a(r)}}var o=n.label||"".concat(l,"-").concat(t);if(!c._controlCache[o]){var s=n.type&&XL[n.type]?n.type:"Select";c._controlCache[o]=(new XL[s]).container(h.node());if(n.checked)c._controlCache[o].checked(n.checked);if(n.selected)c._controlCache[o].selected(n.selected)}delete n.checked;delete n.selected;c._controlCache[o].config(n).config({on:i}).config(c._controlConfig).render()};for(var o=0;o<u.length;o++){r(o)}h.style("display",["top","bottom"].includes(l)?"block":"inline-block").style("text-align",["top","bottom"].includes(l)?"center":l);var s=h.node().getBoundingClientRect();a.transition(c._transition).attr("x",i.x-(l==="right"?s.width:0)).attr("y",i.y-(l==="bottom"?s.height:0)).attr("height",n?s.height:i.height).attr("width",n?i.width:s.width);c._margin[l]+=["top","bottom"].includes(l)?s.height:s.width}};for(var t=0;t<g.length;t++){e(t)}}function ZL(e,t){return this._drawLabel(e,t,this._legendDepth)}function JL(){var o=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this._legendClass.outerBounds();var n=this._legendPosition;var i=["top","bottom"].includes(n);var a=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(i?this._margin.left+a.left:this._margin.left,", ").concat(i?this._margin.top:this._margin.top+a.top,")")};var s=Ox("g.d3plus-viz-legend",{condition:this._legend&&!this._legendConfig.select,enter:r,parent:this._select,transition:this._transition,update:r}).node();var l=[];var u=function e(t,n){var i=o._shape(t,n);var a=i==="Line"?"stroke":"fill";var r=o._shapeConfig[i]&&o._shapeConfig[i][a]?o._shapeConfig[i][a]:o._shapeConfig[a];return typeof r==="function"?r.bind(o)(t,n):r};var h=function e(t,n){var i=o._shape(t,n);var a=o._shapeConfig[i]&&o._shapeConfig[i].opacity?o._shapeConfig[i].opacity:o._shapeConfig.opacity;return typeof a==="function"?a.bind(o)(t,n):a};var c=function e(t,n){return"".concat(u(t,n),"_").concat(h(t,n))};if(this._legend){X().key(c).rollup(function(e){return l.push(Fx(e,o._aggs))}).entries(this._colorScale?e.filter(function(e,t){return o._colorScale(e,t)===undefined}):e)}l.sort(this._legendSort);var f=l.map(function(e,t){return o._ids(e,t).slice(0,o._drawDepth+1)});this._legendDepth=0;var d=function e(t){var n=f.map(function(e){return e[t]});if(!n.some(function(e){return e instanceof Array})&&Array.from(new Set(n)).length===l.length){o._legendDepth=t;return"break"}};for(var g=0;g<=this._drawDepth;g++){var p=d(g);if(p==="break")break}var v=function e(t,n){var i=o._id(t,n);if(i instanceof Array)i=i[0];return o._hidden.includes(i)||o._solo.length&&!o._solo.includes(i)};this._legendClass.id(c).align(i?"center":n).direction(i?"row":"column").duration(this._duration).data(l.length>this._legendCutoff||this._colorScale?l:[]).height(i?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top)).locale(this._locale).parent(this).select(s).verticalAlign(!i?"middle":n).width(i?this._width-(this._margin.left+this._margin.right+a.left+a.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(Px.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function e(t,n){return v(t,n)?o._hiddenColor(t,n):u(t,n)},labelConfig:{fontOpacity:function e(t,n){return v(t,n)?o._hiddenOpacity(t,n):1}},opacity:h}).config(this._legendConfig).render();if(!this._legendConfig.select&&t.height){if(i)this._margin[n]+=t.height+this._legendClass.padding()*2;else this._margin[n]+=t.width+this._legendClass.padding()*2}}function QL(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(e){var t=GN(i._time(e)).getTime();return t>=n[0]&&t<=n[1]}).render()}}function eI(){var t=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var i=n?zx(this._data.map(this._time)).map(GN):[];n=n&&i.length>1;var a=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+a.left,", 0)")};var o=Ox("g.d3plus-viz-timeline",{condition:n,enter:r,parent:this._select,transition:this._transition,update:r}).node();if(n){var s=this._timelineClass.domain(Fe(i)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(i.sort(function(e,t){return+e-+t})).width(this._width-(this._margin.left+this._margin.right+a.left+a.right));if(s.selection()===undefined){this._timelineSelection=Fe(e,this._time).map(GN);s.selection(this._timelineSelection)}var l=this._timelineConfig;s.config(l).on("end",function(e){QL.bind(t)(e);if(l.on&&l.on.end)l.on.end(e)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function tI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this._title?this._title(e):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 a=Ox("g.d3plus-viz-title",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._titleClass.data(t?[{text:t}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=t?a.getBBox().height:0}function nI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=typeof this._total==="function"?O(e.map(this._total)):this._total===true&&this._size?O(e.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 a=Ox("g.d3plus-viz-total",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._totalClass.data(t?[{text:this._totalFormat(t)}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=t?a.getBBox().height+this._totalConfig.padding*2:0}function iI(e,t){if(!e)return undefined;if(e.tagName===undefined||["BODY","HTML"].indexOf(e.tagName)>=0){var n=window["inner".concat(t.charAt(0).toUpperCase()+t.slice(1))];var i=Rl(e);if(t==="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 a=parseFloat(Rl(e).style(t),10);if(typeof a==="number"&&a>0)return a;else return iI(e.parentNode,t)}}function aI(e){return[iI(e,"width"),iI(e,"height")]}function rI(e){var t=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 a=e.getBoundingClientRect();var r=a.height,o=a.left+n,s=a.top+i,l=a.width;return i+window.innerHeight>s+t&&i+t<s+r&&n+window.innerWidth>o+t&&n+t<o+l}function oI(e,t){this._select.style("cursor","auto");if(this._drawDepth<this._groupBy.length-1){var i=this._groupBy[this._drawDepth],a=i(e,t);this.hover(false);if(this._tooltip(e,t))this._tooltipClass.data([]).render();var r=this._filter;this._history.push({depth:this._depth,filter:r});this.config({depth:this._drawDepth+1,filter:function e(t,n){return(!r||r(t,n))&&i(t,n)===a}}).render()}}function sI(e,t){var i=this;this._select.style("cursor","auto");if(this._tooltip(e,t))this._tooltipClass.data([]).render();var n=this._id(e,t);if(!(n instanceof Array))n=[n];var a=this._hidden.indexOf(n[0]);var r=this._solo.indexOf(n[0]);var o=_e(this._legendClass.data().map(function(e,t){var n=i._id(e,t);if(!(n instanceof Array))n=[n];return n})).length;if(fl.shiftKey){if(a<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(r>=0){this._solo=[];this._hidden=[];this.render()}}else{if(r<0&&this._hidden.length<o-1){this._solo=n;this._hidden=[]}else{this._solo=[];this._hidden=[]}this.render()}}var lI=function e(t){return t.reduce(function(e,t){if(t instanceof Array){if(e.length){var n=e.slice();e=[];t.forEach(function(t){return e=e.concat(n.map(function(e){return"".concat(e,"_").concat(t)}))})}else{e=t.slice()}}else if(e.length){e=e.map(function(e){return"".concat(e,"_").concat(t)})}else{e.push(t)}return e},[])};function uI(e,t){var i=this;if(this._shapeConfig.hoverOpacity!==1){var a=lI(this._ids(e,t));this.hover(function(e,t){var n=lI(i._ids(e,t));return a.some(function(e){return n.includes(e)})})}}function hI(n,i){var a=this;setTimeout(function(){if(a._shapeConfig.hoverOpacity!==1&&a._hover?a._hover(n,i):true){a.hover(false)}var e=a._tooltipClass.data();if(e.length&&a._tooltip(n,i)){var t=e[0];while(t.__d3plus__&&t.data){t=t.data}if(a._id(t)===a._id(n))a._tooltipClass.data([]).render()}},50);this._select.style("cursor","auto")}function cI(e,t,n){var i=this;var a=fl.touches?[fl.touches[0].clientX,fl.touches[0].clientY]:[fl.clientX,fl.clientY];var r=_e(this._legendClass.data().map(function(e,t){var n=i._id(e,t);if(!(n instanceof Array))n=[n];return n})).length;if(e&&this._tooltip(e,t)){var o=this._id(e,t);if(o instanceof Array)o=o[0];var s=this._translate;this._select.style("cursor","pointer");this._tooltipClass.data([n||e]).footer(this._solo.length&&!this._solo.includes(o)?s("Click to Highlight"):this._solo.length===1&&this._solo.includes(o)||this._hidden.length===r-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():ZL.bind(this)).position(a).config(Px.bind(this)(this._tooltipConfig)).config(Px.bind(this)(this._legendTooltip)).render()}}function fI(e,t,n){if(e&&this._tooltip(e,t)){this._select.style("cursor","pointer");var i=fl.touches?[fl.touches[0].clientX,fl.touches[0].clientY]:[fl.clientX,fl.clientY];this._tooltipClass.data([n||e]).footer(this._drawDepth<this._groupBy.length-1?this._translate("Click to Expand"):false).title(this._drawLabel).position(i).config(Px.bind(this)(this._tooltipConfig)).render()}}function dI(e){fl.preventDefault();fl.stopPropagation();if(!e)this._tooltipClass.data([]).render()}function gI(e,t){return _I(e)||yI(e,t)||vI(e,t)||pI()}function pI(){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 vI(e,t){if(!e)return;if(typeof e==="string")return mI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mI(e,t)}function mI(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function yI(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function _I(e){if(Array.isArray(e))return e}var bI=false;function wI(){if(!this._container||!this._zoomGroup)return;var e=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,t=this,n=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[n,e]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[n,e]]).on("zoom",kI.bind(this));this._zoomToBounds=CI.bind(this);var i=Rl(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom?[0]:[]);var a=i.enter().append("div").attr("class","d3plus-zoom-control");i.exit().remove();i=i.merge(a).style("position","absolute").style("top","".concat(this._margin.top,"px")).style("left","".concat(this._margin.left,"px"));a.append("div").attr("class","zoom-control zoom-in");i.select(".zoom-in").on("click",SI.bind(this,this._zoomFactor)).html("&#65291;");a.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",SI.bind(this,1/this._zoomFactor)).html("&#65293;");a.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",SI.bind(this,0)).html("&#8634");a.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){Rl(this).classed("active",!bI).call(jx,bI?t._zoomControlStyle||{}:t._zoomControlStyleActive||{});xI.bind(t)(!bI)}).html("&#164");i.selectAll(".zoom-control").call(jx,t._zoomControlStyle).on("mouseenter",function(){Rl(this).call(jx,t._zoomControlStyleHover||{})}).on("mouseleave",function(){Rl(this).call(jx,Rl(this).classed("active")?t._zoomControlStyleActive||{}:t._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[n,e]]).filter(function(){return!fl.button&&fl.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",RI.bind(this)).on("brush",EI.bind(this)).on("end",AI.bind(this));var r=this._container.selectAll("g.brush").data([0]);this._brushGroup=r.enter().append("g").attr("class","brush").merge(r).call(this._zoomBrush);xI.bind(this)();if(this._renderTiles)this._renderTiles(ch(this._container.node()),0)}function xI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;bI=e;if(bI)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!bI&&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 kI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!t)this._zoomGroup.attr("transform",e||fl.transform);else this._zoomGroup.transition().duration(t).attr("transform",e||fl.transform)}if(this._renderTiles)this._renderTiles(ch(this._container.node()),t)}function SI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var t=this._zoomBehavior.extent().bind(document)()[1].map(function(e){return e/2}),n=this._zoomBehavior.scaleExtent(),i=ch(this._container.node());if(!e){i.k=n[0];i.x=0;i.y=0}else{var a=[(t[0]-i.x)/i.k,(t[1]-i.y)/i.k];i.k=Math.min(n[1],i.k*e);if(i.k<=n[0]){i.k=n[0];i.x=0;i.y=0}else{i.x+=t[0]-(a[0]*i.k+i.x);i.y+=t[1]-(a[1]*i.k+i.y)}}kI.bind(this)(i,this._duration)}function CI(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),i=ch(this._container.node());if(e){var a=gI(this._zoomBehavior.translateExtent()[1],2),r=a[0],o=a[1],s=e[1][0]-e[0][0],l=e[1][1]-e[0][1];var u=Math.min(n[1],1/Math.max(s/r,l/o));var h,c;if(s/l<r/o){u*=(o-this._zoomPadding*2)/o;h=(r-s*u)/2/u;c=this._zoomPadding/u}else{u*=(r-this._zoomPadding*2)/r;c=(o-l*u)/2/u;h=this._zoomPadding/u}i.x=(i.x-e[0][0]+h)*(i.k*u/i.k);i.y=(i.y-e[0][1]+c)*(i.k*u/i.k);i.k*=u;if(i.x>0)i.x=0;else if(i.x<r*-i.k+r)i.x=r*-i.k+r;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}kI.bind(this)(i,t)}function EI(){MI.bind(this)()}function AI(){if(!fl.selection)return;this._brushGroup.call(this._zoomBrush.move,null);CI.bind(this)(fl.selection)}function RI(){MI.bind(this)()}function MI(){this._brushGroup.selectAll(".selection").call(Eh,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(Eh,this._zoomBrushHandleStyle||{})}function TI(){var e=Rl(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]);var t=e.enter().append("div").attr("class","d3plus-attribution");e.exit().remove();e=e.merge(t).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(jx,this._attributionStyle)}function BI(e){return DI(e)||PI(e)||FI(e)||NI()}function NI(){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 PI(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function DI(e){if(Array.isArray(e))return LI(e)}function OI(e,t){return jI(e)||II(e,t)||FI(e,t)||zI()}function zI(){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 FI(e,t){if(!e)return;if(typeof e==="string")return LI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LI(e,t)}function LI(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function II(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function jI(e){if(Array.isArray(e))return e}function HI(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HI=function e(t){return typeof t}}else{HI=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return HI(e)}function VI(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function GI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function UI(e,t,n){if(t)GI(e.prototype,t);if(n)GI(e,n);return e}function WI(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)KI(e,t)}function KI(e,t){KI=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return KI(e,t)}function qI(a){var r=$I();return function e(){var t=ZI(a),n;if(r){var i=ZI(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return YI(this,n)}}function YI(e,t){if(t&&(HI(t)==="object"||typeof t==="function")){return t}return XI(e)}function XI(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $I(){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(e){return false}}function ZI(e){ZI=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return ZI(e)}function JI(){return typeof window!=="undefined"?window.innerWidth>600:true}function QI(i){return i.reduce(function(e,t,n){if(!n)e+=t;else if(n===i.length-1&&n===1)e+=" and ".concat(t);else if(n===i.length-1)e+=", and ".concat(t);else e+=", ".concat(t);return e},"")}var ej=function(e){WI(n,e);var t=qI(n);function n(){var s;VI(this,n);s=t.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 kA).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(e,t){return s._groupBy[0](e,t)};s._colorScaleClass=new kD;s._colorScaleConfig={};s._colorScalePadding=JI;s._colorScalePosition="bottom";s._colorScaleMaxSize=600;var e=new WP;s._controlCache={};s._controlConfig={selectStyle:Object.assign({margin:"5px"},e.selectStyle())};s._controlPadding=JI;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=Dx("#aaa");s._hiddenOpacity=Dx(.5);s._history=[];s._groupBy=[wh("id")];s._legend=true;s._legendClass=new hD;s._legendConfig={label:ZL.bind(XI(s)),shapeConfig:{ariaLabel:ZL.bind(XI(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendCutoff=1;s._legendPadding=JI;s._legendPosition="bottom";s._legendSort=function(e,t){return s._drawLabel(e).localeCompare(s._drawLabel(t))};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=zN(10);s._messageClass=new Cz;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":oI.bind(XI(s)),"click.legend":sI.bind(XI(s)),mouseenter:uI.bind(XI(s)),mouseleave:hI.bind(XI(s)),"mousemove.shape":fI.bind(XI(s)),"mousemove.legend":cI.bind(XI(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":HI(window))===undefined?"":window;s._shape=Dx("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function e(t,n){return s._drawLabel(t,n)},fill:function e(t,n){while(t.__d3plus__&&t.data){t=t.data;n=t.i}if(s._colorScale){var i=s._colorScale(t,n);if(i!==undefined&&i!==null){var a=s._colorScaleClass._colorScale;var r=s._colorScaleClass.color();if(!a)return r instanceof Array?r[r.length-1]:r;else if(!a.domain().length)return a.range()[a.range().length-1];return a(i)}}var o=s._color(t,n);if(hN(o))return o;return rS(o)},labelConfig:{fontColor:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return oS(i)}},opacity:Dx(1),stroke:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return hN(i).darker()},role:"presentation",strokeWidth:Dx(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new FD).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=JI;s._threshold=Dx(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new kA;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=JI;s._tooltip=Dx(true);s._tooltipClass=new wz;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new kA;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(e){return"".concat(s._translate("Total"),": ").concat(VN(e,s._locale))};s._totalPadding=JI;s._zoom=false;s._zoomBehavior=bh();s._zoomBrush=GB();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}UI(n,[{key:"_preDraw",value:function e(){var r=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(t,n){return r._groupBy.map(function(e){return!t||t.__d3plus__&&!t.data?undefined:e(t.__d3plus__?t.data:t,t.__d3plus__?t.i:n)}).filter(function(e){return e!==undefined&&e!==null})};this._drawLabel=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:r._drawDepth;if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;t=e.i}if(e._isAggregation){return"".concat(r._thresholdName(e,t)," < ").concat(VN(e._threshold*100,r._locale),"%")}if(r._label)return"".concat(r._label(e,t));var i=o._ids(e,t).slice(0,n+1);var a=i.reverse().find(function(e){return!(e instanceof Array)})||i[i.length-1];return a instanceof Array?QI(a):"".concat(a)};if(this._time&&!this._timeFilter&&this._data.length){var t=this._data.map(this._time).map(GN);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 a=+me(t);this._timeFilter=function(e,t){return+GN(r._time(e,t))===a}}}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 l=X();for(var u=0;u<=this._drawDepth;u++){l.key(this._groupBy[u])}if(this._discrete&&"_".concat(this._discrete)in this)l.key(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)l.key(this["_".concat(this._discrete,"2")]);var h=l.rollup(function(e){var t=r._data.indexOf(e[0]);var n=r._shape(e[0],t);var i=r._id(e[0],t);var a=Fx(e,r._aggs);if(!r._hidden.includes(i)&&(!r._solo.length||r._solo.includes(i))){if(!r._discrete&&n==="Line")r._filteredData=r._filteredData.concat(e);else r._filteredData.push(a)}r._legendData.push(a)}).entries(s);this._filteredData=this._thresholdFunction(this._filteredData,h)}var c=X().key(this._id).entries(this._filteredData).length;if(c>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 e(){if(this._legendPosition==="left"||this._legendPosition==="right")JL.bind(this)(this._filteredData);if(this._colorScalePosition==="left"||this._colorScalePosition==="right"||this._colorScalePosition===false)Az.bind(this)(this._filteredData);Ez.bind(this)();tI.bind(this)(this._filteredData);nI.bind(this)(this._filteredData);eI.bind(this)(this._filteredData);$L.bind(this)(this._filteredData);if(this._legendPosition==="top"||this._legendPosition==="bottom")JL.bind(this)(this._legendData);if(this._colorScalePosition==="top"||this._colorScalePosition==="bottom")Az.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function e(t){return t}},{key:"render",value:function e(r){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=eh().duration(this._duration);if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var t=this._select===void 0?Rl("body").append("div"):this._select;var n=t.append("svg");this.select(n.node())}function s(){var e=this._select.style("display");this._select.style("display","none");var t=aI(this._select.node().parentNode),n=OI(t,2),i=n[0],a=n[1];i-=parseFloat(this._select.style("border-left-width"),10);i-=parseFloat(this._select.style("border-right-width"),10);a-=parseFloat(this._select.style("border-top-width"),10);a-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",e);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(a);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||rI(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(eh).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=Rl(this._select.node().parentNode);var a=i.style("position");if(a==="static")i.style("position","relative");var l=this._select.selectAll("title").data([0]);var u=l.enter().append("title").attr("id","".concat(this._uuid,"-title"));l.merge(u).text(this._svgTitle);var h=this._select.selectAll("desc").data([0]);var c=h.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));h.merge(c).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);Rl(this._scrollContainer).on("scroll.".concat(this._uuid),null);Rl(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(r)}},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(r)}},this._detectVisibleInterval)}else if(this._detectVisible&&!rI(this._select.node())){Rl(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(rI(o._select.node())){Rl(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(r)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var f=NN();this._queue.forEach(function(e){var t=o._cache?o._lrucache.get("".concat(e[3],"_").concat(e[1])):undefined;if(!t)f.defer.apply(f,BI(e));else o["_".concat(e[3])]=e[2]?e[2](t):t});this._queue=[];if(this._loadingMessage&&f._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}f.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var e=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var t=e.enter().append("g").attr("class","data-table").attr("role","table");e.exit().remove();var i=e.merge(t).selectAll("text").data(o._data instanceof Array?Le(0,o._data.length+1):[]);i.exit().remove();var a=i.merge(i.enter().append("text").attr("role","row")).selectAll("tspan").data(function(e,t){return n.map(function(e){return{role:t?"cell":"columnheader",text:t?o._data[t-1][e]:e}})});a.exit().remove();a.merge(a.enter().append("tspan")).attr("role",function(e){return e.role}).attr("dy","-1000px").html(function(e){return e.text});o._preDraw();o._draw(r);wI.bind(o)();TI.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length))o._messageClass.hide();if(o._detectResize&&(o._autoWidth||o._autoHeight)){Rl(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(r)},o._detectResizeDelay)})}if(r)setTimeout(r,o._duration+100)})}Rl("body").on("touchstart.".concat(this._uuid),dI.bind(this));return this}},{key:"active",value:function e(t){this._active=t;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(e){return e.active(t)});if(this._legend)this._legendClass.active(t)}return this}},{key:"aggs",value:function e(t){return arguments.length?(this._aggs=Ch(this._aggs,t),this):this._aggs}},{key:"ariaHidden",value:function e(t){return arguments.length?(this._ariaHidden=t,this):this._ariaHidden}},{key:"attribution",value:function e(t){return arguments.length?(this._attribution=t,this):this._attribution}},{key:"attributionStyle",value:function e(t){return arguments.length?(this._attributionStyle=Ch(this._attributionStyle,t),this):this._attributionStyle}},{key:"backConfig",value:function e(t){return arguments.length?(this._backConfig=Ch(this._backConfig,t),this):this._backConfig}},{key:"cache",value:function e(t){return arguments.length?(this._cache=t,this):this._cache}},{key:"color",value:function e(t){return arguments.length?(this._color=!t||typeof t==="function"?t:wh(t),this):this._color}},{key:"colorScale",value:function e(t){return arguments.length?(this._colorScale=!t||typeof t==="function"?t:wh(t),this):this._colorScale}},{key:"colorScaleConfig",value:function e(t){return arguments.length?(this._colorScaleConfig=Ch(this._colorScaleConfig,t),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function e(t){return arguments.length?(this._colorScalePadding=typeof t==="function"?t:Dx(t),this):this._colorScalePadding}},{key:"colorScalePosition",value:function e(t){return arguments.length?(this._colorScalePosition=t,this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function e(t){return arguments.length?(this._colorScaleMaxSize=t,this):this._colorScaleMaxSize}},{key:"controls",value:function e(t){return arguments.length?(this._controls=t,this):this._controls}},{key:"controlConfig",value:function e(t){return arguments.length?(this._controlConfig=Ch(this._controlConfig,t),this):this._controlConfig}},{key:"controlPadding",value:function e(t){return arguments.length?(this._controlPadding=typeof t==="function"?t:Dx(t),this):this._controlPadding}},{key:"data",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"data");this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function e(t){return arguments.length?(this._dataCutoff=t,this):this._dataCutoff}},{key:"depth",value:function e(t){return arguments.length?(this._depth=t,this):this._depth}},{key:"detectResize",value:function e(t){return arguments.length?(this._detectResize=t,this):this._detectResize}},{key:"detectResizeDelay",value:function e(t){return arguments.length?(this._detectResizeDelay=t,this):this._detectResizeDelay}},{key:"detectVisible",value:function e(t){return arguments.length?(this._detectVisible=t,this):this._detectVisible}},{key:"detectVisibleInterval",value:function e(t){return arguments.length?(this._detectVisibleInterval=t,this):this._detectVisibleInterval}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"downloadButton",value:function e(t){return arguments.length?(this._downloadButton=t,this):this._downloadButton}},{key:"downloadConfig",value:function e(t){return arguments.length?(this._downloadConfig=Ch(this._downloadConfig,t),this):this._downloadConfig}},{key:"downloadPosition",value:function e(t){return arguments.length?(this._downloadPosition=t,this):this._downloadPosition}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"filter",value:function e(t){return arguments.length?(this._filter=t,this):this._filter}},{key:"groupBy",value:function e(t){var n=this;if(!arguments.length)return this._groupBy;if(!(t instanceof Array))t=[t];return this._groupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=zx(e.map(t));return n.length===1?n[0]:n}}return wh(e)}}),this}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"hiddenColor",value:function e(t){return arguments.length?(this._hiddenColor=typeof t==="function"?t:Dx(t),this):this._hiddenColor}},{key:"hiddenOpacity",value:function e(t){return arguments.length?(this._hiddenOpacity=typeof t==="function"?t:Dx(t),this):this._hiddenOpacity}},{key:"hover",value:function e(t){var i=this;var n=this._hover=t;if(this._shapeConfig.hoverOpacity!==1){if(typeof t==="function"){var a=_e(this._shapes.map(function(e){return e.data()}));a=a.concat(this._legendClass.data());var r=t?a.filter(t):[];var o=[];r.map(this._ids).forEach(function(e){for(var t=1;t<=e.length;t++){o.push(JSON.stringify(e.slice(0,t)))}});o=o.filter(function(e,t){return o.indexOf(e)===t});if(o.length)n=function e(t,n){return o.includes(JSON.stringify(i._ids(t,n)))}}this._shapes.forEach(function(e){return e.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Dx(t),this):this._label}},{key:"legend",value:function e(t){return arguments.length?(this._legend=t,this):this._legend}},{key:"legendConfig",value:function e(t){return arguments.length?(this._legendConfig=Ch(this._legendConfig,t),this):this._legendConfig}},{key:"legendCutoff",value:function e(t){return arguments.length?(this._legendCutoff=t,this):this._legendCutoff}},{key:"legendTooltip",value:function e(t){return arguments.length?(this._legendTooltip=Ch(this._legendTooltip,t),this):this._legendTooltip}},{key:"legendPadding",value:function e(t){return arguments.length?(this._legendPadding=typeof t==="function"?t:Dx(t),this):this._legendPadding}},{key:"legendPosition",value:function e(t){return arguments.length?(this._legendPosition=t,this):this._legendPosition}},{key:"legendSort",value:function e(t){return arguments.length?(this._legendSort=t,this):this._legendSort}},{key:"loadingHTML",value:function e(t){return arguments.length?(this._loadingHTML=typeof t==="function"?t:Dx(t),this):this._loadingHTML}},{key:"loadingMessage",value:function e(t){return arguments.length?(this._loadingMessage=t,this):this._loadingMessage}},{key:"messageMask",value:function e(t){return arguments.length?(this._messageMask=t,this):this._messageMask}},{key:"messageStyle",value:function e(t){return arguments.length?(this._messageStyle=Ch(this._messageStyle,t),this):this._messageStyle}},{key:"noDataHTML",value:function e(t){return arguments.length?(this._noDataHTML=typeof t==="function"?t:Dx(t),this):this._noDataHTML}},{key:"noDataMessage",value:function e(t){return arguments.length?(this._noDataMessage=t,this):this._noDataMessage}},{key:"scrollContainer",value:function e(t){return arguments.length?(this._scrollContainer=t,this):this._scrollContainer}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Dx(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}},{key:"svgDesc",value:function e(t){return arguments.length?(this._svgDesc=t,this):this._svgDesc}},{key:"svgTitle",value:function e(t){return arguments.length?(this._svgTitle=t,this):this._svgTitle}},{key:"threshold",value:function e(t){if(arguments.length){if(typeof t==="function"){this._threshold=t}else if(isFinite(t)&&!isNaN(t)){this._threshold=Dx(t*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function e(t){if(arguments.length){if(typeof t==="function"){this._thresholdKey=t}else{this._thresholdKey=wh(t)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function e(t){return arguments.length?(this._thresholdName=typeof t==="function"?t:Dx(t),this):this._thresholdName}},{key:"time",value:function e(t){if(arguments.length){if(typeof t==="function"){this._time=t}else{this._time=wh(t);if(!this._aggs[t]){this._aggs[t]=function(e,t){var n=zx(e.map(t));return n.length===1?n[0]:n}}}this._timeFilter=false;return this}else return this._time}},{key:"timeFilter",value:function e(t){return arguments.length?(this._timeFilter=t,this):this._timeFilter}},{key:"timeline",value:function e(t){return arguments.length?(this._timeline=t,this):this._timeline}},{key:"timelineConfig",value:function e(t){return arguments.length?(this._timelineConfig=Ch(this._timelineConfig,t),this):this._timelineConfig}},{key:"timelinePadding",value:function e(t){return arguments.length?(this._timelinePadding=typeof t==="function"?t:Dx(t),this):this._timelinePadding}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Dx(t),this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Ch(this._titleConfig,t),this):this._titleConfig}},{key:"titlePadding",value:function e(t){return arguments.length?(this._titlePadding=typeof t==="function"?t:Dx(t),this):this._titlePadding}},{key:"tooltip",value:function e(t){return arguments.length?(this._tooltip=typeof t==="function"?t:Dx(t),this):this._tooltip}},{key:"tooltipConfig",value:function e(t){return arguments.length?(this._tooltipConfig=Ch(this._tooltipConfig,t),this):this._tooltipConfig}},{key:"total",value:function e(t){if(arguments.length){if(typeof t==="function")this._total=t;else if(t)this._total=wh(t);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function e(t){return arguments.length?(this._totalConfig=Ch(this._totalConfig,t),this):this._totalConfig}},{key:"totalFormat",value:function e(t){return arguments.length?(this._totalFormat=t,this):this._totalFormat}},{key:"totalPadding",value:function e(t){return arguments.length?(this._totalPadding=typeof t==="function"?t:Dx(t),this):this._totalPadding}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}},{key:"zoom",value:function e(t){return arguments.length?(this._zoom=t,this):this._zoom}},{key:"zoomBrushHandleSize",value:function e(t){return arguments.length?(this._zoomBrushHandleSize=t,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function e(t){return arguments.length?(this._zoomBrushHandleStyle=t,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function e(t){return arguments.length?(this._zoomBrushSelectionStyle=t,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function e(t){return arguments.length?(this._zoomControlStyle=t,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function e(t){return arguments.length?(this._zoomControlStyleActive=t,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function e(t){return arguments.length?(this._zoomControlStyleHover=t,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function e(t){return arguments.length?(this._zoomFactor=t,this):this._zoomFactor}},{key:"zoomMax",value:function e(t){return arguments.length?(this._zoomMax=t,this):this._zoomMax}},{key:"zoomPan",value:function e(t){return arguments.length?(this._zoomPan=t,this):this._zoomPan}},{key:"zoomPadding",value:function e(t){return arguments.length?(this._zoomPadding=t,this):this._zoomPadding}},{key:"zoomScroll",value:function e(t){return arguments.length?(this._zoomScroll=t,this):this._zoomScroll}}]);return n}(Tx);var tj=function(e){"use strict";_inherits2(Y,e);var t=_createSuper2(Y);function Y(){var u;_classCallCheck2(this,Y);u=t.call(this);u._links=[];u._linkSize=Dx(1);u._linkSizeMin=1;u._linkSizeScale="sqrt";u._noDataMessage=false;u._nodes=[];u._on["click.shape"]=function(e,t){u._tooltipClass.data([]).render();if(u._hover&&u._drawDepth>=u._groupBy.length-1){var n="".concat(u._nodeGroupBy&&u._nodeGroupBy[u._drawDepth](e,t)?u._nodeGroupBy[u._drawDepth](e,t):u._id(e,t));if(u._focus&&u._focus===n){u.active(false);u._on.mouseenter.bind(_assertThisInitialized2(u))(e,t);u._focus=undefined;u._zoomToBounds(null)}else{u.hover(false);var i=u._linkLookup[n],a=u._nodeLookup[n];var r=[n];var o=[a.x-a.r,a.x+a.r],s=[a.y-a.r,a.y+a.r];i.forEach(function(e){r.push(e.id);if(e.x-e.r<o[0])o[0]=e.x-e.r;if(e.x+e.r>o[1])o[1]=e.x+e.r;if(e.y-e.r<s[0])s[0]=e.y-e.r;if(e.y+e.r>s[1])s[1]=e.y+e.r});u.active(function(e,t){if(e.source&&e.target)return e.source.id===n||e.target.id===n;else return r.includes("".concat(u._ids(e,t)[u._drawDepth]))});u._focus=n;var l=ch(u._container.node());o=o.map(function(e){return e*l.k+l.x});s=s.map(function(e){return e*l.k+l.y});u._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}}};u._on["click.legend"]=function(e,t){var n=u._id(e);var i=u._ids(e);i=i[i.length-1];if(u._hover&&u._drawDepth>=u._groupBy.length-1){if(u._focus&&u._focus===n){u.active(false);u._focus=undefined;u._zoomToBounds(null)}else{u.hover(false);var a=n.map(function(e){return u._nodeLookup[e]});var r=["".concat(i)];var o=[a[0].x-a[0].r,a[0].x+a[0].r],s=[a[0].y-a[0].r,a[0].y+a[0].r];a.forEach(function(e){r.push(e.id);if(e.x-e.r<o[0])o[0]=e.x-e.r;if(e.x+e.r>o[1])o[1]=e.x+e.r;if(e.y-e.r<s[0])s[0]=e.y-e.r;if(e.y+e.r>s[1])s[1]=e.y+e.r});u.active(function(e,t){if(e.source&&e.target)return r.includes(e.source.id)&&r.includes(e.target.id);else{var n=u._ids(e,t);return r.includes("".concat(n[n.length-1]))}});u._focus=n;var l=ch(u._container.node());o=o.map(function(e){return e*l.k+l.x});s=s.map(function(e){return e*l.k+l.y});u._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}u._on.mouseenter.bind(_assertThisInitialized2(u))(e,t);u._on["mousemove.legend"].bind(_assertThisInitialized2(u))(e,t)}};u._on.mouseenter=function(){};u._on["mouseleave.shape"]=function(){u.hover(false)};var l=u._on["mousemove.shape"];u._on["mousemove.shape"]=function(e,t){l(e,t);var n="".concat(u._nodeGroupBy&&u._nodeGroupBy[u._drawDepth](e,t)?u._nodeGroupBy[u._drawDepth](e,t):u._id(e,t)),i=u._linkLookup[n]||[],a=u._nodeLookup[n];var r=[n];var o=[a.x-a.r,a.x+a.r],s=[a.y-a.r,a.y+a.r];i.forEach(function(e){r.push(e.id);if(e.x-e.r<o[0])o[0]=e.x-e.r;if(e.x+e.r>o[1])o[1]=e.x+e.r;if(e.y-e.r<s[0])s[0]=e.y-e.r;if(e.y+e.r>s[1])s[1]=e.y+e.r});u.hover(function(e,t){if(e.source&&e.target)return e.source.id===n||e.target.id===n;else return r.includes("".concat(u._ids(e,t)[u._drawDepth]))})};u._sizeMin=5;u._sizeScale="sqrt";u._shape=Dx("Circle");u._shapeConfig=Ch(u._shapeConfig,{ariaLabel:function e(t,n){var i=u._size?", ".concat(u._size(t,n)):"";return"".concat(u._drawLabel(t,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee"}});u._x=wh("x");u._y=wh("y");u._zoom=true;return u}_createClass2(Y,[{key:"_draw",value:function e(t){var a=this;_get2(_getPrototypeOf2(Y.prototype),"_draw",this).call(this,t);var n=this._height-this._margin.top-this._margin.bottom,i="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),r=this._transition,o=this._width-this._margin.left-this._margin.right;var s=this._filteredData.reduce(function(e,t,n){e[a._id(t,n)]=t;return e},{});var l=this._nodes.reduce(function(e,t,n){e[a._nodeGroupBy?a._nodeGroupBy[a._drawDepth](t,n):t.id]=t;return e},{});l=Array.from(new Set(Object.keys(s).concat(Object.keys(l)))).map(function(e,t){var n=s[e],i=l[e];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:t,id:e,fx:n!==undefined&&!isNaN(a._x(n))?a._x(n):a._x(i),fy:n!==undefined&&!isNaN(a._y(n))?a._y(n):a._y(i),node:i,r:a._size?n!==undefined&&a._size(n)!==undefined?a._size(n):a._size(i):a._sizeMin,shape:n!==undefined&&a._shape(n)!==undefined?a._shape(n):a._shape(i)}}).filter(function(e){return e});var u=this._nodeLookup=l.reduce(function(e,t){e[t.id]=t;return e},{});var h=l.map(function(e){return e.node});var c=this._links.map(function(e){var t=_typeof2(e.source);return{size:a._linkSize(e),source:t==="number"?l[h.indexOf(a._nodes[e.source])]:t==="string"?u[e.source]:u[e.source.id],target:t==="number"?l[h.indexOf(a._nodes[e.target])]:t==="string"?u[e.target]:u[e.target.id]}});this._linkLookup=c.reduce(function(e,t){if(!e[t.source.id])e[t.source.id]=[];e[t.source.id].push(t.target);if(!e[t.target.id])e[t.target.id]=[];e[t.target.id].push(t.source);return e},{});var f=l.some(function(e){return e.fx===undefined||e.fy===undefined});if(f){var d=Bi().domain(Fe(c,function(e){return e.size})).range([.1,.5]);var g=De().force("link",Q(c).id(function(e){return e.id}).distance(1).strength(function(e){return d(e.size)}).iterations(4)).force("charge",Oe().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(l);g.tick(p).stop();var y=l.map(function(e){return[e.vx,e.vy]});var _=0,b=0,w=0;if(y.length===2){_=100}else if(y.length>2){var x=Ke(y);var k=TR(x,{verbose:true});_=k.angle;b=k.cx;w=k.cy}l.forEach(function(e){var t=gR([e.vx,e.vy],-1*(Math.PI/180*_),[b,w]);e.fx=t[0];e.fy=t[1]})}var S=Fe(l.map(function(e){return e.fx})),C=Fe(l.map(function(e){return e.fy}));var E=Bi().domain(S).range([0,o]),A=Bi().domain(C).range([0,n]);var R=(S[1]-S[0])/(C[1]-C[0])||1,M=o/n;if(R>M){var T=n*M/R;A.range([(n-T)/2,n-(n-T)/2])}else{var B=o*R/M;E.range([(o-B)/2,o-(o-B)/2])}l.forEach(function(e){e.x=E(e.fx);e.y=A(e.fy)});var N=Fe(l.map(function(e){return e.r}));var P=this._sizeMax||me([1,je(_e(l.map(function(t){return l.map(function(e){return t===e?null:CA([t.x,t.y],[e.x,e.y])})})))/2]);var D=Fo["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(N).range([N[0]===N[1]?P:je([P/2,this._sizeMin]),P]),O=E.domain(),z=A.domain();var F=O[1]-O[0],L=z[1]-z[0];l.forEach(function(e){var t=D(e.r);if(O[0]>E.invert(e.x-t))O[0]=E.invert(e.x-t);if(O[1]<E.invert(e.x+t))O[1]=E.invert(e.x+t);if(z[0]>A.invert(e.y-t))z[0]=A.invert(e.y-t);if(z[1]<A.invert(e.y+t))z[1]=A.invert(e.y+t)});var I=O[1]-O[0],j=z[1]-z[0];P*=je([F/I,L/j]);D.range([N[0]===N[1]?P:je([P/2,this._sizeMin]),P]);E.domain(O);A.domain(z);var H=(R>M?o:n)/2;l.forEach(function(e){e.x=E(e.fx);e.fx=e.x;e.y=A(e.fy);e.fy=e.y;e.r=D(e.r)||H;e.width=e.r*2;e.height=e.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 V=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);V.enter().append("rect").attr("class","d3plus-network-hitArea").merge(V).attr("width",o).attr("height",n).attr("fill","transparent").on("click",function(){if(a._focus){a.active(false);a._focus=undefined;a._zoomToBounds(null)}});this._zoomGroup=this._container.selectAll("g.d3plus-network-zoomGroup").data([0]);var G=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup);var U=Fe(c,function(e){return e.size});if(U[0]!==U[1]){var W=Fo["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(U).range([this._linkSizeMin,D.range()[0]]);c.forEach(function(e){e.size=W(e.size)})}var K=Px.bind(this)(this._shapeConfig,"edge","Path");delete K.on;this._shapes.push((new zT).config(K).strokeWidth(function(e){return e.size}).activeStyle({"stroke-width":function e(t){return t.size}}).d(function(e){return"M".concat(e.source.x,",").concat(e.source.y," ").concat(e.target.x,",").concat(e.target.y)}).data(c).select(Ox("g.d3plus-network-links",{parent:G,transition:r,enter:{transform:i},update:{transform:i}}).node()).render());var q={label:function e(t){return l.length<=a._dataCutoff||a._hover&&a._hover(t)||a._active&&a._active(t)?a._drawLabel(t.data||t.node,t.i):false},select:Ox("g.d3plus-network-nodes",{parent:G,transition:r,enter:{transform:i},update:{transform:i}}).node()};X().key(function(e){return e.shape}).entries(l).forEach(function(e){a._shapes.push((new FT[e.key]).config(Px.bind(a)(a._shapeConfig,"shape",e.key)).config(q).config(q[e.key]||{}).data(e.values).render())});return this}},{key:"hover",value:function e(t){this._hover=t;if(this._nodes.length<this._dataCutoff){this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t)}return this}},{key:"links",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"links");return this}return this._links}},{key:"linkSize",value:function e(t){return arguments.length?(this._linkSize=typeof t==="function"?t:Dx(t),this):this._linkSize}},{key:"linkSizeMin",value:function e(t){return arguments.length?(this._linkSizeMin=t,this):this._linkSizeMin}},{key:"linkSizeScale",value:function e(t){return arguments.length?(this._linkSizeScale=t,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function e(t){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(t instanceof Array))t=[t];return this._nodeGroupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=Array.from(new Set(e.map(t)));return n.length===1?n[0]:n}}return wh(e)}}),this}},{key:"nodes",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"nodes");return this}return this._nodes}},{key:"size",value:function e(t){return arguments.length?(this._size=typeof t==="function"||!t?t:wh(t),this):this._size}},{key:"sizeMax",value:function e(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function e(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function e(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}},{key:"x",value:function e(t){if(arguments.length){if(typeof t==="function")this._x=t;else{this._x=wh(t);if(!this._aggs[t])this._aggs[t]=a}return this}else return this._x}},{key:"y",value:function e(t){if(arguments.length){if(typeof t==="function")this._y=t;else{this._y=wh(t);if(!this._aggs[t])this._aggs[t]=a}return this}else return this._y}}]);return Y}(ej);var nj=function(e){"use strict";_inherits2(L,e);var t=_createSuper2(L);function L(){var l;_classCallCheck2(this,L);l=t.call(this);l._links=[];l._linkSize=Dx(1);l._linkSizeMin=1;l._linkSizeScale="sqrt";l._noDataMessage=false;l._nodes=[];l._on.mouseenter=function(){};l._on["mouseleave.shape"]=function(){l.hover(false)};var u=l._on["mousemove.shape"];l._on["mousemove.shape"]=function(e,t){u(e,t);if(l._focus&&l._focus===e.id){l.hover(false);l._on.mouseenter.bind(_assertThisInitialized2(l))(e,t);l._focus=undefined}else{var n=l._nodeGroupBy&&l._nodeGroupBy[l._drawDepth](e,t)?l._nodeGroupBy[l._drawDepth](e,t):l._id(e,t),i=l._linkLookup[n],a=l._nodeLookup[n];var r=[a.id];var o=[a.x-a.r,a.x+a.r],s=[a.y-a.r,a.y+a.r];i.forEach(function(e){r.push(e.id);if(e.x-e.r<o[0])o[0]=e.x-e.r;if(e.x+e.r>o[1])o[1]=e.x+e.r;if(e.y-e.r<s[0])s[0]=e.y-e.r;if(e.y+e.r>s[1])s[1]=e.y+e.r});l.hover(function(e,t){if(e.source&&e.target)return e.source.id===a.id||e.target.id===a.id;else return r.includes(l._ids(e,t)[l._drawDepth])})}};l._on["click.shape"]=function(e){l._center=e.id;l._margin={bottom:0,left:0,right:0,top:0};l._padding={bottom:0,left:0,right:0,top:0};l._draw()};l._sizeMin=5;l._sizeScale="sqrt";l._shape=Dx("Circle");l._shapeConfig=Ch(l._shapeConfig,{ariaLabel:function e(t,n){var i=l._size?", ".concat(l._size(t,n)):"";return"".concat(l._drawLabel(t,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 l}_createClass2(L,[{key:"_draw",value:function e(t){var u=this;_get2(_getPrototypeOf2(L.prototype),"_draw",this).call(this,t);var a=this._filteredData.reduce(function(e,t,n){e[u._id(t,n)]=t;return e},{});var h=this._nodes;if(!this._nodes.length&&this._links.length){var n=Array.from(new Set(this._links.reduce(function(e,t){return e.concat([t.source,t.target])},[])));h=n.map(function(e){return _typeof2(e)==="object"?e:{id:e}})}h=h.reduce(function(e,t,n){e[u._nodeGroupBy?u._nodeGroupBy[u._drawDepth](t,n):u._id(t,n)]=t;return e},{});h=Array.from(new Set(Object.keys(a).concat(Object.keys(h)))).map(function(e,t){var n=a[e],i=h[e];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:t,id:e,node:i,shape:n!==undefined&&u._shape(n)!==undefined?u._shape(n):u._shape(i)}}).filter(function(e){return e});var i=this._nodeLookup=h.reduce(function(e,t){e[t.id]=t;return e},{});var r=this._links.map(function(n){var e=["source","target"];var t=e.reduce(function(e,t){e[t]=typeof n[t]==="number"?h[n[t]]:i[n[t].id||n[t]];return e},{});t.size=u._linkSize(n);return t});var o=r.reduce(function(e,t){if(!e[t.source.id]){e[t.source.id]=[]}e[t.source.id].push(t);if(!e[t.target.id]){e[t.target.id]=[]}e[t.target.id].push(t);return e},{});var c=this._height-this._margin.top-this._margin.bottom,s="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),l=this._transition,f=this._width-this._margin.left-this._margin.right;var d=[],g=je([c,f])/2,p=g/3;var v=p,m=p*2;var y=i[this._center];y.x=f/2;y.y=c/2;y.r=this._sizeMin?me([this._sizeMin,v*.65]):this._sizeMax?je([this._sizeMax,v*.65]):v*.65;var _=[y],b=[];o[this._center].forEach(function(e){var t=e.source.id===u._center?e.target:e.source;t.edges=o[t.id].filter(function(e){return e.source.id!==u._center||e.target.id!==u._center});t.edge=e;_.push(t);b.push(t)});b.sort(function(e,t){return e.edges.length-t.edges.length});var w=[];var x=0;b.forEach(function(e){var a=e.id;e.edges=e.edges.filter(function(e){return!_.includes(e.source)&&e.target.id===a||!_.includes(e.target)&&e.source.id===a});x+=e.edges.length||1;e.edges.forEach(function(e){var t=e.source,n=e.target;var i=n.id===a?t:n;_.push(i)})});var k=Math.PI*2;var S=0;b.forEach(function(r,e){var o=r.edges.length||1;var t=k/x*o;if(e===0){S-=t/2}var s=S+t/2-k/4;r.radians=s;r.x=f/2+v*Math.cos(s);r.y=c/2+v*Math.sin(s);S+=t;r.edges.forEach(function(e,t){var n=e.source.id===r.id?e.target:e.source;var i=k/x;var a=s-i*o/2+i/2+i*t;n.radians=a;n.x=f/2+m*Math.cos(a);n.y=c/2+m*Math.sin(a);w.push(n)})});var C=p/2;var E=p/4;var A=C/2-4;if(C/2-4<8){A=je([C/2,8])}var R=E/2-4;if(E/2-4<4){R=je([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=Fe(a,function(e){return e.size});if(T[0]===T[1]){T[0]=0}M=Bi().domain(T).rangeRound([3,je([A,R])]);var B=y.size;y.r=M(B)}else{M=Bi().domain([1,2]).rangeRound([A,R])}w.forEach(function(e){e.ring=2;var t=u._size?e.size:2;e.r=u._sizeMin?me([u._sizeMin,M(t)]):u._sizeMax?je([u._sizeMax,M(t)]):M(t)});b.forEach(function(e){e.ring=1;var t=u._size?e.size:1;e.r=u._sizeMin?me([u._sizeMin,M(t)]):u._sizeMax?je([u._sizeMax,M(t)]):M(t)});h=[y].concat(b).concat(w);b.forEach(function(l){var e=["source","target"];var n=l.edge;e.forEach(function(t){n[t]=h.find(function(e){return e.id===n[t].id})});d.push(n);o[l.id].forEach(function(i){var t=i.source.id===l.id?i.target:i.source;if(t.id!==y.id){var a=w.find(function(e){return e.id===t.id});if(!a){a=b.find(function(e){return e.id===t.id})}if(a){i.spline=true;var r=f/2;var o=c/2;var s=v+(m-v)*.5;var e=["source","target"];e.forEach(function(t,e){i["".concat(t,"X")]=i[t].x+Math.cos(i[t].ring===2?i[t].radians+Math.PI:i[t].radians)*i[t].r;i["".concat(t,"Y")]=i[t].y+Math.sin(i[t].ring===2?i[t].radians+Math.PI:i[t].radians)*i[t].r;i["".concat(t,"BisectX")]=r+s*Math.cos(i[t].radians);i["".concat(t,"BisectY")]=o+s*Math.sin(i[t].radians);i[t]=h.find(function(e){return e.id===i[t].id});if(i[t].edges===undefined)i[t].edges={};var n=e===0?i.target.id:i.source.id;if(i[t].id===l.id){i[t].edges[n]={angle:l.radians+Math.PI,radius:p/2}}else{i[t].edges[n]={angle:a.radians,radius:p/2}}});d.push(i)}}})});h.forEach(function(e){if(e.id!==u._center){var t=u._shapeConfig.labelConfig.fontSize&&u._shapeConfig.labelConfig.fontSize(e)||11;var n=t*1.4;var i=n*2;var a=5;var r=p-e.r;var o=e.radians*(180/Math.PI);var s=e.r+a;var l="start";if(o<-90||o>90){s=-e.r-r-a;l="end";o+=180}e.labelBounds={x:s,y:-n/2,width:r,height:i};e.rotate=o;e.textAnchor=l}else{e.labelBounds={x:-v/2,y:-v/2,width:v,height:v}}});this._linkLookup=r.reduce(function(e,t){if(!e[t.source.id])e[t.source.id]=[];e[t.source.id].push(t.target);if(!e[t.target.id])e[t.target.id]=[];e[t.target.id].push(t.source);return e},{});var N=Fe(r,function(e){return e.size});if(N[0]!==N[1]){var P=je(h,function(e){return e.r});var D=Fo["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(N).range([this._linkSizeMin,P]);r.forEach(function(e){e.size=D(e.size)})}var O=Px.bind(this)(this._shapeConfig,"edge","Path");delete O.on;this._shapes.push((new zT).config(O).strokeWidth(function(e){return e.size}).id(function(e){return"".concat(e.source.id,"_").concat(e.target.id)}).d(function(e){return e.spline?"M".concat(e.sourceX,",").concat(e.sourceY,"C").concat(e.sourceBisectX,",").concat(e.sourceBisectY," ").concat(e.targetBisectX,",").concat(e.targetBisectY," ").concat(e.targetX,",").concat(e.targetY):"M".concat(e.source.x,",").concat(e.source.y," ").concat(e.target.x,",").concat(e.target.y)}).data(d).select(Ox("g.d3plus-rings-links",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()).render());var z=this;var F={label:function e(t){return h.length<=u._dataCutoff||u._hover&&u._hover(t)||u._active&&u._active(t)?u._drawLabel(t.data||t.node,t.i):false},labelBounds:function e(t){return t.labelBounds},labelConfig:{fontColor:function e(t){return t.id===u._center?Px.bind(z)(z._shapeConfig,"shape",t.key).labelConfig.fontColor(t):sS(Px.bind(z)(z._shapeConfig,"shape",t.key).fill(t))},fontResize:function e(t){return t.id===u._center},padding:0,textAnchor:function e(t){return i[t.id].textAnchor||Px.bind(z)(z._shapeConfig,"shape",t.key).labelConfig.textAnchor},verticalAlign:function e(t){return t.id===u._center?"middle":"top"}},rotate:function e(t){return i[t.id].rotate||0},select:Ox("g.d3plus-rings-nodes",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()};X().key(function(e){return e.shape}).entries(h).forEach(function(e){u._shapes.push((new FT[e.key]).config(Px.bind(u)(u._shapeConfig,"shape",e.key)).config(F).data(e.values).render())});return this}},{key:"center",value:function e(t){return arguments.length?(this._center=t,this):this._center}},{key:"hover",value:function e(t){this._hover=t;this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t);return this}},{key:"links",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"links");return this}return this._links}},{key:"linkSize",value:function e(t){return arguments.length?(this._linkSize=typeof t==="function"?t:Dx(t),this):this._linkSize}},{key:"linkSizeMin",value:function e(t){return arguments.length?(this._linkSizeMin=t,this):this._linkSizeMin}},{key:"linkSizeScale",value:function e(t){return arguments.length?(this._linkSizeScale=t,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function e(t){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(t instanceof Array))t=[t];return this._nodeGroupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=Array.from(new Set(e.map(t)));return n.length===1?n[0]:n}}return wh(e)}}),this}},{key:"nodes",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"nodes");return this}return this._nodes}},{key:"size",value:function e(t){return arguments.length?(this._size=typeof t==="function"||!t?t:wh(t),this):this._size}},{key:"sizeMax",value:function e(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function e(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function e(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}}]);return L}(ej);function ij(e){return e.target.depth}function aj(e){return e.depth}function rj(e,t){return t-1-e.height}function oj(e,t){return e.sourceLinks.length?e.depth:t-1}function sj(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?je(e.sourceLinks,ij)-1:0}function lj(e){return function(){return e}}function uj(e,t){return cj(e.source,t.source)||e.index-t.index}function hj(e,t){return cj(e.target,t.target)||e.index-t.index}function cj(e,t){return e.y0-t.y0}function fj(e){return e.value}function dj(e){return e.index}function gj(e){return e.nodes}function pj(e){return e.links}function vj(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function mj(){var o=0,c=0,s=1,f=1,l=24,d=8,t=dj,u=oj,g,p,n=gj,i=pj,v=6;function a(){var e={nodes:n.apply(null,arguments),links:i.apply(null,arguments)};r(e);h(e);m(e);y(e);b(e);return e}a.update=function(e){b(e);return e};a.nodeId=function(e){return arguments.length?(t=typeof e==="function"?e:lj(e),a):t};a.nodeAlign=function(e){return arguments.length?(u=typeof e==="function"?e:lj(e),a):u};a.nodeSort=function(e){return arguments.length?(g=e,a):g};a.nodeWidth=function(e){return arguments.length?(l=+e,a):l};a.nodePadding=function(e){return arguments.length?(d=+e,a):d};a.nodes=function(e){return arguments.length?(n=typeof e==="function"?e:lj(e),a):n};a.links=function(e){return arguments.length?(i=typeof e==="function"?e:lj(e),a):i};a.linkSort=function(e){return arguments.length?(p=e,a):p};a.size=function(e){return arguments.length?(o=c=0,s=+e[0],f=+e[1],a):[s-o,f-c]};a.extent=function(e){return arguments.length?(o=+e[0][0],s=+e[1][0],c=+e[0][1],f=+e[1][1],a):[[o,c],[s,f]]};a.iterations=function(e){return arguments.length?(v=+e,a):v};function r(e){e.nodes.forEach(function(e,t){e.index=t;e.sourceLinks=[];e.targetLinks=[]});var a=E(e.nodes,t);e.links.forEach(function(e,t){e.index=t;var n=e.source,i=e.target;if(_typeof2(n)!=="object")n=e.source=vj(a,n);if(_typeof2(i)!=="object")i=e.target=vj(a,i);n.sourceLinks.push(e);i.targetLinks.push(e)})}function h(e){e.nodes.forEach(function(e){e.value=Math.max(O(e.sourceLinks,fj),O(e.targetLinks,fj))})}function m(e){var t,n,i,a=e.nodes.length;for(t=e.nodes,n=[],i=0;t.length;++i,t=n,n=[]){if(i>a)throw new Error("circular link");t.forEach(function(e){e.depth=i;e.sourceLinks.forEach(function(e){if(n.indexOf(e.target)<0){n.push(e.target)}})})}for(t=e.nodes,n=[],i=0;t.length;++i,t=n,n=[]){if(i>a)throw new Error("circular link");t.forEach(function(e){e.height=i;e.targetLinks.forEach(function(e){if(n.indexOf(e.source)<0){n.push(e.source)}})})}var r=(s-o-l)/(i-1);e.nodes.forEach(function(e){e.layer=Math.max(0,Math.min(i-1,Math.floor(u.call(null,e,i))));e.x1=(e.x0=o+e.layer*r)+l})}function y(e){var t=X().key(function(e){return e.x0}).sortKeys(k).entries(e.nodes).map(function(e){return e.values});o();for(var n=0,i=v;n<i;++n){var a=Math.pow(.99,n);var r=(n+1)/i;_(e);l(a);u(r);h(r);_(e);s(a);u(r);h(r)}function o(){var n=je(t,function(e){return(f-c-(e.length-1)*d)/O(e,fj)});t.forEach(function(e){if(g!=null)e.sort(g);var t=c;e.forEach(function(e){e.y0=t;e.y1=t+e.value*n;t=e.y1+d})});e.links.forEach(function(e){e.width=e.value*n});if(p!=null)e.nodes.forEach(function(e){e.sourceLinks.sort(p);e.targetLinks.sort(p)})}function s(h){t.slice(1).forEach(function(e){e.forEach(function(e){var t=0;var n=0;var i=_createForOfIteratorHelper(e.targetLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.source,s=r.value;var l=s*(e.layer-o.layer);t+=w(o,e)*l;n+=l}}catch(e){i.e(e)}finally{i.f()}if(!(n>0))return;var u=(t/n-e.y0)*h;e.y0+=u;e.y1+=u})})}function l(h){t.slice(0,-1).reverse().forEach(function(e){e.forEach(function(e){var t=0;var n=0;var i=_createForOfIteratorHelper(e.sourceLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.target,s=r.value;var l=s*(o.layer-e.layer);t+=x(e,o)*l;n+=l}}catch(e){i.e(e)}finally{i.f()}if(!(n>0))return;var u=(t/n-e.y0)*h;e.y0+=u;e.y1+=u})})}function u(o){t.forEach(function(e){var t,n,i=c,a=e.length,r;if(g===undefined)e.sort(cj);for(r=0;r<a;++r){t=e[r];n=(i-t.y0)*o;if(n>1e-6)t.y0+=n,t.y1+=n;i=t.y1+d}})}function h(o){t.forEach(function(e){var t,n,i=f,a=e.length,r;if(g===undefined)e.sort(cj);for(r=a-1;r>=0;--r){t=e[r];n=(t.y1-i)*o;if(n>1e-6)t.y0-=n,t.y1-=n;i=t.y0-d}})}}function _(e){if(p===undefined)e.nodes.forEach(function(e){e.sourceLinks.sort(hj);e.targetLinks.sort(uj)})}function b(e){_(e);e.nodes.forEach(function(e){var t=e.y0,n=t;e.sourceLinks.forEach(function(e){e.y0=t+e.width/2,t+=e.width});e.targetLinks.forEach(function(e){e.y1=n+e.width/2,n+=e.width})})}function w(e,t){var n=e.y0-(e.sourceLinks.length-1)*d/2;var i=_createForOfIteratorHelper(e.sourceLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.target,s=r.width;if(o===t)break;n+=s+d}}catch(e){i.e(e)}finally{i.f()}var l=_createForOfIteratorHelper(t.targetLinks),u;try{for(l.s();!(u=l.n()).done;){var h=u.value,c=h.source,f=h.width;if(c===e)break;n-=f}}catch(e){l.e(e)}finally{l.f()}return n}function x(e,t){var n=t.y0-(t.targetLinks.length-1)*d/2;var i=_createForOfIteratorHelper(t.targetLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.source,s=r.width;if(o===e)break;n+=s+d}}catch(e){i.e(e)}finally{i.f()}var l=_createForOfIteratorHelper(e.sourceLinks),u;try{for(l.s();!(u=l.n()).done;){var h=u.value,c=h.target,f=h.width;if(c===t)break;n-=f}}catch(e){l.e(e)}finally{l.f()}return n}return a}function yj(e){return[e.source.x1,e.y0]}function _j(e){return[e.target.x0,e.y1]}function bj(){return oC().source(yj).target(_j)}var wj={center:sj,justify:oj,left:aj,right:rj};var xj=function(e){"use strict";_inherits2(h,e);var t=_createSuper2(h);function h(){var s;_classCallCheck2(this,h);s=t.call(this);s._nodeId=wh("id");s._links=wh("links");s._linksSource="source";s._linksTarget="target";s._noDataMessage=false;s._nodes=wh("nodes");s._nodeAlign=wj.justify;s._nodePadding=8;s._nodeWidth=30;s._on.mouseenter=function(){};s._on["mouseleave.shape"]=function(){s.hover(false)};var l=s._on["mousemove.shape"];s._on["mousemove.shape"]=function(e,t){l(e,t);if(s._focus&&s._focus===e.id){s.hover(false);s._on.mouseenter.bind(_assertThisInitialized2(s))(e,t);s._focus=undefined}else{var n=s._nodeId(e,t),i=s._nodeLookup[n],a=Object.keys(s._nodeLookup).reduce(function(e,t){e[s._nodeLookup[t]]=!isNaN(t)?parseInt(t,10):t;return e},{});var r=s._linkLookup[i];var o=[n];r.forEach(function(e){o.push(a[e])});s.hover(function(e,t){if(e.source&&e.target){return e.source.id===n||e.target.id===n}else{return o.includes(s._nodeId(e,t))}})}};s._path=bj();s._sankey=mj();s._shape=Dx("Rect");s._shapeConfig=Ch(s._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function e(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},label:false,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function e(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},Rect:{}});s._value=Dx(1);return s}_createClass2(h,[{key:"_draw",value:function e(t){var a=this;_get2(_getPrototypeOf2(h.prototype),"_draw",this).call(this,t);var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var r=Array.isArray(this._nodes)?this._nodes:this._links.reduce(function(e,t){if(!e.includes(t[a._linksSource]))e.push(t[a._linksSource]);if(!e.includes(t[a._linksTarget]))e.push(t[a._linksTarget]);return e},[]).map(function(e){return{id:e}});var o=r.map(function(e,t){return{__d3plus__:true,data:e,i:t,id:a._nodeId(e,t),node:e,shape:"Rect"}});var s=this._nodeLookup=o.reduce(function(e,t,n){e[t.id]=n;return e},{});var l=this._links.map(function(n,e){var t=[a._linksSource,a._linksTarget];var i=t.reduce(function(e,t){e[t]=s[n[t]];return e},{});return{source:i[a._linksSource],target:i[a._linksTarget],value:a._value(n,e)}});this._linkLookup=l.reduce(function(e,t){if(!e[t.source])e[t.source]=[];e[t.source].push(t.target);if(!e[t.target])e[t.target]=[];e[t.target].push(t.source);return e},{});var u="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(o).links(l).size([i,n])();this._shapes.push((new zT).config(this._shapeConfig.Path).data(l).d(this._path).select(Ox("g.d3plus-Links",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).render());X().key(function(e){return e.shape}).entries(o).forEach(function(e){a._shapes.push((new FT[e.key]).data(e.values).height(function(e){return e.y1-e.y0}).width(function(e){return e.x1-e.x0}).x(function(e){return(e.x1+e.x0)/2}).y(function(e){return(e.y1+e.y0)/2}).select(Ox("g.d3plus-sankey-nodes",{parent:a._select,enter:{transform:u},update:{transform:u}}).node()).config(Px.bind(a)(a._shapeConfig,"shape",e.key)).render())});return this}},{key:"hover",value:function e(t){this._hover=t;this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t);return this}},{key:"links",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="links"});var a=[pB.bind(this),t,n,"links"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);return this}return this._links}},{key:"linksSource",value:function e(t){return arguments.length?(this._linksSource=t,this):this._linksSource}},{key:"linksTarget",value:function e(t){return arguments.length?(this._linksTarget=t,this):this._linksTarget}},{key:"nodeAlign",value:function e(t){return arguments.length?(this._nodeAlign=typeof t==="function"?t:wj[t],this):this._nodeAlign}},{key:"nodeId",value:function e(t){return arguments.length?(this._nodeId=typeof t==="function"?t:wh(t),this):this._nodeId}},{key:"nodes",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="nodes"});var a=[pB.bind(this),t,n,"nodes"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);return this}return this._nodes}},{key:"nodePadding",value:function e(t){return arguments.length?(this._nodePadding=t,this):this._nodePadding}},{key:"nodeWidth",value:function e(t){return arguments.length?(this._nodeWidth=t,this):this._nodeWidth}},{key:"value",value:function e(t){return arguments.length?(this._value=typeof t==="function"?t:wh(t),this):this._value}}]);return h}(ej);e.Network=tj;e.Rings=nj;e.Sankey=xj;Object.defineProperty(e,"__esModule",{value:true})});