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

31 lines
No EOL
785 KiB
JavaScript
Raw 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.

/*
d3plus-network v0.6.0
Javascript network visualizations built upon d3 modules.
Copyright (c) 2020 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){return t={exports:{}},e(t,t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e};var c=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof e=="object"&&e)||Function("return this")();var o=function(e){try{return!!e()}catch(e){return true}};var d=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});var i={}.propertyIsEnumerable;var a=Object.getOwnPropertyDescriptor;var r=a&&!i.call({1:2},1);var s=r?function e(t){var n=a(this,t);return!!n&&n.enumerable}:i;var g={f:s};var l=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}};var u={}.toString;var h=function(e){return u.call(e).slice(8,-1)};var f="".split;var b=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return h(e)=="String"?f.call(e,""):Object(e)}:Object;var p=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e};var v=function(e){return b(p(e))};var m=function(e){return typeof e==="object"?e!==null:typeof e==="function"};var y=function(e,t){if(!m(e))return e;var n,i;if(t&&typeof(n=e.toString)=="function"&&!m(i=n.call(e)))return i;if(typeof(n=e.valueOf)=="function"&&!m(i=n.call(e)))return i;if(!t&&typeof(n=e.toString)=="function"&&!m(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")};var _={}.hasOwnProperty;var w=function(e,t){return _.call(e,t)};var x=c.document;var k=m(x)&&m(x.createElement);var S=function(e){return k?x.createElement(e):{}};var C=!d&&!o(function(){return Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a!=7});var E=Object.getOwnPropertyDescriptor;var A=d?E:function e(t,n){t=v(t);n=y(n,true);if(C)try{return E(t,n)}catch(e){}if(w(t,n))return l(!g.f.call(t,n),t[n])};var R={f:A};var M=function(e){if(!m(e)){throw TypeError(String(e)+" is not an object")}return e};var T=Object.defineProperty;var B=d?T:function e(t,n,i){M(t);n=y(n,true);M(i);if(C)try{return T(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 N={f:B};var D=d?function(e,t,n){return N.f(e,t,l(1,n))}:function(e,t,n){e[t]=n;return e};var P=function(t,n){try{D(c,t,n)}catch(e){c[t]=n}return n};var O="__core-js_shared__";var z=c[O]||P(O,{});var L=z;var F=Function.toString;if(typeof L.inspectSource!="function"){L.inspectSource=function(e){return F.call(e)}}var I=L.inspectSource;var j=c.WeakMap;var H=typeof j==="function"&&/native code/.test(I(j));var V=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 G=0;var U=Math.random();var W=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++G+U).toString(36)};var q=V("keys");var K=function(e){return q[e]||(q[e]=W(e))};var Y={};var X=c.WeakMap;var $,Z,J;var Q=function(e){return J(e)?Z(e):$(e,{})};var ee=function(n){return function(e){var t;if(!m(e)||(t=Z(e)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return t}};if(H){var te=new X;var ne=te.get;var ie=te.has;var ae=te.set;$=function(e,t){ae.call(te,e,t);return t};Z=function(e){return ne.call(te,e)||{}};J=function(e){return ie.call(te,e)}}else{var re=K("state");Y[re]=true;$=function(e,t){D(e,re,t);return t};Z=function(e){return w(e,re)?e[re]:{}};J=function(e){return w(e,re)}}var oe={set:$,get:Z,has:J,enforce:Q,getterFor:ee};var se=t(function(e){var t=oe.get;var s=oe.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"&&!w(n,"name"))D(n,"name",t);s(n).source=l.join(typeof t=="string"?t:"")}if(e===c){if(r)e[t]=n;else P(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||I(this)})});var le=c;var ue=function(e){return typeof e=="function"?e:undefined};var he=function(e,t){return arguments.length<2?ue(le[e])||ue(c[e]):le[e]&&le[e][t]||c[e]&&c[e][t]};var ce=Math.ceil;var fe=Math.floor;var de=function(e){return isNaN(e=+e)?0:(e>0?fe:ce)(e)};var ge=Math.min;var pe=function(e){return e>0?ge(de(e),9007199254740991):0};var ve=Math.max;var me=Math.min;var ye=function(e,t){var n=de(e);return n<0?ve(n+t,0):me(n,t)};var _e=function(s){return function(e,t,n){var i=v(e);var a=pe(i.length);var r=ye(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 be={includes:_e(true),indexOf:_e(false)};var we=be.indexOf;var xe=function(e,t){var n=v(e);var i=0;var a=[];var r;for(r in n)!w(Y,r)&&w(n,r)&&a.push(r);while(t.length>i)if(w(n,r=t[i++])){~we(a,r)||a.push(r)}return a};var ke=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Se=ke.concat("length","prototype");var Ce=Object.getOwnPropertyNames||function e(t){return xe(t,Se)};var Ee={f:Ce};var Ae=Object.getOwnPropertySymbols;var Re={f:Ae};var Me=he("Reflect","ownKeys")||function e(t){var n=Ee.f(M(t));var i=Re.f;return i?n.concat(i(t)):n};var Te=function(e,t){var n=Me(t);var i=N.f;var a=R.f;for(var r=0;r<n.length;r++){var o=n[r];if(!w(e,o))i(e,o,a(t,o))}};var Be=/#|\.prototype\./;var Ne=function(e,t){var n=Pe[De(e)];return n==ze?true:n==Oe?false:typeof t=="function"?o(t):!!t};var De=Ne.normalize=function(e){return String(e).replace(Be,".").toLowerCase()};var Pe=Ne.data={};var Oe=Ne.NATIVE="N";var ze=Ne.POLYFILL="P";var Le=Ne;var Fe=R.f;var Ie=function(e,t){var n=e.target;var i=e.global;var a=e.stat;var r,o,s,l,u,h;if(i){o=c}else if(a){o=c[n]||P(n,{})}else{o=(c[n]||{}).prototype}if(o)for(s in t){u=t[s];if(e.noTargetGet){h=Fe(o,s);l=h&&h.value}else l=o[s];r=Le(i?s:n+(a?".":"#")+s,e.forced);if(!r&&l!==undefined){if(typeof u===typeof l)continue;Te(u,l)}if(e.sham||l&&l.sham){D(u,"sham",true)}se(o,s,u,e)}};var je=function(e){if(typeof e!="function"){throw TypeError(String(e)+" is not a function")}return e};var He=function(i,a,e){je(i);if(a===undefined)return i;switch(e){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 Ve=function(e){return Object(p(e))};var Ge=Array.isArray||function e(t){return h(t)=="Array"};var Ue=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())});var We=Ue&&!Symbol.sham&&typeof Symbol.iterator=="symbol";var qe=V("wks");var Ke=c.Symbol;var Ye=We?Ke:Ke&&Ke.withoutSetter||W;var Xe=function(e){if(!w(qe,e)){if(Ue&&w(Ke,e))qe[e]=Ke[e];else qe[e]=Ye("Symbol."+e)}return qe[e]};var $e=Xe("species");var Ze=function(e,t){var n;if(Ge(e)){n=e.constructor;if(typeof n=="function"&&(n===Array||Ge(n.prototype)))n=undefined;else if(m(n)){n=n[$e];if(n===null)n=undefined}}return new(n===undefined?Array:n)(t===0?0:t)};var Je=[].push;var Qe=function(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=Ve(e);var r=b(a);var o=He(t,n,3);var s=pe(r.length);var l=0;var u=i||Ze;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:Je.call(h,c)}else if(m)return false}}return y?-1:v||m?m:h}};var et={forEach:Qe(0),map:Qe(1),filter:Qe(2),some:Qe(3),every:Qe(4),find:Qe(5),findIndex:Qe(6)};var tt=Object.keys||function e(t){return xe(t,ke)};var nt=d?Object.defineProperties:function e(t,n){M(t);var i=tt(n);var a=i.length;var r=0;var o;while(a>r)N.f(t,o=i[r++],n[o]);return t};var it=he("document","documentElement");var at=">";var rt="<";var ot="prototype";var st="script";var lt=K("IE_PROTO");var ut=function(){};var ht=function(e){return rt+st+at+e+rt+"/"+st+at};var ct=function(e){e.write(ht(""));e.close();var t=e.parentWindow.Object;e=null;return t};var ft=function(){var e=S("iframe");var t="java"+st+":";var n;e.style.display="none";it.appendChild(e);e.src=String(t);n=e.contentWindow.document;n.open();n.write(ht("document.F=Object"));n.close();return n.F};var dt;var gt=function(){try{dt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}gt=dt?ct(dt):ft();var e=ke.length;while(e--)delete gt[ot][ke[e]];return gt()};Y[lt]=true;var pt=Object.create||function e(t,n){var i;if(t!==null){ut[ot]=M(t);i=new ut;ut[ot]=null;i[lt]=t}else i=gt();return n===undefined?i:nt(i,n)};var vt=Xe("unscopables");var mt=Array.prototype;if(mt[vt]==undefined){N.f(mt,vt,{configurable:true,value:pt(null)})}var yt=function(e){mt[vt][e]=true};var _t=Object.defineProperty;var bt={};var wt=function(e){throw e};var xt=function(e,t){if(w(bt,e))return bt[e];if(!t)t={};var n=[][e];var i=w(t,"ACCESSORS")?t.ACCESSORS:false;var a=w(t,0)?t[0]:wt;var r=w(t,1)?t[1]:undefined;return bt[e]=!!n&&!o(function(){if(i&&!d)return true;var e={length:-1};if(i)_t(e,1,{enumerable:true,get:wt});else e[1]=1;n.call(e,a,r)})};var kt=et.find;var St="find";var Ct=true;var Et=xt(St);if(St in[])Array(1)[St](function(){Ct=false});Ie({target:"Array",proto:true,forced:Ct||!Et},{find:function e(t){return kt(this,t,arguments.length>1?arguments[1]:undefined)}});yt(St);var At=be.includes;var Rt=xt("indexOf",{ACCESSORS:true,1:0});Ie({target:"Array",proto:true,forced:!Rt},{includes:function e(t){return At(this,t,arguments.length>1?arguments[1]:undefined)}});yt("includes");var Mt=Object.assign;var Tt=Object.defineProperty;var Bt=!Mt||o(function(){if(d&&Mt({b:1},Mt(Tt({},"a",{enumerable:true,get:function(){Tt(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 Mt({},e)[n]!=7||tt(Mt({},t)).join("")!=i})?function e(t,n){var i=Ve(t);var a=arguments.length;var r=1;var o=Re.f;var s=g.f;while(a>r){var l=b(arguments[r++]);var u=o?tt(l).concat(o(l)):tt(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}:Mt;Ie({target:"Object",stat:true,forced:Object.assign!==Bt},{assign:Bt});var Nt=Xe("match");var Dt=function(e){var t;return m(e)&&((t=e[Nt])!==undefined?!!t:h(e)=="RegExp")};var Pt=function(e){if(Dt(e)){throw TypeError("The method doesn't accept regular expressions")}return e};var Ot=Xe("match");var zt=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{n[Ot]=false;return"/./"[t](n)}catch(e){}}return false};Ie({target:"String",proto:true,forced:!zt("includes")},{includes:function e(t){return!!~String(p(this)).indexOf(Pt(t),arguments.length>1?arguments[1]:undefined)}});var Lt=R.f;var Ft="".startsWith;var It=Math.min;var jt=zt("startsWith");var Ht=!jt&&!!function(){var e=Lt(String.prototype,"startsWith");return e&&!e.writable}();Ie({target:"String",proto:true,forced:!Ht&&!jt},{startsWith:function e(t){var n=String(p(this));Pt(t);var i=pe(It(arguments.length>1?arguments[1]:undefined,n.length));var a=String(t);return Ft?Ft.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(){var t="";[].forEach.call(this.childNodes,function(e){t+=n(e)});return t},set:function(e){while(this.firstChild){this.removeChild(this.firstChild)}try{var t=new DOMParser;t.async=false;var n="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+e+"</svg>";var i=t.parseFromString(n,"text/xml").documentElement;[].forEach.call(i.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(){return this.innerHTML},set:function(e){this.innerHTML=e}})})()}});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports):typeof define==="function"&&define.amd?define("d3plus-network",["exports"],t):(e=e||self,t(e.d3plus={}))})(this,function(e){function K(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){K=function(e){return typeof e}}else{K=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return K(e)}function n(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a 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)}}function a(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function r(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 o(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 s(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};if(e%2){o(Object(n),true).forEach(function(e){r(t,e,n[e])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))}else{o(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}}return t}function l(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)u(e,t)}function Y(e){Y=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return Y(e)}function u(e,t){u=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return u(e,t)}function t(){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 c(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function h(e,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return c(e)}function f(a){var r=t();return function e(){var t=Y(a),n;if(r){var i=Y(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return h(this,n)}}function d(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=Y(e);if(e===null)break}return e}function X(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){X=Reflect.get}else{X=function e(t,n,i){var a=d(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return X(e,t,n||e)}function g(e,t){if(!e)return;if(typeof e==="string")return p(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 p(e,t)}function p(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 k(e,t){var n;if(typeof Symbol==="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=g(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var i=0;var a=function(){};return{s:a,n:function(){if(i>=e.length)return{done:true};return{done:false,value:e[i++]}},e:function(e){throw e},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(){n=e[Symbol.iterator]()},n:function(){var e=n.next();r=e.done;return e},e:function(e){o=true;s=e},f:function(){try{if(!r&&n.return!=null)n.return()}finally{if(o)throw s}}}}function S(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function C(o){if(o.length===1)o=v(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 v(n){return function(e,t){return S(n(e),t)}}var m=C(S);var y=m.right;function _(e){return e===null?NaN:+e}function b(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=_(e[a]))){s=o-r;r+=s/++i;l+=s*(o-r)}}}else{while(++a<n){if(!isNaN(o=_(t(e[a],a,e)))){s=o-r;r+=s/++i;l+=s*(o-r)}}}if(i>1)return l/(i-1)}function Te(e,t){var n=b(e,t);return n?Math.sqrt(n):n}function Be(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 Ne(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 w=Math.sqrt(50),x=Math.sqrt(10),E=Math.sqrt(2);function pe(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=A(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 A(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>=w?10:r>=x?5:r>=E?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(r>=w?10:r>=x?5:r>=E?2:1)}function R(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>=w)a*=10;else if(r>=x)a*=5;else if(r>=E)a*=2;return t<e?-a:a}function De(e,t,n){if(n==null)n=_;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 ve(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 M(e,t){var n=e.length,i=n,a=-1,r,o=0;if(t==null){while(++a<n){if(!isNaN(r=_(e[a])))o+=r;else--i}}else{while(++a<n){if(!isNaN(r=_(t(e[a],a,e))))o+=r;else--i}}if(i)return o/i}function Pe(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 Oe(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 T="$";function B(){}B.prototype=N.prototype={constructor:B,has:function e(t){return T+t in this},get:function e(t){return this[T+t]},set:function e(t,n){this[T+t]=n;return this},remove:function e(t){var n=T+t;return n in this&&delete this[n]},clear:function e(){for(var t in this){if(t[0]===T)delete this[t]}},keys:function e(){var e=[];for(var t in this){if(t[0]===T)e.push(t.slice(1))}return e},values:function e(){var e=[];for(var t in this){if(t[0]===T)e.push(this[t])}return e},entries:function e(){var e=[];for(var t in this){if(t[0]===T)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]===T)++e}return e},empty:function e(){for(var t in this){if(t[0]===T)return false}return true},each:function e(t){for(var n in this){if(n[0]===T)t(this[n],n.slice(1),this)}}};function N(e,t){var n=new B;if(e instanceof B)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 Z(){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=N(),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,D,P)},map:function e(t){return p(t,0,z,L)},entries:function e(t){return o(p(t,0,z,L),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 D(){return{}}function P(e,t,n){e[t]=n}function z(){return N()}function L(e,t,n){e.set(t,n)}function F(){}var I=N.prototype;F.prototype=j.prototype={constructor:F,has:I.has,add:function e(t){t+="";this[T+t]=t;return this},remove:I.remove,clear:I.clear,values:I.keys,size:I.size,empty:I.empty,each:I.each};function j(e,t){var n=new F;if(e instanceof F)e.each(function(e){n.add(e)});else if(e){var i=-1,a=e.length;if(t==null)while(++i<a){n.add(e[i])}else while(++i<a){n.add(t(e[i],i,e))}}return n}function H(e){var t=[];for(var n in e){t.push(n)}return t}function V(e){return function(){return e}}function G(){return(Math.random()-.5)*1e-6}function U(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return W(this.cover(t,n),t,n,e)}function W(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 q(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){W(this,o[n],s[n],e[n])}return this}function J(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 Q(){var t=[];this.visit(function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)});return t}function ee(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 te(e,t,n,i,a){this.node=e;this.x0=t;this.y0=n;this.x1=i;this.y1=a}function ne(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 te(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 te(d[3],v,m,l,u),new te(d[2],o,m,v,u),new te(d[1],v,s,l,m),new te(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 ie(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 ae(e){for(var t=0,n=e.length;t<n;++t){this.remove(e[t])}return this}function re(){return this._root}function oe(){var t=0;this.visit(function(e){if(!e.length)do{++t}while(e=e.next)});return t}function se(e){var t=[],n,i=this._root,a,r,o,s,l;if(i)t.push(new te(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 te(a,u,h,s,l));if(a=i[2])t.push(new te(a,r,h,u,l));if(a=i[1])t.push(new te(a,u,o,s,h));if(a=i[0])t.push(new te(a,r,o,u,h))}}return this}function le(e){var t=[],n=[],i;if(this._root)t.push(new te(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 te(r,o,s,h,c));if(r=a[1])t.push(new te(r,h,s,l,c));if(r=a[2])t.push(new te(r,o,c,h,u));if(r=a[3])t.push(new te(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 ue(e){return e[0]}function he(e){return arguments.length?(this._x=e,this):this._x}function ce(e){return e[1]}function fe(e){return arguments.length?(this._y=e,this):this._y}function de(e,t,n){var i=new ge(t==null?ue:t,n==null?ce:n,NaN,NaN,NaN,NaN);return e==null?i:i.addAll(e)}function ge(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 me(e){var t={data:e.data},n=t;while(e=e.next){n=n.next={data:e.data}}return t}var ye=de.prototype=ge.prototype;ye.copy=function(){var e=new ge(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=me(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]=me(i)}}}return e};ye.add=U;ye.addAll=q;ye.cover=J;ye.data=Q;ye.extent=ee;ye.find=ne;ye.remove=ie;ye.removeAll=ae;ye.root=re;ye.size=oe;ye.visit=se;ye.visitAfter=le;ye.x=he;ye.y=fe;function _e(e){return e.index}function be(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function we(c){var r=_e,n=e,f,i=V(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||G();l=o.y+o.vy-r.y-r.vy||G();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=N(o,r),a;for(e=0,s=new Array(t);e<n;++e){a=c[e],a.index=e;if(K(a.source)!=="object")a.source=be(i,a.source);if(K(a.target)!=="object")a.target=be(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:V(+e),l(),t):n};t.distance=function(e){return arguments.length?(i=typeof e==="function"?e:V(+e),u(),t):i};return t}var xe={value:function e(){}};function ke(){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 Se(n)}function Se(e){this._=e}function Ce(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}})}Se.prototype=ke.prototype={constructor:Se,on:function e(t,n){var i=this._,a=Ce(t+"",i),r,o=-1,s=a.length;if(arguments.length<2){while(++o<s){if((r=(t=a[o]).type)&&(r=Ee(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]=Ae(i[r],t.name,n);else if(n==null)for(r in i){i[r]=Ae(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 Se(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 Ee(e,t){for(var n=0,i=e.length,a;n<i;++n){if((a=e[n]).name===t){return a.value}}}function Ae(e,t,n){for(var i=0,a=e.length;i<a;++i){if(e[i].name===t){e[i]=xe,e=e.slice(0,i).concat(e.slice(i+1));break}}if(n!=null)e.push({name:t,value:n});return e}var Re=0,Me=0,ze=0,Le=1e3,Fe,Ie,je=0,He=0,Ve=0,Ge=(typeof performance==="undefined"?"undefined":K(performance))==="object"&&performance.now?performance:Date,Ue=(typeof window==="undefined"?"undefined":K(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function We(){return He||(Ue(qe),He=Ge.now()+Ve)}function qe(){He=0}function Ke(){this._call=this._time=this._next=null}Ke.prototype=Ye.prototype={constructor:Ke,restart:function e(t,n,i){if(typeof t!=="function")throw new TypeError("callback is not a function");i=(i==null?We():+i)+(n==null?0:+n);if(!this._next&&Ie!==this){if(Ie)Ie._next=this;else Fe=this;Ie=this}this._call=t;this._time=i;Qe()},stop:function e(){if(this._call){this._call=null;this._time=Infinity;Qe()}}};function Ye(e,t,n){var i=new Ke;i.restart(e,t,n);return i}function Xe(){We();++Re;var e=Fe,t;while(e){if((t=He-e._time)>=0)e._call.call(null,t);e=e._next}--Re}function $e(){He=(je=Ge.now())+Ve;Re=Me=0;try{Xe()}finally{Re=0;Je();He=0}}function Ze(){var e=Ge.now(),t=e-je;if(t>Le)Ve-=t,je=e}function Je(){var e,t=Fe,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:Fe=n}}Ie=e;Qe(i)}function Qe(e){if(Re)return;if(Me)Me=clearTimeout(Me);var t=e-He;if(t>24){if(e<Infinity)Me=setTimeout($e,e-Ge.now()-Ve);if(ze)ze=clearInterval(ze)}else{if(!ze)je=Ge.now(),ze=setInterval(Ze,Le);Re=1,Ue($e)}}function et(t,n,e){var i=new Ke;n=n==null?0:+n;i.restart(function(e){i.stop();t(e+n)},n,e);return i}function tt(e){return e.x}function nt(e){return e.y}var it=10,at=Math.PI*(3-Math.sqrt(5));function rt(c){var r,o=1,n=.001,s=1-Math.pow(n,1/300),l=0,u=.6,h=N(),t=Ye(a),i=ke("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=it*Math.sqrt(e),a=e*at;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 ot(){var a,l,u,i=V(-30),h,c=1,f=Infinity,d=.81;function t(e){var t,n=a.length,i=de(a,tt,nt).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=G(),s+=a*a;if(r===0)r=G(),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=G(),s+=a*a;if(r===0)r=G(),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:V(+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 st(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 lt(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 ut(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ht(e,t){return e[0]-t[0]||e[1]-t[1]}function ct(e){var t=e.length,n=[0,1],i=2;for(var a=2;a<t;++a){while(i>1&&ut(e[n[i-2]],e[n[i-1]],e[a])<=0){--i}n[i++]=a}return n.slice(0,i)}function ft(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(ht);for(t=0;t<n;++t){a[t]=[i[t][0],-i[t][1]]}var r=ct(i),o=ct(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 dt(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 gt(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function pt(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e);break}return this}var vt=Array.prototype;var mt=vt.map;var yt=vt.slice;var _t={name:"implicit"};function bt(){var r=N(),o=[],i=[],a=_t;function s(e){var t=e+"",n=r.get(t);if(!n){if(a!==_t)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=N();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=yt.call(e),s):i.slice()};s.unknown=function(e){return arguments.length?(a=e,s):a};s.copy=function(){return bt(o,i).unknown(a)};gt.apply(s,arguments);return s}function wt(){var e=bt().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=Ne(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 wt(r(),s).round(h).paddingInner(c).paddingOuter(f).align(d)};return gt.apply(t(),arguments)}function xt(e){var t=e.copy;e.padding=e.paddingOuter;delete e.paddingInner;delete e.paddingOuter;e.copy=function(){return xt(t())};return e}function kt(){return xt(wt.apply(null,arguments).paddingInner(1))}function St(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Ct(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function Et(){}var At=.7;var Rt=1/At;var Mt="\\s*([+-]?\\d+)\\s*",Tt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nt=/^#([0-9a-f]{3})$/,Dt=/^#([0-9a-f]{6})$/,Pt=new RegExp("^rgb\\("+[Mt,Mt,Mt]+"\\)$"),Ot=new RegExp("^rgb\\("+[Bt,Bt,Bt]+"\\)$"),zt=new RegExp("^rgba\\("+[Mt,Mt,Mt,Tt]+"\\)$"),Lt=new RegExp("^rgba\\("+[Bt,Bt,Bt,Tt]+"\\)$"),Ft=new RegExp("^hsl\\("+[Tt,Bt,Bt]+"\\)$"),It=new RegExp("^hsla\\("+[Tt,Bt,Bt,Tt]+"\\)$");var jt={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};St(Et,Ht,{displayable:function e(){return this.rgb().displayable()},hex:function e(){return this.rgb().hex()},toString:function e(){return this.rgb()+""}});function Ht(e){var t;e=(e+"").trim().toLowerCase();return(t=Nt.exec(e))?(t=parseInt(t[1],16),new qt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=Dt.exec(e))?Vt(parseInt(t[1],16)):(t=Pt.exec(e))?new qt(t[1],t[2],t[3],1):(t=Ot.exec(e))?new qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zt.exec(e))?Gt(t[1],t[2],t[3],t[4]):(t=Lt.exec(e))?Gt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ft.exec(e))?Yt(t[1],t[2]/100,t[3]/100,1):(t=It.exec(e))?Yt(t[1],t[2]/100,t[3]/100,t[4]):jt.hasOwnProperty(e)?Vt(jt[e]):e==="transparent"?new qt(NaN,NaN,NaN,0):null}function Vt(e){return new qt(e>>16&255,e>>8&255,e&255,1)}function Gt(e,t,n,i){if(i<=0)e=t=n=NaN;return new qt(e,t,n,i)}function Ut(e){if(!(e instanceof Et))e=Ht(e);if(!e)return new qt;e=e.rgb();return new qt(e.r,e.g,e.b,e.opacity)}function Wt(e,t,n,i){return arguments.length===1?Ut(e):new qt(e,t,n,i==null?1:i)}function qt(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}St(qt,Wt,Ct(Et,{brighter:function e(t){t=t==null?Rt:Math.pow(Rt,t);return new qt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?At:Math.pow(At,t);return new qt(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"#"+Kt(this.r)+Kt(this.g)+Kt(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 Kt(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Yt(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 Zt(e,t,n,i)}function Xt(e){if(e instanceof Zt)return new Zt(e.h,e.s,e.l,e.opacity);if(!(e instanceof Et))e=Ht(e);if(!e)return new Zt;if(e instanceof Zt)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 Zt(o,s,l,e.opacity)}function $t(e,t,n,i){return arguments.length===1?Xt(e):new Zt(e,t,n,i==null?1:i)}function Zt(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}St(Zt,$t,Ct(Et,{brighter:function e(t){t=t==null?Rt:Math.pow(Rt,t);return new Zt(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?At:Math.pow(At,t);return new Zt(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 qt(Jt(t>=240?t-240:t+120,r,a),Jt(t,r,a),Jt(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 Jt(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 Qt=Math.PI/180;var en=180/Math.PI;var tn=18,nn=.96422,an=1,rn=.82521,on=4/29,sn=6/29,ln=3*sn*sn,un=sn*sn*sn;function hn(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof _n){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*Qt;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}if(!(e instanceof qt))e=Ut(e);var n=vn(e.r),i=vn(e.g),a=vn(e.b),r=dn((.2225045*n+.7168786*i+.0606169*a)/an),o,s;if(n===i&&i===a)o=s=r;else{o=dn((.4360747*n+.3850649*i+.1430804*a)/nn);s=dn((.0139322*n+.0971045*i+.7141733*a)/rn)}return new fn(116*r-16,500*(o-r),200*(r-s),e.opacity)}function cn(e,t,n,i){return arguments.length===1?hn(e):new fn(e,t,n,i==null?1:i)}function fn(e,t,n,i){this.l=+e;this.a=+t;this.b=+n;this.opacity=+i}St(fn,cn,Ct(Et,{brighter:function e(t){return new fn(this.l+tn*(t==null?1:t),this.a,this.b,this.opacity)},darker:function e(t){return new fn(this.l-tn*(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=nn*gn(n);t=an*gn(t);i=rn*gn(i);return new qt(pn(3.1338561*n-1.6168667*t-.4906146*i),pn(-.9787684*n+1.9161415*t+.033454*i),pn(.0719453*n-.2289914*t+1.4052427*i),this.opacity)}}));function dn(e){return e>un?Math.pow(e,1/3):e/ln+on}function gn(e){return e>sn?e*e*e:ln*(e-on)}function pn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mn(e){if(e instanceof _n)return new _n(e.h,e.c,e.l,e.opacity);if(!(e instanceof fn))e=hn(e);if(e.a===0&&e.b===0)return new _n(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*en;return new _n(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function yn(e,t,n,i){return arguments.length===1?mn(e):new _n(e,t,n,i==null?1:i)}function _n(e,t,n,i){this.h=+e;this.c=+t;this.l=+n;this.opacity=+i}St(_n,yn,Ct(Et,{brighter:function e(t){return new _n(this.h,this.c,this.l+tn*(t==null?1:t),this.opacity)},darker:function e(t){return new _n(this.h,this.c,this.l-tn*(t==null?1:t),this.opacity)},rgb:function e(){return hn(this).rgb()}}));var bn=-.14861,wn=+1.78277,xn=-.29227,kn=-.90649,Sn=+1.97294,Cn=Sn*kn,En=Sn*wn,An=wn*xn-kn*bn;function Rn(e){if(e instanceof Tn)return new Tn(e.h,e.s,e.l,e.opacity);if(!(e instanceof qt))e=Ut(e);var t=e.r/255,n=e.g/255,i=e.b/255,a=(An*i+Cn*t-En*n)/(An+Cn-En),r=i-a,o=(Sn*(n-a)-xn*r)/kn,s=Math.sqrt(o*o+r*r)/(Sn*a*(1-a)),l=s?Math.atan2(o,r)*en-120:NaN;return new Tn(l<0?l+360:l,s,a,e.opacity)}function Mn(e,t,n,i){return arguments.length===1?Rn(e):new Tn(e,t,n,i==null?1:i)}function Tn(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}St(Tn,Mn,Ct(Et,{brighter:function e(t){t=t==null?Rt:Math.pow(Rt,t);return new Tn(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?At:Math.pow(At,t);return new Tn(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=isNaN(this.h)?0:(this.h+120)*Qt,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),a=Math.cos(t),r=Math.sin(t);return new qt(255*(n+i*(bn*a+wn*r)),255*(n+i*(xn*a+kn*r)),255*(n+i*(Sn*a)),this.opacity)}}));function Bn(e){return function(){return e}}function Nn(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 Pn(n){return(n=+n)===1?On:function(e,t){return t-e?Dn(e,t,n):Bn(isNaN(e)?t:e)}}function On(e,t){var n=t-e;return n?Nn(e,n):Bn(isNaN(e)?t:e)}var zn=function e(t){var o=Pn(t);function n(t,e){var n=o((t=Wt(t)).r,(e=Wt(e)).r),i=o(t.g,e.g),a=o(t.b,e.b),r=On(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 Ln(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]=qn(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 Fn(t,n){var i=new Date;return t=+t,n-=t,function(e){return i.setTime(t+n*e),i}}function In(t,n){return t=+t,n-=t,function(e){return t+n*e}}function jn(e,t){var n={},i={},a;if(e===null||K(e)!=="object")e={};if(t===null||K(t)!=="object")t={};for(a in t){if(a in e){n[a]=qn(e[a],t[a])}else{i[a]=t[a]}}return function(e){for(a in n){i[a]=n[a](e)}return i}}var Hn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vn=new RegExp(Hn.source,"g");function Gn(e){return function(){return e}}function Un(t){return function(e){return t(e)+""}}function Wn(e,i){var t=Hn.lastIndex=Vn.lastIndex=0,n,a,r,o=-1,s=[],l=[];e=e+"",i=i+"";while((n=Hn.exec(e))&&(a=Vn.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:In(n,a)})}t=Vn.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]?Un(l[0].x):Gn(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 qn(e,t){var n=K(t),i;return t==null||n==="boolean"?Bn(t):(n==="number"?In:n==="string"?(i=Ht(t))?(t=i,zn):Wn:t instanceof Ht?zn:t instanceof Date?Fn:Array.isArray(t)?Ln:typeof t.valueOf!=="function"&&typeof t.toString!=="function"||isNaN(t)?jn:In)(e,t)}function Kn(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}var Yn=180/Math.PI;var Xn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function $n(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)*Yn,skewX:Math.atan(l)*Yn,scaleX:o,scaleY:s}}var Zn,Jn,Qn,ei;function ti(e){if(e==="none")return Xn;if(!Zn)Zn=document.createElement("DIV"),Jn=document.documentElement,Qn=document.defaultView;Zn.style.transform=e;e=Qn.getComputedStyle(Jn.appendChild(Zn),null).getPropertyValue("transform");Jn.removeChild(Zn);e=e.slice(7,-1).split(",");return $n(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5])}function ni(e){if(e==null)return Xn;if(!ei)ei=document.createElementNS("http://www.w3.org/2000/svg","g");ei.setAttribute("transform",e);if(!(e=ei.transform.baseVal.consolidate()))return Xn;e=e.matrix;return $n(e.a,e.b,e.c,e.d,e.e,e.f)}function ii(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:In(e,n)},{i:o-2,x:In(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:In(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:In(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:In(e,n)},{i:o-2,x:In(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 ai=ii(ti,"px, ","px)","deg)");var ri=ii(ni,", ",")",")");var oi=Math.SQRT2,si=2,li=4,ui=1e-12;function hi(e){return((e=Math.exp(e))+1/e)/2}function ci(e){return((e=Math.exp(e))-1/e)/2}function fi(e){return((e=Math.exp(2*e))-1)/(e+1)}function di(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<ui){f=Math.log(a/s)/oi;c=function e(t){return[r+t*l,o+t*u,s*Math.exp(oi*t*f)]}}else{var d=Math.sqrt(h),g=(a*a-s*s+li*h)/(2*s*si*d),p=(a*a-s*s-li*h)/(2*a*si*d),v=Math.log(Math.sqrt(g*g+1)-g),m=Math.log(Math.sqrt(p*p+1)-p);f=(m-v)/oi;c=function e(t){var n=t*f,i=hi(v),a=s/(si*d)*(i*fi(oi*n+v)-ci(v));return[r+a*l,o+a*u,s*i/hi(oi*n+v)]}}c.duration=f*1e3;return c}function gi(e){return function(){return e}}function pi(e){return+e}var vi=[0,1];function mi(e){return e}function yi(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:gi(isNaN(n)?NaN:.5)}function _i(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 bi(e,t,n){var i=e[0],a=e[1],r=t[0],o=t[1];if(a<i)i=yi(a,i),r=n(o,r);else i=yi(i,a),r=n(r,o);return function(e){return r(i(e))}}function wi(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]=yi(n[o],n[o+1]);r[o]=t(e[o],e[o+1])}return function(e){var t=y(n,e,1,i)-1;return r[t](a[t](e))}}function xi(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function ki(){var t=vi,n=vi,i=qn,a,r,o,s=mi,l,u,h;function c(){l=Math.min(t.length,n.length)>2?wi:bi;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),In)))(e)))};f.domain=function(e){return arguments.length?(t=mt.call(e,pi),s===mi||(s=_i(t)),c()):t.slice()};f.range=function(e){return arguments.length?(n=yt.call(e),c()):n.slice()};f.rangeRound=function(e){return n=yt.call(e),i=Kn,c()};f.clamp=function(e){return arguments.length?(s=e?_i(t):mi,f):s!==mi};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 Si(e,t){return ki()(e,t)}function Ci(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 Ei(e){return e=Ci(Math.abs(e)),e?e[1]:NaN}function Ai(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 Ri(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var Mi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ti(e){return new Bi(e)}Ti.prototype=Bi.prototype;function Bi(e){if(!(t=Mi.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ";this.align=t[2]||">";this.sign=t[3]||"-";this.symbol=t[4]||"";this.zero=!!t[5];this.width=t[6]&&+t[6];this.comma=!!t[7];this.precision=t[8]&&+t[8].slice(1);this.trim=!!t[9];this.type=t[10]||""}Bi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ni(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(i>0){if(!+e[n])break e;i=0}break}}return i>0?e.slice(0,i)+e.slice(a+1):e}var Di;function Pi(e,t){var n=Ci(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(Di=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")+Ci(e,Math.max(0,t+r-1))[0]}function Oi(e,t){var n=Ci(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 zi={"%":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:function e(t){return Math.round(t).toString(10)},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 Oi(t*100,n)},r:Oi,s:Pi,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function Li(e){return e}var Fi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ii(e){var x=e.grouping&&e.thousands?Ai(e.grouping,e.thousands):Li,i=e.currency,k=e.decimal,S=e.numerals?Ri(e.numerals):Li,a=e.percent||"%";function o(e){e=Ti(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(!zi[m])p==null&&(p=12),v=true,m="g";if(f||u==="0"&&h==="=")f=true,u="0",h="=";var y=t==="$"?i[0]:t==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=t==="$"?i[1]:/[%p]/.test(m)?a:"";var b=zi[m],w=/[defgprs%]/.test(m);p=p==null?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;e=b(Math.abs(e),p);if(v)e=Ni(e);if(o&&+e===0)o=false;t=(o?c==="("?c:"-":c==="-"||c==="("?"":c)+t;n=(m==="s"?Fi[8+Di/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=Ti(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(Ei(t)/3)))*3,a=Math.pow(10,-i),r=Fi[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var ji;var Hi;var Vi;Gi({decimal:".",thousands:",",grouping:[3],currency:["$",""]});function Gi(e){ji=Ii(e);Hi=ji.format;Vi=ji.formatPrefix;return ji}function Ui(e){return Math.max(0,-Ei(Math.abs(e)))}function Wi(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ei(t)/3)))*3-Ei(Math.abs(e)))}function qi(e,t){e=Math.abs(e),t=Math.abs(t)-e;return Math.max(0,Ei(t)-Ei(e))+1}function Ki(e,t,n,i){var a=R(e,t,n),r;i=Ti(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=Wi(a,o)))i.precision=r;return Vi(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(r=qi(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=Ui(a)))i.precision=r-(i.type==="%")*2;break}}return Hi(i)}function Yi(s){var l=s.domain;s.ticks=function(e){var t=l();return pe(t[0],t[t.length-1],e==null?10:e)};s.tickFormat=function(e,t){var n=l();return Ki(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=A(a,r,e);if(o>0){a=Math.floor(a/o)*o;r=Math.ceil(r/o)*o;o=A(a,r,e)}else if(o<0){a=Math.ceil(a*o)/o;r=Math.floor(r*o)/o;o=A(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 Xi(){var e=Si(mi,mi);e.copy=function(){return xi(e,Xi())};gt.apply(e,arguments);return Yi(e)}function $i(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=mt.call(e,pi),i):t.slice()};i.unknown=function(e){return arguments.length?(n=e,i):n};i.copy=function(){return $i(t).unknown(n)};t=arguments.length?mt.call(t,pi):[0,1];return Yi(i)}function Zi(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 Ji(e){return Math.log(e)}function Qi(e){return Math.exp(e)}function ea(e){return-Math.log(-e)}function ta(e){return-Math.exp(-e)}function na(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ia(t){return t===10?na:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function aa(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 ra(t){return function(e){return-t(-e)}}function oa(e){var t=e(Ji,Qi),f=t.domain,d=10,g,p;function n(){g=aa(d),p=ia(d);if(f()[0]<0){g=ra(g),p=ra(p);e(ea,ta)}else{e(Ji,Qi)}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=pe(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=Hi(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(Zi(f(),{floor:function e(t){return p(Math.floor(g(t)))},ceil:function e(t){return p(Math.ceil(g(t)))}}))};return t}function sa(){var e=oa(ki()).domain([1,10]);e.copy=function(){return xi(e,sa()).base(e.base())};gt.apply(e,arguments);return e}function la(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function ua(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ha(t){var n=1,e=t(la(n),ua(n));e.constant=function(e){return arguments.length?t(la(n=+e),ua(n)):n};return Yi(e)}function ca(){var e=ha(ki());e.copy=function(){return xi(e,ca()).constant(e.constant())};return gt.apply(e,arguments)}function fa(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function da(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ga(e){return e<0?-e*e:e*e}function pa(e){var t=e(mi,mi),n=1;function i(){return n===1?e(mi,mi):n===.5?e(da,ga):e(fa(n),fa(1/n))}t.exponent=function(e){return arguments.length?(n=+e,i()):n};return Yi(t)}function va(){var e=pa(ki());e.copy=function(){return xi(e,va()).exponent(e.exponent())};gt.apply(e,arguments);return e}function ma(){return va.apply(null,arguments).exponent(.5)}function ya(){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]=De(a,e/t)}return o}function o(e){return isNaN(e=+e)?t:n[y(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(S);return r()};o.range=function(e){return arguments.length?(n=yt.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 ya().domain(a).range(n).unknown(t)};return gt.apply(o,arguments)}function _a(){var n=0,i=1,a=1,r=[.5],o=[0,1],t;function s(e){return e<=e?o[y(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=yt.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 _a().domain([n,i]).range(o).unknown(t)};return gt.apply(Yi(s),arguments)}function ba(){var n=[.5],i=[0,1],t,a=1;function r(e){return e<=e?i[y(n,e,0,a)]:t}r.domain=function(e){return arguments.length?(n=yt.call(e),a=Math.min(n.length,i.length-1),r):n.slice()};r.range=function(e){return arguments.length?(i=yt.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 ba().domain(n).range(i).unknown(t)};return gt.apply(r,arguments)}var wa=new Date,xa=new Date;function ka(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 ka(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){wa.setTime(+e),xa.setTime(+t);r(wa),r(xa);return Math.floor(n(wa,xa))};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 Sa=ka(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Sa.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return Sa;return ka(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 Ca=1e3;var Ea=6e4;var Aa=36e5;var Ra=864e5;var Ma=6048e5;var Ta=ka(function(e){e.setTime(Math.floor(e/Ca)*Ca)},function(e,t){e.setTime(+e+t*Ca)},function(e,t){return(t-e)/Ca},function(e){return e.getUTCSeconds()});var Ba=ka(function(e){e.setTime(Math.floor(e/Ea)*Ea)},function(e,t){e.setTime(+e+t*Ea)},function(e,t){return(t-e)/Ea},function(e){return e.getMinutes()});var Na=ka(function(e){var t=e.getTimezoneOffset()*Ea%Aa;if(t<0)t+=Aa;e.setTime(Math.floor((+e-t)/Aa)*Aa+t)},function(e,t){e.setTime(+e+t*Aa)},function(e,t){return(t-e)/Aa},function(e){return e.getHours()});var Da=ka(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())*Ea)/Ra},function(e){return e.getDate()-1});function Pa(t){return ka(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())*Ea)/Ma})}var Oa=Pa(0);var za=Pa(1);var La=Pa(2);var Fa=Pa(3);var Ia=Pa(4);var ja=Pa(5);var Ha=Pa(6);var Va=ka(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 Ga=ka(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()});Ga.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ka(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 Ua=ka(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Ea)},function(e,t){return(t-e)/Ea},function(e){return e.getUTCMinutes()});var Wa=ka(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*Aa)},function(e,t){return(t-e)/Aa},function(e){return e.getUTCHours()});var qa=ka(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/Ra},function(e){return e.getUTCDate()-1});function Ka(t){return ka(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)/Ma})}var Ya=Ka(0);var Xa=Ka(1);var $a=Ka(2);var Za=Ka(3);var Ja=Ka(4);var Qa=Ka(5);var er=Ka(6);var tr=ka(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 nr=ka(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()});nr.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ka(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 ir(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 ar(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 rr(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function or(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=dr(t),h=gr(t),c=dr(n),f=gr(n),d=dr(o),g=gr(o),p=dr(s),v=gr(s),m=dr(l),y=gr(l);var _={a:D,A:P,b:O,B:z,c:null,d:Pr,e:Pr,f:Ir,H:Or,I:zr,j:Lr,L:Fr,m:jr,M:Hr,p:L,Q:vo,s:mo,S:Vr,u:Gr,U:Ur,V:Wr,w:qr,W:Kr,x:null,X:null,y:Yr,Y:Xr,Z:$r,"%":po};var b={a:F,A:I,b:j,B:H,c:null,d:Zr,e:Zr,f:no,H:Jr,I:Qr,j:eo,L:to,m:io,M:ao,p:V,Q:vo,s:mo,S:ro,u:oo,U:so,V:lo,w:uo,W:ho,x:null,X:null,y:co,Y:fo,Z:go,"%":po};var w={a:E,A:A,b:R,B:M,c:T,d:Sr,e:Sr,f:Tr,H:Er,I:Er,j:Cr,L:Mr,m:kr,M:Ar,p:C,Q:Nr,s:Dr,S:Rr,u:vr,U:mr,V:yr,w:pr,W:_r,x:B,X:N,y:wr,Y:br,Z:xr,"%":Br};_.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=sr[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=rr(1900),n=S(t,r,e+="",0),i,a;if(n!=e.length)return null;if("Q"in t)return new Date(t.Q);if("p"in t)t.H=t.H%12+t.p*12;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=ar(rr(t.y)),a=i.getUTCDay();i=a>4||a===0?Xa.ceil(i):Xa(i);i=qa.offset(i,(t.V-1)*7);t.y=i.getUTCFullYear();t.m=i.getUTCMonth();t.d=i.getUTCDate()+(t.w+6)%7}else{i=o(rr(t.y)),a=i.getDay();i=a>4||a===0?za.ceil(i):za(i);i=Da.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?ar(rr(t.y)).getUTCDay():o(rr(t.y)).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 ar(t)}return o(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 sr?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 D(e){return o[e.getDay()]}function P(e){return n[e.getDay()]}function O(e){return l[e.getMonth()]}function z(e){return s[e.getMonth()]}function L(e){return t[+(e.getHours()>=12)]}function F(e){return o[e.getUTCDay()]}function I(e){return n[e.getUTCDay()]}function j(e){return l[e.getUTCMonth()]}function H(e){return s[e.getUTCMonth()]}function V(e){return t[+(e.getUTCHours()>=12)]}return{format:function e(t){var n=x(t+="",_);n.toString=function(){return t};return n},parse:function e(t){var n=k(t+="",ir);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,ar);n.toString=function(){return t};return n}}}var sr={"-":"",_:" ",0:"0"},lr=/^\s*\d+/,ur=/^%/,hr=/[\\^$*+?|[\]().{}]/g;function cr(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 fr(e){return e.replace(hr,"\\$&")}function dr(e){return new RegExp("^(?:"+e.map(fr).join("|")+")","i")}function gr(e){var t={},n=-1,i=e.length;while(++n<i){t[e[n].toLowerCase()]=n}return t}function pr(e,t,n){var i=lr.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function vr(e,t,n){var i=lr.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function mr(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function yr(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function _r(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function br(e,t,n){var i=lr.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function wr(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function xr(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 kr(e,t,n){var i=lr.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=lr.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function Cr(e,t,n){var i=lr.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function Er(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function Ar(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function Rr(e,t,n){var i=lr.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function Mr(e,t,n){var i=lr.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function Tr(e,t,n){var i=lr.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Br(e,t,n){var i=ur.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function Nr(e,t,n){var i=lr.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function Dr(e,t,n){var i=lr.exec(t.slice(n));return i?(e.Q=+i[0]*1e3,n+i[0].length):-1}function Pr(e,t){return cr(e.getDate(),t,2)}function Or(e,t){return cr(e.getHours(),t,2)}function zr(e,t){return cr(e.getHours()%12||12,t,2)}function Lr(e,t){return cr(1+Da.count(Ga(e),e),t,3)}function Fr(e,t){return cr(e.getMilliseconds(),t,3)}function Ir(e,t){return Fr(e,t)+"000"}function jr(e,t){return cr(e.getMonth()+1,t,2)}function Hr(e,t){return cr(e.getMinutes(),t,2)}function Vr(e,t){return cr(e.getSeconds(),t,2)}function Gr(e){var t=e.getDay();return t===0?7:t}function Ur(e,t){return cr(Oa.count(Ga(e),e),t,2)}function Wr(e,t){var n=e.getDay();e=n>=4||n===0?Ia(e):Ia.ceil(e);return cr(Ia.count(Ga(e),e)+(Ga(e).getDay()===4),t,2)}function qr(e){return e.getDay()}function Kr(e,t){return cr(za.count(Ga(e),e),t,2)}function Yr(e,t){return cr(e.getFullYear()%100,t,2)}function Xr(e,t){return cr(e.getFullYear()%1e4,t,4)}function $r(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+cr(t/60|0,"0",2)+cr(t%60,"0",2)}function Zr(e,t){return cr(e.getUTCDate(),t,2)}function Jr(e,t){return cr(e.getUTCHours(),t,2)}function Qr(e,t){return cr(e.getUTCHours()%12||12,t,2)}function eo(e,t){return cr(1+qa.count(nr(e),e),t,3)}function to(e,t){return cr(e.getUTCMilliseconds(),t,3)}function no(e,t){return to(e,t)+"000"}function io(e,t){return cr(e.getUTCMonth()+1,t,2)}function ao(e,t){return cr(e.getUTCMinutes(),t,2)}function ro(e,t){return cr(e.getUTCSeconds(),t,2)}function oo(e){var t=e.getUTCDay();return t===0?7:t}function so(e,t){return cr(Ya.count(nr(e),e),t,2)}function lo(e,t){var n=e.getUTCDay();e=n>=4||n===0?Ja(e):Ja.ceil(e);return cr(Ja.count(nr(e),e)+(nr(e).getUTCDay()===4),t,2)}function uo(e){return e.getUTCDay()}function ho(e,t){return cr(Xa.count(nr(e),e),t,2)}function co(e,t){return cr(e.getUTCFullYear()%100,t,2)}function fo(e,t){return cr(e.getUTCFullYear()%1e4,t,4)}function go(){return"+0000"}function po(){return"%"}function vo(e){return+e}function mo(e){return Math.floor(+e/1e3)}var yo;var _o;var bo;var wo;var xo;ko({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 ko(e){yo=or(e);_o=yo.format;bo=yo.parse;wo=yo.utcFormat;xo=yo.utcParse;return yo}var So="%Y-%m-%dT%H:%M:%S.%LZ";function Co(e){return e.toISOString()}var Eo=Date.prototype.toISOString?Co:wo(So);function Ao(e){var t=new Date(e);return isNaN(t)?null:t}var Ro=+new Date("2000-01-01T00:00:00.000Z")?Ao:xo(So);var Mo=1e3,To=Mo*60,Bo=To*60,No=Bo*24,Do=No*7,Po=No*30,Oo=No*365;function zo(e){return new Date(e)}function Lo(e){return e instanceof Date?+e:+new Date(+e)}function Fo(o,t,n,i,a,r,s,l,u){var h=Si(mi,mi),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,Mo],[s,5,5*Mo],[s,15,15*Mo],[s,30,30*Mo],[r,1,To],[r,5,5*To],[r,15,15*To],[r,30,30*To],[a,1,Bo],[a,3,3*Bo],[a,6,6*Bo],[a,12,12*Bo],[i,1,No],[i,2,2*No],[n,1,Do],[t,1,Po],[t,3,3*Po],[o,1,Oo]];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=C(function(e){return e[2]}).right(w,a);if(r===w.length){i=R(t/Oo,n/Oo,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(R(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(mt.call(e,Lo)):f().map(zo)};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(Zi(n,e)):h};h.copy=function(){return xi(h,Fo(o,t,n,i,a,r,s,l,u))};return h}function Io(){return gt.apply(Fo(Ga,Va,Oa,Da,Na,Ba,Ta,Sa,_o).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jo(){return gt.apply(Fo(nr,tr,Ya,qa,Wa,Ua,Ta,Sa,wo).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ho(){var t=0,n=1,i,a,r,o,s=mi,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 Vo(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Go(){var e=Yi(Ho()(mi));e.copy=function(){return Vo(e,Go())};return pt.apply(e,arguments)}function Uo(){var e=oa(Ho()).domain([1,10]);e.copy=function(){return Vo(e,Uo()).base(e.base())};return pt.apply(e,arguments)}function Wo(){var e=ha(Ho());e.copy=function(){return Vo(e,Wo()).constant(e.constant())};return pt.apply(e,arguments)}function qo(){var e=pa(Ho());e.copy=function(){return Vo(e,qo()).exponent(e.exponent())};return pt.apply(e,arguments)}function Ko(){return qo.apply(null,arguments).exponent(.5)}function Yo(){var a=[],t=mi;function r(e){if(!isNaN(e=+e))return t((y(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(S);return r};r.interpolator=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return Yo(t).domain(a)};return pt.apply(r,arguments)}function Xo(){var t=0,n=.5,i=1,a,r,o,s,l,u=mi,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 $o(){var e=Yi(Xo()(mi));e.copy=function(){return Vo(e,$o())};return pt.apply(e,arguments)}function Zo(){var e=oa(Xo()).domain([.1,1,10]);e.copy=function(){return Vo(e,Zo()).base(e.base())};return pt.apply(e,arguments)}function Jo(){var e=ha(Xo());e.copy=function(){return Vo(e,Jo()).constant(e.constant())};return pt.apply(e,arguments)}function Qo(){var e=pa(Xo());e.copy=function(){return Vo(e,Qo()).exponent(e.exponent())};return pt.apply(e,arguments)}function es(){return Qo.apply(null,arguments).exponent(.5)}var ts=Object.freeze({__proto__:null,scaleBand:wt,scalePoint:kt,scaleIdentity:$i,scaleLinear:Xi,scaleLog:sa,scaleSymlog:ca,scaleOrdinal:bt,scaleImplicit:_t,scalePow:va,scaleSqrt:ma,scaleQuantile:ya,scaleQuantize:_a,scaleThreshold:ba,scaleTime:Io,scaleUtc:jo,scaleSequential:Go,scaleSequentialLog:Uo,scaleSequentialPow:qo,scaleSequentialSqrt:Ko,scaleSequentialSymlog:Wo,scaleSequentialQuantile:Yo,scaleDiverging:$o,scaleDivergingLog:Zo,scaleDivergingPow:Qo,scaleDivergingSqrt:es,scaleDivergingSymlog:Jo,tickFormat:Ki});var ns="http://www.w3.org/1999/xhtml";var is={svg:"http://www.w3.org/2000/svg",xhtml:ns,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function as(e){var t=e+="",n=t.indexOf(":");if(n>=0&&(t=e.slice(0,n))!=="xmlns")e=e.slice(n+1);return is.hasOwnProperty(t)?{space:is[t],local:e}:e}function rs(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===ns&&e.documentElement.namespaceURI===ns?e.createElement(n):e.createElementNS(t,n)}}function os(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ss(e){var t=as(e);return(t.local?os:rs)(t)}function ls(){}function us(e){return e==null?ls:function(){return this.querySelector(e)}}function hs(e){if(typeof e!=="function")e=us(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 Ul(i,this._parents)}function cs(){return[]}function fs(e){return e==null?cs:function(){return this.querySelectorAll(e)}}function ds(e){if(typeof e!=="function")e=fs(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 Ul(i,a)}function gs(e){return function(){return this.matches(e)}}function ps(e){if(typeof e!=="function")e=gs(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 Ul(i,this._parents)}function vs(e){return new Array(e.length)}function ms(){return new Ul(this._enter||this._groups.map(vs),this._parents)}function ys(e,t){this.ownerDocument=e.ownerDocument;this.namespaceURI=e.namespaceURI;this._next=null;this._parent=e;this.__data__=t}ys.prototype={constructor:ys,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 _s(e){return function(){return e}}var bs="$";function ws(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 ys(e,r[o])}}for(;o<l;++o){if(s=t[o]){a[o]=s}}}function xs(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=bs+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=bs+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 ys(e,r[s])}}for(s=0;s<h;++s){if((l=t[s])&&u[f[s]]===l){a[s]=l}}}function ks(e,t){if(!e){d=new Array(this.size()),u=-1;this.each(function(e){d[++u]=e});return d}var n=t?xs:ws,i=this._parents,a=this._groups;if(typeof e!=="function")e=_s(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 Ul(o,i);o._enter=s;o._exit=l;return o}function Ss(){return new Ul(this._exit||this._groups.map(vs),this._parents)}function Cs(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 Es(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 Ul(o,this._parents)}function As(){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 Rs(n){if(!n)n=Ms;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 Ul(a,this._parents).order()}function Ms(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Ts(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this}function Bs(){var e=new Array(this.size()),t=-1;this.each(function(){e[++t]=this});return e}function Ns(){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 Ds(){var e=0;this.each(function(){++e});return e}function Ps(){return!this.node()}function Os(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 zs(e){return function(){this.removeAttribute(e)}}function Ls(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fs(e,t){return function(){this.setAttribute(e,t)}}function Is(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function js(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function Hs(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 Vs(e,t){var n=as(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?Ls:zs:typeof t==="function"?n.local?Hs:js:n.local?Is:Fs)(n,t))}function Gs(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Us(e){return function(){this.style.removeProperty(e)}}function Ws(e,t,n){return function(){this.style.setProperty(e,t,n)}}function qs(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 Ks(e,t,n){return arguments.length>1?this.each((t==null?Us:typeof t==="function"?qs:Ws)(e,t,n==null?"":n)):Ys(this.node(),e)}function Ys(e,t){return e.style.getPropertyValue(t)||Gs(e).getComputedStyle(e,null).getPropertyValue(t)}function Xs(e){return function(){delete this[e]}}function $s(e,t){return function(){this[e]=t}}function Zs(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Js(e,t){return arguments.length>1?this.each((t==null?Xs:typeof t==="function"?Zs:$s)(e,t)):this.node()[e]}function Qs(e){return e.trim().split(/^|\s+/)}function el(e){return e.classList||new tl(e)}function tl(e){this._node=e;this._names=Qs(e.getAttribute("class")||"")}tl.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 nl(e,t){var n=el(e),i=-1,a=t.length;while(++i<a){n.add(t[i])}}function il(e,t){var n=el(e),i=-1,a=t.length;while(++i<a){n.remove(t[i])}}function al(e){return function(){nl(this,e)}}function rl(e){return function(){il(this,e)}}function ol(e,t){return function(){(t.apply(this,arguments)?nl:il)(this,e)}}function sl(e,t){var n=Qs(e+"");if(arguments.length<2){var i=el(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"?ol:t?al:rl)(n,t))}function ll(){this.textContent=""}function ul(e){return function(){this.textContent=e}}function hl(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function cl(e){return arguments.length?this.each(e==null?ll:(typeof e==="function"?hl:ul)(e)):this.node().textContent}function fl(){this.innerHTML=""}function dl(e){return function(){this.innerHTML=e}}function gl(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function pl(e){return arguments.length?this.each(e==null?fl:(typeof e==="function"?gl:dl)(e)):this.node().innerHTML}function vl(){if(this.nextSibling)this.parentNode.appendChild(this)}function ml(){return this.each(vl)}function yl(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function _l(){return this.each(yl)}function bl(e){var t=typeof e==="function"?e:ss(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function wl(){return null}function xl(e,t){var n=typeof e==="function"?e:ss(e),i=t==null?wl:typeof t==="function"?t:us(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function kl(){var e=this.parentNode;if(e)e.removeChild(this)}function Sl(){return this.each(kl)}function Cl(){var e=this.cloneNode(false),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function El(){var e=this.cloneNode(true),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Al(e){return this.select(e?El:Cl)}function Rl(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Ml={};var Tl=null;if(typeof document!=="undefined"){var Bl=document.documentElement;if(!("onmouseenter"in Bl)){Ml={mouseenter:"mouseover",mouseleave:"mouseout"}}}function Nl(n,e,t){n=Dl(n,e,t);return function(e){var t=e.relatedTarget;if(!t||t!==this&&!(t.compareDocumentPosition(this)&8)){n.call(this,e)}}}function Dl(n,i,a){return function(e){var t=Tl;Tl=e;try{n.call(this,this.__data__,i,a)}finally{Tl=t}}}function Pl(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 Ol(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 zl(l,u,h){var c=Ml.hasOwnProperty(l.type)?Nl:Dl;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 Ll(e,t,n){var i=Pl(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?zl:Ol;if(n==null)n=false;for(a=0;a<r;++a){this.each(s(i[a],t,n))}return this}function Fl(e,t,n,i){var a=Tl;e.sourceEvent=Tl;Tl=e;try{return t.apply(n,i)}finally{Tl=a}}function Il(e,t,n){var i=Gs(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 jl(e,t){return function(){return Il(this,e,t)}}function Hl(e,t){return function(){return Il(this,e,t.apply(this,arguments))}}function Vl(e,t){return this.each((typeof t==="function"?Hl:jl)(e,t))}var Gl=[null];function Ul(e,t){this._groups=e;this._parents=t}function Wl(){return new Ul([[document.documentElement]],Gl)}Ul.prototype=Wl.prototype={constructor:Ul,select:hs,selectAll:ds,filter:ps,data:ks,enter:ms,exit:Ss,join:Cs,merge:Es,order:As,sort:Rs,call:Ts,nodes:Bs,node:Ns,size:Ds,empty:Ps,each:Os,attr:Vs,style:Ks,property:Js,classed:sl,text:cl,html:pl,raise:ml,lower:_l,append:bl,insert:xl,remove:Sl,clone:Al,datum:Rl,on:Ll,dispatch:Vl};function ql(e){return typeof e==="string"?new Ul([[document.querySelector(e)]],[document.documentElement]):new Ul([[e]],Gl)}function Kl(){var e=Tl,t;while(t=e.sourceEvent){e=t}return e}function Yl(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 Xl(e){var t=Kl();if(t.changedTouches)t=t.changedTouches[0];return Yl(e,t)}function $l(e){return typeof e==="string"?new Ul([document.querySelectorAll(e)],[document.documentElement]):new Ul([e==null?[]:e],Gl)}function Zl(e,t,n){if(arguments.length<3)n=t,t=Kl().changedTouches;for(var i=0,a=t?t.length:0,r;i<a;++i){if((r=t[i]).identifier===n){return Yl(e,r)}}return null}function Jl(){Tl.preventDefault();Tl.stopImmediatePropagation()}function Ql(e){var t=e.document.documentElement,n=ql(e).on("dragstart.drag",Jl,true);if("onselectstart"in t){n.on("selectstart.drag",Jl,true)}else{t.__noselect=t.style.MozUserSelect;t.style.MozUserSelect="none"}}function eu(e,t){var n=e.document.documentElement,i=ql(e).on("dragstart.drag",null);if(t){i.on("click.drag",Jl,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 tu=ke("start","end","cancel","interrupt");var nu=[];var iu=0;var au=1;var ru=2;var ou=3;var su=4;var lu=5;var uu=6;function hu(e,t,n,i,a,r){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;gu(e,n,{name:t,index:i,group:a,on:tu,tween:nu,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:iu})}function cu(e,t){var n=du(e,t);if(n.state>iu)throw new Error("too late; already scheduled");return n}function fu(e,t){var n=du(e,t);if(n.state>ou)throw new Error("too late; already running");return n}function du(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gu(r,o,s){var l=r.__transition,u;l[o]=s;s.timer=Ye(e,0,s.time);function e(e){s.state=au;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!==au)return f();for(t in l){a=l[t];if(a.name!==s.name)continue;if(a.state===ou)return et(h);if(a.state===su){a.state=uu;a.timer.stop();a.on.call("interrupt",r,r.__data__,a.index,a.group);delete l[t]}else if(+t<o){a.state=uu;a.timer.stop();a.on.call("cancel",r,r.__data__,a.index,a.group);delete l[t]}}et(function(){if(s.state===ou){s.state=su;s.timer.restart(c,s.delay,s.time);c(e)}});s.state=ru;s.on.call("start",r,r.__data__,s.index,s.group);if(s.state!==ru)return;s.state=ou;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=lu,1),n=-1,i=u.length;while(++n<i){u[n].call(r,t)}if(s.state===lu){s.on.call("end",r,r.__data__,s.index,s.group);f()}}function f(){s.state=uu;s.timer.stop();delete l[o];for(var e in l){return}delete r.__transition}}function pu(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>ru&&i.state<lu;i.state=uu;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 vu(e){return this.each(function(){pu(this,e)})}function mu(a,r){var o,s;return function(){var e=fu(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 yu(r,o,s){var l,u;if(typeof s!=="function")throw new Error;return function(){var e=fu(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 _u(e,t){var n=this._id;e+="";if(arguments.length<2){var i=du(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?mu:yu)(n,e,t))}function bu(e,t,n){var i=e._id;e.each(function(){var e=fu(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)});return function(e){return du(e,i).value[t]}}function wu(e,t){var n;return(typeof t==="number"?In:t instanceof Ht?zn:(n=Ht(t))?(t=n,zn):Wn)(e,t)}function xu(e){return function(){this.removeAttribute(e)}}function ku(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Su(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 Cu(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 Eu(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 Au(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 Ru(e,t){var n=as(e),i=n==="transform"?ri:wu;return this.attrTween(e,typeof t==="function"?(n.local?Au:Eu)(n,i,bu(this,"attr."+e,t)):t==null?(n.local?ku:xu)(n):(n.local?Cu:Su)(n,i,t))}function Mu(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function Tu(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function Bu(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&Tu(t,e);return i}e._value=n;return e}function Nu(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&Mu(t,e);return i}e._value=n;return e}function Du(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=as(e);return this.tween(n,(i.local?Bu:Nu)(i,t))}function Pu(e,t){return function(){cu(this,e).delay=+t.apply(this,arguments)}}function Ou(e,t){return t=+t,function(){cu(this,e).delay=t}}function zu(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?Pu:Ou)(t,e)):du(this.node(),t).delay}function Lu(e,t){return function(){fu(this,e).duration=+t.apply(this,arguments)}}function Fu(e,t){return t=+t,function(){fu(this,e).duration=t}}function Iu(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?Lu:Fu)(t,e)):du(this.node(),t).duration}function ju(e,t){if(typeof t!=="function")throw new Error;return function(){fu(this,e).ease=t}}function Hu(e){var t=this._id;return arguments.length?this.each(ju(t,e)):du(this.node(),t).ease}function Vu(e){if(typeof e!=="function")e=gs(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 mh(i,this._parents,this._name,this._id)}function Gu(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 mh(o,this._parents,this._name,this._id)}function Uu(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 Wu(n,i,a){var r,o,s=Uu(i)?cu:fu;return function(){var e=s(this,n),t=e.on;if(t!==r)(o=(r=t).copy()).on(i,a);e.on=o}}function qu(e,t){var n=this._id;return arguments.length<2?du(this.node(),n).on.on(e):this.each(Wu(n,e,t))}function Ku(n){return function(){var e=this.parentNode;for(var t in this.__transition){if(+t!==n)return}if(e)e.removeChild(this)}}function Yu(){return this.on("end.remove",Ku(this._id))}function Xu(e){var t=this._name,n=this._id;if(typeof e!=="function")e=us(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;hu(u[f],t,n,f,u,du(h,n))}}}return new mh(r,this._parents,t,n)}function $u(e){var t=this._name,n=this._id;if(typeof e!=="function")e=fs(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=du(h,n),p=0,v=f.length;p<v;++p){if(d=f[p]){hu(d,t,n,p,f,g)}}r.push(f);o.push(h)}}}return new mh(r,o,t,n)}var Zu=Wl.prototype.constructor;function Ju(){return new Zu(this._groups,this._parents)}function Qu(n,i){var a,r,o;return function(){var e=Ys(this,n),t=(this.style.removeProperty(n),Ys(this,n));return e===t?null:e===a&&t===r?o:o=i(a=e,r=t)}}function eh(e){return function(){this.style.removeProperty(e)}}function th(t,n,i){var a,r=i+"",o;return function(){var e=Ys(this,t);return e===r?null:e===a?o:o=n(a=e,i)}}function nh(i,a,r){var o,s,l;return function(){var e=Ys(this,i),t=r(this),n=t+"";if(t==null)n=t=(this.style.removeProperty(i),Ys(this,i));return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function ih(i,a){var r,o,s,l="style."+a,u="end."+l,h;return function(){var e=fu(this,i),t=e.on,n=e.value[l]==null?h||(h=eh(a)):undefined;if(t!==r||s!==n)(o=(r=t).copy()).on(u,s=n);e.on=o}}function ah(e,t,n){var i=(e+="")==="transform"?ai:wu;return t==null?this.styleTween(e,Qu(e,i)).on("end.style."+e,eh(e)):typeof t==="function"?this.styleTween(e,nh(e,i,bu(this,"style."+e,t))).each(ih(this._id,e)):this.styleTween(e,th(e,i,t),n).on("end.style."+e,null)}function rh(t,n,i){return function(e){this.style.setProperty(t,n.call(this,e),i)}}function oh(t,n,i){var a,r;function e(){var e=n.apply(this,arguments);if(e!==r)a=(r=e)&&rh(t,e,i);return a}e._value=n;return e}function sh(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,oh(e,t,n==null?"":n))}function lh(e){return function(){this.textContent=e}}function uh(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function hh(e){return this.tween("text",typeof e==="function"?uh(bu(this,"text",e)):lh(e==null?"":e+""))}function ch(t){return function(e){this.textContent=t.call(this,e)}}function fh(t){var n,i;function e(){var e=t.apply(this,arguments);if(e!==i)n=(i=e)&&ch(e);return n}e._value=t;return e}function dh(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,fh(e))}function gh(){var e=this._name,t=this._id,n=_h();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=du(l,t);hu(l,e,n,u,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}}}return new mh(i,this._parents,e,n)}function ph(){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=fu(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 vh=0;function mh(e,t,n,i){this._groups=e;this._parents=t;this._name=n;this._id=i}function yh(e){return Wl().transition(e)}function _h(){return++vh}var bh=Wl.prototype;mh.prototype=yh.prototype={constructor:mh,select:Xu,selectAll:$u,filter:Vu,merge:Gu,selection:Ju,transition:gh,call:bh.call,nodes:bh.nodes,node:bh.node,size:bh.size,empty:bh.empty,each:bh.each,on:qu,attr:Ru,attrTween:Du,style:ah,styleTween:sh,text:hh,textTween:dh,remove:Yu,tween:_u,delay:zu,duration:Iu,ease:Hu,end:ph};function wh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var xh={time:null,delay:0,duration:250,ease:wh};function kh(e,t){var n;while(!(n=e.__transition)||!(n=n[t])){if(!(e=e.parentNode)){return xh.time=We(),xh}}return n}function Sh(e){var t,n;if(e instanceof mh){t=e._id,e=e._name}else{t=_h(),(n=xh).time=We(),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]){hu(l,e,t,u,o,n||kh(l,t))}}}return new mh(i,this._parents,e,t)}Wl.prototype.interrupt=vu;Wl.prototype.transition=Sh;function Ch(e){return function(){return e}}function Eh(e,t,n){this.target=e;this.type=t;this.transform=n}function Ah(e,t,n){this.k=e;this.x=t;this.y=n}Ah.prototype={constructor:Ah,scale:function e(t){return t===1?this:new Ah(this.k*t,this.x,this.y)},translate:function e(t,n){return t===0&n===0?this:new Ah(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 Rh=new Ah(1,0,0);Mh.prototype=Ah.prototype;function Mh(e){while(!e.__zoom){if(!(e=e.parentNode))return Rh}return e.__zoom}function Th(){Tl.stopImmediatePropagation()}function Bh(){Tl.preventDefault();Tl.stopImmediatePropagation()}function Nh(){return!Tl.ctrlKey&&!Tl.button}function Dh(){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 Ph(){return this.__zoom||Rh}function Oh(){return-Tl.deltaY*(Tl.deltaMode===1?.05:Tl.deltaMode?1:.002)}function zh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Lh(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 Fh(){var s=Nh,c=Dh,d=Lh,r=Oh,t=zh,o=[0,Infinity],g=[[-Infinity,-Infinity],[Infinity,Infinity]],l=250,f=di,n=ke("start","zoom","end"),p,u,h=500,v=150,m=0;function y(e){e.property("__zoom",Ph).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",Ph);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(Rh.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 Ah(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 Ah(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 Ah(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){Fl(new Eh(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=Xl(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)];pu(this);e.start()}Bh();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=ql(Tl.view).on("mousemove.zoom",r,true).on("mouseup.zoom",o,true),t=Xl(this),i=Tl.clientX,a=Tl.clientY;Ql(Tl.view);Th();n.mouse=[t,this.__zoom.invert(t)];pu(this);n.start();function r(){Bh();if(!n.moved){var e=Tl.clientX-i,t=Tl.clientY-a;n.moved=e*e+t*t>m}n.zoom("mouse",d(b(n.that.__zoom,n.mouse[0]=Xl(n.that),n.mouse[1]),n.extent,g))}function o(){e.on("mousemove.zoom mouseup.zoom",null);eu(Tl.view,n.moved);Bh();n.end()}}function C(){if(!s.apply(this,arguments))return;var e=this.__zoom,t=Xl(this),n=e.invert(t),i=e.k*(Tl.shiftKey?.5:2),a=d(b(_(e,i),t,n),c.apply(this,arguments),g);Bh();if(l>0)ql(this).transition().duration(l).call(x,a,t);else ql(this).call(y.transform,a)}function E(){if(!s.apply(this,arguments))return;var e=Tl.touches,t=e.length,n=k(this,arguments,Tl.changedTouches.length===t),i,a,r,o;Th();for(a=0;a<t;++a){r=e[a],o=Zl(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);pu(this);n.start()}}function A(){if(!this.__zooming)return;var e=k(this,arguments),t=Tl.changedTouches,n=t.length,i,a,r,o;Bh();if(p)p=clearTimeout(p);e.taps=0;for(i=0;i<n;++i){a=t[i],r=Zl(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=Tl.changedTouches,n=t.length,i,a;Th();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=ql(this).on("dblclick.zoom");if(r)r.apply(this,arguments)}}}y.wheelDelta=function(e){return arguments.length?(r=typeof e==="function"?e:Ch(+e),y):r};y.filter=function(e){return arguments.length?(s=typeof e==="function"?e:Ch(!!e),y):s};y.touchable=function(e){return arguments.length?(t=typeof e==="function"?e:Ch(!!e),y):t};y.extent=function(e){return arguments.length?(c=typeof e==="function"?e:Ch([[+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 Ih(t,n){if(n===void 0)return function(e){return e[t]};return function(e){return e[t]===void 0?n:e[t]}}function jh(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){jh=function e(t){return typeof t}}else{jh=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return jh(e)}function Hh(e){return e&&jh(e)==="object"&&(typeof window==="undefined"||e!==window&&e!==window.document&&!(e instanceof Element))&&!Array.isArray(e)?true:false}function Vh(e){if(typeof window==="undefined")return true;else return e!==window&&e!==document}function Gh(){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(Hh(t)&&Vh(t)){if(a.hasOwnProperty(e)&&Hh(a[e]))a[e]=Gh({},a[e],t);else a[e]=Gh({},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 Uh(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 Wh={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var qh={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var Kh={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var Yh={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var Xh={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var $h={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var Zh={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var Jh={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var Qh={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var ec={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var tc={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var nc={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var ic={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var ac={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var rc={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var oc={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var sc={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var lc={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var uc={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var hc={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var cc={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var fc={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var dc={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var gc={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var pc={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var vc={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var mc={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var yc={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var _c={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var bc={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var wc={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var xc={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var kc={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var Sc={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var Cc={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var Ec={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var Ac={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var Rc={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var Mc={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var Tc={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var Bc={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var Nc={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var Dc={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var Pc={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var Oc={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var zc={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var Lc={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var Fc={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var Ic={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var jc={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var Hc={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var Vc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var Gc={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var Uc={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var Wc={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var qc={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var Kc={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var Yc={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var Xc={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var $c={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var Zc={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var Jc={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var Qc={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var ef={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var tf={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var nf={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var af={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var rf={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var of={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var sf={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var lf={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var uf={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var hf={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var cf={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var ff={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var df={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var gf={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var pf={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var vf={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var mf={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var yf={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var _f={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var bf={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var wf={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var xf={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var kf={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var Sf={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var Cf={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var Ef={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var Af={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var Rf={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var Mf={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var Tf={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var Bf={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var Nf={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var Df={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var Pf={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var Of={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var zf={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var Lf={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var Ff={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var If={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var jf={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var Hf={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Vf={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var Gf={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var Uf={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var Wf={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var qf={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var Kf={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var Yf={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var Xf={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var $f={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var Zf={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var Jf={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var Qf={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var ed={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var td={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var nd={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var id={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var ad={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var rd={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var od={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var sd={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var ld={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var ud={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var hd={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var cd={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var fd={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var dd={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var gd={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var pd={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var vd={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var md={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var yd={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var _d={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var bd={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var wd={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var xd={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var kd={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var Sd={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var Cd={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var Ed={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var Ad={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var Rd={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var Md={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var Td={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var Bd={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var Nd={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var Dd={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var Pd={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var Od={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var zd={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var Ld={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var Fd={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var Id={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var jd={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var Hd={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var Vd={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var Gd={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var Ud={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var Wd={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var qd={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var Kd={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var Yd={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var Xd={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var $d={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var Zd={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var Jd={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var Qd={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var eg={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var tg={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var ng={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var ig={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var ag={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var rg={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var og={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var sg={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var lg={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var ug={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var hg={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var cg={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var fg={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var dg={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var gg={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var pg={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var vg={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var mg={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var yg={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var _g={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var bg={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var wg={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var xg={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var kg={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var Sg={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var Cg={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var Eg={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var Ag={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var Rg={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var Mg={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var Tg={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var Bg={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var Ng={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var Dg={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var Pg={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var Og={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var zg={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var Lg={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var Fg={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var Ig={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var jg={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var Hg={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var Vg={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var Gg={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var Ug={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var Wg={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var qg={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var Kg={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var Yg={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var Xg={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var $g={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var Zg={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var Jg={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var Qg={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var ep={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var tp={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var np={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var ip={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var ap={aa:Wh,"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:qh,"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:Kh,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:Yh,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:Xh,"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:$h,"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:Zh,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:Jh,"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:Qh,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:ec,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:tc,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:nc,"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:ic,"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:ac,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:rc,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:oc,"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:sc,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:lc,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:uc,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:hc,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:cc,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:fc,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:dc,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:gc,"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:pc,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:vc,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:mc,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:yc,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:_c,"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:bc,"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:wc,"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:xc,"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:kc,"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:Sc,"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:Cc,"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:Ec,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:Ac,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:Rc,"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:Mc,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:Tc,"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:Bc,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:Nc,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:Dc,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:Pc,"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:Oc,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:zc,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:Lc,"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:Fc,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:Ic,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:jc,"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:Hc,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:Vc,"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:Gc,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:Uc,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:Wc,"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:qc,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:Kc,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:Yc,"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:Xc,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:$c,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:Zc,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:Jc,"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:Qc,"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:ef,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:tf,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:nf,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:af,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:rf,"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:of,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:sf,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:lf,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:uf,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:hf,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:cf,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:ff,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:df,"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:gf,"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:pf,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:vf,"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:mf,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:yf,"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:_f,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:bf,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:wf,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:xf,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:kf,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:Sf,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:Cf,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:Ef,"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:Af,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:Rf,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:Mf,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:Tf,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:Bf,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:Nf,"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:Df,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:Pf,"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:Of,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:zf,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:Lf,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:Ff,"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:If,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:jf,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:Hf,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Vf,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:Gf,"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:Uf,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:Wf,"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:qf,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:Kf,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:Yf,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:Xf,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:$f,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:Zf,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:Jf,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:Qf,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:ed,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:td,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:nd,"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:id,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:ad,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:rd,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:od,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:sd,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:ld,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:ud,"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:hd,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:cd,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:fd,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:dd,"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:gd,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:pd,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:vd,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:md,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:yd,"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:_d,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:bd,"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:wd,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:xd,nb:kd,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:Sd,"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:Cd,"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:Ed,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:Ad,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:Rd,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:Md,"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:Td,"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:Bd,"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:Nd,"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:Dd,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:Pd,"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:Od,"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:zd,"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:Ld,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:Fd,"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:Id,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:jd,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:Hd,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:Vd,"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:Gd,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:Ud,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:Wd,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:qd,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:Kd,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:Yd,"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:Xd,"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:$d,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:Zd,"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:Jd,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:Qd,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:eg,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:tg,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:ng,"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:ig,"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:ag,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:rg,"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:og,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:sg,"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:lg,"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:ug,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:hg,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:cg,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:fg,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:dg,"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:gg,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:pg,"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:vg,"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:mg,"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:yg,"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:_g,"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:bg,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:wg,"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:xg,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:kg,"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:Sg,"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:Cg,"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:Eg,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:Ag,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:Rg,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:Mg,"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:Tg,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:Bg,"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:Ng,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:Dg,"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:Pg,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:Og,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:zg,"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:Lg,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:Fg,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:Ig,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:jg,"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:Hg,"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:Vg,"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:Gg,"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:Ug,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:Wg,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:qg,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:Kg,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:Yg,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:Xg,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:$g,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:Zg,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:Jg,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:Qg,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:ep,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:tp,"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:np,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:ip,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var rp={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var op={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var sp={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var lp={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var up={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var hp={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var cp={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var fp={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var dp={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var gp={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var pp={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var vp={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var mp={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var yp={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var _p={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var bp={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var wp={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var xp={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var kp={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var Sp={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var Cp={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var Ep={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var Ap={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var Rp={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Mp={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Tp={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var Bp={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Np={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Dp={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var Pp={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var Op={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var zp={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var Lp={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var Fp={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Ip={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var jp={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var Hp={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var Vp={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var Gp={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var Up={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var Wp={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var qp={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Kp={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var Yp={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var Xp={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var $p={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var Zp={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var Jp={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Qp={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var ev={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var tv={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var nv={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var iv={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var av={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var rv={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var ov={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var sv={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var lv={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var uv={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var hv={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var cv={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var fv={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var dv={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var gv={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var pv={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var vv={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var mv={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var yv={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var _v={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var bv={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var wv={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var xv={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var kv={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Sv={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var Cv={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var Ev={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var Av={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Rv={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var Mv={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var Tv={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var Bv={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var Nv={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var Dv={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var Pv={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var Ov={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var zv={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var Lv={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var Fv={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var Iv={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var jv={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var Hv={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Vv={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Gv={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Uv={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var Wv={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var qv={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var Kv={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var Yv={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var Xv={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var $v={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var Zv={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var Jv={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var Qv={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var em={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var tm={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var nm={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var im={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var am={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var rm={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var om={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var sm={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var lm={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var um={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var hm={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var cm={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var fm={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var dm={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var gm={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var pm={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var vm={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var mm={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var ym={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var _m={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var bm={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var wm={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var xm={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var km={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var Sm={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var Cm={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var Em={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var Am={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var Rm={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Mm={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var Tm={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var Bm={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var Nm={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var Dm={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var Pm={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var Om={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var zm={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var Lm={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var Fm={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var Im={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var jm={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var Hm={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var Vm={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var Gm={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var Um={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var Wm={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var qm={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var Km={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var Ym={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var Xm={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var $m={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var Zm={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var Jm={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var Qm={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var ey={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var ty={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var ny={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var iy={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var ay={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var ry={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var oy={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var sy={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var ly={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var uy={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var hy={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var cy={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var fy={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var dy={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var gy={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var py={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var vy={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var my={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var yy={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var _y={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var by={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var wy={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var xy={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var ky={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var Sy={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var Cy={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Ey={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Ay={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var Ry={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var My={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ty={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var By={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ny={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var Dy={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var Py={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var Oy={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var zy={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var Ly={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var Fy={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var Iy={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var jy={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var Hy={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var Vy={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var Gy={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var Uy={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var Wy={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var qy={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var Ky={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var Yy={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var Xy={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var $y={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var Zy={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var Jy={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Qy={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var e_={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var t_={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var n_={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var i_={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var a_={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var r_={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var o_={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var s_={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var l_={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var u_={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var h_={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var c_={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var f_={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var d_={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var g_={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var p_={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var v_={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var m_={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var y_={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var __={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var b_={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var w_={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var x_={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var k_={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var S_={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var C_={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var E_={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var A_={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var R_={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var M_={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var T_={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var B_={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var N_={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var D_={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var P_={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var O_={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var z_={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var L_={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var F_={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var I_={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var j_={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var H_={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var V_={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var G_={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var U_={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var W_={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var q_={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var K_={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var Y_={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var X_={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var $_={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var Z_={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var J_={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var Q_={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var eb={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var tb={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var nb={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var ib={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var ab={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var rb={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var ob={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var sb={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var lb={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var ub={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var hb={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var cb={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var fb={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var db={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var gb={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var pb={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var vb={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var mb={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var yb={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var _b={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var bb={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var wb={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var xb={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var kb={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var Sb={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var Cb={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var Eb={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Ab={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Rb={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var Mb={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var Tb={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Bb={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var Nb={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var Db={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var Pb={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var Ob={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var zb={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var Lb={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var Fb={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var Ib={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var jb={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var Hb={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var Vb={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var Gb={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var Ub={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var Wb={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var qb={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var Kb={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var Yb={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var Xb={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var $b={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var Zb={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var Jb={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var Qb={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var ew={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var tw={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var nw={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var iw={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var aw={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var rw={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var ow={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var sw={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var lw={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var uw={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var hw={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var cw={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var fw={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var dw={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var gw={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var pw={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var vw={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var mw={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var yw={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var _w={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var bw={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var ww={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var xw={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var kw={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var Sw={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var Cw={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var Ew={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var Aw={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var Rw={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var Mw={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var Tw={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var Bw={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var Nw={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var Dw={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var Pw={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var Ow={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var zw={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var Lw={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var Fw={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var Iw={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var jw={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var Hw={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var Vw={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var Gw={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var Uw={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var Ww={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var qw={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var Kw={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var Yw={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var Xw={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var $w={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var Zw={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var Jw={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var Qw={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var ex={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var tx={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var nx={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var ix={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var ax={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var rx={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var ox={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var sx={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var lx={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var ux={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var hx={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var cx={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var fx={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var dx={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var gx={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var px={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var vx={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var mx={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var yx={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var _x={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var bx={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var wx={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var xx={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var kx={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var Sx={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var Cx={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var Ex={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ax={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Rx={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var Mx={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Tx={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var Bx={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var Nx={Abkhazian:rp,Achinese:op,Acoli:sp,Adangme:lp,Adygei:up,Adyghe:hp,Afar:cp,Afrihili:fp,Afrikaans:dp,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:gp,Akan:pp,Akkadian:vp,Albanian:mp,Alemannic:yp,Aleut:_p,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:bp,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:wp,Angika:xp,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:kp,Aragonese:Sp,Arapaho:Cp,Arawak:Ep,Armenian:Ap,Aromanian:Rp,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:Mp,Assamese:Tp,Asturian:Bp,Asturleonese:Np,"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:Dp,Avestan:Pp,Awadhi:Op,Aymara:zp,Azerbaijani:Lp,Bable:Fp,Balinese:Ip,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:jp,Bambara:Hp,"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:Vp,Bashkir:Gp,Basque:Up,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:Wp,Beja:qp,Belarusian:Kp,Bemba:Yp,Bengali:Xp,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:$p,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:Zp,Bilin:Jp,Bini:Qp,Bislama:ev,Blin:tv,Bliss:nv,Blissymbolics:iv,Blissymbols:av,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:rv,Braj:ov,Breton:sv,Buginese:lv,Bulgarian:uv,Buriat:hv,Burmese:cv,Caddo:fv,Castilian:dv,Catalan:gv,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:pv,"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:vv,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:mv,Chechen:yv,Cherokee:_v,Chewa:bv,Cheyenne:wv,Chibcha:xv,Chichewa:kv,Chinese:Sv,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:Cv,Choctaw:Ev,Chuang:Av,"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:Rv,Chuvash:Mv,"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:Tv,Cornish:Bv,Corsican:Nv,Cree:Dv,Creek:Pv,"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:Ov,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:zv,Dakota:Lv,Danish:Fv,Dargwa:Iv,Delaware:jv,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:Hv,Dimili:Vv,Dimli:Gv,Dinka:Uv,Divehi:Wv,Dogri:qv,Dogrib:Kv,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:Yv,Dutch:Xv,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:$v,Dzongkha:Zv,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:Jv,Efik:Qv,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:em,Elamite:tm,English:nm,"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:im,Esperanto:am,Estonian:rm,Ewe:om,Ewondo:sm,Fang:lm,Fanti:um,Faroese:hm,Fijian:cm,Filipino:fm,Finnish:dm,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:gm,Fon:pm,French:vm,"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:mm,Fulah:ym,Ga:_m,Gaelic:bm,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:wm,Ganda:xm,Gayo:km,Gbaya:Sm,Geez:Cm,Georgian:Em,German:Am,"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:Rm,Gilbertese:Mm,Gondi:Tm,Gorontalo:Bm,Gothic:Nm,Grebo:Dm,"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:Pm,Guarani:Om,Gujarati:zm,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:Lm,Haitian:Fm,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:Im,Hawaiian:jm,Hebrew:Hm,Herero:Vm,Hiligaynon:Gm,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:Um,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:Wm,Hmong:qm,Hungarian:Km,Hupa:Ym,Iban:Xm,Icelandic:$m,Ido:Zm,Igbo:Jm,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:Qm,"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:ey,Ingush:ty,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:ny,Inuktitut:iy,Inupiaq:ay,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:ry,"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:oy,Japanese:sy,Javanese:ly,Jingpho:uy,"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:hy,Kabyle:cy,Kachin:fy,Kalaallisut:dy,Kalmyk:gy,Kamba:py,Kannada:vy,Kanuri:my,Kapampangan:yy,"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:_y,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:by,Kashubian:wy,Kawi:xy,Kazakh:ky,Khasi:Sy,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:Cy,Kikuyu:Ey,Kimbundu:Ay,Kinyarwanda:Ry,Kirdki:My,Kirghiz:Ty,Kirmanjki:By,Klingon:Ny,Komi:Dy,Kongo:Py,Konkani:Oy,Korean:zy,Kosraean:Ly,Kpelle:Fy,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:Iy,Kumyk:jy,Kurdish:Hy,Kurukh:Vy,Kutenai:Gy,Kwanyama:Uy,Kyrgyz:Wy,Ladino:qy,Lahnda:Ky,Lamba:Yy,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:Xy,Latin:$y,Latvian:Zy,Leonese:Jy,Letzeburgesch:Qy,Lezghian:e_,Limburgan:t_,Limburger:n_,Limburgish:i_,Lingala:a_,Lithuanian:r_,Lojban:o_,"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:s_,"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:l_,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:u_,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:h_,Luxembourgish:c_,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:f_,Madurese:d_,Magahi:g_,Maithili:p_,Makasar:v_,Malagasy:m_,Malay:y_,Malayalam:__,Maldivian:b_,Maltese:w_,Manchu:x_,Mandar:k_,Mandingo:S_,Manipuri:C_,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:E_,Maori:A_,Mapuche:R_,Mapudungun:M_,Marathi:T_,Mari:B_,Marshallese:N_,Marwari:D_,Masai:P_,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:O_,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:z_,Minangkabau:L_,Mirandese:F_,Mohawk:I_,Moksha:j_,Moldavian:H_,Moldovan:V_,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:G_,Mongo:U_,Mongolian:W_,Montenegrin:q_,Mossi:K_,"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:Y_,Navaho:X_,Navajo:$_,"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:Z_,Neapolitan:J_,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:Q_,Newari:eb,Nias:tb,"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:nb,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:ib,"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:ab,"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:rb,Nyamwezi:ob,Nyanja:sb,Nyankole:lb,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:ub,Nzima:hb,Occidental:cb,"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:fb,Ojibwa:db,"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:gb,Oromo:pb,Osage:vb,Ossetian:mb,Ossetic:yb,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:_b,Palauan:bb,Pali:wb,Pampanga:xb,Pangasinan:kb,Panjabi:Sb,Papiamento:Cb,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:Eb,Pedi:Ab,Persian:Rb,"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:Mb,Pilipino:Tb,Pohnpeian:Bb,Polish:Nb,Portuguese:Db,"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:Pb,Pushto:Ob,Quechua:zb,Rajasthani:Lb,Rapanui:Fb,Rarotongan:Ib,"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:jb,Romansh:Hb,Romany:Vb,Rundi:Gb,Russian:Ub,Sakan:Wb,"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:qb,Sandawe:Kb,Sango:Yb,Sanskrit:Xb,Santali:$b,Sardinian:Zb,Sasak:Jb,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:Qb,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:ew,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:tw,Serbian:nw,Serer:iw,Shan:aw,Shona:rw,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:ow,Sidamo:sw,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:lw,Sindhi:uw,Sinhala:hw,Sinhalese:cw,"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:fw,Slovenian:dw,Sogdian:gw,Somali:pw,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:vw,"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:mw,"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:yw,Sumerian:_w,Sundanese:bw,Susu:ww,Swahili:xw,Swati:kw,Swedish:Sw,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:Cw,Tagalog:Ew,Tahitian:Aw,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:Rw,Tamashek:Mw,Tamil:Tw,Tatar:Bw,Telugu:Nw,Tereno:Dw,Tetum:Pw,Thai:Ow,Tibetan:zw,Tigre:Lw,Tigrinya:Fw,Timne:Iw,Tiv:jw,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:Hw,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:Vw,"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:Gw,Tsonga:Uw,Tswana:Ww,Tumbuka:qw,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:Kw,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:Yw,Tuvalu:Xw,Tuvinian:$w,Twi:Zw,Udmurt:Jw,Ugaritic:Qw,Uighur:ex,Ukrainian:tx,Umbundu:nx,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:ix,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:ax,Uyghur:rx,Uzbek:ox,Vai:sx,Valencian:lx,Venda:ux,Vietnamese:hx,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:cx,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:fx,Waray:dx,Washo:gx,Welsh:px,"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:vx,Wolaytta:mx,Wolof:yx,Xhosa:_x,Yakut:bx,Yao:wx,Yapese:xx,Yiddish:kx,Yoruba:Sx,"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:Cx,Zaza:Ex,Zazaki:Ax,Zenaga:Rx,Zhuang:Mx,Zulu:Tx,Zuni:Bx};function Dx(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 Px=[];var Ox=Object.keys(Nx);Object.keys(ap).map(function(e){var t=ap[e];var n=Ox.find(function(e){return e.toLowerCase()===t.language.toLowerCase()});if(t.location&&n){var i;Px.push((i={},Dx(i,"name",t.language),Dx(i,"location",t.location),Dx(i,"tag",t.tag),Dx(i,"lcid",t.id),Dx(i,"iso639-2",Nx[n]["iso639-2"]),Dx(i,"iso639-1",Nx[n]["iso639-1"]),i))}});var zx={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 Lx(t){if(typeof t!=="string"||t.length===5)return t;if(zx[t])return zx[t];var e=Px.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 Fx(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function Ix(){return"".concat(Fx()).concat(Fx(),"-").concat(Fx(),"-").concat(Fx(),"-").concat(Fx(),"-").concat(Fx()).concat(Fx()).concat(Fx())}var jx="D3PLUS-COMMON-RESET";var Hx={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 Vx={"es-ES":Hx};function Gx(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ux(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 Wx(e,t,n){if(t)Ux(e.prototype,t);if(n)Ux(e,n);return e}function qx(e,t){if(Hh(e)){for(var n in e){if({}.hasOwnProperty.call(e,n)&&!n.startsWith("_")){var i=t&&Hh(t)?t[n]:undefined;if(e[n]===jx){if(i)e[n]=i;else delete e[n]}else if(Hh(e[n])){qx(e[n],i)}}}}}function Kx(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 Yx=function(){function e(){var i=this;Gx(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=Vx[t];return n&&n[e]?n[e]:e};this._uuid=Ix()}Wx(e,[{key:"config",value:function n(e){var i=this;if(!this._configDefault){var n={};Kx(this.__proto__).forEach(function(e){var t=i[e]();if(t!==i)n[e]=Hh(t)?Gh({},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===jx){if(t==="on")this._on=this._configDefault[t];else this[t](this._configDefault[t])}else{qx(a,this._configDefault[t]);this[t](a)}}}return this}else{var r={};Kx(this.__proto__).forEach(function(e){r[e]=i[e]()});return r}}},{key:"locale",value:function e(t){return arguments.length?(this._locale=Lx(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=Gh(this._shapeConfig,t),this):this._shapeConfig}}]);return e}();function Xx(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 $x(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){$x=function e(t){return typeof t}}else{$x=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return $x(e)}function Zx(){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($x(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($x(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 Jx(t){return function e(){return t}}function Qx(e,t){t=Object.assign({},{condition:true,enter:{},exit:{},parent:ql("body"),transition:yh().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(Uh,t.enter);if(i)o.attr("id",i[1]);if(n)o.attr("class",n[1]);r.exit().transition(t.transition).call(Uh,t.exit).remove();var s=o.merge(r);s.transition(t.transition).call(Uh,t.update);return s}function ek(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function tk(a){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=ek(Pe(a.map(function(e){return H(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=Pe(n.map(function(e){return e instanceof Array?e:[e]}));e=ek(e);if(e.length===1)e=e[0]}else if(i.indexOf(String)>=0){e=ek(n);if(e.length===1)e=e[0]}else if(i.indexOf(Number)>=0)e=O(n);else if(i.indexOf(Object)>=0){e=ek(n.filter(function(e){return e}));if(e.length===1)e=e[0];else e=tk(e)}else{e=ek(n.filter(function(e){return e!==void 0}));if(e.length===1)e=e[0]}}o[t]=e});return o}function nk(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 ik(){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 ak(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 rk(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ok(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 sk(e,t,n){if(t)ok(e.prototype,t);if(n)ok(e,n);return e}var lk=function(){function l(){rk(this,l);this._duration=600;this._height=Ih("height");this._id=Ih("id");this._opacity=Jx(1);this._pointerEvents=Jx("auto");this._select;this._url=Ih("url");this._width=Ih("width");this._x=Ih("x",0);this._y=Ih("y",0)}sk(l,[{key:"render",value:function e(t){var n=this;if(this._select===void 0)this.select(ql("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=yh().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=ql(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:Jx(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:Jx(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Jx(t),this):this._pointerEvents}},{key:"select",value:function e(t){return arguments.length?(this._select=ql(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:Jx(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Jx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Jx(t),this):this._y}}]);return l}();function uk(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function hk(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function ck(){}var fk=.7;var dk=1/fk;var gk="\\s*([+-]?\\d+)\\s*",pk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",vk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mk=/^#([0-9a-f]{3,8})$/,yk=new RegExp("^rgb\\("+[gk,gk,gk]+"\\)$"),_k=new RegExp("^rgb\\("+[vk,vk,vk]+"\\)$"),bk=new RegExp("^rgba\\("+[gk,gk,gk,pk]+"\\)$"),wk=new RegExp("^rgba\\("+[vk,vk,vk,pk]+"\\)$"),xk=new RegExp("^hsl\\("+[pk,vk,vk]+"\\)$"),kk=new RegExp("^hsla\\("+[pk,vk,vk,pk]+"\\)$");var Sk={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};uk(ck,Rk,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:Ck,formatHex:Ck,formatHsl:Ek,formatRgb:Ak,toString:Ak});function Ck(){return this.rgb().formatHex()}function Ek(){return Fk(this).formatHsl()}function Ak(){return this.rgb().formatRgb()}function Rk(e){var t,n;e=(e+"").trim().toLowerCase();return(t=mk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Mk(t):n===3?new Dk(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Tk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Tk(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=yk.exec(e))?new Dk(t[1],t[2],t[3],1):(t=_k.exec(e))?new Dk(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bk.exec(e))?Tk(t[1],t[2],t[3],t[4]):(t=wk.exec(e))?Tk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xk.exec(e))?Lk(t[1],t[2]/100,t[3]/100,1):(t=kk.exec(e))?Lk(t[1],t[2]/100,t[3]/100,t[4]):Sk.hasOwnProperty(e)?Mk(Sk[e]):e==="transparent"?new Dk(NaN,NaN,NaN,0):null}function Mk(e){return new Dk(e>>16&255,e>>8&255,e&255,1)}function Tk(e,t,n,i){if(i<=0)e=t=n=NaN;return new Dk(e,t,n,i)}function Bk(e){if(!(e instanceof ck))e=Rk(e);if(!e)return new Dk;e=e.rgb();return new Dk(e.r,e.g,e.b,e.opacity)}function Nk(e,t,n,i){return arguments.length===1?Bk(e):new Dk(e,t,n,i==null?1:i)}function Dk(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}uk(Dk,Nk,hk(ck,{brighter:function e(t){t=t==null?dk:Math.pow(dk,t);return new Dk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?fk:Math.pow(fk,t);return new Dk(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:Pk,formatHex:Pk,formatRgb:Ok,toString:Ok}));function Pk(){return"#"+zk(this.r)+zk(this.g)+zk(this.b)}function Ok(){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 Lk(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 jk(e,t,n,i)}function Fk(e){if(e instanceof jk)return new jk(e.h,e.s,e.l,e.opacity);if(!(e instanceof ck))e=Rk(e);if(!e)return new jk;if(e instanceof jk)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 jk(o,s,l,e.opacity)}function Ik(e,t,n,i){return arguments.length===1?Fk(e):new jk(e,t,n,i==null?1:i)}function jk(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}uk(jk,Ik,hk(ck,{brighter:function e(t){t=t==null?dk:Math.pow(dk,t);return new jk(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?fk:Math.pow(fk,t);return new jk(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 Dk(Hk(t>=240?t-240:t+120,r,a),Hk(t,r,a),Hk(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 Hk(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 Vk(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Gk(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function Uk(){}var Wk=.7;var qk=1/Wk;var Kk="\\s*([+-]?\\d+)\\s*",Yk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$k=/^#([0-9a-f]{3,8})$/,Zk=new RegExp("^rgb\\("+[Kk,Kk,Kk]+"\\)$"),Jk=new RegExp("^rgb\\("+[Xk,Xk,Xk]+"\\)$"),Qk=new RegExp("^rgba\\("+[Kk,Kk,Kk,Yk]+"\\)$"),eS=new RegExp("^rgba\\("+[Xk,Xk,Xk,Yk]+"\\)$"),tS=new RegExp("^hsl\\("+[Yk,Xk,Xk]+"\\)$"),nS=new RegExp("^hsla\\("+[Yk,Xk,Xk,Yk]+"\\)$");var iS={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};Vk(Uk,sS,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:aS,formatHex:aS,formatHsl:rS,formatRgb:oS,toString:oS});function aS(){return this.rgb().formatHex()}function rS(){return mS(this).formatHsl()}function oS(){return this.rgb().formatRgb()}function sS(e){var t,n;e=(e+"").trim().toLowerCase();return(t=$k.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lS(t):n===3?new fS(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?uS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?uS(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=Zk.exec(e))?new fS(t[1],t[2],t[3],1):(t=Jk.exec(e))?new fS(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qk.exec(e))?uS(t[1],t[2],t[3],t[4]):(t=eS.exec(e))?uS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=tS.exec(e))?vS(t[1],t[2]/100,t[3]/100,1):(t=nS.exec(e))?vS(t[1],t[2]/100,t[3]/100,t[4]):iS.hasOwnProperty(e)?lS(iS[e]):e==="transparent"?new fS(NaN,NaN,NaN,0):null}function lS(e){return new fS(e>>16&255,e>>8&255,e&255,1)}function uS(e,t,n,i){if(i<=0)e=t=n=NaN;return new fS(e,t,n,i)}function hS(e){if(!(e instanceof Uk))e=sS(e);if(!e)return new fS;e=e.rgb();return new fS(e.r,e.g,e.b,e.opacity)}function cS(e,t,n,i){return arguments.length===1?hS(e):new fS(e,t,n,i==null?1:i)}function fS(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}Vk(fS,cS,Gk(Uk,{brighter:function e(t){t=t==null?qk:Math.pow(qk,t);return new fS(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Wk:Math.pow(Wk,t);return new fS(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:dS,formatHex:dS,formatRgb:gS,toString:gS}));function dS(){return"#"+pS(this.r)+pS(this.g)+pS(this.b)}function gS(){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 pS(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function vS(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 _S(e,t,n,i)}function mS(e){if(e instanceof _S)return new _S(e.h,e.s,e.l,e.opacity);if(!(e instanceof Uk))e=sS(e);if(!e)return new _S;if(e instanceof _S)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 _S(o,s,l,e.opacity)}function yS(e,t,n,i){return arguments.length===1?mS(e):new _S(e,t,n,i==null?1:i)}function _S(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}Vk(_S,yS,Gk(Uk,{brighter:function e(t){t=t==null?qk:Math.pow(qk,t);return new _S(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Wk:Math.pow(Wk,t);return new _S(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 fS(bS(t>=240?t-240:t+120,r,a),bS(t,r,a),bS(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 bS(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 wS={dark:"#444444",light:"#f7f7f7",missing:"#cccccc",off:"#b22200",on:"#224f20",scale:bt().range(["#b22200","#282f6b","#eace3f","#b35c1e","#224f20","#5f487c","#759143","#419391","#993c88","#e89c89","#ffee8d","#afd5e8","#f7ba77","#a5c697","#c5b5e5","#d1d392","#bbefd0","#e099cf"])};function xS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e in t?t[e]:e in wS?wS[e]:wS.missing}function kS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(e)>=0)return xS("missing",t);else if(e===true)return xS("on",t);else if(e===false)return xS("off",t);var n=sS(e);if(!n)return xS("scale",t)(e);return e.toString()}function SS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e=cS(e);var n=(e.r*299+e.g*587+e.b*114)/1e3;return n>=128?xS("dark",t):xS("light",t)}function CS(e){e=yS(e);if(e.l>.45){if(e.s>.8)e.s=.8;e.l=.45}return e.toString()}function ES(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;e=yS(e);t*=1-e.l;e.l+=t;e.s-=t;return e.toString()}var AS=Math.PI,RS=2*AS,MS=1e-6,TS=RS-MS;function BS(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function NS(){return new BS}BS.prototype=NS.prototype={constructor:BS,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>MS));else if(!(Math.abs(c*l-u*h)>MS)||!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((AS-Math.acos((p+f-v)/(2*m*y)))/2),b=_/y,w=_/m;if(Math.abs(b-1)>MS){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)>MS||Math.abs(this._y1-h)>MS){this._+="L"+u+","+h}if(!i)return;if(f<0)f=f%RS+RS;if(f>TS){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>MS){this._+="A"+i+","+i+",0,"+ +(f>=AS)+","+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 DS(t){return function e(){return t}}var PS=Math.abs;var OS=Math.atan2;var zS=Math.cos;var LS=Math.max;var FS=Math.min;var IS=Math.sin;var jS=Math.sqrt;var HS=1e-12;var VS=Math.PI;var GS=VS/2;var US=2*VS;function WS(e){return e>1?0:e<-1?VS:Math.acos(e)}function qS(e){return e>=1?GS:e<=-1?-GS:Math.asin(e)}function KS(e){return e.innerRadius}function YS(e){return e.outerRadius}function XS(e){return e.startAngle}function $S(e){return e.endAngle}function ZS(e){return e&&e.padAngle}function JS(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<HS)return;f=(h*(t-r)-c*(e-a))/f;return[e+f*l,t+f*u]}function QS(e,t,n,i,a,r,o){var s=e-n,l=t-i,u=(o?r:-r)/jS(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)*jS(LS(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 eC(){var F=KS,I=YS,j=DS(0),H=null,V=XS,G=$S,U=ZS,W=null;function t(){var e,t,n=+F.apply(this,arguments),i=+I.apply(this,arguments),a=V.apply(this,arguments)-GS,r=G.apply(this,arguments)-GS,o=PS(r-a),s=r>a;if(!W)W=e=NS();if(i<n)t=i,i=n,n=t;if(!(i>HS))W.moveTo(0,0);else if(o>US-HS){W.moveTo(i*zS(a),i*IS(a));W.arc(0,0,i,a,r,!s);if(n>HS){W.moveTo(n*zS(r),n*IS(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>HS&&(H?+H.apply(this,arguments):jS(n*n+i*i)),v=FS(PS(i-n)/2,+j.apply(this,arguments)),m=v,y=v,_,b;if(p>HS){var w=qS(p/n*IS(g)),x=qS(p/i*IS(g));if((f-=w*2)>HS)w*=s?1:-1,h+=w,c-=w;else f=0,h=c=(a+r)/2;if((d-=x*2)>HS)x*=s?1:-1,l+=x,u-=x;else d=0,l=u=(a+r)/2}var k=i*zS(l),S=i*IS(l),C=n*zS(c),E=n*IS(c);if(v>HS){var A=i*zS(u),R=i*IS(u),M=n*zS(h),T=n*IS(h),B;if(o<VS&&(B=JS(k,S,M,T,A,R,C,E))){var N=k-B[0],D=S-B[1],P=A-B[0],O=R-B[1],z=1/IS(WS((N*P+D*O)/(jS(N*N+D*D)*jS(P*P+O*O)))/2),L=jS(B[0]*B[0]+B[1]*B[1]);m=FS(v,(n-L)/(z-1));y=FS(v,(i-L)/(z+1))}}if(!(d>HS))W.moveTo(k,S);else if(y>HS){_=QS(M,T,k,S,i,y,s);b=QS(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(y<v)W.arc(_.cx,_.cy,y,OS(_.y01,_.x01),OS(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,OS(_.y01,_.x01),OS(_.y11,_.x11),!s);W.arc(0,0,i,OS(_.cy+_.y11,_.cx+_.x11),OS(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,y,OS(b.y11,b.x11),OS(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,i,l,u,!s);if(!(n>HS)||!(f>HS))W.lineTo(C,E);else if(m>HS){_=QS(C,E,A,R,n,-m,s);b=QS(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m<v)W.arc(_.cx,_.cy,m,OS(_.y01,_.x01),OS(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,OS(_.y01,_.x01),OS(_.y11,_.x11),!s);W.arc(0,0,n,OS(_.cy+_.y11,_.cx+_.x11),OS(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,m,OS(b.y11,b.x11),OS(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=(+F.apply(this,arguments)+ +I.apply(this,arguments))/2,t=(+V.apply(this,arguments)+ +G.apply(this,arguments))/2-VS/2;return[zS(t)*e,IS(t)*e]};t.innerRadius=function(e){return arguments.length?(F=typeof e==="function"?e:DS(+e),t):F};t.outerRadius=function(e){return arguments.length?(I=typeof e==="function"?e:DS(+e),t):I};t.cornerRadius=function(e){return arguments.length?(j=typeof e==="function"?e:DS(+e),t):j};t.padRadius=function(e){return arguments.length?(H=e==null?null:typeof e==="function"?e:DS(+e),t):H};t.startAngle=function(e){return arguments.length?(V=typeof e==="function"?e:DS(+e),t):V};t.endAngle=function(e){return arguments.length?(G=typeof e==="function"?e:DS(+e),t):G};t.padAngle=function(e){return arguments.length?(U=typeof e==="function"?e:DS(+e),t):U};t.context=function(e){return arguments.length?(W=e==null?null:e,t):W};return t}function tC(e){this._context=e}tC.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 nC(e){return new tC(e)}function iC(e){return e[0]}function aC(e){return e[1]}function rC(){var o=iC,s=aC,l=DS(true),u=null,h=nC,c=null;function t(e){var t,n=e.length,i,a=false,r;if(u==null)c=h(r=NS());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:DS(+e),t):o};t.y=function(e){return arguments.length?(s=typeof e==="function"?e:DS(+e),t):s};t.defined=function(e){return arguments.length?(l=typeof e==="function"?e:DS(!!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 oC(){var h=iC,c=null,f=DS(0),d=aC,g=DS(true),p=null,v=nC,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=NS());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 rC().defined(g).curve(v).context(p)}t.x=function(e){return arguments.length?(h=typeof e==="function"?e:DS(+e),c=null,t):h};t.x0=function(e){return arguments.length?(h=typeof e==="function"?e:DS(+e),t):h};t.x1=function(e){return arguments.length?(c=e==null?null:typeof e==="function"?e:DS(+e),t):c};t.y=function(e){return arguments.length?(f=typeof e==="function"?e:DS(+e),d=null,t):f};t.y0=function(e){return arguments.length?(f=typeof e==="function"?e:DS(+e),t):f};t.y1=function(e){return arguments.length?(d=e==null?null:typeof e==="function"?e:DS(+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:DS(!!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 sC(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function lC(e){return e}function uC(){var g=lC,p=sC,v=null,m=DS(0),y=DS(US),_=DS(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(US,Math.max(-US,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:DS(+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:DS(+e),t):m};t.endAngle=function(e){return arguments.length?(y=typeof e==="function"?e:DS(+e),t):y};t.padAngle=function(e){return arguments.length?(_=typeof e==="function"?e:DS(+e),t):_};return t}var hC=fC(nC);function cC(e){this._curve=e}cC.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 fC(t){function e(e){return new cC(t(e))}e._curve=t;return e}function dC(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(fC(e)):t()._curve};return e}function gC(){return dC(rC().curve(hC))}function pC(){var e=oC().curve(hC),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 dC(n())},delete e.lineX0;e.lineEndAngle=function(){return dC(i())},delete e.lineX1;e.lineInnerRadius=function(){return dC(a())},delete e.lineY0;e.lineOuterRadius=function(){return dC(r())},delete e.lineY1;e.curve=function(e){return arguments.length?t(fC(e)):t()._curve};return e}function vC(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var mC=Array.prototype.slice;function yC(e){return e.source}function _C(e){return e.target}function bC(a){var r=yC,o=_C,s=iC,l=aC,u=null;function t(){var e,t=mC.call(arguments),n=r.apply(this,t),i=o.apply(this,t);if(!u)u=e=NS();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:DS(+e),t):s};t.y=function(e){return arguments.length?(l=typeof e==="function"?e:DS(+e),t):l};t.context=function(e){return arguments.length?(u=e==null?null:e,t):u};return t}function wC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t=(t+i)/2,n,t,a,i,a)}function xC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t,n=(n+a)/2,i,n,i,a)}function kC(e,t,n,i,a){var r=vC(t,n),o=vC(t,n=(n+a)/2),s=vC(i,n),l=vC(i,a);e.moveTo(r[0],r[1]);e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function SC(){return bC(wC)}function CC(){return bC(xC)}function EC(){var e=bC(kC);e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;return e}var AC={draw:function e(t,n){var i=Math.sqrt(n/VS);t.moveTo(i,0);t.arc(0,0,i,0,US)}};var RC={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 MC=Math.sqrt(1/3),TC=MC*2;var BC={draw:function e(t,n){var i=Math.sqrt(n/TC),a=i*MC;t.moveTo(0,-i);t.lineTo(a,0);t.lineTo(0,i);t.lineTo(-a,0);t.closePath()}};var NC=.8908130915292852,DC=Math.sin(VS/10)/Math.sin(7*VS/10),PC=Math.sin(US/10)*DC,OC=-Math.cos(US/10)*DC;var zC={draw:function e(t,n){var i=Math.sqrt(n*NC),a=PC*i,r=OC*i;t.moveTo(0,-i);t.lineTo(a,r);for(var o=1;o<5;++o){var s=US*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 LC={draw:function e(t,n){var i=Math.sqrt(n),a=-i/2;t.rect(a,a,i,i)}};var FC=Math.sqrt(3);var IC={draw:function e(t,n){var i=-Math.sqrt(n/(FC*3));t.moveTo(0,i*2);t.lineTo(-FC*i,-i);t.lineTo(FC*i,-i);t.closePath()}};var jC=-.5,HC=Math.sqrt(3)/2,VC=1/Math.sqrt(12),GC=(VC/2+1)*3;var UC={draw:function e(t,n){var i=Math.sqrt(n/GC),a=i/2,r=i*VC,o=a,s=i*VC+i,l=-o,u=s;t.moveTo(a,r);t.lineTo(o,s);t.lineTo(l,u);t.lineTo(jC*a-HC*r,HC*a+jC*r);t.lineTo(jC*o-HC*s,HC*o+jC*s);t.lineTo(jC*l-HC*u,HC*l+jC*u);t.lineTo(jC*a+HC*r,jC*r-HC*a);t.lineTo(jC*o+HC*s,jC*s-HC*o);t.lineTo(jC*l+HC*u,jC*u-HC*l);t.closePath()}};var WC=[AC,RC,BC,LC,zC,IC,UC];function qC(){var t=DS(AC),n=DS(64),i=null;function a(){var e;if(!i)i=e=NS();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:DS(e),a):t};a.size=function(e){return arguments.length?(n=typeof e==="function"?e:DS(+e),a):n};a.context=function(e){return arguments.length?(i=e==null?null:e,a):i};return a}function KC(){}function YC(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 XC(e){this._context=e}XC.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:YC(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:YC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function $C(e){return new XC(e)}function ZC(e){this._context=e}ZC.prototype={areaStart:KC,areaEnd:KC,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:YC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function JC(e){return new ZC(e)}function QC(e){this._context=e}QC.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:YC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function eE(e){return new QC(e)}function tE(e,t){this._basis=new XC(e);this._beta=t}tE.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 nE=function t(n){function e(e){return n===1?new XC(e):new tE(e,n)}e.beta=function(e){return t(+e)};return e}(.85);function iE(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 aE(e,t){this._context=e;this._k=(1-t)/6}aE.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:iE(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:iE(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 rE=function t(n){function e(e){return new aE(e,n)}e.tension=function(e){return t(+e)};return e}(0);function oE(e,t){this._context=e;this._k=(1-t)/6}oE.prototype={areaStart:KC,areaEnd:KC,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:iE(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 sE=function t(n){function e(e){return new oE(e,n)}e.tension=function(e){return t(+e)};return e}(0);function lE(e,t){this._context=e;this._k=(1-t)/6}lE.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:iE(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 uE=function t(n){function e(e){return new lE(e,n)}e.tension=function(e){return t(+e)};return e}(0);function hE(e,t,n){var i=e._x1,a=e._y1,r=e._x2,o=e._y2;if(e._l01_a>HS){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>HS){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 cE(e,t){this._context=e;this._alpha=t}cE.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:hE(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 fE=function t(n){function e(e){return n?new cE(e,n):new aE(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function dE(e,t){this._context=e;this._alpha=t}dE.prototype={areaStart:KC,areaEnd:KC,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:hE(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 gE=function t(n){function e(e){return n?new dE(e,n):new oE(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function pE(e,t){this._context=e;this._alpha=t}pE.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:hE(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 vE=function t(n){function e(e){return n?new pE(e,n):new lE(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function mE(e){this._context=e}mE.prototype={areaStart:KC,areaEnd:KC,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 yE(e){return new mE(e)}function _E(e){return e<0?-1:1}function bE(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(_E(r)+_E(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function wE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xE(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 kE(e){this._context=e}kE.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:xE(this,this._t0,wE(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;xE(this,wE(this,i=bE(this,t,n)),i);break;default:xE(this,this._t0,i=bE(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=i}};function SE(e){this._context=new CE(e)}(SE.prototype=Object.create(kE.prototype)).point=function(e,t){kE.prototype.point.call(this,t,e)};function CE(e){this._context=e}CE.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 EE(e){return new kE(e)}function AE(e){return new SE(e)}function RE(e){this._context=e}RE.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=ME(t),r=ME(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 ME(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 TE(e){return new RE(e)}function BE(e,t){this._context=e;this._t=t}BE.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 NE(e){return new BE(e,.5)}function DE(e){return new BE(e,0)}function PE(e){return new BE(e,1)}function OE(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 zE(e){var t=e.length,n=new Array(t);while(--t>=0){n[t]=t}return n}function LE(e,t){return e[t]}function FE(){var c=DS([]),f=zE,d=OE,g=LE;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:DS(mC.call(e)),t):c};t.value=function(e){return arguments.length?(g=typeof e==="function"?e:DS(+e),t):g};t.order=function(e){return arguments.length?(f=e==null?zE:typeof e==="function"?e:DS(mC.call(e)),t):f};t.offset=function(e){return arguments.length?(d=e==null?OE:e,t):d};return t}function IE(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}}OE(e,t)}function jE(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 HE(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}OE(e,t)}function VE(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;OE(e,t)}function GE(e){var n=e.map(UE);return zE(e).sort(function(e,t){return n[e]-n[t]})}function UE(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 WE(e){var n=e.map(qE);return zE(e).sort(function(e,t){return n[e]-n[t]})}function qE(e){var t=0,n=-1,i=e.length,a;while(++n<i){if(a=+e[n][1])t+=a}return t}function KE(e){return WE(e).reverse()}function YE(e){var t=e.length,n,i,a=e.map(qE),r=GE(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 XE(e){return zE(e).reverse()}var $E=Object.freeze({__proto__:null,arc:eC,area:oC,line:rC,pie:uC,areaRadial:pC,radialArea:pC,lineRadial:gC,radialLine:gC,pointRadial:vC,linkHorizontal:SC,linkVertical:CC,linkRadial:EC,symbol:qC,symbols:WC,symbolCircle:AC,symbolCross:RC,symbolDiamond:BC,symbolSquare:LC,symbolStar:zC,symbolTriangle:IC,symbolWye:UC,curveBasisClosed:JC,curveBasisOpen:eE,curveBasis:$C,curveBundle:nE,curveCardinalClosed:sE,curveCardinalOpen:uE,curveCardinal:rE,curveCatmullRomClosed:gE,curveCatmullRomOpen:vE,curveCatmullRom:fE,curveLinearClosed:yE,curveLinear:nC,curveMonotoneX:EE,curveMonotoneY:AE,curveNatural:TE,curveStep:NE,curveStepAfter:PE,curveStepBefore:DE,stack:FE,stackOffsetExpand:IE,stackOffsetDiverging:jE,stackOffsetNone:OE,stackOffsetSilhouette:HE,stackOffsetWiggle:VE,stackOrderAppearance:GE,stackOrderAscending:WE,stackOrderDescending:KE,stackOrderInsideOut:YE,stackOrderNone:zE,stackOrderReverse:XE});function ZE(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 JE(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(ZE(e)).width});return n.measureText(ZE(e)).width}function QE(e){return e.toString().replace(/^\s+|\s+$/g,"")}function eA(e){return e.toString().replace(/\s+$/,"")}var tA="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",nA={},iA=32;var aA,rA,oA,sA;var lA=function e(t){if(!aA){aA=JE(tA,{"font-family":"DejaVuSans","font-size":iA});rA=JE(tA,{"font-family":"-apple-system","font-size":iA});oA=JE(tA,{"font-family":"monospace","font-size":iA});sA=JE(tA,{"font-family":"sans-serif","font-size":iA})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(e){return QE(e)});for(var n=0;n<t.length;n++){var i=t[n];if(nA[i]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(i))return i;else if(nA[i]===false)continue;var a=JE(tA,{"font-family":i,"font-size":iA});nA[i]=a!==oA;if(nA[i])nA[i]=a!==sA;if(rA&&nA[i])nA[i]=a!==rA;if(aA&&nA[i])nA[i]=a!==aA;if(nA[i])return i}return false};var uA=function(){return ql("html").attr("dir")==="rtl"||ql("body").attr("dir")==="rtl"||ql("html").style("direction")==="rtl"||ql("body").style("direction")==="rtl"};function hA(e){if(e===void 0)e="undefined";else if(!(typeof e==="string"||e instanceof String))e=JSON.stringify(e);return e}var cA=[[/[\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 fA(e){return"".concat(e).replace(/[^A-Za-z0-9\-_]/g,function(e){if(e===" ")return"-";var t=false;for(var n=0;n<cA.length;n++){if(new RegExp(cA[n][0]).test(e)){t=cA[n][1];break}}return t||""})}var dA=["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 gA=["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 pA=dA.concat(gA);var vA=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var mA=["'","<","(","{","[","u00AB","u300A","u3008"];var yA=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(vA);var _A="က-ဪဿ-၉ၐ-ၕ";var bA="぀-ゟ゠-ヿ＀--}⦅-゚㐀-䶿";var wA="㐀-龿";var xA="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var kA=_A+wA+bA+xA;var SA=new RegExp("(\\".concat(vA.join("|\\"),")*[^\\s|\\").concat(vA.join("|\\"),"]*(\\").concat(vA.join("|\\"),")*"),"g");var CA=new RegExp("[".concat(kA,"]"));var EA=new RegExp("(\\".concat(mA.join("|\\"),")*[").concat(kA,"](\\").concat(yA.join("|\\"),"|\\").concat(pA.join("|\\"),")*|[a-z0-9]+"),"gi");function AA(e){if(!CA.test(e))return hA(e).match(SA).filter(function(e){return e.length});return Pe(hA(e).match(SA).map(function(e){if(CA.test(e))return e.match(EA);return[e]}))}function RA(){var d="sans-serif",g=10,p=400,v=200,m,y=null,_=false,b=AA,w=200;function t(e){e=hA(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=JE(t,n),u=JE(" ",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]=eA(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:JE(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 MA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){MA=function e(t){return typeof t}}else{MA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return MA(e)}function TA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function BA(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 NA(e,t,n){if(t)BA(e.prototype,t);if(n)BA(e,n);return e}function DA(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)PA(e,t)}function PA(e,t){PA=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return PA(e,t)}function OA(a){var r=FA();return function e(){var t=IA(a),n;if(r){var i=IA(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return zA(this,n)}}function zA(e,t){if(t&&(MA(t)==="object"||typeof t==="function")){return t}return LA(e)}function LA(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function FA(){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 IA(e){IA=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return IA(e)}var jA={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var HA=function(e){DA(i,e);var t=OA(i);function i(){var n;TA(this,i);n=t.call(this);n._ariaHidden=Jx("false");n._delay=0;n._duration=0;n._ellipsis=function(e,t){return t?"".concat(e.replace(/\.|,$/g,""),"..."):""};n._fontColor=Jx("black");n._fontFamily=Jx(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=Jx(50);n._fontMin=Jx(8);n._fontOpacity=Jx(1);n._fontResize=Jx(false);n._fontSize=Jx(10);n._fontStroke=Jx("transparent");n._fontStrokeWidth=Jx(0);n._fontWeight=Jx(400);n._height=Ih("height",200);n._html=jA;n._id=function(e,t){return e.id||"".concat(t)};n._lineHeight=function(e,t){return n._fontSize(e,t)*1.2};n._maxLines=Jx(null);n._on={};n._overflow=Jx(false);n._padding=Jx(0);n._pointerEvents=Jx("auto");n._rotate=Jx(0);n._rotateAnchor=function(e){return[e.w/2,e.h/2]};n._split=AA;n._text=Ih("text");n._textAnchor=Jx("start");n._verticalAlign=Jx("top");n._width=Ih("width",200);n._x=Ih("x",0);n._y=Ih("y",0);return n}NA(i,[{key:"render",value:function e(t){var D=this;if(this._select===void 0)this.select(ql("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var P=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(e,t,n){var i=D._text(t,n);if(i===void 0)return e;i=QE(i);var a=D._fontResize(t,n);var r=D._lineHeight(t,n)/D._fontSize(t,n);var o=a?D._fontMax(t,n):D._fontSize(t,n),s=a?o*r:D._lineHeight(t,n),l=1,u=[],h,c;var f={"font-family":lA(D._fontFamily(t,n)),"font-size":o,"font-weight":D._fontWeight(t,n),"line-height":s};var d=nk(D._padding(t,n));var g=D._height(t,n)-(d.top+d.bottom),p=D._width(t,n)-(d.left+d.right);var v=RA().fontFamily(f["font-family"]).fontSize(o).fontWeight(f["font-weight"]).lineHeight(s).maxLines(D._maxLines(t,n)).height(g).overflow(D._overflow(t,n)).width(p).split(D._split);var m=D._fontMax(t,n),y=D._fontMin(t,n),_=D._verticalAlign(t,n),b=D._split(i,n);function w(){var e=function e(){if(l<1)u=[P._ellipsis("",l)];else u[l-1]=P._ellipsis(u[l-1],l)};o=ve([o,y]);o=Oe([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=JE(b,f);var x=1.165+p/g*.1,k=p*g,S=ve(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=Oe([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=D._rotate(t,n);var N=B===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;N-=s*.1;e.push({aH:D._ariaHidden(t,n),data:t,i:n,lines:u,fC:D._fontColor(t,n),fStroke:D._fontStroke(t,n),fSW:D._fontStrokeWidth(t,n),fF:f["font-family"],fO:D._fontOpacity(t,n),fW:f["font-weight"],id:D._id(t,n),tA:D._textAnchor(t,n),vA:D._verticalAlign(t,n),widths:c.widths,fS:o,lH:s,w:p,h:g,r:B,x:D._x(t,n)+d.left,y:D._y(t,n)+N+d.top})}return e},[]),function(e){return D._id(e.data,e.i)});var a=yh().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=P._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(fA(e.id))}).call(i).merge(n);var o=uA();r.style("pointer-events",function(e){return D._pointerEvents(e.data,e.i)}).each(function(n){function e(e){e[P._html?"html":"text"](function(e){return eA(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=P._html[t]?'<tspan style="'.concat(P._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=ql(this).selectAll("text").data(n.lines);if(P._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(P._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 D._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:Jx(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:Jx(t),this):this._ellipsis}},{key:"fontColor",value:function e(t){return arguments.length?(this._fontColor=typeof t==="function"?t:Jx(t),this):this._fontColor}},{key:"fontFamily",value:function e(t){return arguments.length?(this._fontFamily=typeof t==="function"?t:Jx(t),this):this._fontFamily}},{key:"fontMax",value:function e(t){return arguments.length?(this._fontMax=typeof t==="function"?t:Jx(t),this):this._fontMax}},{key:"fontMin",value:function e(t){return arguments.length?(this._fontMin=typeof t==="function"?t:Jx(t),this):this._fontMin}},{key:"fontOpacity",value:function e(t){return arguments.length?(this._fontOpacity=typeof t==="function"?t:Jx(t),this):this._fontOpacity}},{key:"fontResize",value:function e(t){return arguments.length?(this._fontResize=typeof t==="function"?t:Jx(t),this):this._fontResize}},{key:"fontSize",value:function e(t){return arguments.length?(this._fontSize=typeof t==="function"?t:Jx(t),this):this._fontSize}},{key:"fontStroke",value:function e(t){return arguments.length?(this._fontStroke=typeof t==="function"?t:Jx(t),this):this._fontStroke}},{key:"fontStrokeWidth",value:function e(t){return arguments.length?(this._fontStrokeWidth=typeof t==="function"?t:Jx(t),this):this._fontStrokeWidth}},{key:"fontWeight",value:function e(t){return arguments.length?(this._fontWeight=typeof t==="function"?t:Jx(t),this):this._fontWeight}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Jx(t),this):this._height}},{key:"html",value:function e(t){return arguments.length?(this._html=typeof t==="boolean"?t?jA:false:t,this):this._html}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Jx(t),this):this._id}},{key:"lineHeight",value:function e(t){return arguments.length?(this._lineHeight=typeof t==="function"?t:Jx(t),this):this._lineHeight}},{key:"maxLines",value:function e(t){return arguments.length?(this._maxLines=typeof t==="function"?t:Jx(t),this):this._maxLines}},{key:"overflow",value:function e(t){return arguments.length?(this._overflow=typeof t==="function"?t:Jx(t),this):this._overflow}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Jx(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Jx(t),this):this._pointerEvents}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Jx(t),this):this._rotate}},{key:"rotateAnchor",value:function e(t){return arguments.length?(this._rotateAnchor=typeof t==="function"?t:Jx(t),this):this._rotateAnchor}},{key:"select",value:function e(t){return arguments.length?(this._select=ql(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:Jx(t),this):this._text}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Jx(t),this):this._textAnchor}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Jx(t),this):this._verticalAlign}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Jx(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Jx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Jx(t),this):this._y}}]);return i}(Yx);var VA=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i};var GA=function(e,t){return Math.sqrt(VA(e,t))};function UA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){UA=function e(t){return typeof t}}else{UA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return UA(e)}function WA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function qA(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 KA(e,t,n){if(t)qA(e.prototype,t);if(n)qA(e,n);return e}function YA(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)XA(e,t)}function XA(e,t){XA=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return XA(e,t)}function $A(a){var r=QA();return function e(){var t=eR(a),n;if(r){var i=eR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return ZA(this,n)}}function ZA(e,t){if(t&&(UA(t)==="object"||typeof t==="function")){return t}return JA(e)}function JA(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function QA(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function eR(e){eR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return eR(e)}var tR=function(e){YA(n,e);var t=$A(n);function n(){var a;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";WA(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 Rk(i).darker(1)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*3}};a._ariaLabel=Jx("");a._backgroundImage=Jx(false);a._backgroundImageClass=new lk;a._data=[];a._duration=600;a._fill=Jx("black");a._fillOpacity=Jx(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 Rk(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=Jx(false);a._labelClass=new HA;a._labelConfig={fontColor:function e(t,n){return SS(a._fill(t,n))},fontSize:12,padding:5};a._name="Shape";a._opacity=Jx(1);a._pointerEvents=Jx("visiblePainted");a._role=Jx("presentation");a._rotate=Jx(0);a._rx=Jx(0);a._ry=Jx(0);a._scale=Jx(1);a._shapeRendering=Jx("geometricPrecision");a._stroke=function(e,t){return Rk(a._fill(e,t)).darker(1)};a._strokeDasharray=Jx("0");a._strokeLinecap=Jx("butt");a._strokeOpacity=Jx(1);a._strokeWidth=Jx(0);a._tagName=e;a._textAnchor=Jx("start");a._vectorEffect=Jx("non-scaling-stroke");a._verticalAlign=Jx("top");a._x=Ih("x",0);a._y=Ih("y",0);return a}KA(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=Xl(o._select.node()),a=e.values.map(function(e){return GA(i,n(e,t))});t=a.indexOf(Oe(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(Uh,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(ql(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)ql(this).call(a._applyStyle.bind(a));else ql(this).call(a._updateStyle.bind(a,ql(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(ql(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)ql(this).call(a._applyStyle.bind(a));else ql(this).call(a._updateStyle.bind(a,ql(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(Qx("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(Qx("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(Zx.bind(this)(this._labelConfig)).render()}},{key:"render",value:function e(t){var n=this;if(this._select===void 0){this.select(ql("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=yh().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)})}$l("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=Qx("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var r=this._update=Qx("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(fA(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=Qx("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=Qx("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($E["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(fA(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)?ql(this).call(Uh,n):ql(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=Gh({},this._activeStyle,t),this):this._activeStyle}},{key:"ariaLabel",value:function e(t){return t!==undefined?(this._ariaLabel=typeof t==="function"?t:Jx(t),this):this._ariaLabel}},{key:"backgroundImage",value:function e(t){return arguments.length?(this._backgroundImage=typeof t==="function"?t:Jx(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:Jx(t),this):this._fill}},{key:"fillOpacity",value:function e(t){return arguments.length?(this._fillOpacity=typeof t==="function"?t:Jx(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=Gh({},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:Jx(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:Jx(t),this):this._label}},{key:"labelBounds",value:function e(t){return arguments.length?(this._labelBounds=typeof t==="function"?t:Jx(t),this):this._labelBounds}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=Gh(this._labelConfig,t),this):this._labelConfig}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Jx(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Jx(t),this):this._pointerEvents}},{key:"role",value:function e(t){return t!==undefined?(this._role=typeof t==="function"?t:Jx(t),this):this._role}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Jx(t),this):this._rotate}},{key:"rx",value:function e(t){return arguments.length?(this._rx=typeof t==="function"?t:Jx(t),this):this._rx}},{key:"ry",value:function e(t){return arguments.length?(this._ry=typeof t==="function"?t:Jx(t),this):this._ry}},{key:"scale",value:function e(t){return arguments.length?(this._scale=typeof t==="function"?t:Jx(t),this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=ql(t),this):this._select}},{key:"shapeRendering",value:function e(t){return arguments.length?(this._shapeRendering=typeof t==="function"?t:Jx(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:Jx(t),this):this._stroke}},{key:"strokeDasharray",value:function e(t){return arguments.length?(this._strokeDasharray=typeof t==="function"?t:Jx(t),this):this._strokeDasharray}},{key:"strokeLinecap",value:function e(t){return arguments.length?(this._strokeLinecap=typeof t==="function"?t:Jx(t),this):this._strokeLinecap}},{key:"strokeOpacity",value:function e(t){return arguments.length?(this._strokeOpacity=typeof t==="function"?t:Jx(t),this):this._strokeOpacity}},{key:"strokeWidth",value:function e(t){return arguments.length?(this._strokeWidth=typeof t==="function"?t:Jx(t),this):this._strokeWidth}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Jx(t),this):this._textAnchor}},{key:"vectorEffect",value:function e(t){return arguments.length?(this._vectorEffect=typeof t==="function"?t:Jx(t),this):this._vectorEffect}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Jx(t),this):this._verticalAlign}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Jx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Jx(t),this):this._y}}]);return n}(Yx);function nR(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 iR(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 aR(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=nR(i,o);n.push(s.left);i=s.right}n.push(i);return n}function rR(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 aR(i,n).map(iR)}var oR=/[MLCSTQAHVmlcstqahv]|-?[\d.e+-]+/g;var sR={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(sR).forEach(function(e){sR[e.toLowerCase()]=sR[e]});function lR(e,t){var n=Array(e);for(var i=0;i<e;i++){n[i]=t}return n}function uR(t){return"".concat(t.type).concat(sR[t.type].map(function(e){return t[e]}).join(","))}function hR(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 cR(e,t,n){var i=[];if(t.type==="L"||t.type==="Q"||t.type==="C"){i=i.concat(rR(e,t,n))}else{var a=Object.assign({},e);if(a.type==="M"){a.type="L"}i=i.concat(lR(n-1).map(function(){return a}));i.push(t)}return i}function fR(r,e,o){var t=r.length-1;var n=e.length-1;var s=t/n;var i=lR(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=lR(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(cR(r[n],r[n+1],t))},[]);a.unshift(r[0]);return a}function dR(e){var t=(e||"").match(oR)||[];var n=[];var i;var a;for(var r=0;r<t.length;++r){i=sR[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 gR(e,d,t){var g=dR(e);var p=dR(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=fR(g,p,t)}else if(p.length<g.length){p=fR(p,g,t)}}g=g.map(function(e,t){return hR(e,p[t])});var v=g.map(function(e){return s({},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=k(sR[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=k(v),c;try{for(h.s();!(c=h.n()).done;){var f=c.value;u+=uR(f)}}catch(e){h.e(e)}finally{h.f()}if(m){u+="Z"}return u}}function pR(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 vR(e,t){return wR(e)||bR(e,t)||yR(e,t)||mR()}function mR(){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 yR(e,t){if(!e)return;if(typeof e==="string")return _R(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 _R(e,t)}function _R(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 bR(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 wR(e){if(Array.isArray(e))return e}function xR(e,t,n){var i=1e-9,a=vR(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 kR(e,t,n,i){var a=pR(e,t,n,i);if(!a)return false;return xR(e,t,a)&&xR(n,i,a)}function SR(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(kR(o,r,u,l))return false}}return dt(t,e[0])}function CR(e,t){return TR(e)||MR(e,t)||AR(e,t)||ER()}function ER(){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 AR(e,t){if(!e)return;if(typeof e==="string")return RR(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 RR(e,t)}function RR(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 MR(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 TR(e){if(Array.isArray(e))return e}function BR(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=CR(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=pR(t,l,m,f);if(y&&xR(m,f,y)){var _=VA(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 NR(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 DR=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return e.map(function(e){return NR(e,t,n)})};function PR(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 OR(e,t){var n,i=e[0];var a=[i];for(var r=1,o=e.length;r<o;r++){n=e[r];if(VA(n,i)>t){a.push(n);i=n}}if(i!==n)a.push(n);return a}function zR(e,t,n,i,a){var r,o=i;for(var s=t+1;s<n;s++){var l=PR(e[s],e[t],e[n]);if(l>o){r=s;o=l}}if(o>i){if(r-t>1)zR(e,t,r,i,a);a.push(e[r]);if(n-r>1)zR(e,r,n,i,a)}}function LR(e,t){var n=e.length-1;var i=[e[0]];zR(e,0,n,t,i);i.push(e[n]);return i}var FR=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(e.length<=2)return e;var i=t*t;e=n?e:OR(e,i);e=LR(e,i);return e};function IR(e,t){return UR(e)||GR(e,t)||HR(e,t)||jR()}function jR(){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 HR(e,t){if(!e)return;if(typeof e==="string")return VR(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 VR(e,t)}function VR(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 GR(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 UR(e){if(Array.isArray(e))return e}var WR=.5;var qR=5;var KR={};function YR(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:Ne(-90,90+qR,qR),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=Pe(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(KR[o])return KR[o]}var s=Math.abs(st(e));if(s===0){if(t.verbose)console.error("polygon has 0 area",e);return null}var l=Be(e,function(e){return e[0]}),u=IR(l,2),h=u[0],c=u[1];var f=Be(e,function(e){return e[1]}),d=IR(f,2),g=d[0],p=d[1];var v=Math.min(c-h,p-g)*t.tolerance;if(v>0)e=FR(e,v);if(t.events)n.push({type:"simplify",poly:e});var m=Be(e,function(e){return e[0]});var y=IR(m,2);h=y[0];c=y[1];var _=Be(e,function(e){return e[1]});var b=IR(_,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=lt(e);if(!isFinite(S[0])){if(t.verbose)console.error("cannot find centroid",e);return null}if(dt(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(dt(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 D=-N*Math.PI/180;if(t.events)n.push({type:"angle",angle:N});for(var P=0;P<r.length;P++){var O=r[P];var z=BR(e,O,D),L=IR(z,2),F=L[0],I=L[1];var j=BR(e,O,D+Math.PI/2),H=IR(j,2),V=H[0],G=H[1];var U=[];if(F&&I)U.push([(F[0]+I[0])/2,(F[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:P,p1W:F,p2W:I,p1H:V,p2H:G,modifOrigins:U});for(var W=0;W<U.length;W++){var q=U[W];if(t.events)n.push({type:"origin",cx:q[0],cy:q[1]});var K=BR(e,q,D),Y=IR(K,2),X=Y[0],$=Y[1];if(X===null||$===null)continue;var Z=Math.min(VA(q,X),VA(q,$));var J=2*Math.sqrt(Z);var Q=BR(e,q,D+Math.PI/2),ee=IR(Q,2),te=ee[0],ne=ee[1];if(te===null||ne===null)continue;var ie=Math.min(VA(q,te),VA(q,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=Ne(oe,se+WR,WR)}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=IR(q,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=DR(me,D,q);var ye=SR(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){KR[o]=T}return t.events?Object.assign(T||{},{events:n}):T}function XR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){XR=function e(t){return typeof t}}else{XR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return XR(e)}function $R(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ZR(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 JR(e,t,n){if(t)ZR(e.prototype,t);if(n)ZR(e,n);return e}function QR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){QR=Reflect.get}else{QR=function e(t,n,i){var a=eM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return QR(e,t,n||e)}function eM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=sM(e);if(e===null)break}return e}function tM(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)nM(e,t)}function nM(e,t){nM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return nM(e,t)}function iM(a){var r=oM();return function e(){var t=sM(a),n;if(r){var i=sM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return aM(this,n)}}function aM(e,t){if(t&&(XR(t)==="object"||typeof t==="function")){return t}return rM(e)}function rM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function oM(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(e){return false}}function sM(e){sM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return sM(e)}var lM=function(e){tM(r,e);var t=iM(r);function r(){var a;$R(this,r);a=t.call(this);a._curve="linear";a._defined=function(){return true};a._labelBounds=function(e,t,n){var i=YR(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=Ih("x");a._x0=Ih("x");a._x1=null;a._y=Jx(0);a._y0=Jx(0);a._y1=Ih("y");return a}JR(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=Z().key(this._id).entries(i).map(function(e){e.data=tk(e.values);e.i=i.indexOf(e.values[0]);var t=Be(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=Be(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;QR(sM(r.prototype),"render",this).call(this,t);var i=this._path=oC().defined(this._defined).curve($E["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=oC().defined(function(e){return e}).curve($E["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 gR(ql(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 gR(ql(this).attr("d"),i(e.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(e){return gR(ql(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:Jx(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:Jx(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Jx(t),this):this._x1}},{key:"y",value:function e(t){if(!arguments.length)return this._y;this._y=typeof t==="function"?t:Jx(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:Jx(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Jx(t),this):this._y1}}]);return r}(tR);function uM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){uM=function e(t){return typeof t}}else{uM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return uM(e)}function hM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function cM(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 fM(e,t,n){if(t)cM(e.prototype,t);if(n)cM(e,n);return e}function dM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){dM=Reflect.get}else{dM=function e(t,n,i){var a=gM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return dM(e,t,n||e)}function gM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=wM(e);if(e===null)break}return e}function pM(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)vM(e,t)}function vM(e,t){vM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return vM(e,t)}function mM(a){var r=bM();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 yM(this,n)}}function yM(e,t){if(t&&(uM(t)==="object"||typeof t==="function")){return t}return _M(e)}function _M(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function bM(){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 xM=function(e){pM(r,e);var t=mM(r);function r(){var i;hM(this,r);i=t.call(this,"rect");i._name="Bar";i._height=Jx(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=Jx(10);i._x=Ih("x");i._x0=Ih("x");i._x1=null;i._y=Jx(0);i._y0=Jx(0);i._y1=Ih("y");return i}fM(r,[{key:"render",value:function e(t){var n=this;dM(wM(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:Jx(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Jx(t),this):this._width}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Jx(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Jx(t),this):this._x1}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Jx(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Jx(t),this):this._y1}}]);return r}(tR);function kM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){kM=function e(t){return typeof t}}else{kM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return kM(e)}function SM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function CM(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 EM(e,t,n){if(t)CM(e.prototype,t);if(n)CM(e,n);return e}function AM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){AM=Reflect.get}else{AM=function e(t,n,i){var a=RM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return AM(e,t,n||e)}function RM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=OM(e);if(e===null)break}return e}function MM(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)TM(e,t)}function TM(e,t){TM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return TM(e,t)}function BM(a){var r=PM();return function e(){var t=OM(a),n;if(r){var i=OM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return NM(this,n)}}function NM(e,t){if(t&&(kM(t)==="object"||typeof t==="function")){return t}return DM(e)}function DM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function PM(){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 OM(e){OM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return OM(e)}var zM=function(e){MM(a,e);var t=BM(a);function a(){var e;SM(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=Gh(e._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});e._name="Circle";e._r=Ih("r");return e}EM(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){AM(OM(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:Jx(t),this):this._r}}]);return a}(tR);function LM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){LM=function e(t){return typeof t}}else{LM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return LM(e)}function FM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function IM(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 jM(e,t,n){if(t)IM(e.prototype,t);if(n)IM(e,n);return e}function HM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){HM=Reflect.get}else{HM=function e(t,n,i){var a=VM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return HM(e,t,n||e)}function VM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=XM(e);if(e===null)break}return e}function GM(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)UM(e,t)}function UM(e,t){UM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return UM(e,t)}function WM(a){var r=YM();return function e(){var t=XM(a),n;if(r){var i=XM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return qM(this,n)}}function qM(e,t){if(t&&(LM(t)==="object"||typeof t==="function")){return t}return KM(e)}function KM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function YM(){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 XM(e){XM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return XM(e)}var $M=function(e){GM(a,e);var t=WM(a);function a(){var e;FM(this,a);e=t.call(this,"rect");e._height=Ih("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=Ih("width");return e}jM(a,[{key:"render",value:function e(t){HM(XM(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:Jx(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Jx(t),this):this._width}}]);return a}(tR);function ZM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ZM=function e(t){return typeof t}}else{ZM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ZM(e)}function JM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function QM(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)QM(e.prototype,t);if(n)QM(e,n);return e}function tT(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){tT=Reflect.get}else{tT=function e(t,n,i){var a=nT(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return tT(e,t,n||e)}function nT(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=uT(e);if(e===null)break}return e}function iT(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)aT(e,t)}function aT(e,t){aT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return aT(e,t)}function rT(a){var r=lT();return function e(){var t=uT(a),n;if(r){var i=uT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return oT(this,n)}}function oT(e,t){if(t&&(ZM(t)==="object"||typeof t==="function")){return t}return sT(e)}function sT(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function lT(){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 uT(e){uT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return uT(e)}var hT=function(e){iT(s,e);var t=rT(s);function s(){var n;JM(this,s);n=t.call(this);n._curve="linear";n._defined=function(e){return e};n._fill=Jx("none");n._hitArea=Jx({d:function e(t){return n._path(t.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=rC();n._stroke=Jx("black");n._strokeWidth=Jx(1);return n}eT(s,[{key:"_dataFilter",value:function e(i){var a=this;var t=Z().key(this._id).entries(i).map(function(e){e.data=tk(e.values);e.i=i.indexOf(e.values[0]);var t=Be(e.values,a._x);e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Be(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;tT(uT(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($E["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 gR(ql(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}(tR);function cT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cT=function e(t){return typeof t}}else{cT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cT(e)}function fT(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function dT(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 gT(e,t,n){if(t)dT(e.prototype,t);if(n)dT(e,n);return e}function pT(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)vT(e,t)}function vT(e,t){vT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return vT(e,t)}function mT(a){var r=bT();return function e(){var t=wT(a),n;if(r){var i=wT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return yT(this,n)}}function yT(e,t){if(t&&(cT(t)==="object"||typeof t==="function")){return t}return _T(e)}function _T(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function bT(){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 wT(e){wT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return wT(e)}var xT={Circle:zM,Rect:$M};var kT=function(e){pT(n,e);var t=mT(n);function n(){var e;fT(this,n);e=t.call(this);e._endpoint=Ih("endpoint","Rect");e._endpointConfig={Circle:{r:Ih("r",5)}};e._length=Ih("length",25);e._lineConfig={};e._orient=Ih("orient","top");e._x=Ih("x",0);e._y=Ih("y",0);return e}gT(n,[{key:"render",value:function e(t){var s=this;if(this._select===void 0){this.select(ql("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 hT).data(l).select(Qx("g.d3plus-Whisker",{parent:this._select}).node()).config(Zx.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=[];Z().key(function(e){return e.endpoint}).entries(n).forEach(function(e){var t=e.key;s._whiskerEndpoint.push((new xT[t]).data(e.values).select(Qx("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(Zx.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:Jx(t),this):this._endpoint}},{key:"endpointConfig",value:function e(t){return arguments.length?(this._endpointConfig=Gh(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:Jx(t),this):this._length}},{key:"lineConfig",value:function e(t){return arguments.length?(this._lineConfig=Gh(this._lineConfig,t),this):this._lineConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Jx(t),this):this._orient}},{key:"select",value:function e(t){return arguments.length?(this._select=ql(t),this):this._select}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Jx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Jx(t),this):this._y}}]);return n}(Yx);function ST(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ST=function e(t){return typeof t}}else{ST=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ST(e)}function CT(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ET(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 AT(e,t,n){if(t)ET(e.prototype,t);if(n)ET(e,n);return e}function RT(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)MT(e,t)}function MT(e,t){MT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return MT(e,t)}function TT(a){var r=DT();return function e(){var t=PT(a),n;if(r){var i=PT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return BT(this,n)}}function BT(e,t){if(t&&(ST(t)==="object"||typeof t==="function")){return t}return NT(e)}function NT(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 PT(e){PT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return PT(e)}var OT={Circle:zM,Rect:$M};var zT=function(e){RT(n,e);var t=TT(n);function n(){var i;CT(this,n);i=t.call(this);i._medianConfig={fill:Jx("black")};i._orient=Ih("orient","vertical");i._outlier=Ih("outlier","Circle");i._outlierConfig={Circle:{r:Ih("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:Jx("white"),stroke:Jx("black"),strokeWidth:Jx(1)};i._rectWidth=Jx(50);i._whiskerConfig={};i._whiskerMode=["tukey","tukey"];i._x=Ih("x",250);i._y=Ih("y",250);return i}AT(n,[{key:"render",value:function e(){var r=this;if(this._select===void 0){this.select(ql("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var t=Z().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=tk(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=De(e,.25);a.median=De(e,.5);a.third=De(e,.75);var t=r._whiskerMode;if(t[0]==="tukey"){a.lowerLimit=a.first-(a.third-a.first)*1.5;if(a.lowerLimit<Oe(e))a.lowerLimit=Oe(e)}else if(t[0]==="extent")a.lowerLimit=Oe(e);else if(typeof t[0]==="number")a.lowerLimit=De(e,t[0]);if(t[1]==="tukey"){a.upperLimit=a.third+(a.third-a.first)*1.5;if(a.upperLimit>ve(e))a.upperLimit=ve(e)}else if(t[1]==="extent")a.upperLimit=ve(e);else if(typeof t[1]==="number")a.upperLimit=De(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 $M).data(t).x(function(e){return e.x}).y(function(e){return e.y}).select(Qx("g.d3plus-Box",{parent:this._select}).node()).config(Zx.bind(this)(this._rectConfig,"shape")).render();this._median=(new $M).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(Qx("g.d3plus-Box-Median",{parent:this._select}).node()).config(Zx.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 kT).data(h).select(Qx("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(Zx.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];Z().key(function(e){return e.outlier}).entries(o).forEach(function(e){var t=e.key;r._whiskerEndpoint.push((new OT[t]).data(e.values).select(Qx("g.d3plus-Box-Outlier-".concat(t),{parent:r._select}).node()).config(Zx.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=Gh(this._medianConfig,t),this):this._medianConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Jx(t),this):this._orient}},{key:"outlier",value:function e(t){return arguments.length?(this._outlier=typeof t==="function"?t:Jx(t),this):this._outlier}},{key:"outlierConfig",value:function e(t){return arguments.length?(this._outlierConfig=Gh(this._outlierConfig,t),this):this._outlierConfig}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=Gh(this._rectConfig,t),this):this._rectConfig}},{key:"rectWidth",value:function e(t){return arguments.length?(this._rectWidth=typeof t==="function"?t:Jx(t),this):this._rectWidth}},{key:"select",value:function e(t){return arguments.length?(this._select=ql(t),this):this._select}},{key:"whiskerConfig",value:function e(t){return arguments.length?(this._whiskerConfig=Gh(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:Ih(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Ih(t),this):this._y}}]);return n}(Yx);var LT=Math.PI;var FT=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(e<0)e=LT*2+e;if(n==="square"){var i=45*(LT/180);var a=0,r=0;if(e<LT/2){var o=Math.tan(e);a+=e<i?t:t/o;r+=e<i?o*t:t}else if(e<=LT){var s=Math.tan(LT-e);a-=e<LT-i?t/s:t;r+=e<LT-i?t:s*t}else if(e<i+LT){a-=t;r-=Math.tan(e-LT)*t}else if(e<3*LT/2){a-=t/Math.tan(e-LT);r-=t}else if(e<2*LT-i){a+=t/Math.tan(2*LT-e);r-=t}else{a+=t;r-=Math.tan(2*LT-e)*t}return[a,r]}else if(n==="circle"){return[t*Math.cos(e),t*Math.sin(e)]}else return null};var IT=Math.PI;var jT=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var n=[],i=/([MLA])([^MLAZ]+)/gi;var a=i.exec(e);while(a!==null){if(["M","L"].includes(a[1]))n.push(a[2].split(",").map(Number));else if(a[1]==="A"){var r=a[2].split(",").map(Number);var o=r.slice(r.length-2,r.length),s=n[n.length-1],l=r[0],u=GA(s,o);var h=Math.acos((l*l+l*l-u*u)/(2*l*l));if(r[2])h=IT*2-h;var c=h/(h/(IT*2)*(l*IT*2)/t);var f=Math.atan2(-s[1],-s[0])-IT;var d=c;while(d<h){n.push(FT(r[4]?f+d:f-d,l));d+=c}n.push(o)}a=i.exec(e)}return n};function HT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HT=function e(t){return typeof t}}else{HT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return HT(e)}function VT(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function GT(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)GT(e.prototype,t);if(n)GT(e,n);return e}function WT(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){WT=Reflect.get}else{WT=function e(t,n,i){var a=qT(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return WT(e,t,n||e)}function qT(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=QT(e);if(e===null)break}return e}function KT(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)YT(e,t)}function YT(e,t){YT=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return YT(e,t)}function XT(a){var r=JT();return function e(){var t=QT(a),n;if(r){var i=QT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return $T(this,n)}}function $T(e,t){if(t&&(HT(t)==="object"||typeof t==="function")){return t}return ZT(e)}function ZT(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function JT(){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 QT(e){QT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return QT(e)}var eB=function(e){KT(r,e);var t=XT(r);function r(){var a;VT(this,r);a=t.call(this,"path");a._d=Ih("path");a._labelBounds=function(e,t,n){var i=YR(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}UT(r,[{key:"_aes",value:function e(t,n){return{points:jT(this._d(t,n))}}},{key:"render",value:function e(t){WT(QT(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:Jx(t),this):this._d}}]);return r}(tR);var tB=Object.freeze({__proto__:null,Image:lk,Shape:tR,Area:lM,Bar:xM,Box:zT,Circle:zM,Line:hT,Path:eB,Rect:$M,Whisker:kT,largestRect:YR,lineIntersection:pR,path2polygon:jT,pointDistance:GA,pointDistanceSquared:VA,pointRotate:NR,polygonInside:SR,polygonRayCast:BR,polygonRotate:DR,segmentBoxContains:xR,segmentsIntersect:kR,shapeEdgePoint:FT,simplify:FR});var nB=function(e){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return e.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)},[])};var iB=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return e[t].map(function(i){return e[n].reduce(function(e,t,n){return e[t]=i[n],e},{})})};function aB(a,e){var r,o=ke("beforesend","progress","load","error"),s,l=N(),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&&oB(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=rB(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 rB(n){return function(e,t){n(e==null?t:null)}}function oB(e){var t=e.responseType;return t&&t!=="text"?e.response:e.responseText}function sB(i,a){return function(e,t){var n=aB(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 lB=sB("application/json",function(e){return JSON.parse(e.responseText)});var uB=sB("text/plain",function(e){return e.responseText});var hB={},cB={},fB=34,dB=10,gB=13;function pB(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function vB(n,i){var a=pB(n);return function(e,t){return i(a(e),t,n)}}function mB(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 yB(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function _B(e){return e<0?"-"+yB(-e,6):e>9999?"+"+yB(e,6):yB(e,4)}function bB(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":_B(e.getUTCFullYear())+"-"+yB(e.getUTCMonth()+1,2)+"-"+yB(e.getUTCDate(),2)+(a?"T"+yB(t,2)+":"+yB(n,2)+":"+yB(i,2)+"."+yB(a,3)+"Z":i?"T"+yB(t,2)+":"+yB(n,2)+":"+yB(i,2)+"Z":n||t?"T"+yB(t,2)+":"+yB(n,2)+"Z":"")}function wB(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?vB(e,n):pB(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)===dB)--a;if(i.charCodeAt(a-1)===gB)--a;function u(){if(s)return cB;if(l)return l=false,hB;var e,t=r,n;if(i.charCodeAt(t)===fB){while(r++<a&&i.charCodeAt(r)!==fB||i.charCodeAt(++r)===fB){}if((e=r)>=a)s=true;else if((n=i.charCodeAt(r++))===dB)l=true;else if(n===gB){l=true;if(i.charCodeAt(r)===dB)++r}return i.slice(t+1,e-1).replace(/""/g,'"')}while(r<a){if((n=i.charCodeAt(e=r++))===dB)l=true;else if(n===gB){l=true;if(i.charCodeAt(r)===dB)++r}else if(n!==c)continue;return i.slice(t,e)}return s=true,i.slice(t,a)}while((o=u())!==cB){var h=[];while(o!==hB&&o!==cB){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=mB(e);return[t.map(u).join(i)].concat(n(e,t)).join("\n")}function o(e,t){if(t==null)t=mB(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?bB(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:e,parseRows:r,format:a,formatBody:o,formatRows:s,formatRow:l,formatValue:u}}var xB=wB(",");var kB=xB.parse;var SB=wB("\t");var CB=SB.parse;function EB(a,r){return function(e,t,n){if(arguments.length<3)n=t,t=null;var i=aB(e).mimeType(a);i.row=function(e){return arguments.length?i.response(AB(r,t=e)):t};i.row(t);return n?i.get(n):i}}function AB(t,n){return function(e){return t(e.responseText,n)}}var RB=EB("text/csv",kB);var MB=EB("text/tab-separated-values",CB);function TB(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){TB=function e(t){return typeof t}}else{TB=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return TB(e)}function BB(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 RB;case".tsv":return MB;case".txt":return uB;default:return lB}};var f=function e(t,n,i){if(n!==lB&&!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 n=function e(t){return typeof t==="string"||TB(t)==="object"&&t.url&&t.headers};var e=r.find(n);var p=new Array(r.length);var v=[];if(e){r.forEach(function(e,t){if(n(e))v.push(e);else p[t]=e})}else{p[0]=r}var m=d(p);v.forEach(function(e){var t={},n=e;if(TB(e)==="object"){n=e.url;t=e.headers}h=c(n);var i=h(n);for(var a in t){if({}.hasOwnProperty.call(t,a)){i.header(a,t[a])}}i.get(function(e,t){t=e?[]:t;if(t&&!(t instanceof Array)&&t.data&&t.headers)t=iB(t);t=f(e,h,t);p[g(n,r)]=t;if(d(p)-m===v.length){t=d(p)===1?p[0]:p;if(u._cache)u._lrucache.set("".concat(s,"_").concat(n),t);if(o){t=o(d(p)===1?p[0]:p)}else if(s==="data"){t=nB(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=iB(e);return e});var t=d(p)===1?p[0]:p;if(o){t=o(d(p)===1?p[0]:p)}else if(s==="data"){t=nB(p,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=t;if(l)l(null,t)}}function NB(e){return function(){return e}}function DB(e,t,n){this.target=e;this.type=t;this.selection=n}function PB(){Tl.stopImmediatePropagation()}function OB(){Tl.preventDefault();Tl.stopImmediatePropagation()}var zB={name:"drag"},LB={name:"space"},FB={name:"handle"},IB={name:"center"};function jB(e){return[+e[0],+e[1]]}function HB(e){return[jB(e[0]),jB(e[1])]}function VB(t){return function(e){return Zl(e,Tl.touches,t)}}var GB={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 UB={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 WB={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(ZB),input:function e(t){return t==null?null:HB(t)},output:function e(t){return t}};var qB={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 KB={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var YB={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var XB={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var $B={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 JB(){return!Tl.ctrlKey&&!Tl.button}function QB(){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 eN(){return navigator.maxTouchPoints||"ontouchstart"in this}function tN(e){while(!e.__brush){if(!(e=e.parentNode))return}return e.__brush}function nN(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function iN(){return rN(GB)}function aN(){return rN(WB)}function rN(F){var t=QB,I=JB,i=eN,j=true,n=ke("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",qB.overlay).merge(t).each(function(){var e=tN(this).extent;ql(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",qB.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=e.selectAll(".handle").data(F.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 qB[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=F.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),r=qn(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=F.input(typeof s==="function"?s.apply(e,t):s,n.extent),a=G(e,t).beforestart();pu(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=ql(this),t=tN(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){Fl(new DB(r,t,F.output(this.state.selection)),n.apply,n,[t,this.that,this.args])}};function s(){if(H&&!Tl.touches)return;if(!I.apply(this,arguments))return;var t=this,n=Tl.target.__data__.type,i=(j&&Tl.metaKey?n="overlay":n)==="selection"?zB:j&&Tl.altKey?IB:FB,a=F===UB?null:XB[n],r=F===GB?null:$B[n],o=tN(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&&Tl.shiftKey,S,C,E=Tl.touches?VB(Tl.changedTouches[0].identifier):Xl,A=E(t),R=A,M=G(t,arguments,true).beforestart();if(n==="overlay"){if(s)x=true;o.selection=s=[[u=F===UB?l:A[0],f=F===GB?c:A[1]],[p=F===UB?g:u,y=F===GB?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=ql(t).attr("pointer-events","none");var B=T.selectAll(".overlay").attr("cursor",qB[n]);if(Tl.touches){M.moved=D;M.ended=O}else{var N=ql(Tl.view).on("mousemove.brush",D,true).on("mouseup.brush",O,true);if(j)N.on("keydown.brush",z,true).on("keyup.brush",L,true);Ql(Tl.view)}PB();pu(t);V.call(t);M.start();function D(){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;OB();P()}function P(){var e;b=R[0]-A[0];w=R[1]-A[1];switch(i){case LB:case zB:{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 FB:{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 IB:{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 KB)B.attr("cursor",qB[n=KB[n]])}if(_<d){r*=-1;e=f,f=y,y=e;e=d,d=_,_=e;if(n in YB)B.attr("cursor",qB[n=YB[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(){PB();if(Tl.touches){if(Tl.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{eu(Tl.view,x);N.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}T.attr("pointer-events","all");B.attr("cursor",qB.overlay);if(o.selection)s=o.selection;if(nN(s))o.selection=null,V.call(t);M.end()}function z(){switch(Tl.keyCode){case 16:{k=a&&r;break}case 18:{if(i===FB){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=IB;P()}break}case 32:{if(i===FB||i===IB){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=LB;B.attr("cursor",qB.selection);P()}break}default:return}OB()}function L(){switch(Tl.keyCode){case 16:{if(k){S=C=k=false;P()}break}case 18:{if(i===IB){if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=FB;P()}break}case 32:{if(i===LB){if(Tl.altKey){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=IB}else{if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=FB}B.attr("cursor",qB[n]);P()}break}default:return}OB()}}function l(){G(this,arguments).moved()}function u(){G(this,arguments).ended()}function h(){var e=this.__brush||{selection:null};e.extent=HB(t.apply(this,arguments));e.dim=F;return e}r.extent=function(e){return arguments.length?(t=typeof e==="function"?e:NB(HB(e)),r):t};r.filter=function(e){return arguments.length?(I=typeof e==="function"?e:NB(!!e),r):I};r.touchable=function(e){return arguments.length?(i=typeof e==="function"?e:NB(!!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 oN(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function sN(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function lN(){}var uN=.7;var hN=1/uN;var cN="\\s*([+-]?\\d+)\\s*",fN="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",dN="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gN=/^#([0-9a-f]{3,8})$/,pN=new RegExp("^rgb\\("+[cN,cN,cN]+"\\)$"),vN=new RegExp("^rgb\\("+[dN,dN,dN]+"\\)$"),mN=new RegExp("^rgba\\("+[cN,cN,cN,fN]+"\\)$"),yN=new RegExp("^rgba\\("+[dN,dN,dN,fN]+"\\)$"),_N=new RegExp("^hsl\\("+[fN,dN,dN]+"\\)$"),bN=new RegExp("^hsla\\("+[fN,dN,dN,fN]+"\\)$");var wN={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};oN(lN,CN,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:xN,formatHex:xN,formatHsl:kN,formatRgb:SN,toString:SN});function xN(){return this.rgb().formatHex()}function kN(){return ON(this).formatHsl()}function SN(){return this.rgb().formatRgb()}function CN(e){var t,n;e=(e+"").trim().toLowerCase();return(t=gN.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?EN(t):n===3?new TN(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?AN(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?AN(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=pN.exec(e))?new TN(t[1],t[2],t[3],1):(t=vN.exec(e))?new TN(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=mN.exec(e))?AN(t[1],t[2],t[3],t[4]):(t=yN.exec(e))?AN(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_N.exec(e))?PN(t[1],t[2]/100,t[3]/100,1):(t=bN.exec(e))?PN(t[1],t[2]/100,t[3]/100,t[4]):wN.hasOwnProperty(e)?EN(wN[e]):e==="transparent"?new TN(NaN,NaN,NaN,0):null}function EN(e){return new TN(e>>16&255,e>>8&255,e&255,1)}function AN(e,t,n,i){if(i<=0)e=t=n=NaN;return new TN(e,t,n,i)}function RN(e){if(!(e instanceof lN))e=CN(e);if(!e)return new TN;e=e.rgb();return new TN(e.r,e.g,e.b,e.opacity)}function MN(e,t,n,i){return arguments.length===1?RN(e):new TN(e,t,n,i==null?1:i)}function TN(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}oN(TN,MN,sN(lN,{brighter:function e(t){t=t==null?hN:Math.pow(hN,t);return new TN(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?uN:Math.pow(uN,t);return new TN(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:BN,formatHex:BN,formatRgb:NN,toString:NN}));function BN(){return"#"+DN(this.r)+DN(this.g)+DN(this.b)}function NN(){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 DN(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function PN(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 LN(e,t,n,i)}function ON(e){if(e instanceof LN)return new LN(e.h,e.s,e.l,e.opacity);if(!(e instanceof lN))e=CN(e);if(!e)return new LN;if(e instanceof LN)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 LN(o,s,l,e.opacity)}function zN(e,t,n,i){return arguments.length===1?ON(e):new LN(e,t,n,i==null?1:i)}function LN(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}oN(LN,zN,sN(lN,{brighter:function e(t){t=t==null?hN:Math.pow(hN,t);return new LN(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?uN:Math.pow(uN,t);return new LN(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 TN(FN(t>=240?t-240:t+120,r,a),FN(t,r,a),FN(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 FN(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 IN=[].slice;var jN={};function HN(e){this._size=e;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}HN.prototype=KN.prototype={constructor:HN,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=IN.call(arguments,1);n.push(t);++this._waiting,this._tasks.push(n);VN(this);return this},abort:function e(){if(this._error==null)WN(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))};qN(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;qN(this);return this}};function VN(t){if(!t._start){try{GN(t)}catch(e){if(t._tasks[t._ended+t._active-1])WN(t,e);else if(!t._data)throw e}}}function GN(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]=UN(e,t);--e._waiting,++e._active;n=a.apply(null,n);if(!e._tasks[t])continue;e._tasks[t]=n||jN}}function UN(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){WN(n,e)}else{n._data[i]=t;if(n._waiting)VN(n);else qN(n)}}}function WN(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;qN(e)}function qN(e){if(!e._active&&e._call){var t=e._data;e._data=undefined;e._call(e._error,t)}}function KN(e){if(e==null)e=Infinity;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new HN(e)}var YN=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function XN(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function $N(e,t){return t={exports:{}},e(t,t.exports),t.exports}var ZN=$N(function(n){(function(e,t){{n.exports=t()}})((typeof window==="undefined"?"undefined":K(window))==="object"?window:YN,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})});function JN(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 QN(e){return e=JN(Math.abs(e)),e?e[1]:NaN}function eD(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 tD(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var nD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function iD(e){if(!(t=nD.exec(e)))throw new Error("invalid format: "+e);var t;return new aD({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]})}iD.prototype=aD.prototype;function aD(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+""}aD.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 rD(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 oD;function sD(e,t){var n=JN(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(oD=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")+JN(e,Math.max(0,t+r-1))[0]}function lD(e,t){var n=JN(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 uD={"%":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:function e(t){return Math.round(t).toString(10)},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 lD(t*100,n)},r:lD,s:sD,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function hD(e){return e}var cD=Array.prototype.map,fD=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function dD(e){var x=e.grouping===undefined||e.thousands===undefined?hD:eD(cD.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?hD:tD(cD.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=iD(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(!uD[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=uD[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=rD(e);if(o&&+e===0&&c!=="+")o=false;t=(o?c==="("?c:C:c==="-"||c==="("?"":c)+t;n=(m==="s"?fD[8+oD/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=iD(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(QN(t)/3)))*3,a=Math.pow(10,-i),r=fD[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var gD={"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 pD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){pD=function e(t){return typeof t}}else{pD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return pD(e)}var vD=function e(t,n){return parseFloat(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function mD(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:vD(a.scale(e),t),symbol:a.symbol}}function yD(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 _D(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=pD(t)==="object"?t:gD[t]||gD["en-US"],o=r.suffixes.map(yD);var s=r.delimiters.decimal||".",l=r.separator||"",u=r.delimiters.thousands||",";var h=dD({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=mD(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 bD(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 wD={"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 xD(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 kD(e){return AD(e)||ED(e)||CD(e)||SD()}function SD(){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 CD(e,t){if(!e)return;if(typeof e==="string")return RD(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 RD(e,t)}function ED(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function AD(e){if(Array.isArray(e))return RD(e)}function RD(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 MD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){MD=function e(t){return typeof t}}else{MD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return MD(e)}function TD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function BD(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)BD(e.prototype,t);if(n)BD(e,n);return e}function DD(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)PD(e,t)}function PD(e,t){PD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return PD(e,t)}function OD(a){var r=FD();return function e(){var t=ID(a),n;if(r){var i=ID(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return zD(this,n)}}function zD(e,t){if(t&&(MD(t)==="object"||typeof t==="function")){return t}return LD(e)}function LD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function FD(){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 ID(e){ID=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return ID(e)}var jD=function(e){DD(i,e);var t=OD(i);function i(){var n;TD(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 HA).fontFamily(),fontResize:false,fontSize:Jx(10),padding:0,textAnchor:function e(){var t=uA();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 HA;n._titleConfig={fontSize:12,textAnchor:"middle"};n._width=400;return n}ND(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._getDomain(),l=this._margin[o],u=["top","left"].includes(this._orient)?this._outerBounds[r]+this._outerBounds[i]-l:this._outerBounds[r]+l;var h=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding()*-1:0;var c=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding()*-1:0;t.call(Uh,this._barConfig).attr("".concat(a,"1"),this._getPosition(s[0])-h).attr("".concat(a,"2"),this._getPosition(s[s.length-1])+c).attr("".concat(r,"1"),u).attr("".concat(r,"2"),u)}},{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:Be(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]?Be(t).reverse():Be(t)}},{key:"_getTicks",value:function e(){var t=ma().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(Uh,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(ql("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var i=this._timeLocale||wD[this._locale]||wD["en-US"];ko(i).format();var s=_o("%a %d"),l=_o("%I %p"),u=_o(".%L"),h=_o("%I:%M"),c=_o("%b"),f=_o(":%S"),g=_o("%b %d"),p=_o("%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=yh().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(Ta(e)<e?u:Ba(e)<e?f:Na(e)<e?h:Da(e)<e?l:Va(e)<e?Oa(e)<e?s:g:Ga(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=MD(d._locale)==="object"?d._locale:gD[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=_D(r,t,",.".concat(r.toString().length,"r"));return"".concat(o).concat(n).concat(a)}else{return _D(e,d._locale)}};function D(){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=Ne(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=Ne(o).map(function(e){return T[0]+s*(e/(o-1))})}}else if(e===this._range){var l=ma().domain([10,400]).range([10,50]);var u=this._scale==="time"?this._domain.map(bD):this._domain;var h=pe(u[0],u[1],Math.floor(i/l(i)));B=(this._ticks?this._scale==="time"?this._ticks.map(bD):this._ticks:h).slice();M=(this._labels?this._scale==="time"?this._labels.map(bD):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=ts[d]().domain(this._scale==="time"?this._domain.map(bD):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=sa().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(bD):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();M=(this._labels?this._scale==="time"?this._labels.map(bD):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():B).slice();if(this._scale==="log"){var _=M.filter(function(e){return Math.abs(e).toString().charAt(0)==="1"&&(a._d3Scale?e!==-1:e!==1)});if(_.length>2){M=_;B=_}else if(M.length>=10){M=M.filter(function(e){return e%5===0||N(e).substr(-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,kD(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(Xx(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}D.bind(this)();function P(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 Oe([r,s])*2}}if(this._title){var O=this._titleConfig,z=O.fontFamily,L=O.fontSize,F=O.lineHeight;var I=RA().fontFamily(typeof z==="function"?z():z).fontSize(typeof L==="function"?L():L).lineHeight(typeof F==="function"?F():F).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=ve(B.map(H));if(this._shape==="Rect")H/=2;if(typeof V==="function")V=ve(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=Oe([this._maxSize,this._width]);var h=Oe([this._maxSize,this._height]);var c=RA().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(ve(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}G=G.map(function(e){e.rotate=d._labelRotation;e.space=P.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;if(this._rotateLabels){G=G.map(function(e){e.rotate=true;var t=U.bind(d)(e);return Object.assign(e,t)})}var W=[0,0];for(var q=0;q<2;q++){var K=G[q?G.length-1:0];if(!K)break;var Y=K.height,X=K.position,$=K.rotate,Z=K.width;var J=q?C[1]:C[0];var Q=($||!_?Y:Z)/2;var ee=q?X+Q-J:X-Q-J;W[q]=ee}var te=T[0];var ne=T[T.length-1];var ie=[te-W[0],ne-W[1]];if(this._range){if(this._range[0]!==undefined)ie[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)ie[1]=this._range[this._range.length-1]}if(ie[0]!==te||ie[1]!==ne){D.bind(this)(ie);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=P.bind(d)(e);var t=U.bind(d)(e);return Object.assign(t,e)})}var ae=ve(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;if(this._rotateLabels){var re=0;G=G.map(function(e){e.space=P.bind(d)(e,2);var t=U.bind(d)(e);e=Object.assign(e,t);var n=G[e.i-1];if(!n){re=1}else if(n.position+n.height/2>e.position){if(re){e.offset=n.width;re=0}else re=1}return e})}var oe=this._labelOffset?ve(G,function(e){return e.offset||0}):0;G.forEach(function(e){return e.offset=e.offset?oe:0});var se=this._shape==="Line"?0:H;var le=this._outerBounds=(n={},xD(n,v,(ve(G,function(e){return Math.ceil(e[e.rotate||!_?"width":"height"]+e.offset)})||0)+(G.length?x:0)),xD(n,r,C[C.length-1]-C[0]),xD(n,m,C[0]),n);le[v]=ve([this._minSize,le[v]]);R[this._orient]+=H;R[b]=this._gridSize!==undefined?ve([this._gridSize,se]):this["_".concat(v)]-R[this._orient]-le[v]-x;le[v]+=R[b]+R[this._orient];le[y]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(v)]-le[v]-this._padding:this["_".concat(v)]/2-le[v]/2;var ue=Qx("g#d3plus-Axis-".concat(this._uuid),{parent:k});this._group=ue;var he=Qx("g.grid",{parent:ue}).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});he.exit().transition(S).attr("opacity",0).call(this._gridPosition.bind(this)).remove();he.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(he).transition(S).attr("opacity",1).call(this._gridPosition.bind(this));var ce=M.filter(function(e,t){return G[t].lines.length&&!B.includes(e)});var fe=G.some(function(e){return e.rotate});var de=B.concat(ce).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:le.width-R[d._position.opposite]-H-R[d._orient]+x;var u=R[b],h=(H+s)*(w?-1:1),c=w?le[y]+le[v]-u:le[y]+u;var f=(e={id:t,labelBounds:fe&&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-ae:-a/2,width:_?a:l,height:_?ae:a},rotate:n?n.rotate:false,size:M.includes(t)?h:0,text:M.includes(t)?N(t):false,tick:B.includes(t)},xD(e,m,i+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),xD(e,y,c),e);return f});if(this._shape==="Line"){de=de.concat(de.map(function(e){var t=Object.assign({},e);t[y]+=e.size;return t}))}(new tB[this._shape]).data(de).duration(this._duration).labelConfig({ellipsis:function e(t){return t&&t.length?"".concat(t,"..."):""},rotate:function e(t){return t.rotate?-90:0}}).select(Qx("g.ticks",{parent:ue}).node()).config(this._shapeConfig).render();var ge=ue.selectAll("line.bar").data([null]);ge.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(ge).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(Qx("g.d3plus-Axis-title",{parent:ue}).node()).text(function(e){return e.text}).verticalAlign("middle").width(T[T.length-1]-T[0]).x(_?T[0]:this._orient==="left"?le.x+R.left/2-(T[T.length-1]-T[0])/2:le.x+le.width-R.right/2-(T[T.length-1]-T[0])/2).y(_?this._orient==="bottom"?le.y+le.height-R.bottom:le.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=ql(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=Gh(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}(Yx);function HD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HD=function e(t){return typeof t}}else{HD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return HD(e)}function VD(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 UD(e,t,n){if(t)GD(e.prototype,t);if(n)GD(e,n);return e}function WD(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)qD(e,t)}function qD(e,t){qD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return qD(e,t)}function KD(a){var r=$D();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 YD(this,n)}}function YD(e,t){if(t&&(HD(t)==="object"||typeof t==="function")){return t}return XD(e)}function XD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $D(){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 JD=function(e){WD(n,e);var t=KD(n);function n(){var e;VD(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=Ih("text");e._value=Ih("value");return e}UD(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(ql("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(ak,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=ql(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:Jx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Yx);function QD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){QD=function e(t){return typeof t}}else{QD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return QD(e)}function eP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function tP(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 nP(e,t,n){if(t)tP(e.prototype,t);if(n)tP(e,n);return e}function iP(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=lP();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 oP(this,n)}}function oP(e,t){if(t&&(QD(t)==="object"||typeof t==="function")){return t}return sP(e)}function sP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function lP(){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 hP=function(e){iP(n,e);var t=rP(n);function n(){var e;eP(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=Ih("text");e._value=Ih("value");return e}nP(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(ql("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(){ql(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(ak,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);ql(this).classed("active",n).style("cursor",n?"default":"pointer");var i=ql(this.nextSibling).property("checked",n).call(ak,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);ql(this).classed("active",n).style("cursor",n?"default":"pointer");ql(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(ak,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=ql(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:Jx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Yx);function cP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cP=function e(t){return typeof t}}else{cP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cP(e)}function fP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function dP(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 gP(e,t,n){if(t)dP(e.prototype,t);if(n)dP(e,n);return e}function pP(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)vP(e,t)}function vP(e,t){vP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return vP(e,t)}function mP(a){var r=bP();return function e(){var t=wP(a),n;if(r){var i=wP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return yP(this,n)}}function yP(e,t){if(t&&(cP(t)==="object"||typeof t==="function")){return t}return _P(e)}function _P(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 wP(e){wP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return wP(e)}var xP=function(e){pP(n,e);var t=mP(n);function n(){var e;fP(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=Ih("text");e._value=Ih("value");return e}gP(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(ak,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(ak,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(ak,this._labelStyle).html(this._label);return this}},{key:"container",value:function e(t){return arguments.length?(this._container=ql(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:Jx(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Yx);function kP(e){return e.slice().sort(function(e,t){return e-t})}function SP(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 CP(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 EP(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 AP(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=EP(h,s,r,o);if(c+i[n-1][l-1]>=i[n][s])break;var f=EP(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}}AP(e,s-1,n,i,a,r,o);AP(s+1,t,n,i,a,r,o)}function RP(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]=EP(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;AP(h,i-1,u,t,n,r,o)}}function MP(e,t){if(t>e.length){throw new Error("Cannot generate more classes than there are data values")}var n=kP(e);var i=SP(n);if(i===1){return[n]}var a=CP(t,n.length),r=CP(t,n.length);RP(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 TP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){TP=function e(t){return typeof t}}else{TP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return TP(e)}function BP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function NP(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)NP(e.prototype,t);if(n)NP(e,n);return e}function PP(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)OP(e,t)}function OP(e,t){OP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return OP(e,t)}function zP(a){var r=IP();return function e(){var t=jP(a),n;if(r){var i=jP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return LP(this,n)}}function LP(e,t){if(t&&(TP(t)==="object"||typeof t==="function")){return t}return FP(e)}function FP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function IP(){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 jP(e){jP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return jP(e)}var HP=function(e){PP(n,e);var t=zP(n);function n(){var s;BP(this,n);s=t.call(this);s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=Ih("id");s._label=Ih("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=Jx("Rect");s._shapes=[];s._shapeConfig={fill:Ih("color"),height:Jx(10),hitArea:function e(t,n){var i=s._lineData[n],a=ve([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=ve([i.shapeHeight,i.height]);return{width:i.width,height:r,x:a,y:-r/2}},labelConfig:{fontColor:Jx("#444"),fontFamily:(new HA).fontFamily(),fontResize:false,fontSize:Jx(10),verticalAlign:"middle"},opacity:1,r:Jx(5),width:Jx(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+ve(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 HA;s._titleConfig={};s._verticalAlign="middle";s._width=400;return s}DP(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 ve(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(ql("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=Qx("g.d3plus-Legend",{parent:this._select});this._titleGroup=Qx("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=Qx("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=RA().fontFamily(n).fontSize(i).lineHeight(a).width(this._width).height(this._height)(this._title);this._titleHeight=a+r.lines.length+this._padding;this._titleWidth=ve(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,RA().fontFamily(o).fontSize(l).lineHeight(s).width(h).height(u)(n));r.width=Math.ceil(ve(r.lines.map(function(e){return JE(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=ve(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=RA().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(a).height(i)(n.sentence);if(!r.truncated){n.width=Math.ceil(ve(r.lines.map(function(e){return JE(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 ve(e,function(e){return ve([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=ve(h,this._rowWidth.bind(this))}}var g=ve(this._lineData,function(e,t){return ve([e.height,c._fetchConfig("height",e.data,t)])+e.y})+this._titleHeight,p=ve([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=Zx.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 tB[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(Gh({},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:Jx(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=ql(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Jx(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Gh(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=Gh(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}(Yx);function VP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){VP=function e(t){return typeof t}}else{VP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return VP(e)}function GP(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 UP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function WP(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 qP(e,t,n){if(t)WP(e.prototype,t);if(n)WP(e,n);return e}function KP(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)YP(e,t)}function YP(e,t){YP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return YP(e,t)}function XP(a){var r=JP();return function e(){var t=QP(a),n;if(r){var i=QP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return $P(this,n)}}function $P(e,t){if(t&&(VP(t)==="object"||typeof t==="function")){return t}return ZP(e)}function ZP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function JP(){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 QP(e){QP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return QP(e)}var eO=function(e){KP(n,e);var t=XP(n);function n(){var e;UP(this,n);e=t.call(this);e._axisClass=new jD;e._axisConfig={gridSize:0,shapeConfig:{labelConfig:{fontColor:"#222"}},titleConfig:{fontSize:12}};e._axisTest=new jD;e._align="middle";e._buckets=5;e._bucketAxis=false;e._centered=true;e._colorMax="#0C8040";e._colorMid="#f7f7f7";e._colorMin="#b22200";e._data=[];e._duration=600;e._height=200;e._labelClass=new HA;e._legendClass=new HP;e._legendConfig={shapeConfig:{labelConfig:{fontColor:"#222"},stroke:"#444",strokeWidth:1}};e._midpoint=0;e._orient="bottom";e._outerBounds={width:0,height:0,x:0,y:0};e._padding=5;e._rectClass=(new $M).parent(ZP(e));e._rectConfig={stroke:"#444",strokeWidth:1};e._scale="linear";e._size=10;e._value=Ih("value");e._width=400;return e}qP(n,[{key:"render",value:function e(t){var n=this;if(this._select===void 0)this.select(ql("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var i=["bottom","top"].includes(this._orient);var a=i?"height":"width",r=i?"width":"height",o=i?"x":"y",s=i?"y":"x";this._group=Qx("g.d3plus-ColorScale",{parent:this._select});var l=this._data.map(this._value).sort(function(e,t){return e-t});var u=Be(l);var h=u[0]<this._midpoint;var c=u[1]>this._midpoint;var f=h&&c;var d=this._color,g,p;if(d&&!(d instanceof Array)){d=Ne(0,this._buckets,1).map(function(e){return ES(d,(e+1)/n._buckets)}).reverse()}if(this._scale==="jenks"){var v=this._data.map(this._value).filter(function(e){return e!==null&&typeof e==="number"});var m=Oe([d?d.length:this._buckets,v.length]);var y=[];if(f&&this._centered){var _=Math.floor(m/2);var b=m%2;var w=v.filter(function(e){return e<n._midpoint});var x=Te(w);var k=v.concat(this._midpoint).filter(function(e){return e>=n._midpoint});var S=Te(k);var C=x>S?1:0;var E=S>x?1:0;var A=MP(w,_+b*C);var R=MP(k,_+b*E);y=A.concat(R)}else{y=MP(v,m)}p=Pe(y.map(function(e,t){return t===y.length-1?[e[0],e[e.length-1]]:[e[0]]}));var M=new Set(p);if(p.length!==M.size){g=Array.from(M)}if(!d){if(f){d=[this._colorMin,this._colorMid,this._colorMax];var T=p.slice(0,m).filter(function(e,t){return e<n._midpoint&&p[t+1]<=n._midpoint});var B=p.slice(0,m).filter(function(e,t){return e<=n._midpoint&&p[t+1]>n._midpoint});var N=p.slice(0,m).filter(function(e,t){return e>n._midpoint&&p[t+1]>n._midpoint});var D=T.map(function(e,t){return!t?d[0]:ES(d[0],t/T.length)});var P=B.map(function(){return d[1]});var O=N.map(function(e,t){return t===N.length-1?d[2]:ES(d[2],1-(t+1)/N.length)});d=D.concat(P).concat(O)}else{d=Ne(0,this._buckets,1).map(function(e){return ES(n._colorMax,e/n._buckets)}).reverse()}}if(v.length<=m){d=d.slice(m-v.length)}this._colorScale=ba().domain(p).range(["black"].concat(d).concat(d[d.length-1]))}else{var z;if(f&&!d){var L=Math.floor(this._buckets/2);var F=Ne(0,L,1).map(function(e){return!e?n._colorMin:ES(n._colorMin,e/L)});var I=(this._buckets%2?[0]:[]).map(function(){return n._colorMid});var j=Ne(0,L,1).map(function(e){return!e?n._colorMax:ES(n._colorMax,e/L)}).reverse();d=F.concat(I).concat(j);var H=(d.length-1)/2;z=[u[0],this._midpoint,u[1]];z=Ne(u[0],this._midpoint,-(u[0]-this._midpoint)/H).concat(Ne(this._midpoint,u[1],(u[1]-this._midpoint)/H)).concat([u[1]])}else{if(!d){if(this._scale==="buckets"||this._scale==="quantile"){d=Ne(0,this._buckets,1).map(function(e){return ES(h?n._colorMin:n._colorMax,e/n._buckets)});if(c)d=d.reverse()}else{d=h?[this._colorMin,ES(this._colorMin,.8)]:[ES(this._colorMax,.8),this._colorMax]}}if(this._scale==="quantile"){var V=1/(d.length-1);z=Ne(0,1+V/2,V).map(function(e){return De(l,e)})}else if(f&&this._color&&this._centered){var G=(this._midpoint-u[0])/Math.floor(d.length/2);var U=(u[1]-this._midpoint)/Math.floor(d.length/2);var W=Ne(u[0],this._midpoint,G);var q=Ne(this._midpoint,u[1]+U/2,U);z=W.concat(q)}else{var K=(u[1]-u[0])/(d.length-1);z=Ne(u[0],u[1]+K/2,K)}}if(this._scale==="buckets"||this._scale==="quantile"){p=z.concat([z[z.length-1]])}else if(this._scale==="log"){var Y=z.filter(function(e){return e<0});if(Y.length){var X=Y[0];var $=Y.map(function(e){return-Math.pow(Math.abs(X),e/X)});Y.forEach(function(e,t){z[z.indexOf(e)]=$[t]})}var Z=z.filter(function(e){return e>0});if(Z.length){var J=Z[Z.length-1];var Q=Z.map(function(e){return Math.pow(J,e/J)});Z.forEach(function(e,t){z[z.indexOf(e)]=Q[t]})}if(z.includes(0))z[z.indexOf(0)]=1}this._colorScale=Xi().domain(z).range(d)}var ee=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var te=yh().duration(this._duration);var ne={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:te,update:{opacity:1}};var ie=Qx("g.d3plus-ColorScale-labels",Object.assign({condition:ee},ne));var ae=Qx("g.d3plus-ColorScale-Rect",Object.assign({condition:ee},ne));var re=Qx("g.d3plus-ColorScale-legend",Object.assign({condition:!ee},ne));if(ee){var oe;var se={x:0,y:0};var le=Gh({domain:i?u:u.reverse(),duration:this._duration,height:this._height,labels:g||p,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:p,width:this._width},this._axisConfig);var ue=Gh({height:this["_".concat(a)]/2,width:this["_".concat(r)]/2},this._labelConfig||this._axisConfig.titleConfig);this._labelClass.config(ue);var he=[];if(i&&this._labelMin){var ce={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(ce["font-family"]instanceof Array)ce["font-family"]=ce["font-family"][0];var fe=JE(this._labelMin,ce);if(fe&&fe<this["_".concat(r)]/2){he.push(this._labelMin);fe+=this._padding;if(i)se.x+=fe;le[r]-=fe}}if(i&&this._labelMax){var de={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(de["font-family"]instanceof Array)de["font-family"]=de["font-family"][0];var ge=JE(this._labelMax,de);if(ge&&ge<this["_".concat(r)]/2){he.push(this._labelMax);ge+=this._padding;if(!i)se.y+=ge;le[r]-=ge}}this._axisTest.select(Qx("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(le).duration(0).render();var pe=this._axisTest.outerBounds();this._outerBounds[r]=this["_".concat(r)]-this._padding*2;this._outerBounds[a]=pe[a]+this._size;this._outerBounds[o]=this._padding;this._outerBounds[s]=this._padding;if(this._align==="middle")this._outerBounds[s]=(this["_".concat(a)]-this._outerBounds[a])/2;else if(this._align==="end")this._outerBounds[s]=this["_".concat(a)]-this._padding-this._outerBounds[a];var ve=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(le.padding||this._axisClass.padding());var me="translate(".concat(se.x+(i?0:ve),", ").concat(se.y+(i?ve:0),")");this._axisClass.select(Qx("g.d3plus-ColorScale-axis",Gh(ne,{condition:true,enter:{transform:me},update:{transform:me}})).node()).config(le).align("start").render();var ye=this._axisTest._getPosition.bind(this._axisTest);var _e=this._axisTest._getRange();var be=this._group.selectAll("defs").data([0]);var we=be.enter().append("defs");we.append("linearGradient").attr("id","gradient-".concat(this._uuid));be=we.merge(be);be.select("linearGradient").attr("".concat(o,"1"),i?"0%":"100%").attr("".concat(o,"2"),i?"100%":"0%").attr("".concat(s,"1"),"0%").attr("".concat(s,"2"),"0%");var xe=be.select("linearGradient").selectAll("stop").data(i?d:d);var ke=this._colorScale.domain();var Se=Xi().domain(_e).range(i?[0,100]:[100,0]);xe.enter().append("stop").merge(xe).attr("offset",function(e,t){return"".concat(Se(ye(ke[t])),"%")}).attr("stop-color",String);var Ce=function e(t,n){var i=Math.abs(ye(p[n+1])-ye(t));return i||2};var Ee=Gh((oe={duration:this._duration,fill:p?function(e){return n._colorScale(e)}:"url(#gradient-".concat(this._uuid,")")},GP(oe,o,p?function(e,t){return ye(e)+Ce(e,t)/2-(["left","right"].includes(n._orient)?Ce(e,t):0)}:_e[0]+(_e[1]-_e[0])/2+se[o]),GP(oe,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?pe[a]:0)+this._size/2+se[s]),GP(oe,r,p?Ce:_e[1]-_e[0]),GP(oe,a,this._size),oe),this._rectConfig);this._rectClass.data(p?p.slice(0,p.length-1):[0]).id(function(e,t){return t}).select(ae.node()).config(Ee).render();ue.height=this._outerBounds[a];ue.width=this._outerBounds[r];this._labelClass.config(ue).data(he).select(ie.node()).x(function(e){return e===n._labelMax?Ee.x+Ee.width/2+n._padding:n._outerBounds.x}).y(function(e){return Ee.y-n._labelClass.fontSize()(e)/2}).text(function(e){return e}).rotate(i?0:this._orient==="right"?90:-90).render()}else{Qx("g.d3plus-ColorScale-axis",Object.assign({condition:ee},ne));var Ae=this._axisConfig.tickFormat?this._axisConfig.tickFormat:_D;var Re=p.reduce(function(e,t,n){if(n!==p.length-1){var i=p[n+1];e.push({color:d[n],id:t===i?"".concat(Ae(t),"+"):"".concat(Ae(t)," - ").concat(Ae(i))})}return e},[]);var Me=Gh({align:i?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:i?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:Gh({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:i?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Re).select(re.node()).config(Me).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=Gh(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:"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:"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=Gh(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=Gh(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=ql(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:Jx(t),this):this._value}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return n}(Yx);function tO(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){tO=function e(t){return typeof t}}else{tO=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return tO(e)}function nO(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function iO(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 aO(e,t,n){if(t)iO(e.prototype,t);if(n)iO(e,n);return e}function rO(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){rO=Reflect.get}else{rO=function e(t,n,i){var a=oO(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return rO(e,t,n||e)}function oO(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=dO(e);if(e===null)break}return e}function sO(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)lO(e,t)}function lO(e,t){lO=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return lO(e,t)}function uO(a){var r=fO();return function e(){var t=dO(a),n;if(r){var i=dO(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return hO(this,n)}}function hO(e,t){if(t&&(tO(t)==="object"||typeof t==="function")){return t}return cO(e)}function cO(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function fO(){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 dO(e){dO=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return dO(e)}var gO=function(e){sO(m,e);var t=uO(m);function m(){var n;nO(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!Tl.button&&Tl.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 bD(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}aO(m,[{key:"_brushBrush",value:function e(){if(Tl.sourceEvent&&Tl.sourceEvent.offsetX&&Tl.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(!Tl.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(Tl.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(Uh,this._selectionConfig).attr("height",n);var r=this._brushGroup.selectAll(".handle").call(Uh,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=Xl(this._select.node())[0];var n=Tl.selection&&this._brushing?Tl.selection:[t,t];if(this._buttonBehaviorCurrent==="ticks")n=n.map(this._d3Scale.invert);n=n.map(Number);if(Tl.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=Tl.selection.map(function(e){return Math.abs(e-Tl.sourceEvent.offsetX)});n=i[1]<=i[0]?[Tl.selection[0],Tl.sourceEvent.offsetX].sort(function(e,t){return e-t}):[Tl.sourceEvent.offsetX,Tl.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]=bD(Xx(n[0],a));n[1]=bD(Xx(n[1],a))}else{n[0]=Xx(n[0],a);n[1]=Xx(n[1],a)}var r=+n[0]===+n[1];if(Tl.type==="brush"||Tl.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?r?n[0]:n:r?bD(this._availableTicks[a.indexOf(n[0])]):[bD(this._availableTicks[a.indexOf(n[0])]),bD(this._availableTicks[a.indexOf(n[1])])]}return n}},{key:"_updateBrushLimit",value:function e(t){var n=this._buttonBehaviorCurrent==="ticks"?t.map(bD).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(bD):this._domain.map(bD);var u=Io().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=RA().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(ve(r.lines.map(function(e){return JE(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=Io().domain(this._domain.map(bD)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(bD):Array.from(Array(r[r.length-1]-r[0]+1),function(e,t){return r[0]+t}).map(bD);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(bD);this._labels=this._ticks;rO(dO(m.prototype),"render",this).call(this,t);var f=this._outerBounds[a],d=this._d3Scale.range();var g=this._brush=iN().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=Qx("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}(jD);
/**!
* @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 pO=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var vO=function(){var e=["Edge","Trident","Firefox"];for(var t=0;t<e.length;t+=1){if(pO&&navigator.userAgent.indexOf(e[t])>=0){return 1}}return 0}();function mO(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function yO(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},vO)}}}var _O=pO&&window.Promise;var bO=_O?mO:yO;function wO(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function xO(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function kO(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function SO(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=xO(e),n=t.overflow,i=t.overflowX,a=t.overflowY;if(/(auto|scroll|overlay)/.test(n+a+i)){return e}return SO(kO(e))}function CO(e){return e&&e.referenceNode?e.referenceNode:e}var EO=pO&&!!(window.MSInputMethodContext&&document.documentMode);var AO=pO&&/MSIE 10/.test(navigator.userAgent);function RO(e){if(e===11){return EO}if(e===10){return AO}return EO||AO}function MO(e){if(!e){return document.documentElement}var t=RO(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&&xO(n,"position")==="static"){return MO(n)}return n}function TO(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||MO(e.firstElementChild)===e}function BO(e){if(e.parentNode!==null){return BO(e.parentNode)}return e}function NO(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(TO(o)){return o}return MO(o)}var s=BO(e);if(s.host){return NO(s.host,t)}else{return NO(e,BO(t).host)}}function DO(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 PO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=DO(t,"top");var a=DO(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 OO(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 zO(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],RO(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function LO(e){var t=e.body;var n=e.documentElement;var i=RO(10)&&getComputedStyle(n);return{height:zO("Height",t,n,i),width:zO("Width",t,n,i)}}var FO=function e(t,n){if(!(t instanceof n)){throw new TypeError("Cannot call a class as a function")}};var IO=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 jO=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 VO(e){return HO({},e,{right:e.left+e.width,bottom:e.top+e.height})}function GO(e){var t={};try{if(RO(10)){t=e.getBoundingClientRect();var n=DO(e,"top");var i=DO(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"?LO(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=xO(e);l-=OO(h,"x");u-=OO(h,"y");a.width-=l;a.height-=u}return VO(a)}function UO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=RO(10);var a=t.nodeName==="HTML";var r=GO(e);var o=GO(t);var s=SO(e);var l=xO(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=VO({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=PO(c,t)}return c}function WO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=UO(e,n);var a=Math.max(n.clientWidth,window.innerWidth||0);var r=Math.max(n.clientHeight,window.innerHeight||0);var o=!t?DO(n):0;var s=!t?DO(n,"left"):0;var l={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:a,height:r};return VO(l)}function qO(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(xO(e,"position")==="fixed"){return true}var n=kO(e);if(!n){return false}return qO(n)}function KO(e){if(!e||!e.parentElement||RO()){return document.documentElement}var t=e.parentElement;while(t&&xO(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function YO(e,t,n,i){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var r={top:0,left:0};var o=a?KO(e):NO(e,CO(t));if(i==="viewport"){r=WO(o,a)}else{var s=void 0;if(i==="scrollParent"){s=SO(kO(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=UO(s,o,a);if(s.nodeName==="HTML"&&!qO(o)){var u=LO(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 XO(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=YO(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:XO(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 ZO(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var a=i?KO(t):NO(t,CO(n));return UO(n,a,i)}function JO(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 QO(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 ez(e,t,n){n=n.split("-")[0];var i=JO(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[QO(s)]}return a}function tz(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function nz(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=tz(e,function(e){return e[t]===n});return e.indexOf(i)}function iz(e,n,t){var i=t===undefined?e:e.slice(0,nz(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&&wO(t)){n.offsets.popper=VO(n.offsets.popper);n.offsets.reference=VO(n.offsets.reference);n=t(n,e)}});return n}function az(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=ZO(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=ez(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=iz(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function rz(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function oz(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 sz(){this.state.isDestroyed=true;if(rz(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[oz("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function lz(e){var t=e.ownerDocument;return t?t.defaultView:window}function uz(e,t,n,i){var a=e.nodeName==="BODY";var r=a?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:true});if(!a){uz(SO(r.parentNode),t,n,i)}i.push(r)}function hz(e,t,n,i){n.updateBound=i;lz(e).addEventListener("resize",n.updateBound,{passive:true});var a=SO(e);uz(a,"scroll",n.updateBound,n.scrollParents);n.scrollElement=a;n.eventsEnabled=true;return n}function cz(){if(!this.state.eventsEnabled){this.state=hz(this.reference,this.options,this.state,this.scheduleUpdate)}}function fz(e,t){lz(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 dz(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=fz(this.reference,this.state)}}function gz(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function pz(n,i){Object.keys(i).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&gz(i[e])){t="px"}n.style[e]=i[e]+t})}function vz(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 mz(e){pz(e.instance.popper,e.styles);vz(e.instance.popper,e.attributes);if(e.arrowElement&&Object.keys(e.arrowStyles).length){pz(e.arrowElement,e.arrowStyles)}return e}function yz(e,t,n,i,a){var r=ZO(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);pz(t,{position:n.positionFixed?"fixed":"absolute"});return n}function _z(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 bz=pO&&/Firefox/i.test(navigator.userAgent);function wz(e,t){var n=t.x,i=t.y;var a=e.offsets.popper;var r=tz(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=MO(e.instance.popper);var l=GO(s);var u={position:a.position};var h=_z(e,window.devicePixelRatio<2||!bz);var c=n==="bottom"?"top":"bottom";var f=i==="right"?"left":"right";var d=oz("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 xz(e,n,t){var i=tz(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 kz(e,t){var n;if(!xz(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=JO(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=VO(e.offsets.popper);var p=s[c]+s[u]/2-g/2;var v=xO(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={},jO(n,c,Math.round(_)),jO(n,f,""),n);return e}function Sz(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var Cz=["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 Ez=Cz.slice(3);function Az(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=Ez.indexOf(e);var i=Ez.slice(n+1).concat(Ez.slice(0,n));return t?i.reverse():i}var Rz={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function Mz(p,v){if(rz(p.instance.modifiers,"inner")){return p}if(p.flipped&&p.placement===p.originalPlacement){return p}var m=YO(p.instance.popper,p.instance.reference,v.padding,v.boundariesElement,p.positionFixed);var y=p.placement.split("-")[0];var _=QO(y);var b=p.placement.split("-")[1]||"";var w=[];switch(v.behavior){case Rz.FLIP:w=[y,_];break;case Rz.CLOCKWISE:w=Az(y);break;case Rz.COUNTERCLOCKWISE:w=Az(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];_=QO(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=Sz(b)}p.placement=y+(b?"-"+b:"");p.offsets.popper=HO({},p.offsets.popper,ez(p.instance.popper,p.offsets.reference,p.placement));p=iz(p.instance.modifiers,p,"flip")}});return p}function Tz(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 Bz(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=VO(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 Nz(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(tz(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 Bz(e,n,a,r)})});u.forEach(function(n,i){n.forEach(function(e,t){if(gz(e)){o[i]+=e*(n[t-1]==="-"?-1:1)}})});return o}function Dz(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(gz(+n)){l=[+n,0]}else{l=Nz(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 Pz(e,a){var t=a.boundariesElement||MO(e.instance.popper);if(e.instance.reference===t){t=MO(t)}var n=oz("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=YO(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 jO({},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 jO({},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 Oz(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:jO({},l,r[l]),end:jO({},l,r[l]+r[u]-o[u])};e.offsets.popper=HO({},o,h[i])}return e}function zz(e){if(!xz(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=tz(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 Lz(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=QO(t);e.offsets.popper=VO(a);return e}var Fz={shift:{order:100,enabled:true,fn:Oz},offset:{order:200,enabled:true,fn:Dz,offset:0},preventOverflow:{order:300,enabled:true,fn:Pz,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:Tz},arrow:{order:500,enabled:true,fn:kz,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:Mz,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:Lz},hide:{order:800,enabled:true,fn:zz},computeStyle:{order:850,enabled:true,fn:wz,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:mz,onLoad:yz,gpuAcceleration:undefined}};var Iz={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function e(){},onUpdate:function e(){},modifiers:Fz};var jz=function(){function r(e,t){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};FO(this,r);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=bO(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&&wO(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}IO(r,[{key:"update",value:function e(){return az.call(this)}},{key:"destroy",value:function e(){return sz.call(this)}},{key:"enableEventListeners",value:function e(){return cz.call(this)}},{key:"disableEventListeners",value:function e(){return dz.call(this)}}]);return r}();jz.Utils=(typeof window!=="undefined"?window:global).PopperUtils;jz.placements=Cz;jz.Defaults=Iz;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 Vz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Gz(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 Uz(e,t,n){if(t)Gz(e.prototype,t);if(n)Gz(e,n);return e}function Wz(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)qz(e,t)}function qz(e,t){qz=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return qz(e,t)}function Kz(a){var r=$z();return function e(){var t=Zz(a),n;if(r){var i=Zz(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return Yz(this,n)}}function Yz(e,t){if(t&&(Hz(t)==="object"||typeof t==="function")){return t}return Xz(e)}function Xz(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 Zz(e){Zz=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return Zz(e)}var Jz=function(e){Wz(n,e);var t=Kz(n);function n(){var e;Vz(this,n);e=t.call(this);e._arrow=Ih("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=Jx("rgba(255, 255, 255, 1)");e._body=Ih("body","");e._bodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._border=Jx("1px solid rgba(0, 0, 0, 0.1)");e._borderRadius=Jx("2px");e._className="d3plus-tooltip";e._data=[];e._footer=Ih("footer","");e._footerStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._height=Jx("auto");e._id=function(e,t){return"".concat(t)};e._offset=Jx(5);e._padding=Jx("5px");e._pointerEvents=Jx("auto");e._popperClasses={};e._position=function(e){return[e.x,e.y]};e._prefix=ik();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=Ih("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=Jx("auto");return e}Uz(n,[{key:"render",value:function e(t){var u=this;var h=this;var n=ql("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"});ak(e,h["_".concat(a,"Style")])}function o(e){if(typeof e==="function"){var t=ql(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=ql(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");ak(c,this._tableStyle);l.append("thead").attr("class","d3plus-tooltip-thead");var f=r.select(".d3plus-tooltip-thead");ak(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");ak(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);ak(m,this._trStyle);var y=m.selectAll("td").data(function(e){return e});y.enter().append("td").merge(y).html(o);ak(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 jz(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:Jx(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:Jx(t),this):this._background}},{key:"body",value:function e(t){return arguments.length?(this._body=typeof t==="function"?t:Jx(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:Jx(t),this):this._border}},{key:"borderRadius",value:function e(t){return arguments.length?(this._borderRadius=typeof t==="function"?t:Jx(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:Jx(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:Jx(t),this):this._height}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Jx(t),this):this._id}},{key:"offset",value:function e(t){return arguments.length?(this._offset=typeof t==="function"?t:Jx(t),this):this._offset}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Jx(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Jx(t),this):this._pointerEvents}},{key:"position",value:function e(t){return arguments.length?(this._position=typeof t==="string"?Jx(ql(t).node()||[0,0]):typeof t==="function"?t:Jx(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:Jx(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:Jx(t),this):this._width}}]);return n}(Yx);function Qz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function eL(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 tL(e,t,n){if(t)eL(e.prototype,t);if(n)eL(e,n);return e}var nL=function(){function e(){Qz(this,e);this._isVisible=false}tL(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=ql(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);ak(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);ak(this.elem,f);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return e}();function iL(){var e=this._history.length;var t=Qx("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 aL(){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?Oe([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?Oe([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=Qx("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 rL=$N(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 XN=="function"&&XN;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 XN=="function"&&XN;for(var e=0;e<l.length;e++){u(l[e])}return u}({1:[function(e,O,z){(function(P){(function(e){var t=K(z)=="object"&&z&&!z.nodeType&&z;var n=K(O)=="object"&&O&&!O.nodeType&&O;var i=K(P)=="object"&&P;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 D(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:D,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 YN!=="undefined"?YN: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)&&(L(e)&&M(e)||I(e)||F(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(F));var a=i.filter(j(L)).filter(j(T));var r=n.filter(j(L)).filter(F);var o=i.filter(j(L)).filter(T);var s=e.contexts.concat(i.filter(L)).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(K))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){switch(n.node.nodeName){case"svg":case"IFRAME":var 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||D(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=P(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 D(e){return/^(normal|none|0px)$/.test(e.parent.css("letterSpacing"))}function P(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(q)})}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 L(e){return e.css("position")!=="static"}function F(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 q(e){return parseInt(e,10)}function K(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=K(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 oL=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 sL=[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 lL=[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 uL(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 D=new hL;var P=D;for(o=1;o<R;o++){P=P.next=new hL;if(o==B)var O=P}P.next=D;var z=null;var L=null;h=u=0;var F=sL[i];var I=lL[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;P=D;for(o=0;o<B;o++){P.r=k;P.g=S;P.b=C;P.a=E;P=P.next}for(o=1;o<B;o++){s=u+((M<o?M:o)<<2);c+=(P.r=k=e[s])*(A=B-o);f+=(P.g=S=e[s+1])*A;d+=(P.b=C=e[s+2])*A;g+=(P.a=E=e[s+3])*A;_+=k;b+=S;w+=C;x+=E;P=P.next}z=D;L=O;for(a=0;a<t;a++){e[u+3]=E=g*F>>I;if(E!=0){E=255/E;e[u]=(c*F>>I)*E;e[u+1]=(f*F>>I)*E;e[u+2]=(d*F>>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=L.r;v+=S=L.g;m+=C=L.b;y+=E=L.a;_-=k;b-=S;w-=C;x-=E;L=L.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;P=D;for(o=0;o<B;o++){P.r=k;P.g=S;P.b=C;P.a=E;P=P.next}l=t;for(o=1;o<=i;o++){u=l+a<<2;c+=(P.r=k=e[u])*(A=B-o);f+=(P.g=S=e[u+1])*A;d+=(P.b=C=e[u+2])*A;g+=(P.a=E=e[u+3])*A;_+=k;b+=S;w+=C;x+=E;P=P.next;if(o<T){l+=t}}u=a;z=D;L=O;for(r=0;r<n;r++){s=u<<2;e[s+3]=E=g*F>>I;if(E>0){E=255/E;e[s]=(c*F>>I)*E;e[s+1]=(f*F>>I)*E;e[s+2]=(d*F>>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=L.r;v+=S=L.g;m+=C=L.b;y+=E=L.a;_-=k;b-=S;w-=C;x-=E;L=L.next;u+=t}}}function hL(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var cL=uL;var fL=/[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 dL=new RegExp("[\\-\\.0-9"+fL.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var gL=new RegExp("^"+fL.source+dL.source+"*(?::"+fL.source+dL.source+"*)?$");var pL=0;var vL=1;var mL=2;var yL=3;var _L=4;var bL=5;var wL=6;var xL=7;function kL(){}kL.prototype={parse:function e(t,n,i){var a=this.domBuilder;a.startDocument();TL(n,n={});SL(t,n,i,a,this.errorHandler);a.endDocument()}};function SL(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);_=NL(n,v,a);break;case"!":f&&l(v);_=BL(n,v,a,r);break;default:f&&l(v);var E=new DL;var A=d[d.length-1].currentNSMap;var _=EL(n,v,E,A,s,r);var R=E.length;if(!E.closed&&ML(n,_,E.tagName,g)){E.closed=true;if(!i.nbsp){r.warning("unclosed xml attribute")}}if(f&&R){var M=CL(f,{});for(var T=0;T<R;T++){var B=E[T];l(B.offset);B.locator=CL(f,{})}a.locator=M;if(AL(E,a,A)){d.push(E)}a.locator=f}else{if(AL(E,a,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=RL(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 CL(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber;return t}function EL(e,t,n,i,a,r){var o;var s;var l=++t;var u=pL;while(true){var h=e.charAt(l);switch(h){case"=":if(u===vL){o=e.slice(t,l);u=yL}else if(u===mL){u=yL}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(u===yL||u===vL){if(u===vL){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=bL}else{throw new Error("attribute value no end '"+h+"' match")}}else if(u==_L){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=bL}else{throw new Error('attribute value must after "="')}break;case"/":switch(u){case pL:n.setTagName(e.slice(t,l));case bL:case wL:case xL:u=xL;n.closed=true;case _L:case vL:case mL:break;default:throw new Error("attribute invalid close char('/')")}break;case"":r.error("unexpected end of input");if(u==pL){n.setTagName(e.slice(t,l))}return l;case">":switch(u){case pL:n.setTagName(e.slice(t,l));case bL:case wL:case xL:break;case _L:case vL:s=e.slice(t,l);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case mL:if(u===mL){s=o}if(u==_L){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 yL:throw new Error("attribute value missed!!")}return l;case"€":h=" ";default:if(h<=" "){switch(u){case pL:n.setTagName(e.slice(t,l));u=wL;break;case vL:o=e.slice(t,l);u=mL;break;case _L:var s=e.slice(t,l).replace(/&#?\w+;/g,a);r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,t);case bL:u=wL;break}}else{switch(u){case mL: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=vL;break;case bL:r.warning('attribute space is required"'+o+'"!!');case wL:u=vL;t=l;break;case yL:u=_L;t=l;break;case xL:throw new Error("elements closed character '/' and '>' must be connected to")}}}l++}}function AL(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={};TL(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 RL(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 ML(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 TL(e,t){for(var n in e){t[n]=e[n]}}function BL(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=OL(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 NL(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 DL(e){}DL.prototype={setTagName:function e(t){if(!gL.test(t)){throw new Error("invalid tagName:"+t)}this.tagName=t},add:function e(t,n,i){if(!gL.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 PL(e,t){e.__proto__=t;return e}if(!(PL({},PL.prototype)instanceof PL)){PL=function e(t,n){function i(){}i.prototype=n;i=new i;for(n in t){i[n]=t[n]}return i}}function OL(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 zL=kL;var LL={XMLReader:zL};function FL(e,t){for(var n in e){t[n]=e[n]}}function IL(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;FL(n,a);e.prototype=n=a}if(n.constructor!=e){if(typeof e!="function"){console.error("unknow Class:"+e)}n.constructor=e}}var jL="http://www.w3.org/1999/xhtml";var HL={};var VL=HL.ELEMENT_NODE=1;var GL=HL.ATTRIBUTE_NODE=2;var UL=HL.TEXT_NODE=3;var WL=HL.CDATA_SECTION_NODE=4;var qL=HL.ENTITY_REFERENCE_NODE=5;var KL=HL.ENTITY_NODE=6;var YL=HL.PROCESSING_INSTRUCTION_NODE=7;var XL=HL.COMMENT_NODE=8;var $L=HL.DOCUMENT_NODE=9;var ZL=HL.DOCUMENT_TYPE_NODE=10;var JL=HL.DOCUMENT_FRAGMENT_NODE=11;var QL=HL.NOTATION_NODE=12;var eF={};var tF={};var nF=eF.INDEX_SIZE_ERR=(tF[1]="Index size error",1);var iF=eF.DOMSTRING_SIZE_ERR=(tF[2]="DOMString size error",2);var aF=eF.HIERARCHY_REQUEST_ERR=(tF[3]="Hierarchy request error",3);var rF=eF.WRONG_DOCUMENT_ERR=(tF[4]="Wrong document",4);var oF=eF.INVALID_CHARACTER_ERR=(tF[5]="Invalid character",5);var sF=eF.NO_DATA_ALLOWED_ERR=(tF[6]="No data allowed",6);var lF=eF.NO_MODIFICATION_ALLOWED_ERR=(tF[7]="No modification allowed",7);var uF=eF.NOT_FOUND_ERR=(tF[8]="Not found",8);var hF=eF.NOT_SUPPORTED_ERR=(tF[9]="Not supported",9);var cF=eF.INUSE_ATTRIBUTE_ERR=(tF[10]="Attribute in use",10);var fF=eF.INVALID_STATE_ERR=(tF[11]="Invalid state",11);var dF=eF.SYNTAX_ERR=(tF[12]="Syntax error",12);var gF=eF.INVALID_MODIFICATION_ERR=(tF[13]="Invalid modification",13);var pF=eF.NAMESPACE_ERR=(tF[14]="Invalid namespace",14);var vF=eF.INVALID_ACCESS_ERR=(tF[15]="Invalid access",15);function mF(e,t){if(t instanceof Error){var n=t}else{n=this;Error.call(this,tF[e]);this.message=tF[e];if(Error.captureStackTrace)Error.captureStackTrace(this,mF)}n.code=e;if(t)this.message=this.message+": "+t;return n}mF.prototype=Error.prototype;FL(eF,mF);function yF(){}yF.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++){ZF(this[a],i,t,n)}return i.join("")}};function _F(e,t){this._node=e;this._refresh=t;bF(this)}function bF(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);eI(e,"length",n.length);FL(n,e);e._inc=t}}_F.prototype.item=function(e){bF(this);return this[e]};IL(_F,yF);function wF(){}function xF(e,t){var n=e.length;while(n--){if(e[n]===t){return n}}}function kF(e,t,n,i){if(i){t[xF(t,i)]=n}else{t[t.length++]=n}if(e){n.ownerElement=e;var a=e.ownerDocument;if(a){i&&BF(a,e,i);TF(a,e,n)}}}function SF(e,t,n){var i=xF(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){BF(r,e,n);n.ownerElement=null}}}else{throw mF(uF,new Error(e.tagName+"@"+n))}}wF.prototype={length:0,item:yF.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 mF(cF)}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 mF(cF)}i=this.getNamedItemNS(t.namespaceURI,t.localName);kF(this._ownerElement,this,t,i);return i},removeNamedItem:function e(t){var n=this.getNamedItem(t);SF(this._ownerElement,this,n);return n},removeNamedItemNS:function e(t,n){var i=this.getNamedItemNS(t,n);SF(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 CF(e){this._features={};if(e){for(var t in e){this._features=e[t]}}}CF.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 MF;a.implementation=this;a.childNodes=new yF;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 VF;a.name=t;a.nodeName=t;a.publicId=n;a.systemId=i;return a}};function EF(){}EF.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 PF(this,t,n)},replaceChild:function e(t,n){this.insertBefore(t,n);if(n){this.removeChild(n)}},removeChild:function e(t){return DF(this,t)},appendChild:function e(t){return this.insertBefore(t,null)},hasChildNodes:function e(){return this.firstChild!=null},cloneNode:function e(t){return QF(this.ownerDocument||this,this,t)},normalize:function e(){var t=this.firstChild;while(t){var n=t.nextSibling;if(n&&n.nodeType==UL&&t.nodeType==UL){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==GL?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==GL?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function e(t){var n=this.lookupPrefix(t);return n==null}};function AF(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}FL(HL,EF);FL(HL,EF.prototype);function RF(e,t){if(t(e)){return true}if(e=e.firstChild){do{if(RF(e,t)){return true}}while(e=e.nextSibling)}}function MF(){}function TF(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 BF(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 NF(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 DF(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}NF(e.ownerDocument,e);return t}function PF(e,t,n){var i=t.parentNode;if(i){i.removeChild(t)}if(t.nodeType===JL){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));NF(e.ownerDocument||e,e);if(t.nodeType==JL){t.firstChild=t.lastChild=null}return t}function OF(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;NF(e.ownerDocument,e,t);return t}MF.prototype={nodeName:"#document",nodeType:$L,doctype:null,documentElement:null,_inc:1,insertBefore:function e(t,n){if(t.nodeType==JL){var i=t.firstChild;while(i){var a=i.nextSibling;this.insertBefore(i,n);i=a}return t}if(this.documentElement==null&&t.nodeType==VL){this.documentElement=t}return PF(this,t,n),t.ownerDocument=this,t},removeChild:function e(t){if(this.documentElement==t){this.documentElement=null}return DF(this,t)},importNode:function e(t,n){return JF(this,t,n)},getElementById:function e(t){var n=null;RF(this.documentElement,function(e){if(e.nodeType==VL){if(e.getAttribute("id")==t){n=e;return true}}});return n},createElement:function e(t){var n=new zF;n.ownerDocument=this;n.nodeName=t;n.tagName=t;n.childNodes=new yF;var i=n.attributes=new wF;i._ownerElement=n;return n},createDocumentFragment:function e(){var t=new qF;t.ownerDocument=this;t.childNodes=new yF;return t},createTextNode:function e(t){var n=new IF;n.ownerDocument=this;n.appendData(t);return n},createComment:function e(t){var n=new jF;n.ownerDocument=this;n.appendData(t);return n},createCDATASection:function e(t){var n=new HF;n.ownerDocument=this;n.appendData(t);return n},createProcessingInstruction:function e(t,n){var i=new KF;i.ownerDocument=this;i.tagName=i.target=t;i.nodeValue=i.data=n;return i},createAttribute:function e(t){var n=new LF;n.ownerDocument=this;n.name=t;n.nodeName=t;n.localName=t;n.specified=true;return n},createEntityReference:function e(t){var n=new WF;n.ownerDocument=this;n.nodeName=t;return n},createElementNS:function e(t,n){var i=new zF;var a=n.split(":");var r=i.attributes=new wF;i.childNodes=new yF;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 LF;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}};IL(MF,EF);function zF(){this._nsMap={}}zF.prototype={nodeType:VL,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===JL){return this.insertBefore(t,null)}else{return OF(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 _F(this,function(t){var n=[];RF(t,function(e){if(e!==t&&e.nodeType==VL&&(i==="*"||e.tagName==i)){n.push(e)}});return n})},getElementsByTagNameNS:function e(i,a){return new _F(this,function(t){var n=[];RF(t,function(e){if(e!==t&&e.nodeType===VL&&(i==="*"||e.namespaceURI===i)&&(a==="*"||e.localName==a)){n.push(e)}});return n})}};MF.prototype.getElementsByTagName=zF.prototype.getElementsByTagName;MF.prototype.getElementsByTagNameNS=zF.prototype.getElementsByTagNameNS;IL(zF,EF);function LF(){}LF.prototype.nodeType=GL;IL(LF,EF);function FF(){}FF.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(tF[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}};IL(FF,EF);function IF(){}IF.prototype={nodeName:"#text",nodeType:UL,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}};IL(IF,FF);function jF(){}jF.prototype={nodeName:"#comment",nodeType:XL};IL(jF,FF);function HF(){}HF.prototype={nodeName:"#cdata-section",nodeType:WL};IL(HF,FF);function VF(){}VF.prototype.nodeType=ZL;IL(VF,EF);function GF(){}GF.prototype.nodeType=QL;IL(GF,EF);function UF(){}UF.prototype.nodeType=KL;IL(UF,EF);function WF(){}WF.prototype.nodeType=qL;IL(WF,EF);function qF(){}qF.prototype.nodeName="#document-fragment";qF.prototype.nodeType=JL;IL(qF,EF);function KF(){}KF.prototype.nodeType=YL;IL(KF,EF);function YF(){}YF.prototype.serializeToString=function(e,t,n){return XF.call(e,t,n)};EF.prototype.toString=XF;function XF(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}]}}ZF(this,n,e,t,o);return n.join("")}function $F(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 ZF(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 VL:if(!a)a=[];var r=a.length;var o=e.attributes;var s=o.length;var l=e.firstChild;var u=e.tagName;n=jL===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($F(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})}ZF(c,t,n,i,a)}if($F(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{ZF(l,t,n,i,a)}l=l.nextSibling}}else{while(l){ZF(l,t,n,i,a);l=l.nextSibling}}t.push("</",u,">")}else{t.push("/>")}return;case $L:case JL:var l=e.firstChild;while(l){ZF(l,t,n,i,a);l=l.nextSibling}return;case GL:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,AF),'"');case UL:return t.push(e.data.replace(/[<&]/g,AF));case WL:return t.push("<![CDATA[",e.data,"]]>");case XL:return t.push("\x3c!--",e.data,"--\x3e");case ZL: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 YL:return t.push("<?",e.target," ",e.data,"?>");case qL:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function JF(e,t,n){var i;switch(t.nodeType){case VL:i=t.cloneNode(false);i.ownerDocument=e;case JL:break;case GL: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(JF(e,a,n));a=a.nextSibling}}return i}function QF(e,t,n){var i=new t.constructor;for(var a in t){var r=t[a];if(K(r)!="object"){if(r!=i[a]){i[a]=r}}}if(t.childNodes){i.childNodes=new yF}i.ownerDocument=e;switch(i.nodeType){case VL:var o=t.attributes;var s=i.attributes=new wF;var l=o.length;s._ownerElement=i;for(var u=0;u<l;u++){i.setAttributeNode(QF(e,o.item(u),true))}break;case GL:n=true}if(n){var h=t.firstChild;while(h){i.appendChild(QF(e,h,n));h=h.nextSibling}}return i}function eI(e,t,n){e[t]=n}try{if(Object.defineProperty){var tI=function e(t){switch(t.nodeType){case VL:case JL: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(_F.prototype,"length",{get:function e(){bF(this);return this.$$length}});Object.defineProperty(EF.prototype,"textContent",{get:function e(){return tI(this)},set:function e(t){switch(this.nodeType){case VL:case JL: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}}});eI=function e(t,n,i){t["$$"+n]=i}}}catch(e){}var nI=CF;var iI=YF;var aI={DOMImplementation:nI,XMLSerializer:iI};var rI=$N(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=LL.XMLReader;var i=t.DOMImplementation=aI.DOMImplementation;t.XMLSerializer=aI.XMLSerializer;t.DOMParser=n});var oI=rI.DOMImplementation;var sI=rI.XMLSerializer;var lI=rI.DOMParser;function uI(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);uI(o,s.innerHTML)}return}if(typeof e=="string"){e=document.getElementById(e)}if(e.svg!=null)e.svg.stop();var l=fI(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 hI(){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 cI(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 fI(e){var N={opts:e};var u=hI();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]}}uI(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 oL(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 oL(e.from.value);var n=new oL(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]=cI(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 cL.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);cL.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 dI=uI;function gI(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 pI(e){e.selectAll("*").each(function(){var e=this.tagName.toLowerCase();if(!["option"].includes(e)){var t=ql(this);var n=t.style("letter-spacing");t.style("letter-spacing",n==="normal"?"0.1px":n)}})}function vI(e,t){return wI(e)||bI(e,t)||yI(e,t)||mI()}function mI(){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 yI(e,t){if(!e)return;if(typeof e==="string")return _I(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 _I(e,t)}function _I(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 bI(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 wI(e){if(Array.isArray(e))return e}var xI={background:false,callback:function e(){},exclude:[],padding:0,scale:1};var kI={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function SI(e){var t=ql(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=vI(o,2);i=s[0];a=s[1]}}return[n,i,a]}function CI(e,K){if(!e)return;if(!(e instanceof Array))e=[e];K=Object.assign({},xI,K);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=K.height||parseFloat(ql(t).style("height"))+parseFloat(ql(t).style("padding-top"))+parseFloat(ql(t).style("padding-bottom")),$=K.width||parseFloat(ql(t).style("width"))+parseFloat(ql(t).style("padding-left"))+parseFloat(ql(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=K.canvas||document.createElement("canvas");c.width=($+K.padding*2)*K.scale*Y;c.height=(X+K.padding*2)*K.scale*Y;c.style.width=($+K.padding*2)*K.scale;c.style.height=(X+K.padding*2)*K.scale;var f=c.getContext("2d");f.scale(K.scale*Y,K.scale*Y);f.clearRect(0,0,c.width/Y,c.height/Y);if(K.background){f.beginPath();f.rect(0,0,c.width/Y,c.height/Y);f.fillStyle=K.background;f.fill()}var te=[];function i(e){var t=(this.tagName||"").toLowerCase();if(K.exclude.includes(this)||t==="foreignobject")return;var n=Object.assign({},e);if(this.tagName){var i=ql(this).attr("opacity")||ql(this).style("opacity");var a=ql(this).style("display");var r=ql(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=ql(this).attr("x");h=h?parseFloat(h)*n.scale:0;n.x+=h;var c=ql(this).attr("y");c=c?parseFloat(c)*n.scale:0;n.y+=c;n.clip={height:parseFloat(ql(this).attr("height")||ql(this).style("height")),width:parseFloat(ql(this).attr("width")||ql(this).style("width")),x:h,y:c}}else{var f=ql(this).attr("x");if(f)n.x+=parseFloat(f)*n.scale;var d=ql(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);ql(v).call(gI);te.push(Object.assign({},n,{type:"svg",value:v}))}else if(["image","img"].includes(t)){var m=ql(this).attr("href")||ql(this).attr("xlink:href");if(m.length){var y=parseFloat(ql(this).attr("height"))*n.scale,_=parseFloat(ql(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)&&!ql(this).selectAll("svg").size()){var x=K.scale*Y;var k={height:Math.floor(X+K.padding*2+ee),loaded:false,type:"html",width:Math.floor($+K.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);pI(ql(this));rL(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(e){k.value=e;k.loaded=true})}else if(t!=="svg"&&this.childNodes.length>0&&!ql(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);ql(E).selectAll("*").each(function(){ql(this).call(gI);if(ql(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=SI(this),R=vI(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);ql(N).selectAll("*").each(function(){if(ql(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(t==="line"){ql(N).attr("x1",parseFloat(ql(N).attr("x1"))+n.x);ql(N).attr("x2",parseFloat(ql(N).attr("x2"))+n.x);ql(N).attr("y1",parseFloat(ql(N).attr("y1"))+n.y);ql(N).attr("y2",parseFloat(ql(N).attr("y2"))+n.y)}else if(t==="path"){var D=SI(N),P=vI(D,3),O=P[0],z=P[1],L=P[2];if(ql(N).attr("transform"))ql(N).attr("transform","scale(".concat(O,")translate(").concat(z+n.x,",").concat(L+n.y,")"))}ql(N).call(gI);var F=ql(N).attr("fill");var I=F&&F.indexOf("url")===0;te.push(Object.assign({},n,{type:"svg",value:N,tag:t}));if(I){var j=ql(F.slice(4,-1)).node().cloneNode(true);var H=(j.tagName||"").toLowerCase();if(H==="pattern"){var V=SI(N),G=vI(V,3),U=G[0],W=G[1],q=G[2];n.scale*=U;n.x+=W;n.y+=q;ne(j,n)}}}}function ne(e,t){$l(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(K.padding+n.x,K.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(K.padding,K.padding);f.drawImage(t.value,t.x,t.y,t.width,t.height);f.restore();break;case"text":var i=ql(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(K.padding,K.padding);dI(c,l,Object.assign({},kI,{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(K.padding+n.x+t.x,K.padding+n.y+t.y);f.rect(0,0,n.width,n.height);f.clip();dI(c,u,Object.assign({},kI,{offsetX:t.x+n.x,offsetY:t.y+n.y}));f.restore();break;default:console.warn("uncaught",t);break}}K.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||YN.content||YN);var EI=$N(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||YN.content);if(e.exports){e.exports.saveAs=t}});var AI=EI.saveAs;var RI={filename:"download",type:"png"};function MI(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({},RI,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;AI(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}CI(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 AI(e,"".concat(n.filename,".").concat(n.type))})}}}))}var TI={Button:JD,Radio:hP,Select:xP};function BI(){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();MI(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=Qx("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&&TI[n.type]?n.type:"Select";c._controlCache[o]=(new TI[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 NI(e,t){return this._drawLabel(e,t,this._legendDepth)}function DI(){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=Qx("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){Z().key(c).rollup(function(e){return l.push(tk(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(Zx.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 PI(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=bD(i._time(e)).getTime();return t>=n[0]&&t<=n[1]}).render()}}function OI(){var t=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var i=n?ek(this._data.map(this._time)).map(bD):[];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=Qx("g.d3plus-viz-timeline",{condition:n,enter:r,parent:this._select,transition:this._transition,update:r}).node();if(n){var s=this._timelineClass.domain(Be(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=Be(e,this._time).map(bD);s.selection(this._timelineSelection)}var l=this._timelineConfig;s.config(l).on("end",function(e){PI.bind(t)(e);if(l.on&&l.on.end)l.on.end(e)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function zI(){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=Qx("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 LI(){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=Qx("g.d3plus-viz-total",{enter:i,parent:this._select,transition:this._transition,update:i}).node();var r=typeof t==="number";this._totalClass.data(r?[{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+=r?a.getBBox().height+this._totalConfig.padding*2:0}function FI(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=ql(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(ql(e).style(t),10);if(typeof a==="number"&&a>0)return a;else return FI(e.parentNode,t)}}function II(e){return[FI(e,"width"),FI(e,"height")]}function jI(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 HI(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 VI(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=Pe(this._legendClass.data().map(function(e,t){var n=i._id(e,t);if(!(n instanceof Array))n=[n];return n})).length;if(Tl.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 GI=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=GI(this._ids(e,t));this.hover(function(e,t){var n=GI(i._ids(e,t));return a.some(function(e){return n.includes(e)})})}}function WI(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 qI(e,t,n){var i=this;var a=Tl.touches?[Tl.touches[0].clientX,Tl.touches[0].clientY]:[Tl.clientX,Tl.clientY];var r=Pe(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():NI.bind(this)).position(a).config(Zx.bind(this)(this._tooltipConfig)).config(Zx.bind(this)(this._legendTooltip)).render()}}function KI(e,t,n){if(e&&this._tooltip(e,t)){this._select.style("cursor","pointer");var i=Tl.touches?[Tl.touches[0].clientX,Tl.touches[0].clientY]:[Tl.clientX,Tl.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(Zx.bind(this)(this._tooltipConfig)).render()}}function YI(e){Tl.preventDefault();Tl.stopPropagation();if(!e)this._tooltipClass.data([]).render()}function XI(e,t){return ej(e)||QI(e,t)||ZI(e,t)||$I()}function $I(){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 ZI(e,t){if(!e)return;if(typeof e==="string")return JI(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 JI(e,t)}function JI(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 QI(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 ej(e){if(Array.isArray(e))return e}var tj=false;function nj(){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",aj.bind(this));this._zoomToBounds=oj.bind(this);var i=ql(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",rj.bind(this,this._zoomFactor)).html("&#65291;");a.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",rj.bind(this,1/this._zoomFactor)).html("&#65293;");a.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",rj.bind(this,0)).html("&#8634");a.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){ql(this).classed("active",!tj).call(ak,tj?t._zoomControlStyle||{}:t._zoomControlStyleActive||{});ij.bind(t)(!tj)}).html("&#164");i.selectAll(".zoom-control").call(ak,t._zoomControlStyle).on("mouseenter",function(){ql(this).call(ak,t._zoomControlStyleHover||{})}).on("mouseleave",function(){ql(this).call(ak,ql(this).classed("active")?t._zoomControlStyleActive||{}:t._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[n,e]]).filter(function(){return!Tl.button&&Tl.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",uj.bind(this)).on("brush",sj.bind(this)).on("end",lj.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);ij.bind(this)();if(this._renderTiles)this._renderTiles(Mh(this._container.node()),0)}function ij(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;tj=e;if(tj)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!tj&&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 aj(){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||Tl.transform);else this._zoomGroup.transition().duration(t).attr("transform",e||Tl.transform)}if(this._renderTiles)this._renderTiles(Mh(this._container.node()),t)}function rj(){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=Mh(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)}}aj.bind(this)(i,this._duration)}function oj(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),i=Mh(this._container.node());if(e){var a=XI(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}aj.bind(this)(i,t)}function sj(){hj.bind(this)()}function lj(){if(!Tl.selection)return;this._brushGroup.call(this._zoomBrush.move,null);oj.bind(this)(Tl.selection)}function uj(){hj.bind(this)()}function hj(){this._brushGroup.selectAll(".selection").call(Uh,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(Uh,this._zoomBrushHandleStyle||{})}function cj(){var e=ql(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(ak,this._attributionStyle)}function fj(e){return pj(e)||gj(e)||yj(e)||dj()}function dj(){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 gj(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function pj(e){if(Array.isArray(e))return _j(e)}function vj(e,t){return wj(e)||bj(e,t)||yj(e,t)||mj()}function mj(){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 yj(e,t){if(!e)return;if(typeof e==="string")return _j(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 _j(e,t)}function _j(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 bj(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 wj(e){if(Array.isArray(e))return e}function xj(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){xj=function e(t){return typeof t}}else{xj=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return xj(e)}function kj(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Sj(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 Cj(e,t,n){if(t)Sj(e.prototype,t);if(n)Sj(e,n);return e}function Ej(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)Aj(e,t)}function Aj(e,t){Aj=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return Aj(e,t)}function Rj(a){var r=Bj();return function e(){var t=Nj(a),n;if(r){var i=Nj(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return Mj(this,n)}}function Mj(e,t){if(t&&(xj(t)==="object"||typeof t==="function")){return t}return Tj(e)}function Tj(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function Bj(){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 Nj(e){Nj=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return Nj(e)}function Dj(){return typeof window!=="undefined"?window.innerWidth>600:true}function Pj(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 Oj=function(e){Ej(n,e);var t=Rj(n);function n(){var s;kj(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 HA).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 eO;s._colorScaleConfig={};s._colorScalePadding=Dj;s._colorScalePosition="bottom";s._colorScaleMaxSize=600;var e=new xP;s._controlCache={};s._controlConfig={selectStyle:Object.assign({margin:"5px"},e.selectStyle())};s._controlPadding=Dj;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=Jx("#aaa");s._hiddenOpacity=Jx(.5);s._history=[];s._groupBy=[Ih("id")];s._legend=true;s._legendClass=new HP;s._legendConfig={label:NI.bind(Tj(s)),shapeConfig:{ariaLabel:NI.bind(Tj(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendCutoff=1;s._legendPadding=Dj;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 nL;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":HI.bind(Tj(s)),"click.legend":VI.bind(Tj(s)),mouseenter:UI.bind(Tj(s)),mouseleave:WI.bind(Tj(s)),"mousemove.shape":KI.bind(Tj(s)),"mousemove.legend":qI.bind(Tj(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":xj(window))===undefined?"":window;s._shape=Jx("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(CN(o))return o;return kS(o)},labelConfig:{fontColor:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return SS(i)}},opacity:Jx(1),stroke:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return CN(i).darker()},role:"presentation",strokeWidth:Jx(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new gO).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=Dj;s._threshold=Jx(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new HA;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=Dj;s._tooltip=Jx(true);s._tooltipClass=new Jz;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new HA;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(e){return"".concat(s._translate("Total"),": ").concat(_D(e,s._locale))};s._totalPadding=Dj;s._zoom=false;s._zoomBehavior=Fh();s._zoomBrush=aN();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}Cj(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(_D(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?Pj(a):"".concat(a)};if(this._time&&!this._timeFilter&&this._data.length){var t=this._data.map(this._time).map(bD);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=+ve(t);this._timeFilter=function(e,t){return+bD(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=Z();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=tk(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=Z().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")DI.bind(this)(this._filteredData);if(this._colorScalePosition==="left"||this._colorScalePosition==="right"||this._colorScalePosition===false)aL.bind(this)(this._filteredData);iL.bind(this)();zI.bind(this)(this._filteredData);LI.bind(this)(this._filteredData);OI.bind(this)(this._filteredData);BI.bind(this)(this._filteredData);if(this._legendPosition==="top"||this._legendPosition==="bottom")DI.bind(this)(this._legendData);if(this._colorScalePosition==="top"||this._colorScalePosition==="bottom")aL.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=yh().duration(this._duration);if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var t=this._select===void 0?ql("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=II(this._select.node().parentNode),n=vj(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||jI(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(yh).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=ql(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);ql(this._scrollContainer).on("scroll.".concat(this._uuid),null);ql(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&&!jI(this._select.node())){ql(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(jI(o._select.node())){ql(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(r)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var f=KN();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,fj(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?Ne(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);nj.bind(o)();cj.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length))o._messageClass.hide();if(o._detectResize&&(o._autoWidth||o._autoHeight)){ql(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)})}ql("body").on("touchstart.".concat(this._uuid),YI.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=Gh(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=Gh(this._attributionStyle,t),this):this._attributionStyle}},{key:"backConfig",value:function e(t){return arguments.length?(this._backConfig=Gh(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:Ih(t),this):this._color}},{key:"colorScale",value:function e(t){return arguments.length?(this._colorScale=!t||typeof t==="function"?t:Ih(t),this):this._colorScale}},{key:"colorScaleConfig",value:function e(t){return arguments.length?(this._colorScaleConfig=Gh(this._colorScaleConfig,t),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function e(t){return arguments.length?(this._colorScalePadding=typeof t==="function"?t:Jx(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=Gh(this._controlConfig,t),this):this._controlConfig}},{key:"controlPadding",value:function e(t){return arguments.length?(this._controlPadding=typeof t==="function"?t:Jx(t),this):this._controlPadding}},{key:"data",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="data"});var a=[BB.bind(this),t,n,"data"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);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=Gh(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=ek(e.map(t));return n.length===1?n[0]:n}}return Ih(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:Jx(t),this):this._hiddenColor}},{key:"hiddenOpacity",value:function e(t){return arguments.length?(this._hiddenOpacity=typeof t==="function"?t:Jx(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=Pe(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:Jx(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=Gh(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=Gh(this._legendTooltip,t),this):this._legendTooltip}},{key:"legendPadding",value:function e(t){return arguments.length?(this._legendPadding=typeof t==="function"?t:Jx(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:Jx(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=Gh(this._messageStyle,t),this):this._messageStyle}},{key:"noDataHTML",value:function e(t){return arguments.length?(this._noDataHTML=typeof t==="function"?t:Jx(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=ql(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Jx(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Gh(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=Jx(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=Ih(t)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function e(t){return arguments.length?(this._thresholdName=typeof t==="function"?t:Jx(t),this):this._thresholdName}},{key:"time",value:function e(t){if(arguments.length){if(typeof t==="function"){this._time=t}else{this._time=Ih(t);if(!this._aggs[t]){this._aggs[t]=function(e,t){var n=ek(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=Gh(this._timelineConfig,t),this):this._timelineConfig}},{key:"timelinePadding",value:function e(t){return arguments.length?(this._timelinePadding=typeof t==="function"?t:Jx(t),this):this._timelinePadding}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Jx(t),this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Gh(this._titleConfig,t),this):this._titleConfig}},{key:"titlePadding",value:function e(t){return arguments.length?(this._titlePadding=typeof t==="function"?t:Jx(t),this):this._titlePadding}},{key:"tooltip",value:function e(t){return arguments.length?(this._tooltip=typeof t==="function"?t:Jx(t),this):this._tooltip}},{key:"tooltipConfig",value:function e(t){return arguments.length?(this._tooltipConfig=Gh(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=Ih(t);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function e(t){return arguments.length?(this._totalConfig=Gh(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:Jx(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}(Yx);var zj=function(e){l(q,e);var t=f(q);function q(){var u;n(this,q);u=t.call(this);u._links=[];u._linkSize=Jx(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(c(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=Mh(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=Mh(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(c(u))(e,t);u._on["mousemove.legend"].bind(c(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=Jx("Circle");u._shapeConfig=Gh(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=Ih("x");u._y=Ih("y");u._zoom=true;return u}a(q,[{key:"_draw",value:function e(t){var a=this;X(Y(q.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&&a._x(n)!==undefined?a._x(n):a._x(i),fy:n!==undefined&&a._y(n)!==undefined?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=K(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=Xi().domain(Be(c,function(e){return e.size})).range([.1,.5]);var g=rt().force("link",we(c).id(function(e){return e.id}).distance(1).strength(function(e){return d(e.size)}).iterations(4)).force("charge",ot().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=ft(l.map(function(e){return[e.vx,e.vy]}));var _=YR(y),b=_.angle,w=_.cx,x=_.cy;l.forEach(function(e){var t=NR([e.vx,e.vy],-1*(Math.PI/180*b),[w,x]);e.fx=t[0];e.fy=t[1]})}var k=Be(l.map(function(e){return e.fx})),S=Be(l.map(function(e){return e.fy}));var C=Xi().domain(k).range([0,o]),E=Xi().domain(S).range([0,n]);var A=(k[1]-k[0])/(S[1]-S[0]),R=o/n;if(A>R){var M=n*R/A;E.range([(n-M)/2,n-(n-M)/2])}else{var T=o*A/R;C.range([(o-T)/2,o-(o-T)/2])}l.forEach(function(e){e.x=C(e.fx);e.y=E(e.fy)});var B=Be(l.map(function(e){return e.r}));var N=this._sizeMax||ve([1,Oe(Pe(l.map(function(t){return l.map(function(e){return t===e?null:GA([t.x,t.y],[e.x,e.y])})})))/2]);var D=ts["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(B).range([B[0]===B[1]?N:Oe([N/2,this._sizeMin]),N]),P=C.domain(),O=E.domain();var z=P[1]-P[0],L=O[1]-O[0];l.forEach(function(e){var t=D(e.r);if(P[0]>C.invert(e.x-t))P[0]=C.invert(e.x-t);if(P[1]<C.invert(e.x+t))P[1]=C.invert(e.x+t);if(O[0]>E.invert(e.y-t))O[0]=E.invert(e.y-t);if(O[1]<E.invert(e.y+t))O[1]=E.invert(e.y+t)});var F=P[1]-P[0],I=O[1]-O[0];N*=Oe([z/F,L/I]);D.range([B[0]===B[1]?N:Oe([N/2,this._sizeMin]),N]);C.domain(P);E.domain(O);l.forEach(function(e){e.x=C(e.fx);e.fx=e.x;e.y=E(e.fy);e.fy=e.y;e.r=D(e.r);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 j=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);j.enter().append("rect").attr("class","d3plus-network-hitArea").merge(j).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 H=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup);var V=Be(c,function(e){return e.size});if(V[0]!==V[1]){var G=ts["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(V).range([this._linkSizeMin,D.range()[0]]);c.forEach(function(e){e.size=G(e.size)})}var U=Zx.bind(this)(this._shapeConfig,"edge","Path");delete U.on;this._shapes.push((new eB).config(U).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(Qx("g.d3plus-network-links",{parent:H,transition:r,enter:{transform:i},update:{transform:i}}).node()).render());var W={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:Qx("g.d3plus-network-nodes",{parent:H,transition:r,enter:{transform:i},update:{transform:i}}).node()};Z().key(function(e){return e.shape}).entries(l).forEach(function(e){a._shapes.push((new tB[e.key]).config(Zx.bind(a)(a._shapeConfig,"shape",e.key)).config(W).config(W[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){var i=this._queue.find(function(e){return e[3]==="links"});var a=[BB.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:"linkSize",value:function e(t){return arguments.length?(this._linkSize=typeof t==="function"?t:Jx(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 Ih(e)}}),this}},{key:"nodes",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="nodes"});var a=[BB.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:"size",value:function e(t){return arguments.length?(this._size=typeof t==="function"||!t?t:Ih(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=Ih(t);if(!this._aggs[t])this._aggs[t]=M}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=Ih(t);if(!this._aggs[t])this._aggs[t]=M}return this}else return this._y}}]);return q}(Oj);var Lj=function(e){l(F,e);var t=f(F);function F(){var l;n(this,F);l=t.call(this);l._links=[];l._linkSize=Jx(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(c(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=Jx("Circle");l._shapeConfig=Gh(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}a(F,[{key:"_draw",value:function e(t){var u=this;X(Y(F.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 K(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=Oe([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?ve([this._sizeMin,v*.65]):this._sizeMax?Oe([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=Oe([C/2,8])}var R=E/2-4;if(E/2-4<4){R=Oe([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=Be(a,function(e){return e.size});if(T[0]===T[1]){T[0]=0}M=Xi().domain(T).rangeRound([3,Oe([A,R])]);var B=y.size;y.r=M(B)}else{M=Xi().domain([1,2]).rangeRound([A,R])}w.forEach(function(e){e.ring=2;var t=u._size?e.size:2;e.r=u._sizeMin?ve([u._sizeMin,M(t)]):u._sizeMax?Oe([u._sizeMax,M(t)]):M(t)});b.forEach(function(e){e.ring=1;var t=u._size?e.size:1;e.r=u._sizeMin?ve([u._sizeMin,M(t)]):u._sizeMax?Oe([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=Be(r,function(e){return e.size});if(N[0]!==N[1]){var D=Oe(h,function(e){return e.r});var P=ts["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(N).range([this._linkSizeMin,D]);r.forEach(function(e){e.size=P(e.size)})}var O=Zx.bind(this)(this._shapeConfig,"edge","Path");delete O.on;this._shapes.push((new eB).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(Qx("g.d3plus-rings-links",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()).render());var z=this;var L={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?Zx.bind(z)(z._shapeConfig,"shape",t.key).labelConfig.fontColor(t):CS(Zx.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||Zx.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:Qx("g.d3plus-rings-nodes",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()};Z().key(function(e){return e.shape}).entries(h).forEach(function(e){u._shapes.push((new tB[e.key]).config(Zx.bind(u)(u._shapeConfig,"shape",e.key)).config(L).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){var i=this._queue.find(function(e){return e[3]==="links"});var a=[BB.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:"linkSize",value:function e(t){return arguments.length?(this._linkSize=typeof t==="function"?t:Jx(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 Ih(e)}}),this}},{key:"nodes",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="nodes"});var a=[BB.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:"size",value:function e(t){return arguments.length?(this._size=typeof t==="function"||!t?t:Ih(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 F}(Oj);function Fj(e){return e.target.depth}function Ij(e){return e.depth}function jj(e,t){return t-1-e.height}function Hj(e,t){return e.sourceLinks.length?e.depth:t-1}function Vj(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Oe(e.sourceLinks,Fj)-1:0}function Gj(e){return function(){return e}}function Uj(e,t){return qj(e.source,t.source)||e.index-t.index}function Wj(e,t){return qj(e.target,t.target)||e.index-t.index}function qj(e,t){return e.y0-t.y0}function Kj(e){return e.value}function Yj(e){return e.index}function Xj(e){return e.nodes}function $j(e){return e.links}function Zj(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Jj(){var o=0,c=0,s=1,f=1,l=24,d=8,t=Yj,u=Hj,g,p,n=Xj,i=$j,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:Gj(e),a):t};a.nodeAlign=function(e){return arguments.length?(u=typeof e==="function"?e:Gj(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:Gj(e),a):n};a.links=function(e){return arguments.length?(i=typeof e==="function"?e:Gj(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=N(e.nodes,t);e.links.forEach(function(e,t){e.index=t;var n=e.source,i=e.target;if(K(n)!=="object")n=e.source=Zj(a,n);if(K(i)!=="object")i=e.target=Zj(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,Kj),O(e.targetLinks,Kj))})}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=Z().key(function(e){return e.x0}).sortKeys(S).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=Oe(t,function(e){return(f-c-(e.length-1)*d)/O(e,Kj)});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=k(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=k(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(qj);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(qj);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(Wj);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=k(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=k(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=k(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=k(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 Qj(e){return[e.source.x1,e.y0]}function eH(e){return[e.target.x0,e.y1]}function tH(){return SC().source(Qj).target(eH)}var nH={center:Vj,justify:Hj,left:Ij,right:jj};var iH=function(e){l(h,e);var t=f(h);function h(){var s;n(this,h);s=t.call(this);s._nodeId=Ih("id");s._links=Ih("links");s._linksSource="source";s._linksTarget="target";s._noDataMessage=false;s._nodes=Ih("nodes");s._nodeAlign=nH.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(c(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=tH();s._sankey=Jj();s._shape=Jx("Rect");s._shapeConfig=Gh(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=Jx(1);return s}a(h,[{key:"_draw",value:function e(t){var a=this;X(Y(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 eB).config(this._shapeConfig.Path).data(l).d(this._path).select(Qx("g.d3plus-Links",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).render());Z().key(function(e){return e.shape}).entries(o).forEach(function(e){a._shapes.push((new tB[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(Qx("g.d3plus-sankey-nodes",{parent:a._select,enter:{transform:u},update:{transform:u}}).node()).config(Zx.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=[BB.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:nH[t],this):this._nodeAlign}},{key:"nodeId",value:function e(t){return arguments.length?(this._nodeId=typeof t==="function"?t:Ih(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=[BB.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:Ih(t),this):this._value}}]);return h}(Oj);e.Network=zj;e.Rings=Lj;e.Sankey=iH;Object.defineProperty(e,"__esModule",{value:true})});