additionals/assets/javascripts/d3plus.min.js
2023-06-23 16:49:21 +02:00

17 lines
1.1 MiB
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.

/**
* Minified by jsDelivr using Terser v5.17.1.
* Original file: /npm/d3plus@2.0.3/build/d3plus.full.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function _defineProperty2(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _slicedToArray2(t,e){return _arrayWithHoles2(t)||_iterableToArrayLimit2(t,e)||_unsupportedIterableToArray2(t,e)||_nonIterableRest2()}function _nonIterableRest2(){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 _iterableToArrayLimit2(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}function _arrayWithHoles2(t){if(Array.isArray(t))return t}function _get2(t,e,n){return _get2="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=_superPropBase2(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},_get2(t,e,n||t)}function _superPropBase2(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_getPrototypeOf2(t)););return t}function _inherits2(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_setPrototypeOf2(t,e)}function _createSuper2(t){var e=_isNativeReflectConstruct2();return function(){var n,i=_getPrototypeOf2(t);if(e){var r=_getPrototypeOf2(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return _possibleConstructorReturn2(this,n)}}function _possibleConstructorReturn2(t,e){return!e||"object"!==_typeof2(e)&&"function"!=typeof e?_assertThisInitialized2(t):e}function _assertThisInitialized2(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _wrapNativeSuper(t){var e="function"==typeof Map?new Map:void 0;return _wrapNativeSuper=function(t){if(null===t||!_isNativeFunction(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return _construct(t,arguments,_getPrototypeOf2(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf2(n,t)},_wrapNativeSuper(t)}function _construct(t,e,n){return _construct=_isNativeReflectConstruct2()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&_setPrototypeOf2(r,n.prototype),r},_construct.apply(null,arguments)}function _isNativeReflectConstruct2(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function _isNativeFunction(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function _setPrototypeOf2(t,e){return _setPrototypeOf2=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_setPrototypeOf2(t,e)}function _getPrototypeOf2(t){return _getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},_getPrototypeOf2(t)}function _classCallCheck2(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass2(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}function _createForOfIteratorHelper2(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=_unsupportedIterableToArray2(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function _unsupportedIterableToArray2(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray2(t,e):void 0}}function _arrayLikeToArray2(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function _typeof2(t){return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof2(t)}
/*
d3plus v2.0.3
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
Copyright (c) 2023 D3plus - https://d3plus.org
@license MIT
*/!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t){var e={exports:{}};return t(e,e.exports),e.exports}var e=t((function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)})),n={}.hasOwnProperty,i=function(t,e){return n.call(t,e)},r=function(t){try{return!!t()}catch(t){return!0}},o=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),a=t((function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)})),s=function(t){return"object"===_typeof2(t)?null!==t:"function"==typeof t},u=function(t){if(!s(t))throw TypeError(t+" is not an object!");return t},l=e.document,c=s(l)&&s(l.createElement),h=function(t){return c?l.createElement(t):{}},f=!o&&!r((function(){return 7!=Object.defineProperty(h("div"),"a",{get:function(){return 7}}).a})),d=function(t,e){if(!s(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!s(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!s(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!s(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")},g=Object.defineProperty,p={f:o?Object.defineProperty:function(t,e,n){if(u(t),e=d(e,!0),u(n),f)try{return g(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},v=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},y=o?function(t,e,n){return p.f(t,e,v(1,n))}:function(t,e,n){return t[e]=n,t},m=0,_=Math.random(),b=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++m+_).toString(36))},w=t((function(t){var n="__core-js_shared__",i=e[n]||(e[n]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:a.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),x=w("native-function-to-string",Function.toString),k=t((function(t){var n=b("src"),r="toString",o=(""+x).split(r);a.inspectSource=function(t){return x.call(t)},(t.exports=function(t,r,a,s){var u="function"==typeof a;u&&(i(a,"name")||y(a,"name",r)),t[r]!==a&&(u&&(i(a,n)||y(a,n,t[r]?""+t[r]:o.join(String(r)))),t===e?t[r]=a:s?t[r]?t[r]=a:y(t,r,a):(delete t[r],y(t,r,a)))})(Function.prototype,r,(function(){return"function"==typeof this&&this[n]||x.call(this)}))})),S=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t},C=function(t,e,n){if(S(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}},E="prototype",A=function t(n,i,r){var o,s,u,l,c=n&t.F,h=n&t.G,f=n&t.P,d=n&t.B,g=h?e:n&t.S?e[i]||(e[i]={}):(e[i]||{})[E],p=h?a:a[i]||(a[i]={}),v=p[E]||(p[E]={});for(o in h&&(r=i),r)u=((s=!c&&g&&void 0!==g[o])?g:r)[o],l=d&&s?C(u,e):f&&"function"==typeof u?C(Function.call,u):u,g&&k(g,o,u,n&t.U),p[o]!=u&&y(p,o,l),f&&v[o]!=u&&(v[o]=u)};e.core=a,A.F=1,A.G=2,A.S=4,A.P=8,A.B=16,A.W=32,A.U=64,A.R=128;var R=A,M=t((function(t){var e=b("meta"),n=p.f,o=0,a=Object.isExtensible||function(){return!0},u=!r((function(){return a(Object.preventExtensions({}))})),l=function(t){n(t,e,{value:{i:"O"+ ++o,w:{}}})},c=t.exports={KEY:e,NEED:!1,fastKey:function(t,n){if(!s(t))return"symbol"==_typeof2(t)?t:("string"==typeof t?"S":"P")+t;if(!i(t,e)){if(!a(t))return"F";if(!n)return"E";l(t)}return t[e].i},getWeak:function(t,n){if(!i(t,e)){if(!a(t))return!0;if(!n)return!1;l(t)}return t[e].w},onFreeze:function(t){return u&&c.NEED&&a(t)&&!i(t,e)&&l(t),t}}})),O=t((function(t){var n=w("wks"),i=e.Symbol,r="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=r&&i[t]||(r?i:b)("Symbol."+t))}).store=n})),T=p.f,P=O("toStringTag"),B=function(t,e,n){t&&!i(t=n?t:t.prototype,P)&&T(t,P,{configurable:!0,value:e})},D={f:O},N=p.f,z=function(t){var n=a.Symbol||(a.Symbol=e.Symbol||{});"_"==t.charAt(0)||t in n||N(n,t,{value:D.f(t)})},j={}.toString,F=function(t){return j.call(t).slice(8,-1)},L=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==F(t)?t.split(""):Object(t)},I=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},H=function(t){return L(I(t))},G=Math.ceil,V=Math.floor,U=function(t){return isNaN(t=+t)?0:(t>0?V:G)(t)},W=Math.min,q=function(t){return t>0?W(U(t),9007199254740991):0},K=Math.max,Y=Math.min,X=function(t,e){return(t=U(t))<0?K(t+e,0):Y(t,e)},Z=function(t){return function(e,n,i){var r,o=H(e),a=q(o.length),s=X(i,a);if(t&&n!=n){for(;a>s;)if((r=o[s++])!=r)return!0}else for(;a>s;s++)if((t||s in o)&&o[s]===n)return t||s||0;return!t&&-1}},$=w("keys"),J=function(t){return $[t]||($[t]=b(t))},Q=Z(!1),tt=J("IE_PROTO"),et=function(t,e){var n,r=H(t),o=0,a=[];for(n in r)n!=tt&&i(r,n)&&a.push(n);for(;e.length>o;)i(r,n=e[o++])&&(~Q(a,n)||a.push(n));return a},nt="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),it=Object.keys||function(t){return et(t,nt)},rt={f:Object.getOwnPropertySymbols},ot={f:{}.propertyIsEnumerable},at=Array.isArray||function(t){return"Array"==F(t)},st=function(t){return Object(I(t))},ut=o?Object.defineProperties:function(t,e){u(t);for(var n,i=it(e),r=i.length,o=0;r>o;)p.f(t,n=i[o++],e[n]);return t},lt=e.document,ct=lt&&lt.documentElement,ht=J("IE_PROTO"),ft=function(){},dt="prototype",gt=function(){var t,e=h("iframe"),n=nt.length;for(e.style.display="none",ct.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),gt=t.F;n--;)delete gt[dt][nt[n]];return gt()},pt=Object.create||function(t,e){var n;return null!==t?(ft[dt]=u(t),n=new ft,ft[dt]=null,n[ht]=t):n=gt(),void 0===e?n:ut(n,e)},vt=nt.concat("length","prototype"),yt={f:Object.getOwnPropertyNames||function(t){return et(t,vt)}},mt=yt.f,_t={}.toString,bt="object"==("undefined"==typeof window?"undefined":_typeof2(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],wt={f:function(t){return bt&&"[object Window]"==_t.call(t)?function(t){try{return mt(t)}catch(t){return bt.slice()}}(t):mt(H(t))}},xt=Object.getOwnPropertyDescriptor,kt={f:o?xt:function(t,e){if(t=H(t),e=d(e,!0),f)try{return xt(t,e)}catch(t){}if(i(t,e))return v(!ot.f.call(t,e),t[e])}},St=M.KEY,Ct=kt.f,Et=p.f,At=wt.f,Rt=e.Symbol,Mt=e.JSON,Ot=Mt&&Mt.stringify,Tt="prototype",Pt=O("_hidden"),Bt=O("toPrimitive"),Dt={}.propertyIsEnumerable,Nt=w("symbol-registry"),zt=w("symbols"),jt=w("op-symbols"),Ft=Object[Tt],Lt="function"==typeof Rt&&!!rt.f,It=e.QObject,Ht=!It||!It[Tt]||!It[Tt].findChild,Gt=o&&r((function(){return 7!=pt(Et({},"a",{get:function(){return Et(this,"a",{value:7}).a}})).a}))?function(t,e,n){var i=Ct(Ft,e);i&&delete Ft[e],Et(t,e,n),i&&t!==Ft&&Et(Ft,e,i)}:Et,Vt=function(t){var e=zt[t]=pt(Rt[Tt]);return e._k=t,e},Ut=Lt&&"symbol"==_typeof2(Rt.iterator)?function(t){return"symbol"==_typeof2(t)}:function(t){return t instanceof Rt},Wt=function(t,e,n){return t===Ft&&Wt(jt,e,n),u(t),e=d(e,!0),u(n),i(zt,e)?(n.enumerable?(i(t,Pt)&&t[Pt][e]&&(t[Pt][e]=!1),n=pt(n,{enumerable:v(0,!1)})):(i(t,Pt)||Et(t,Pt,v(1,{})),t[Pt][e]=!0),Gt(t,e,n)):Et(t,e,n)},qt=function(t,e){u(t);for(var n,i=function(t){var e=it(t),n=rt.f;if(n)for(var i,r=n(t),o=ot.f,a=0;r.length>a;)o.call(t,i=r[a++])&&e.push(i);return e}(e=H(e)),r=0,o=i.length;o>r;)Wt(t,n=i[r++],e[n]);return t},Kt=function(t){var e=Dt.call(this,t=d(t,!0));return!(this===Ft&&i(zt,t)&&!i(jt,t))&&(!(e||!i(this,t)||!i(zt,t)||i(this,Pt)&&this[Pt][t])||e)},Yt=function(t,e){if(t=H(t),e=d(e,!0),t!==Ft||!i(zt,e)||i(jt,e)){var n=Ct(t,e);return!n||!i(zt,e)||i(t,Pt)&&t[Pt][e]||(n.enumerable=!0),n}},Xt=function(t){for(var e,n=At(H(t)),r=[],o=0;n.length>o;)i(zt,e=n[o++])||e==Pt||e==St||r.push(e);return r},Zt=function(t){for(var e,n=t===Ft,r=At(n?jt:H(t)),o=[],a=0;r.length>a;)!i(zt,e=r[a++])||n&&!i(Ft,e)||o.push(zt[e]);return o};Lt||(Rt=function(){if(this instanceof Rt)throw TypeError("Symbol is not a constructor!");var t=b(arguments.length>0?arguments[0]:void 0);return o&&Ht&&Gt(Ft,t,{configurable:!0,set:function e(n){this===Ft&&e.call(jt,n),i(this,Pt)&&i(this[Pt],t)&&(this[Pt][t]=!1),Gt(this,t,v(1,n))}}),Vt(t)},k(Rt[Tt],"toString",(function(){return this._k})),kt.f=Yt,p.f=Wt,yt.f=wt.f=Xt,ot.f=Kt,rt.f=Zt,o&&k(Ft,"propertyIsEnumerable",Kt,!0),D.f=function(t){return Vt(O(t))}),R(R.G+R.W+R.F*!Lt,{Symbol:Rt});for(var $t="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Jt=0;$t.length>Jt;)O($t[Jt++]);for(var Qt=it(O.store),te=0;Qt.length>te;)z(Qt[te++]);R(R.S+R.F*!Lt,"Symbol",{for:function(t){return i(Nt,t+="")?Nt[t]:Nt[t]=Rt(t)},keyFor:function(t){if(!Ut(t))throw TypeError(t+" is not a symbol!");for(var e in Nt)if(Nt[e]===t)return e},useSetter:function(){Ht=!0},useSimple:function(){Ht=!1}}),R(R.S+R.F*!Lt,"Object",{create:function(t,e){return void 0===e?pt(t):qt(pt(t),e)},defineProperty:Wt,defineProperties:qt,getOwnPropertyDescriptor:Yt,getOwnPropertyNames:Xt,getOwnPropertySymbols:Zt});var ee=r((function(){rt.f(1)}));R(R.S+R.F*ee,"Object",{getOwnPropertySymbols:function(t){return rt.f(st(t))}}),Mt&&R(R.S+R.F*(!Lt||r((function(){var t=Rt();return"[null]"!=Ot([t])||"{}"!=Ot({a:t})||"{}"!=Ot(Object(t))}))),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(s(e)||void 0!==t)&&!Ut(t))return at(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Ut(e))return e}),i[1]=e,Ot.apply(Mt,i)}}),Rt[Tt][Bt]||y(Rt[Tt],Bt,Rt[Tt].valueOf),B(Rt,"Symbol"),B(Math,"Math",!0),B(e.JSON,"JSON",!0),R(R.S,"Object",{create:pt}),R(R.S+R.F*!o,"Object",{defineProperty:p.f}),R(R.S+R.F*!o,"Object",{defineProperties:ut});var ne=function(t,e){var n=(a.Object||{})[t]||Object[t],i={};i[t]=e(n),R(R.S+R.F*r((function(){n(1)})),"Object",i)},ie=kt.f;ne("getOwnPropertyDescriptor",(function(){return function(t,e){return ie(H(t),e)}}));var re=J("IE_PROTO"),oe=Object.prototype,ae=Object.getPrototypeOf||function(t){return t=st(t),i(t,re)?t[re]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?oe:null};ne("getPrototypeOf",(function(){return function(t){return ae(st(t))}})),ne("keys",(function(){return function(t){return it(st(t))}})),ne("getOwnPropertyNames",(function(){return wt.f}));var se=M.onFreeze;ne("freeze",(function(t){return function(e){return t&&s(e)?t(se(e)):e}}));var ue=M.onFreeze;ne("seal",(function(t){return function(e){return t&&s(e)?t(ue(e)):e}}));var le=M.onFreeze;ne("preventExtensions",(function(t){return function(e){return t&&s(e)?t(le(e)):e}})),ne("isFrozen",(function(t){return function(e){return!s(e)||!!t&&t(e)}})),ne("isSealed",(function(t){return function(e){return!s(e)||!!t&&t(e)}})),ne("isExtensible",(function(t){return function(e){return!!s(e)&&(!t||t(e))}}));var ce=Object.assign,he=!ce||r((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=ce({},t)[n]||Object.keys(ce({},e)).join("")!=i}))?function(t,e){for(var n=st(t),i=arguments.length,r=1,a=rt.f,s=ot.f;i>r;)for(var u,l=L(arguments[r++]),c=a?it(l).concat(a(l)):it(l),h=c.length,f=0;h>f;)u=c[f++],o&&!s.call(l,u)||(n[u]=l[u]);return n}:ce;R(R.S+R.F,"Object",{assign:he});var fe=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};R(R.S,"Object",{is:fe});var de=function(t,e){if(u(t),!s(e)&&null!==e)throw TypeError(e+": can't set as prototype!")},ge={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=C(Function.call,kt.f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return de(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:de};R(R.S,"Object",{setPrototypeOf:ge.set});var pe=O("toStringTag"),ve="Arguments"==F(function(){return arguments}()),ye=function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),pe))?n:ve?F(e):"Object"==(i=F(e))&&"function"==typeof e.callee?"Arguments":i},me={};me[O("toStringTag")]="z",me+""!="[object z]"&&k(Object.prototype,"toString",(function(){return"[object "+ye(this)+"]"}),!0);var _e=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)},be=[].slice,we={},xe=Function.bind||function(t){var e=S(this),n=be.call(arguments,1),i=function i(){var r=n.concat(be.call(arguments));return this instanceof i?function(t,e,n){if(!(e in we)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";we[e]=Function("F,a","return new F("+i.join(",")+")")}return we[e](t,n)}(e,r.length,r):_e(e,r,t)};return s(e.prototype)&&(i.prototype=e.prototype),i};R(R.P,"Function",{bind:xe});var ke=p.f,Se=Function.prototype,Ce=/^\s*function ([^ (]*)/,Ee="name";Ee in Se||o&&ke(Se,Ee,{configurable:!0,get:function(){try{return(""+this).match(Ce)[1]}catch(t){return""}}});var Ae=O("hasInstance"),Re=Function.prototype;Ae in Re||p.f(Re,Ae,{value:function(t){if("function"!=typeof this||!s(t))return!1;if(!s(this.prototype))return t instanceof this;for(;t=ae(t);)if(this.prototype===t)return!0;return!1}});var Me="\t\n\v\f\r    \u2028\u2029\ufeff",Oe="["+Me+"]",Te=RegExp("^"+Oe+Oe+"*"),Pe=RegExp(Oe+Oe+"*$"),Be=function(t,e,n){var i={},o=r((function(){return!!Me[t]()||"…"!="…"[t]()})),a=i[t]=o?e(De):Me[t];n&&(i[n]=a),R(R.P+R.F*o,"String",i)},De=Be.trim=function(t,e){return t=String(I(t)),1&e&&(t=t.replace(Te,"")),2&e&&(t=t.replace(Pe,"")),t},Ne=Be,ze=e.parseInt,je=Ne.trim,Fe=/^[-+]?0[xX]/,Le=8!==ze(Me+"08")||22!==ze(Me+"0x16")?function(t,e){var n=je(String(t),3);return ze(n,e>>>0||(Fe.test(n)?16:10))}:ze;R(R.G+R.F*(parseInt!=Le),{parseInt:Le});var Ie=e.parseFloat,He=Ne.trim,Ge=1/Ie(Me+"-0")!=-1/0?function(t){var e=He(String(t),3),n=Ie(e);return 0===n&&"-"==e.charAt(0)?-0:n}:Ie;R(R.G+R.F*(parseFloat!=Ge),{parseFloat:Ge});var Ve=ge.set,Ue=function(t,e,n){var i,r=e.constructor;return r!==n&&"function"==typeof r&&(i=r.prototype)!==n.prototype&&s(i)&&Ve&&Ve(t,i),t},We=yt.f,qe=kt.f,Ke=p.f,Ye=Ne.trim,Xe="Number",Ze=e[Xe],$e=Ze,Je=Ze.prototype,Qe=F(pt(Je))==Xe,tn="trim"in String.prototype,en=function(t){var e=d(t,!1);if("string"==typeof e&&e.length>2){var n,i,r,o=(e=tn?e.trim():Ye(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,s=e.slice(2),u=0,l=s.length;u<l;u++)if((a=s.charCodeAt(u))<48||a>r)return NaN;return parseInt(s,i)}}return+e};if(!Ze(" 0o1")||!Ze("0b1")||Ze("+0x1")){Ze=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof Ze&&(Qe?r((function(){Je.valueOf.call(n)})):F(n)!=Xe)?Ue(new $e(en(e)),n,Ze):en(e)};for(var nn,rn=o?We($e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),on=0;rn.length>on;on++)i($e,nn=rn[on])&&!i(Ze,nn)&&Ke(Ze,nn,qe($e,nn));Ze.prototype=Je,Je.constructor=Ze,k(e,Xe,Ze)}var an=function(t,e){if("number"!=typeof t&&"Number"!=F(t))throw TypeError(e);return+t},sn=function(t){var e=String(I(this)),n="",i=U(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n},un=1..toFixed,ln=Math.floor,cn=[0,0,0,0,0,0],hn="Number.toFixed: incorrect invocation!",fn="0",dn=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*cn[n],cn[n]=i%1e7,i=ln(i/1e7)},gn=function(t){for(var e=6,n=0;--e>=0;)n+=cn[e],cn[e]=ln(n/t),n=n%t*1e7},pn=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==cn[t]){var n=String(cn[t]);e=""===e?n:e+sn.call(fn,7-n.length)+n}return e},vn=function t(e,n,i){return 0===n?i:n%2==1?t(e,n-1,i*e):t(e*e,n/2,i)};R(R.P+R.F*(!!un&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!r((function(){un.call({})}))),"Number",{toFixed:function(t){var e,n,i,r,o=an(this,hn),a=U(t),s="",u=fn;if(a<0||a>20)throw RangeError(hn);if(o!=o)return"NaN";if(o<=-1e21||o>=1e21)return String(o);if(o<0&&(s="-",o=-o),o>1e-21)if(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(o*vn(2,69,1))-69,n=e<0?o*vn(2,-e,1):o/vn(2,e,1),n*=4503599627370496,(e=52-e)>0){for(dn(0,n),i=a;i>=7;)dn(1e7,0),i-=7;for(dn(vn(10,i,1),0),i=e-1;i>=23;)gn(1<<23),i-=23;gn(1<<i),dn(1,1),gn(2),u=pn()}else dn(0,n),dn(1<<-e,0),u=pn()+sn.call(fn,a);return u=a>0?s+((r=u.length)<=a?"0."+sn.call(fn,a-r)+u:u.slice(0,r-a)+"."+u.slice(r-a)):s+u}});var yn=1..toPrecision;R(R.P+R.F*(r((function(){return"1"!==yn.call(1,void 0)}))||!r((function(){yn.call({})}))),"Number",{toPrecision:function(t){var e=an(this,"Number#toPrecision: incorrect invocation!");return void 0===t?yn.call(e):yn.call(e,t)}}),R(R.S,"Number",{EPSILON:Math.pow(2,-52)});var mn=e.isFinite;R(R.S,"Number",{isFinite:function(t){return"number"==typeof t&&mn(t)}});var _n=Math.floor,bn=function(t){return!s(t)&&isFinite(t)&&_n(t)===t};R(R.S,"Number",{isInteger:bn}),R(R.S,"Number",{isNaN:function(t){return t!=t}});var wn=Math.abs;R(R.S,"Number",{isSafeInteger:function(t){return bn(t)&&wn(t)<=9007199254740991}}),R(R.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),R(R.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991}),R(R.S+R.F*(Number.parseFloat!=Ge),"Number",{parseFloat:Ge}),R(R.S+R.F*(Number.parseInt!=Le),"Number",{parseInt:Le});var xn=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)},kn=Math.sqrt,Sn=Math.acosh;R(R.S+R.F*!(Sn&&710==Math.floor(Sn(Number.MAX_VALUE))&&Sn(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:xn(t-1+kn(t-1)*kn(t+1))}});var Cn=Math.asinh;R(R.S+R.F*!(Cn&&1/Cn(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}});var En=Math.atanh;R(R.S+R.F*!(En&&1/En(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}});var An=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1};R(R.S,"Math",{cbrt:function(t){return An(t=+t)*Math.pow(Math.abs(t),1/3)}}),R(R.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}});var Rn=Math.exp;R(R.S,"Math",{cosh:function(t){return(Rn(t=+t)+Rn(-t))/2}});var Mn=Math.expm1,On=!Mn||Mn(10)>22025.465794806718||Mn(10)<22025.465794806718||-2e-17!=Mn(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:Mn;R(R.S+R.F*(On!=Math.expm1),"Math",{expm1:On});var Tn=Math.pow,Pn=Tn(2,-52),Bn=Tn(2,-23),Dn=Tn(2,127)*(2-Bn),Nn=Tn(2,-126),zn=Math.fround||function(t){var e,n,i=Math.abs(t),r=An(t);return i<Nn?r*(i/Nn/Bn+1/Pn-1/Pn)*Nn*Bn:(n=(e=(1+Bn/Pn)*i)-(e-i))>Dn||n!=n?r*(1/0):r*n};R(R.S,"Math",{fround:zn});var jn=Math.abs;R(R.S,"Math",{hypot:function(t,e){for(var n,i,r=0,o=0,a=arguments.length,s=0;o<a;)s<(n=jn(arguments[o++]))?(r=r*(i=s/n)*i+1,s=n):r+=n>0?(i=n/s)*i:n;return s===1/0?1/0:s*Math.sqrt(r)}});var Fn=Math.imul;R(R.S+R.F*r((function(){return-5!=Fn(4294967295,5)||2!=Fn.length})),"Math",{imul:function(t,e){var n=65535,i=+t,r=+e,o=n&i,a=n&r;return 0|o*a+((n&i>>>16)*a+o*(n&r>>>16)<<16>>>0)}}),R(R.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}}),R(R.S,"Math",{log1p:xn}),R(R.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}}),R(R.S,"Math",{sign:An});var Ln=Math.exp;R(R.S+R.F*r((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(On(t)-On(-t))/2:(Ln(t-1)-Ln(-t-1))*(Math.E/2)}});var In=Math.exp;R(R.S,"Math",{tanh:function(t){var e=On(t=+t),n=On(-t);return e==1/0?1:n==1/0?-1:(e-n)/(In(t)+In(-t))}}),R(R.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}});var Hn=String.fromCharCode,Gn=String.fromCodePoint;R(R.S+R.F*(!!Gn&&1!=Gn.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;i>r;){if(e=+arguments[r++],X(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?Hn(e):Hn(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}}),R(R.S,"String",{raw:function(t){for(var e=H(t.raw),n=q(e.length),i=arguments.length,r=[],o=0;n>o;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}}),Ne("trim",(function(t){return function(){return t(this,3)}}));var Vn=function(t){return function(e,n){var i,r,o=String(I(e)),a=U(n),s=o.length;return a<0||a>=s?t?"":void 0:(i=o.charCodeAt(a))<55296||i>56319||a+1===s||(r=o.charCodeAt(a+1))<56320||r>57343?t?o.charAt(a):i:t?o.slice(a,a+2):r-56320+(i-55296<<10)+65536}},Un={},Wn={};y(Wn,O("iterator"),(function(){return this}));var qn=function(t,e,n){t.prototype=pt(Wn,{next:v(1,n)}),B(t,e+" Iterator")},Kn=O("iterator"),Yn=!([].keys&&"next"in[].keys()),Xn="keys",Zn="values",$n=function(){return this},Jn=function(t,e,n,i,r,o,a){qn(n,e,i);var s,u,l,c=function(t){if(!Yn&&t in g)return g[t];switch(t){case Xn:case Zn:return function(){return new n(this,t)}}return function(){return new n(this,t)}},h=e+" Iterator",f=r==Zn,d=!1,g=t.prototype,p=g[Kn]||g["@@iterator"]||r&&g[r],v=p||c(r),m=r?f?c("entries"):v:void 0,_="Array"==e&&g.entries||p;if(_&&(l=ae(_.call(new t)))!==Object.prototype&&l.next&&(B(l,h,!0),"function"!=typeof l[Kn]&&y(l,Kn,$n)),f&&p&&p.name!==Zn&&(d=!0,v=function(){return p.call(this)}),(Yn||d||!g[Kn])&&y(g,Kn,v),Un[e]=v,Un[h]=$n,r)if(s={values:f?v:c(Zn),keys:o?v:c(Xn),entries:m},a)for(u in s)u in g||k(g,u,s[u]);else R(R.P+R.F*(Yn||d),e,s);return s},Qn=Vn(!0);Jn(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=Qn(e,n),this._i+=t.length,{value:t,done:!1})}));var ti=Vn(!1);R(R.P,"String",{codePointAt:function(t){return ti(this,t)}});var ei=O("match"),ni=function(t){var e;return s(t)&&(void 0!==(e=t[ei])?!!e:"RegExp"==F(t))},ii=function(t,e,n){if(ni(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(I(t))},ri=O("match"),oi=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[ri]=!1,!"/./"[t](e)}catch(t){}}return!0},ai="endsWith",si=""[ai];R(R.P+R.F*oi(ai),"String",{endsWith:function(t){var e=ii(this,t,ai),n=arguments.length>1?arguments[1]:void 0,i=q(e.length),r=void 0===n?i:Math.min(q(n),i),o=String(t);return si?si.call(e,o,r):e.slice(r-o.length,r)===o}});var ui="includes";R(R.P+R.F*oi(ui),"String",{includes:function(t){return!!~ii(this,t,ui).indexOf(t,arguments.length>1?arguments[1]:void 0)}}),R(R.P,"String",{repeat:sn});var li="startsWith",ci=""[li];R(R.P+R.F*oi(li),"String",{startsWith:function(t){var e=ii(this,t,li),n=q(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return ci?ci.call(e,i,n):e.slice(n,n+i.length)===i}});var hi=/"/g,fi=function(t,e,n,i){var r=String(I(t)),o="<"+e;return""!==n&&(o+=" "+n+'="'+String(i).replace(hi,"&quot;")+'"'),o+">"+r+"</"+e+">"},di=function(t,e){var n={};n[t]=e(fi),R(R.P+R.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",n)};di("anchor",(function(t){return function(e){return t(this,"a","name",e)}})),di("big",(function(t){return function(){return t(this,"big","","")}})),di("blink",(function(t){return function(){return t(this,"blink","","")}})),di("bold",(function(t){return function(){return t(this,"b","","")}})),di("fixed",(function(t){return function(){return t(this,"tt","","")}})),di("fontcolor",(function(t){return function(e){return t(this,"font","color",e)}})),di("fontsize",(function(t){return function(e){return t(this,"font","size",e)}})),di("italics",(function(t){return function(){return t(this,"i","","")}})),di("link",(function(t){return function(e){return t(this,"a","href",e)}})),di("small",(function(t){return function(){return t(this,"small","","")}})),di("strike",(function(t){return function(){return t(this,"strike","","")}})),di("sub",(function(t){return function(){return t(this,"sub","","")}})),di("sup",(function(t){return function(){return t(this,"sup","","")}})),R(R.S,"Date",{now:function(){return(new Date).getTime()}}),R(R.P+R.F*r((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var e=st(this),n=d(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}});var gi=Date.prototype.getTime,pi=Date.prototype.toISOString,vi=function(t){return t>9?t:"0"+t},yi=r((function(){return"0385-07-25T07:06:39.999Z"!=pi.call(new Date(-50000000000001))}))||!r((function(){pi.call(new Date(NaN))}))?function(){if(!isFinite(gi.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+vi(t.getUTCMonth()+1)+"-"+vi(t.getUTCDate())+"T"+vi(t.getUTCHours())+":"+vi(t.getUTCMinutes())+":"+vi(t.getUTCSeconds())+"."+(n>99?n:"0"+vi(n))+"Z"}:pi;R(R.P+R.F*(Date.prototype.toISOString!==yi),"Date",{toISOString:yi});var mi=Date.prototype,_i="Invalid Date",bi="toString",wi=mi[bi],xi=mi.getTime;new Date(NaN)+""!=_i&&k(mi,bi,(function(){var t=xi.call(this);return t==t?wi.call(this):_i}));var ki="number",Si=O("toPrimitive"),Ci=Date.prototype;Si in Ci||y(Ci,Si,(function(t){if("string"!==t&&t!==ki&&"default"!==t)throw TypeError("Incorrect hint");return d(u(this),t!=ki)})),R(R.S,"Array",{isArray:at});var Ei=function(t,e,n,i){try{return i?e(u(n)[0],n[1]):e(n)}catch(e){var r=t.return;throw void 0!==r&&u(r.call(t)),e}},Ai=O("iterator"),Ri=Array.prototype,Mi=function(t){return void 0!==t&&(Un.Array===t||Ri[Ai]===t)},Oi=function(t,e,n){e in t?p.f(t,e,v(0,n)):t[e]=n},Ti=O("iterator"),Pi=a.getIteratorMethod=function(t){if(null!=t)return t[Ti]||t["@@iterator"]||Un[ye(t)]},Bi=O("iterator"),Di=!1;try{var Ni=[7][Bi]();Ni.return=function(){Di=!0},Array.from(Ni,(function(){throw 2}))}catch(t){}var zi=function(t,e){if(!e&&!Di)return!1;var n=!1;try{var i=[7],r=i[Bi]();r.next=function(){return{done:n=!0}},i[Bi]=function(){return r},t(i)}catch(t){}return n};R(R.S+R.F*!zi((function(t){Array.from(t)})),"Array",{from:function(t){var e,n,i,r,o=st(t),a="function"==typeof this?this:Array,s=arguments.length,u=s>1?arguments[1]:void 0,l=void 0!==u,c=0,h=Pi(o);if(l&&(u=C(u,s>2?arguments[2]:void 0,2)),null==h||a==Array&&Mi(h))for(n=new a(e=q(o.length));e>c;c++)Oi(n,c,l?u(o[c],c):o[c]);else for(r=h.call(o),n=new a;!(i=r.next()).done;c++)Oi(n,c,l?Ei(r,u,[i.value,c],!0):i.value);return n.length=c,n}}),R(R.S+R.F*r((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)Oi(n,t,arguments[t++]);return n.length=e,n}});var ji=function(t,e){return!!t&&r((function(){e?t.call(null,(function(){}),1):t.call(null)}))},Fi=[].join;R(R.P+R.F*(L!=Object||!ji(Fi)),"Array",{join:function(t){return Fi.call(H(this),void 0===t?",":t)}});var Li=[].slice;R(R.P+R.F*r((function(){ct&&Li.call(ct)})),"Array",{slice:function(t,e){var n=q(this.length),i=F(this);if(e=void 0===e?n:e,"Array"==i)return Li.call(this,t,e);for(var r=X(t,n),o=X(e,n),a=q(o-r),s=new Array(a),u=0;u<a;u++)s[u]="String"==i?this.charAt(r+u):this[r+u];return s}});var Ii=[].sort,Hi=[1,2,3];R(R.P+R.F*(r((function(){Hi.sort(void 0)}))||!r((function(){Hi.sort(null)}))||!ji(Ii)),"Array",{sort:function(t){return void 0===t?Ii.call(st(this)):Ii.call(st(this),S(t))}});var Gi=O("species"),Vi=function(t,e){return new(function(t){var e;return at(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!at(e.prototype)||(e=void 0),s(e)&&null===(e=e[Gi])&&(e=void 0)),void 0===e?Array:e}(t))(e)},Ui=function(t,e){var n=1==t,i=2==t,r=3==t,o=4==t,a=6==t,s=5==t||a,u=e||Vi;return function(e,l,c){for(var h,f,d=st(e),g=L(d),p=C(l,c,3),v=q(g.length),y=0,m=n?u(e,v):i?u(e,0):void 0;v>y;y++)if((s||y in g)&&(f=p(h=g[y],y,d),t))if(n)m[y]=f;else if(f)switch(t){case 3:return!0;case 5:return h;case 6:return y;case 2:m.push(h)}else if(o)return!1;return a?-1:r||o?o:m}},Wi=Ui(0),qi=ji([].forEach,!0);R(R.P+R.F*!qi,"Array",{forEach:function(t){return Wi(this,t,arguments[1])}});var Ki=Ui(1);R(R.P+R.F*!ji([].map,!0),"Array",{map:function(t){return Ki(this,t,arguments[1])}});var Yi=Ui(2);R(R.P+R.F*!ji([].filter,!0),"Array",{filter:function(t){return Yi(this,t,arguments[1])}});var Xi=Ui(3);R(R.P+R.F*!ji([].some,!0),"Array",{some:function(t){return Xi(this,t,arguments[1])}});var Zi=Ui(4);R(R.P+R.F*!ji([].every,!0),"Array",{every:function(t){return Zi(this,t,arguments[1])}});var $i=function(t,e,n,i,r){S(e);var o=st(t),a=L(o),s=q(o.length),u=r?s-1:0,l=r?-1:1;if(n<2)for(;;){if(u in a){i=a[u],u+=l;break}if(u+=l,r?u<0:s<=u)throw TypeError("Reduce of empty array with no initial value")}for(;r?u>=0:s>u;u+=l)u in a&&(i=e(i,a[u],u,o));return i};R(R.P+R.F*!ji([].reduce,!0),"Array",{reduce:function(t){return $i(this,t,arguments.length,arguments[1],!1)}}),R(R.P+R.F*!ji([].reduceRight,!0),"Array",{reduceRight:function(t){return $i(this,t,arguments.length,arguments[1],!0)}});var Ji=Z(!1),Qi=[].indexOf,tr=!!Qi&&1/[1].indexOf(1,-0)<0;R(R.P+R.F*(tr||!ji(Qi)),"Array",{indexOf:function(t){return tr?Qi.apply(this,arguments)||0:Ji(this,t,arguments[1])}});var er=[].lastIndexOf,nr=!!er&&1/[1].lastIndexOf(1,-0)<0;R(R.P+R.F*(nr||!ji(er)),"Array",{lastIndexOf:function(t){if(nr)return er.apply(this,arguments)||0;var e=H(this),n=q(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,U(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}});var ir=[].copyWithin||function(t,e){var n=st(this),i=q(n.length),r=X(t,i),o=X(e,i),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?i:X(a,i))-o,i-r),u=1;for(o<r&&r<o+s&&(u=-1,o+=s-1,r+=s-1);s-- >0;)o in n?n[r]=n[o]:delete n[r],r+=u,o+=u;return n},rr=O("unscopables"),or=Array.prototype;null==or[rr]&&y(or,rr,{});var ar=function(t){or[rr][t]=!0};R(R.P,"Array",{copyWithin:ir}),ar("copyWithin");var sr=function(t){for(var e=st(this),n=q(e.length),i=arguments.length,r=X(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,a=void 0===o?n:X(o,n);a>r;)e[r++]=t;return e};R(R.P,"Array",{fill:sr}),ar("fill");var ur=Ui(5),lr="find",cr=!0;lr in[]&&Array(1)[lr]((function(){cr=!1})),R(R.P+R.F*cr,"Array",{find:function(t){return ur(this,t,arguments.length>1?arguments[1]:void 0)}}),ar(lr);var hr=Ui(6),fr="findIndex",dr=!0;fr in[]&&Array(1)[fr]((function(){dr=!1})),R(R.P+R.F*dr,"Array",{findIndex:function(t){return hr(this,t,arguments.length>1?arguments[1]:void 0)}}),ar(fr);var gr=O("species"),pr=function(t){var n=e[t];o&&n&&!n[gr]&&p.f(n,gr,{configurable:!0,get:function(){return this}})};pr("Array");var vr=function(t,e){return{value:e,done:!!t}},yr=Jn(Array,"Array",(function(t,e){this._t=H(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,vr(1)):vr(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values");Un.Arguments=Un.Array,ar("keys"),ar("values"),ar("entries");var mr=function(){var t=u(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},_r=p.f,br=yt.f,wr=e.RegExp,xr=wr,kr=wr.prototype,Sr=/a/g,Cr=/a/g,Er=new wr(Sr)!==Sr;if(o&&(!Er||r((function(){return Cr[O("match")]=!1,wr(Sr)!=Sr||wr(Cr)==Cr||"/a/i"!=wr(Sr,"i")})))){wr=function(t,e){var n=this instanceof wr,i=ni(t),r=void 0===e;return!n&&i&&t.constructor===wr&&r?t:Ue(Er?new xr(i&&!r?t.source:t,e):xr((i=t instanceof wr)?t.source:t,i&&r?mr.call(t):e),n?this:kr,wr)};for(var Ar=function(t){t in wr||_r(wr,t,{configurable:!0,get:function(){return xr[t]},set:function(e){xr[t]=e}})},Rr=br(xr),Mr=0;Rr.length>Mr;)Ar(Rr[Mr++]);kr.constructor=wr,wr.prototype=kr,k(e,"RegExp",wr)}pr("RegExp");var Or=RegExp.prototype.exec,Tr=String.prototype.replace,Pr=Or,Br="lastIndex",Dr=function(){var t=/a/,e=/b*/g;return Or.call(t,"a"),Or.call(e,"a"),0!==t[Br]||0!==e[Br]}(),Nr=void 0!==/()??/.exec("")[1];(Dr||Nr)&&(Pr=function(t){var e,n,i,r,o=this;return Nr&&(n=new RegExp("^"+o.source+"$(?!\\s)",mr.call(o))),Dr&&(e=o[Br]),i=Or.call(o,t),Dr&&i&&(o[Br]=o.global?i.index+i[0].length:e),Nr&&i&&i.length>1&&Tr.call(i[0],n,(function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)})),i});var zr=Pr;R({target:"RegExp",proto:!0,forced:zr!==/./.exec},{exec:zr}),o&&"g"!=/./g.flags&&p.f(RegExp.prototype,"flags",{configurable:!0,get:mr});var jr="toString",Fr=/./[jr],Lr=function(t){k(RegExp.prototype,jr,t,!0)};r((function(){return"/a/b"!=Fr.call({source:"a",flags:"b"})}))?Lr((function(){var t=u(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?mr.call(t):void 0)})):Fr.name!=jr&&Lr((function(){return Fr.call(this)}));var Ir=Vn(!0),Hr=function(t,e,n){return e+(n?Ir(t,e).length:1)},Gr=RegExp.prototype.exec,Vr=function(t,e){var n=t.exec;if("function"==typeof n){var i=n.call(t,e);if("object"!==_typeof2(i))throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==ye(t))throw new TypeError("RegExp#exec called on incompatible receiver");return Gr.call(t,e)},Ur=O("species"),Wr=!r((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),qr=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}(),Kr=function(t,e,n){var i=O(t),o=!r((function(){var e={};return e[i]=function(){return 7},7!=""[t](e)})),a=o?!r((function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[Ur]=function(){return n}),n[i](""),!e})):void 0;if(!o||!a||"replace"===t&&!Wr||"split"===t&&!qr){var s=/./[i],u=n(I,i,""[t],(function(t,e,n,i,r){return e.exec===zr?o&&!r?{done:!0,value:s.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}})),l=u[0],c=u[1];k(String.prototype,t,l),y(RegExp.prototype,i,2==e?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}};Kr("match",1,(function(t,e,n,i){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=i(n,t,this);if(e.done)return e.value;var r=u(t),o=String(this);if(!r.global)return Vr(r,o);var a=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=Vr(r,o));){var h=String(s[0]);l[c]=h,""===h&&(r.lastIndex=Hr(o,q(r.lastIndex),a)),c++}return 0===c?null:l}]}));var Yr=Math.max,Xr=Math.min,Zr=Math.floor,$r=/\$([$&`']|\d\d?|<[^>]*>)/g,Jr=/\$([$&`']|\d\d?)/g;Kr("replace",2,(function(t,e,n,i){return[function(i,r){var o=t(this),a=null==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var o=i(n,t,this,e);if(o.done)return o.value;var a=u(t),s=String(this),l="function"==typeof e;l||(e=String(e));var c=a.global;if(c){var h=a.unicode;a.lastIndex=0}for(var f=[];;){var d=Vr(a,s);if(null===d)break;if(f.push(d),!c)break;""===String(d[0])&&(a.lastIndex=Hr(s,q(a.lastIndex),h))}for(var g,p="",v=0,y=0;y<f.length;y++){d=f[y];for(var m=String(d[0]),_=Yr(Xr(U(d.index),s.length),0),b=[],w=1;w<d.length;w++)b.push(void 0===(g=d[w])?g:String(g));var x=d.groups;if(l){var k=[m].concat(b,_,s);void 0!==x&&k.push(x);var S=String(e.apply(void 0,k))}else S=r(m,s,_,b,x,e);_>=v&&(p+=s.slice(v,_)+S,v=_+m.length)}return p+s.slice(v)}];function r(t,e,i,r,o,a){var s=i+t.length,u=r.length,l=Jr;return void 0!==o&&(o=st(o),l=$r),n.call(a,l,(function(n,a){var l;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(s);case"<":l=o[a.slice(1,-1)];break;default:var c=+a;if(0===c)return n;if(c>u){var h=Zr(c/10);return 0===h?n:h<=u?void 0===r[h-1]?a.charAt(1):r[h-1]+a.charAt(1):n}l=r[c-1]}return void 0===l?"":l}))}})),Kr("search",1,(function(t,e,n,i){return[function(n){var i=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=i(n,t,this);if(e.done)return e.value;var r=u(t),o=String(this),a=r.lastIndex;fe(a,0)||(r.lastIndex=0);var s=Vr(r,o);return fe(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]}));var Qr=O("species"),to=function(t,e){var n,i=u(t).constructor;return void 0===i||null==(n=u(i)[Qr])?e:S(n)},eo=Math.min,no=[].push,io="split",ro="length",oo="lastIndex",ao=4294967295,so=!r((function(){RegExp(ao,"y")}));Kr("split",2,(function(t,e,n,i){var r;return r="c"=="abbc"[io](/(b)*/)[1]||4!="test"[io](/(?:)/,-1)[ro]||2!="ab"[io](/(?:ab)*/)[ro]||4!="."[io](/(.?)(.?)/)[ro]||"."[io](/()()/)[ro]>1||""[io](/.?/)[ro]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!ni(t))return n.call(i,t,e);for(var r,o,a,s=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,c=void 0===e?ao:e>>>0,h=new RegExp(t.source,u+"g");(r=zr.call(h,i))&&!((o=h[oo])>l&&(s.push(i.slice(l,r.index)),r[ro]>1&&r.index<i[ro]&&no.apply(s,r.slice(1)),a=r[0][ro],l=o,s[ro]>=c));)h[oo]===r.index&&h[oo]++;return l===i[ro]?!a&&h.test("")||s.push(""):s.push(i.slice(l)),s[ro]>c?s.slice(0,c):s}:"0"[io](void 0,0)[ro]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var o=t(this),a=null==n?void 0:n[e];return void 0!==a?a.call(n,o,i):r.call(String(o),n,i)},function(t,e){var o=i(r,t,this,e,r!==n);if(o.done)return o.value;var a=u(t),s=String(this),l=to(a,RegExp),c=a.unicode,h=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(so?"y":"g"),f=new l(so?a:"^(?:"+a.source+")",h),d=void 0===e?ao:e>>>0;if(0===d)return[];if(0===s.length)return null===Vr(f,s)?[s]:[];for(var g=0,p=0,v=[];p<s.length;){f.lastIndex=so?p:0;var y,m=Vr(f,so?s:s.slice(p));if(null===m||(y=eo(q(f.lastIndex+(so?0:p)),s.length))===g)p=Hr(s,p,c);else{if(v.push(s.slice(g,p)),v.length===d)return v;for(var _=1;_<=m.length-1;_++)if(v.push(m[_]),v.length===d)return v;p=g=y}}return v.push(s.slice(g)),v}]}));var uo,lo,co,ho=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t},fo=t((function(t){var e={},n={},i=t.exports=function(t,i,r,o,a){var s,l,c,h,f=a?function(){return t}:Pi(t),d=C(r,o,i?2:1),g=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(Mi(f)){for(s=q(t.length);s>g;g++)if((h=i?d(u(l=t[g])[0],l[1]):d(t[g]))===e||h===n)return h}else for(c=f.call(t);!(l=c.next()).done;)if((h=Ei(c,d,l.value,i))===e||h===n)return h};i.BREAK=e,i.RETURN=n})),go=e.process,po=e.setImmediate,vo=e.clearImmediate,yo=e.MessageChannel,mo=e.Dispatch,_o=0,bo={},wo="onreadystatechange",xo=function(){var t=+this;if(bo.hasOwnProperty(t)){var e=bo[t];delete bo[t],e()}},ko=function(t){xo.call(t.data)};po&&vo||(po=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return bo[++_o]=function(){_e("function"==typeof t?t:Function(t),e)},uo(_o),_o},vo=function(t){delete bo[t]},"process"==F(go)?uo=function(t){go.nextTick(C(xo,t,1))}:mo&&mo.now?uo=function(t){mo.now(C(xo,t,1))}:yo?(co=(lo=new yo).port2,lo.port1.onmessage=ko,uo=C(co.postMessage,co,1)):e.addEventListener&&"function"==typeof postMessage&&!e.importScripts?(uo=function(t){e.postMessage(t+"","*")},e.addEventListener("message",ko,!1)):uo=wo in h("script")?function(t){ct.appendChild(h("script"))[wo]=function(){ct.removeChild(this),xo.call(t)}}:function(t){setTimeout(C(xo,t,1),0)});var So={set:po,clear:vo},Co=So.set,Eo=e.MutationObserver||e.WebKitMutationObserver,Ao=e.process,Ro=e.Promise,Mo="process"==F(Ao),Oo=function(){var t,n,i,r=function(){var e,r;for(Mo&&(e=Ao.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(e){throw t?i():n=void 0,e}}n=void 0,e&&e.enter()};if(Mo)i=function(){Ao.nextTick(r)};else if(!Eo||e.navigator&&e.navigator.standalone)if(Ro&&Ro.resolve){var o=Ro.resolve(void 0);i=function(){o.then(r)}}else i=function(){Co.call(e,r)};else{var a=!0,s=document.createTextNode("");new Eo(r).observe(s,{characterData:!0}),i=function(){s.data=a=!a}}return function(e){var r={fn:e,next:void 0};n&&(n.next=r),t||(t=r,i()),n=r}};function To(t){var e,n;this.promise=new t((function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i})),this.resolve=S(e),this.reject=S(n)}var Po,Bo,Do,No,zo={f:function(t){return new To(t)}},jo=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}},Fo=e.navigator,Lo=Fo&&Fo.userAgent||"",Io=function(t,e){if(u(t),s(e)&&e.constructor===t)return e;var n=zo.f(t);return(0,n.resolve)(e),n.promise},Ho=function(t,e,n){for(var i in e)k(t,i,e[i],n);return t},Go=So.set,Vo=Oo(),Uo="Promise",Wo=e.TypeError,qo=e.process,Ko=qo&&qo.versions,Yo=Ko&&Ko.v8||"",Xo=e[Uo],Zo="process"==ye(qo),$o=function(){},Jo=Bo=zo.f,Qo=!!function(){try{var t=Xo.resolve(1),e=(t.constructor={})[O("species")]=function(t){t($o,$o)};return(Zo||"function"==typeof PromiseRejectionEvent)&&t.then($o)instanceof e&&0!==Yo.indexOf("6.6")&&-1===Lo.indexOf("Chrome/66")}catch(t){}}(),ta=function(t){var e;return!(!s(t)||"function"!=typeof(e=t.then))&&e},ea=function(t,e){if(!t._n){t._n=!0;var n=t._c;Vo((function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,u=e.resolve,l=e.reject,c=e.domain;try{s?(r||(2==t._h&&ra(t),t._h=1),!0===s?n=i:(c&&c.enter(),n=s(i),c&&(c.exit(),a=!0)),n===e.promise?l(Wo("Promise-chain cycle")):(o=ta(n))?o.call(n,u,l):u(n)):l(i)}catch(t){c&&!a&&c.exit(),l(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&na(t)}))}},na=function(t){Go.call(e,(function(){var n,i,r,o=t._v,a=ia(t);if(a&&(n=jo((function(){Zo?qo.emit("unhandledRejection",o,t):(i=e.onunhandledrejection)?i({promise:t,reason:o}):(r=e.console)&&r.error&&r.error("Unhandled promise rejection",o)})),t._h=Zo||ia(t)?2:1),t._a=void 0,a&&n.e)throw n.v}))},ia=function(t){return 1!==t._h&&0===(t._a||t._c).length},ra=function(t){Go.call(e,(function(){var n;Zo?qo.emit("rejectionHandled",t):(n=e.onrejectionhandled)&&n({promise:t,reason:t._v})}))},oa=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),ea(e,!0))},aa=function t(e){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw Wo("Promise can't be resolved itself");(n=ta(e))?Vo((function(){var r={_w:i,_d:!1};try{n.call(e,C(t,r,1),C(oa,r,1))}catch(t){oa.call(r,t)}})):(i._v=e,i._s=1,ea(i,!1))}catch(t){oa.call({_w:i,_d:!1},t)}}};Qo||(Xo=function(t){ho(this,Xo,Uo,"_h"),S(t),Po.call(this);try{t(C(aa,this,1),C(oa,this,1))}catch(t){oa.call(this,t)}},(Po=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=Ho(Xo.prototype,{then:function(t,e){var n=Jo(to(this,Xo));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=Zo?qo.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&ea(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),Do=function(){var t=new Po;this.promise=t,this.resolve=C(aa,t,1),this.reject=C(oa,t,1)},zo.f=Jo=function(t){return t===Xo||t===No?new Do(t):Bo(t)}),R(R.G+R.W+R.F*!Qo,{Promise:Xo}),B(Xo,Uo),pr(Uo),No=a[Uo],R(R.S+R.F*!Qo,Uo,{reject:function(t){var e=Jo(this);return(0,e.reject)(t),e.promise}}),R(R.S+R.F*!Qo,Uo,{resolve:function(t){return Io(this,t)}}),R(R.S+R.F*!(Qo&&zi((function(t){Xo.all(t).catch($o)}))),Uo,{all:function(t){var e=this,n=Jo(e),i=n.resolve,r=n.reject,o=jo((function(){var n=[],o=0,a=1;fo(t,!1,(function(t){var s=o++,u=!1;n.push(void 0),a++,e.resolve(t).then((function(t){u||(u=!0,n[s]=t,--a||i(n))}),r)})),--a||i(n)}));return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=Jo(e),i=n.reject,r=jo((function(){fo(t,!1,(function(t){e.resolve(t).then(n.resolve,i)}))}));return r.e&&i(r.v),n.promise}});var sa=function(t,e){if(!s(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t},ua=p.f,la=M.fastKey,ca=o?"_s":"size",ha=function(t,e){var n,i=la(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n},fa={getConstructor:function(t,e,n,i){var r=t((function(t,o){ho(t,r,e,"_i"),t._t=e,t._i=pt(null),t._f=void 0,t._l=void 0,t[ca]=0,null!=o&&fo(o,n,t[i],t)}));return Ho(r.prototype,{clear:function(){for(var t=sa(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[ca]=0},delete:function(t){var n=sa(this,e),i=ha(n,t);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[ca]--}return!!i},forEach:function(t){sa(this,e);for(var n,i=C(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!ha(sa(this,e),t)}}),o&&ua(r.prototype,"size",{get:function(){return sa(this,e)[ca]}}),r},def:function(t,e,n){var i,r,o=ha(t,e);return o?o.v=n:(t._l=o={i:r=la(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[ca]++,"F"!==r&&(t._i[r]=o)),t},getEntry:ha,setStrong:function(t,e,n){Jn(t,e,(function(t,n){this._t=sa(t,e),this._k=n,this._l=void 0}),(function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?vr(0,"keys"==e?n.k:"values"==e?n.v:[n.k,n.v]):(t._t=void 0,vr(1))}),n?"entries":"values",!n,!0),pr(e)}},da=function(t,n,i,o,a,u){var l=e[t],c=l,h=a?"set":"add",f=c&&c.prototype,d={},g=function(t){var e=f[t];k(f,t,"delete"==t||"has"==t?function(t){return!(u&&!s(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return u&&!s(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof c&&(u||f.forEach&&!r((function(){(new c).entries().next()})))){var p=new c,v=p[h](u?{}:-0,1)!=p,y=r((function(){p.has(1)})),m=zi((function(t){new c(t)})),_=!u&&r((function(){for(var t=new c,e=5;e--;)t[h](e,e);return!t.has(-0)}));m||((c=n((function(e,n){ho(e,c,t);var i=Ue(new l,e,c);return null!=n&&fo(n,a,i[h],i),i}))).prototype=f,f.constructor=c),(y||_)&&(g("delete"),g("has"),a&&g("get")),(_||v)&&g(h),u&&f.clear&&delete f.clear}else c=o.getConstructor(n,t,a,h),Ho(c.prototype,i),M.NEED=!0;return B(c,t),d[t]=c,R(R.G+R.W+R.F*(c!=l),d),u||o.setStrong(c,t,a),c},ga="Map",pa=da(ga,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(t){var e=fa.getEntry(sa(this,ga),t);return e&&e.v},set:function(t,e){return fa.def(sa(this,ga),0===t?0:t,e)}},fa,!0),va=da("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return fa.def(sa(this,"Set"),t=0===t?0:t,t)}},fa),ya=M.getWeak,ma=Ui(5),_a=Ui(6),ba=0,wa=function(t){return t._l||(t._l=new xa)},xa=function(){this.a=[]},ka=function(t,e){return ma(t.a,(function(t){return t[0]===e}))};xa.prototype={get:function(t){var e=ka(this,t);if(e)return e[1]},has:function(t){return!!ka(this,t)},set:function(t,e){var n=ka(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=_a(this.a,(function(e){return e[0]===t}));return~e&&this.a.splice(e,1),!!~e}};var Sa={getConstructor:function(t,e,n,r){var o=t((function(t,i){ho(t,o,e,"_i"),t._t=e,t._i=ba++,t._l=void 0,null!=i&&fo(i,n,t[r],t)}));return Ho(o.prototype,{delete:function(t){if(!s(t))return!1;var n=ya(t);return!0===n?wa(sa(this,e)).delete(t):n&&i(n,this._i)&&delete n[this._i]},has:function(t){if(!s(t))return!1;var n=ya(t);return!0===n?wa(sa(this,e)).has(t):n&&i(n,this._i)}}),o},def:function(t,e,n){var i=ya(u(e),!0);return!0===i?wa(t).set(e,n):i[t._i]=n,t},ufstore:wa},Ca=t((function(t){var n,i=Ui(0),r=sa,o=!e.ActiveXObject&&"ActiveXObject"in e,a="WeakMap",u=M.getWeak,l=Object.isExtensible,c=Sa.ufstore,h=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},f={get:function(t){if(s(t)){var e=u(t);return!0===e?c(sa(this,a)).get(t):e?e[this._i]:void 0}},set:function(t,e){return Sa.def(sa(this,a),t,e)}},d=t.exports=da(a,h,f,Sa,!0,!0);r&&o&&(n=Sa.getConstructor(h,a),he(n.prototype,f),M.NEED=!0,i(["delete","has","get","set"],(function(t){var e=d.prototype,i=e[t];k(e,t,(function(e,r){if(s(e)&&!l(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return i.call(this,e,r)}))})))})),Ea="WeakSet";da(Ea,(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return Sa.def(sa(this,Ea),t,!0)}},Sa,!1,!0);for(var Aa,Ra=b("typed_array"),Ma=b("view"),Oa=!(!e.ArrayBuffer||!e.DataView),Ta=Oa,Pa=0,Ba="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");Pa<9;)(Aa=e[Ba[Pa++]])?(y(Aa.prototype,Ra,!0),y(Aa.prototype,Ma,!0)):Ta=!1;var Da={ABV:Oa,CONSTR:Ta,TYPED:Ra,VIEW:Ma},Na=function(t){if(void 0===t)return 0;var e=U(t),n=q(e);if(e!==n)throw RangeError("Wrong length!");return n},za=t((function(t,n){var i=yt.f,a=p.f,s="ArrayBuffer",u="DataView",l="prototype",c="Wrong index!",h=e[s],f=e[u],d=e.Math,g=e.RangeError,v=e.Infinity,m=h,_=d.abs,b=d.pow,w=d.floor,x=d.log,k=d.LN2,S="buffer",C="byteLength",E="byteOffset",A=o?"_b":S,R=o?"_l":C,M=o?"_o":E;function O(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,u=(1<<s)-1,l=u>>1,c=23===e?b(2,-24)-b(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for((t=_(t))!=t||t===v?(r=t!=t?1:0,i=u):(i=w(x(t)/k),t*(o=b(2,-i))<1&&(i--,o*=2),(t+=i+l>=1?c/o:c*b(2,1-l))*o>=2&&(i++,o/=2),i+l>=u?(r=0,i=u):i+l>=1?(r=(t*o-1)*b(2,e),i+=l):(r=t*b(2,l-1)*b(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*f,a}function T(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,u=n-1,l=t[u--],c=127&l;for(l>>=7;s>0;c=256*c+t[u],u--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;s>0;i=256*i+t[u],u--,s-=8);if(0===c)c=1-a;else{if(c===o)return i?NaN:l?-v:v;i+=b(2,e),c-=a}return(l?-1:1)*i*b(2,c-e)}function P(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function D(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function j(t){return O(t,52,8)}function F(t){return O(t,23,4)}function L(t,e,n){a(t[l],e,{get:function(){return this[n]}})}function I(t,e,n,i){var r=Na(+n);if(r+e>t[R])throw g(c);var o=t[A]._b,a=r+t[M],s=o.slice(a,a+e);return i?s:s.reverse()}function H(t,e,n,i,r,o){var a=Na(+n);if(a+e>t[R])throw g(c);for(var s=t[A]._b,u=a+t[M],l=i(+r),h=0;h<e;h++)s[u+h]=l[o?h:e-h-1]}if(Da.ABV){if(!r((function(){h(1)}))||!r((function(){new h(-1)}))||r((function(){return new h,new h(1.5),new h(NaN),h.name!=s}))){for(var G,V=(h=function(t){return ho(this,h),new m(Na(t))})[l]=m[l],W=i(m),K=0;W.length>K;)(G=W[K++])in h||y(h,G,m[G]);V.constructor=h}var Y=new f(new h(2)),X=f[l].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||Ho(f[l],{setInt8:function(t,e){X.call(this,t,e<<24>>24)},setUint8:function(t,e){X.call(this,t,e<<24>>24)}},!0)}else h=function(t){ho(this,h,s);var e=Na(t);this._b=sr.call(new Array(e),0),this[R]=e},f=function(t,e,n){ho(this,f,u),ho(t,h,u);var i=t[R],r=U(e);if(r<0||r>i)throw g("Wrong offset!");if(r+(n=void 0===n?i-r:q(n))>i)throw g("Wrong length!");this[A]=t,this[M]=r,this[R]=n},o&&(L(h,C,"_l"),L(f,S,"_b"),L(f,C,"_l"),L(f,E,"_o")),Ho(f[l],{getInt8:function(t){return I(this,1,t)[0]<<24>>24},getUint8:function(t){return I(this,1,t)[0]},getInt16:function(t){var e=I(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=I(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return P(I(this,4,t,arguments[1]))},getUint32:function(t){return P(I(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return T(I(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return T(I(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){H(this,1,t,D,e)},setUint8:function(t,e){H(this,1,t,D,e)},setInt16:function(t,e){H(this,2,t,N,e,arguments[2])},setUint16:function(t,e){H(this,2,t,N,e,arguments[2])},setInt32:function(t,e){H(this,4,t,z,e,arguments[2])},setUint32:function(t,e){H(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){H(this,4,t,F,e,arguments[2])},setFloat64:function(t,e){H(this,8,t,j,e,arguments[2])}});B(h,s),B(f,u),y(f[l],Da.VIEW,!0),n[s]=h,n[u]=f})),ja=e.ArrayBuffer,Fa=za.ArrayBuffer,La=za.DataView,Ia=Da.ABV&&ja.isView,Ha=Fa.prototype.slice,Ga=Da.VIEW,Va="ArrayBuffer";R(R.G+R.W+R.F*(ja!==Fa),{ArrayBuffer:Fa}),R(R.S+R.F*!Da.CONSTR,Va,{isView:function(t){return Ia&&Ia(t)||s(t)&&Ga in t}}),R(R.P+R.U+R.F*r((function(){return!new Fa(2).slice(1,void 0).byteLength})),Va,{slice:function(t,e){if(void 0!==Ha&&void 0===e)return Ha.call(u(this),t);for(var n=u(this).byteLength,i=X(t,n),r=X(void 0===e?n:e,n),o=new(to(this,Fa))(q(r-i)),a=new La(this),s=new La(o),l=0;i<r;)s.setUint8(l++,a.getUint8(i++));return o}}),pr(Va),R(R.G+R.W+R.F*!Da.ABV,{DataView:za.DataView});var Ua=t((function(t){if(o){var n=e,a=r,u=R,l=Da,c=za,h=C,f=ho,g=v,m=y,_=Ho,w=U,x=q,k=Na,S=X,E=d,A=i,M=ye,T=s,P=st,B=Mi,D=pt,N=ae,z=yt.f,j=Pi,F=b,L=O,I=Ui,H=Z,G=to,V=yr,W=Un,K=zi,Y=pr,$=sr,J=ir,Q=p,tt=kt,et=Q.f,nt=tt.f,it=n.RangeError,rt=n.TypeError,ot=n.Uint8Array,at="ArrayBuffer",ut="Shared"+at,lt="BYTES_PER_ELEMENT",ct="prototype",ht=Array[ct],ft=c.ArrayBuffer,dt=c.DataView,gt=I(0),vt=I(2),mt=I(3),_t=I(4),bt=I(5),wt=I(6),xt=H(!0),St=H(!1),Ct=V.values,Et=V.keys,At=V.entries,Rt=ht.lastIndexOf,Mt=ht.reduce,Ot=ht.reduceRight,Tt=ht.join,Pt=ht.sort,Bt=ht.slice,Dt=ht.toString,Nt=ht.toLocaleString,zt=L("iterator"),jt=L("toStringTag"),Ft=F("typed_constructor"),Lt=F("def_constructor"),It=l.CONSTR,Ht=l.TYPED,Gt=l.VIEW,Vt="Wrong length!",Ut=I(1,(function(t,e){return Xt(G(t,t[Lt]),e)})),Wt=a((function(){return 1===new ot(new Uint16Array([1]).buffer)[0]})),qt=!!ot&&!!ot[ct].set&&a((function(){new ot(1).set({})})),Kt=function(t,e){var n=w(t);if(n<0||n%e)throw it("Wrong offset!");return n},Yt=function(t){if(T(t)&&Ht in t)return t;throw rt(t+" is not a typed array!")},Xt=function(t,e){if(!T(t)||!(Ft in t))throw rt("It is not a typed array constructor!");return new t(e)},Zt=function(t,e){return $t(G(t,t[Lt]),e)},$t=function(t,e){for(var n=0,i=e.length,r=Xt(t,i);i>n;)r[n]=e[n++];return r},Jt=function(t,e,n){et(t,e,{get:function(){return this._d[n]}})},Qt=function(t){var e,n,i,r,o,a,s=P(t),u=arguments.length,l=u>1?arguments[1]:void 0,c=void 0!==l,f=j(s);if(null!=f&&!B(f)){for(a=f.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(c&&u>2&&(l=h(l,arguments[2],2)),e=0,n=x(s.length),r=Xt(this,n);n>e;e++)r[e]=c?l(s[e],e):s[e];return r},te=function(){for(var t=0,e=arguments.length,n=Xt(this,e);e>t;)n[t]=arguments[t++];return n},ee=!!ot&&a((function(){Nt.call(new ot(1))})),ne=function(){return Nt.apply(ee?Bt.call(Yt(this)):Yt(this),arguments)},ie={copyWithin:function(t,e){return J.call(Yt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return _t(Yt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return $.apply(Yt(this),arguments)},filter:function(t){return Zt(this,vt(Yt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return bt(Yt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return wt(Yt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){gt(Yt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return St(Yt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return xt(Yt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return Tt.apply(Yt(this),arguments)},lastIndexOf:function(t){return Rt.apply(Yt(this),arguments)},map:function(t){return Ut(Yt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return Mt.apply(Yt(this),arguments)},reduceRight:function(t){return Ot.apply(Yt(this),arguments)},reverse:function(){for(var t,e=this,n=Yt(e).length,i=Math.floor(n/2),r=0;r<i;)t=e[r],e[r++]=e[--n],e[n]=t;return e},some:function(t){return mt(Yt(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return Pt.call(Yt(this),t)},subarray:function(t,e){var n=Yt(this),i=n.length,r=S(t,i);return new(G(n,n[Lt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,x((void 0===e?i:S(e,i))-r))}},re=function(t,e){return Zt(this,Bt.call(Yt(this),t,e))},oe=function(t){Yt(this);var e=Kt(arguments[1],1),n=this.length,i=P(t),r=x(i.length),o=0;if(r+e>n)throw it(Vt);for(;o<r;)this[e+o]=i[o++]},se={entries:function(){return At.call(Yt(this))},keys:function(){return Et.call(Yt(this))},values:function(){return Ct.call(Yt(this))}},ue=function(t,e){return T(t)&&t[Ht]&&"symbol"!=_typeof2(e)&&e in t&&String(+e)==String(e)},le=function(t,e){return ue(t,e=E(e,!0))?g(2,t[e]):nt(t,e)},ce=function(t,e,n){return!(ue(t,e=E(e,!0))&&T(n)&&A(n,"value"))||A(n,"get")||A(n,"set")||n.configurable||A(n,"writable")&&!n.writable||A(n,"enumerable")&&!n.enumerable?et(t,e,n):(t[e]=n.value,t)};It||(tt.f=le,Q.f=ce),u(u.S+u.F*!It,"Object",{getOwnPropertyDescriptor:le,defineProperty:ce}),a((function(){Dt.call({})}))&&(Dt=Nt=function(){return Tt.call(this)});var he=_({},ie);_(he,se),m(he,zt,se.values),_(he,{slice:re,set:oe,constructor:function(){},toString:Dt,toLocaleString:ne}),Jt(he,"buffer","b"),Jt(he,"byteOffset","o"),Jt(he,"byteLength","l"),Jt(he,"length","e"),et(he,jt,{get:function(){return this[Ht]}}),t.exports=function(t,e,i,r){var o=t+((r=!!r)?"Clamped":"")+"Array",s="get"+t,c="set"+t,h=n[o],d=h||{},g=h&&N(h),p=!h||!l.ABV,v={},y=h&&h[ct],_=function(t,n){et(t,n,{get:function(){return function(t,n){var i=t._d;return i.v[s](n*e+i.o,Wt)}(this,n)},set:function(t){return function(t,n,i){var o=t._d;r&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),o.v[c](n*e+o.o,i,Wt)}(this,n,t)},enumerable:!0})};p?(h=i((function(t,n,i,r){f(t,h,o,"_d");var a,s,u,l,c=0,d=0;if(T(n)){if(!(n instanceof ft||(l=M(n))==at||l==ut))return Ht in n?$t(h,n):Qt.call(h,n);a=n,d=Kt(i,e);var g=n.byteLength;if(void 0===r){if(g%e)throw it(Vt);if((s=g-d)<0)throw it(Vt)}else if((s=x(r)*e)+d>g)throw it(Vt);u=s/e}else u=k(n),a=new ft(s=u*e);for(m(t,"_d",{b:a,o:d,l:s,e:u,v:new dt(a)});c<u;)_(t,c++)})),y=h[ct]=D(he),m(y,"constructor",h)):a((function(){h(1)}))&&a((function(){new h(-1)}))&&K((function(t){new h,new h(null),new h(1.5),new h(t)}),!0)||(h=i((function(t,n,i,r){var a;return f(t,h,o),T(n)?n instanceof ft||(a=M(n))==at||a==ut?void 0!==r?new d(n,Kt(i,e),r):void 0!==i?new d(n,Kt(i,e)):new d(n):Ht in n?$t(h,n):Qt.call(h,n):new d(k(n))})),gt(g!==Function.prototype?z(d).concat(z(g)):z(d),(function(t){t in h||m(h,t,d[t])})),h[ct]=y,y.constructor=h);var b=y[zt],w=!!b&&("values"==b.name||null==b.name),S=se.values;m(h,Ft,!0),m(y,Ht,o),m(y,Gt,!0),m(y,Lt,h),(r?new h(1)[jt]==o:jt in y)||et(y,jt,{get:function(){return o}}),v[o]=h,u(u.G+u.W+u.F*(h!=d),v),u(u.S,o,{BYTES_PER_ELEMENT:e}),u(u.S+u.F*a((function(){d.of.call(h,1)})),o,{from:Qt,of:te}),lt in y||m(y,lt,e),u(u.P,o,ie),Y(o),u(u.P+u.F*qt,o,{set:oe}),u(u.P+u.F*!w,o,se),y.toString!=Dt&&(y.toString=Dt),u(u.P+u.F*a((function(){new h(1).slice()})),o,{slice:re}),u(u.P+u.F*(a((function(){return[1,2].toLocaleString()!=new h([1,2]).toLocaleString()}))||!a((function(){y.toLocaleString.call([1,2])}))),o,{toLocaleString:ne}),W[o]=w?b:S,w||m(y,zt,S)}}else t.exports=function(){}}));Ua("Int8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Uint8",1,(function(t){return function(e,n,i){return t(this,e,n,i)}}),!0),Ua("Int16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Uint16",2,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Int32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Uint32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Float32",4,(function(t){return function(e,n,i){return t(this,e,n,i)}})),Ua("Float64",8,(function(t){return function(e,n,i){return t(this,e,n,i)}}));var Wa=(e.Reflect||{}).apply,qa=Function.apply;R(R.S+R.F*!r((function(){Wa((function(){}))})),"Reflect",{apply:function(t,e,n){var i=S(t),r=u(n);return Wa?Wa(i,e,r):qa.call(i,e,r)}});var Ka=(e.Reflect||{}).construct,Ya=r((function(){function t(){}return!(Ka((function(){}),[],t)instanceof t)})),Xa=!r((function(){Ka((function(){}))}));R(R.S+R.F*(Ya||Xa),"Reflect",{construct:function(t,e){S(t),u(e);var n=arguments.length<3?t:S(arguments[2]);if(Xa&&!Ya)return Ka(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(xe.apply(t,i))}var r=n.prototype,o=pt(s(r)?r:Object.prototype),a=Function.apply.call(t,o,e);return s(a)?a:o}}),R(R.S+R.F*r((function(){Reflect.defineProperty(p.f({},1,{value:1}),1,{value:2})})),"Reflect",{defineProperty:function(t,e,n){u(t),e=d(e,!0),u(n);try{return p.f(t,e,n),!0}catch(t){return!1}}});var Za=kt.f;R(R.S,"Reflect",{deleteProperty:function(t,e){var n=Za(u(t),e);return!(n&&!n.configurable)&&delete t[e]}});var $a=function(t){this._t=u(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};qn($a,"Object",(function(){var t,e=this,n=e._k;do{if(e._i>=n.length)return{value:void 0,done:!0}}while(!((t=n[e._i++])in e._t));return{value:t,done:!1}})),R(R.S,"Reflect",{enumerate:function(t){return new $a(t)}}),R(R.S,"Reflect",{get:function t(e,n){var r,o,a=arguments.length<3?e:arguments[2];return u(e)===a?e[n]:(r=kt.f(e,n))?i(r,"value")?r.value:void 0!==r.get?r.get.call(a):void 0:s(o=ae(e))?t(o,n,a):void 0}}),R(R.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return kt.f(u(t),e)}}),R(R.S,"Reflect",{getPrototypeOf:function(t){return ae(u(t))}}),R(R.S,"Reflect",{has:function(t,e){return e in t}});var Ja=Object.isExtensible;R(R.S,"Reflect",{isExtensible:function(t){return u(t),!Ja||Ja(t)}});var Qa=e.Reflect,ts=Qa&&Qa.ownKeys||function(t){var e=yt.f(u(t)),n=rt.f;return n?e.concat(n(t)):e};R(R.S,"Reflect",{ownKeys:ts});var es=Object.preventExtensions;R(R.S,"Reflect",{preventExtensions:function(t){u(t);try{return es&&es(t),!0}catch(t){return!1}}}),R(R.S,"Reflect",{set:function t(e,n,r){var o,a,l=arguments.length<4?e:arguments[3],c=kt.f(u(e),n);if(!c){if(s(a=ae(e)))return t(a,n,r,l);c=v(0)}if(i(c,"value")){if(!1===c.writable||!s(l))return!1;if(o=kt.f(l,n)){if(o.get||o.set||!1===o.writable)return!1;o.value=r,p.f(l,n,o)}else p.f(l,n,v(0,r));return!0}return void 0!==c.set&&(c.set.call(l,r),!0)}}),ge&&R(R.S,"Reflect",{setPrototypeOf:function(t,e){ge.check(t,e);try{return ge.set(t,e),!0}catch(t){return!1}}});var ns=Z(!0);R(R.P,"Array",{includes:function(t){return ns(this,t,arguments.length>1?arguments[1]:void 0)}}),ar("includes");var is=O("isConcatSpreadable");var rs=function t(e,n,i,r,o,a,u,l){for(var c,h,f=o,d=0,g=!!u&&C(u,l,3);d<r;){if(d in i){if(c=g?g(i[d],d,n):i[d],h=!1,s(c)&&(h=void 0!==(h=c[is])?!!h:at(c)),h&&a>0)f=t(e,n,c,q(c.length),f,a-1)-1;else{if(f>=9007199254740991)throw TypeError();e[f]=c}f++}d++}return f};R(R.P,"Array",{flatMap:function(t){var e,n,i=st(this);return S(t),e=q(i.length),n=Vi(i,0),rs(n,i,i,e,0,1,t,arguments[1]),n}}),ar("flatMap"),R(R.P,"Array",{flatten:function(){var t=arguments[0],e=st(this),n=q(e.length),i=Vi(e,0);return rs(i,e,e,n,0,void 0===t?1:U(t)),i}}),ar("flatten");var os=Vn(!0),as=r((function(){return"𠮷"!=="𠮷".at(0)}));R(R.P+R.F*as,"String",{at:function(t){return os(this,t)}});var ss=function(t,e,n,i){var r=String(I(t)),o=r.length,a=void 0===n?" ":String(n),s=q(e);if(s<=o||""==a)return r;var u=s-o,l=sn.call(a,Math.ceil(u/a.length));return l.length>u&&(l=l.slice(0,u)),i?l+r:r+l},us=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(Lo);R(R.P+R.F*us,"String",{padStart:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0,!0)}});var ls=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(Lo);R(R.P+R.F*ls,"String",{padEnd:function(t){return ss(this,t,arguments.length>1?arguments[1]:void 0,!1)}}),Ne("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart"),Ne("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd");var cs=RegExp.prototype,hs=function(t,e){this._r=t,this._s=e};qn(hs,"RegExp String",(function(){var t=this._r.exec(this._s);return{value:t,done:null===t}})),R(R.P,"String",{matchAll:function(t){if(I(this),!ni(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in cs?String(t.flags):mr.call(t),i=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=q(t.lastIndex),new hs(i,e)}}),z("asyncIterator"),z("observable"),R(R.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=H(t),r=kt.f,o=ts(i),a={},s=0;o.length>s;)void 0!==(n=r(i,e=o[s++]))&&Oi(a,e,n);return a}});var fs=ot.f,ds=function(t){return function(e){for(var n,i=H(e),r=it(i),a=r.length,s=0,u=[];a>s;)n=r[s++],o&&!fs.call(i,n)||u.push(t?[n,i[n]]:i[n]);return u}},gs=ds(!1);R(R.S,"Object",{values:function(t){return gs(t)}});var ps=ds(!0);R(R.S,"Object",{entries:function(t){return ps(t)}});var vs=!r((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete e[t]}));o&&R(R.P+vs,"Object",{__defineGetter__:function(t,e){p.f(st(this),t,{get:S(e),enumerable:!0,configurable:!0})}}),o&&R(R.P+vs,"Object",{__defineSetter__:function(t,e){p.f(st(this),t,{set:S(e),enumerable:!0,configurable:!0})}});var ys=kt.f;o&&R(R.P+vs,"Object",{__lookupGetter__:function(t){var e,n=st(this),i=d(t,!0);do{if(e=ys(n,i))return e.get}while(n=ae(n))}});var ms=kt.f;o&&R(R.P+vs,"Object",{__lookupSetter__:function(t){var e,n=st(this),i=d(t,!0);do{if(e=ms(n,i))return e.set}while(n=ae(n))}});var _s=function(t,e){var n=[];return fo(t,!1,n.push,n,e),n},bs=function(t){return function(){if(ye(this)!=t)throw TypeError(t+"#toJSON isn't generic");return _s(this)}};R(R.P+R.R,"Map",{toJSON:bs("Map")}),R(R.P+R.R,"Set",{toJSON:bs("Set")});var ws=function(t){R(R.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})};ws("Map"),ws("Set"),ws("WeakMap"),ws("WeakSet");var xs=function(t){R(R.S,t,{from:function(t){var e,n,i,r,o=arguments[1];return S(this),(e=void 0!==o)&&S(o),null==t?new this:(n=[],e?(i=0,r=C(o,arguments[2],2),fo(t,!1,(function(t){n.push(r(t,i++))}))):fo(t,!1,n.push,n),new this(n))}})};xs("Map"),xs("Set"),xs("WeakMap"),xs("WeakSet"),R(R.G,{global:e}),R(R.S,"System",{global:e}),R(R.S,"Error",{isError:function(t){return"Error"===F(t)}}),R(R.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}}),R(R.S,"Math",{DEG_PER_RAD:Math.PI/180});var ks=180/Math.PI;R(R.S,"Math",{degrees:function(t){return t*ks}});var Ss=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i};R(R.S,"Math",{fscale:function(t,e,n,i,r){return zn(Ss(t,e,n,i,r))}}),R(R.S,"Math",{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}}),R(R.S,"Math",{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}}),R(R.S,"Math",{imulh:function(t,e){var n=65535,i=+t,r=+e,o=i&n,a=r&n,s=i>>16,u=r>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>16)+((o*u>>>0)+(l&n)>>16)}}),R(R.S,"Math",{RAD_PER_DEG:180/Math.PI});var Cs=Math.PI/180;R(R.S,"Math",{radians:function(t){return t*Cs}}),R(R.S,"Math",{scale:Ss}),R(R.S,"Math",{umulh:function(t,e){var n=65535,i=+t,r=+e,o=i&n,a=r&n,s=i>>>16,u=r>>>16,l=(s*a>>>0)+(o*a>>>16);return s*u+(l>>>16)+((o*u>>>0)+(l&n)>>>16)}}),R(R.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}}),R(R.P+R.R,"Promise",{finally:function(t){var n=to(this,a.Promise||e.Promise),i="function"==typeof t;return this.then(i?function(e){return Io(n,t()).then((function(){return e}))}:t,i?function(e){return Io(n,t()).then((function(){throw e}))}:t)}}),R(R.S,"Promise",{try:function(t){var e=zo.f(this),n=jo(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}});var Es=w("metadata"),As=Es.store||(Es.store=new Ca),Rs=function(t,e,n){var i=As.get(t);if(!i){if(!n)return;As.set(t,i=new pa)}var r=i.get(e);if(!r){if(!n)return;i.set(e,r=new pa)}return r},Ms={store:As,map:Rs,has:function(t,e,n){var i=Rs(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=Rs(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){Rs(n,i,!0).set(t,e)},keys:function(t,e){var n=Rs(t,e,!1),i=[];return n&&n.forEach((function(t,e){i.push(e)})),i},key:function(t){return void 0===t||"symbol"==_typeof2(t)?t:String(t)},exp:function(t){R(R.S,"Reflect",t)}},Os=Ms.key,Ts=Ms.set;Ms.exp({defineMetadata:function(t,e,n,i){Ts(t,e,u(n),Os(i))}});var Ps=Ms.key,Bs=Ms.map,Ds=Ms.store;Ms.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:Ps(arguments[2]),i=Bs(u(e),n,!1);if(void 0===i||!i.delete(t))return!1;if(i.size)return!0;var r=Ds.get(e);return r.delete(n),!!r.size||Ds.delete(e)}});var Ns=Ms.has,zs=Ms.get,js=Ms.key,Fs=function t(e,n,i){if(Ns(e,n,i))return zs(e,n,i);var r=ae(n);return null!==r?t(e,r,i):void 0};Ms.exp({getMetadata:function(t,e){return Fs(t,u(e),arguments.length<3?void 0:js(arguments[2]))}});var Ls=Ms.keys,Is=Ms.key,Hs=function t(e,n){var i=Ls(e,n),r=ae(e);if(null===r)return i;var o=t(r,n);return o.length?i.length?_s(new va(i.concat(o))):o:i};Ms.exp({getMetadataKeys:function(t){return Hs(u(t),arguments.length<2?void 0:Is(arguments[1]))}});var Gs=Ms.get,Vs=Ms.key;Ms.exp({getOwnMetadata:function(t,e){return Gs(t,u(e),arguments.length<3?void 0:Vs(arguments[2]))}});var Us=Ms.keys,Ws=Ms.key;Ms.exp({getOwnMetadataKeys:function(t){return Us(u(t),arguments.length<2?void 0:Ws(arguments[1]))}});var qs=Ms.has,Ks=Ms.key,Ys=function t(e,n,i){if(qs(e,n,i))return!0;var r=ae(n);return null!==r&&t(e,r,i)};Ms.exp({hasMetadata:function(t,e){return Ys(t,u(e),arguments.length<3?void 0:Ks(arguments[2]))}});var Xs=Ms.has,Zs=Ms.key;Ms.exp({hasOwnMetadata:function(t,e){return Xs(t,u(e),arguments.length<3?void 0:Zs(arguments[2]))}});var $s=Ms.key,Js=Ms.set;Ms.exp({metadata:function(t,e){return function(n,i){Js(t,e,(void 0!==i?u:S)(n),$s(i))}}});var Qs=Oo(),tu=e.process,eu="process"==F(tu);R(R.G,{asap:function(t){var e=eu&&tu.domain;Qs(e?e.bind(t):t)}});var nu=Oo(),iu=O("observable"),ru=fo.RETURN,ou=function(t){return null==t?void 0:S(t)},au=function(t){var e=t._c;e&&(t._c=void 0,e())},su=function(t){return void 0===t._o},uu=function(t){su(t)||(t._o=void 0,au(t))},lu=function(t,e){u(t),this._c=void 0,this._o=t,t=new cu(this);try{var n=e(t),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:S(n),this._c=n)}catch(e){return void t.error(e)}su(this)&&au(this)};lu.prototype=Ho({},{unsubscribe:function(){uu(this)}});var cu=function(t){this._s=t};cu.prototype=Ho({},{next:function(t){var e=this._s;if(!su(e)){var n=e._o;try{var i=ou(n.next);if(i)return i.call(n,t)}catch(t){try{uu(e)}finally{throw t}}}},error:function(t){var e=this._s;if(su(e))throw t;var n=e._o;e._o=void 0;try{var i=ou(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{au(e)}finally{throw t}}return au(e),t},complete:function(t){var e=this._s;if(!su(e)){var n=e._o;e._o=void 0;try{var i=ou(n.complete);t=i?i.call(n,t):void 0}catch(t){try{au(e)}finally{throw t}}return au(e),t}}});var hu=function(t){ho(this,hu,"Observable","_f")._f=S(t)};Ho(hu.prototype,{subscribe:function(t){return new lu(t,this._f)},forEach:function(t){var n=this;return new(a.Promise||e.Promise)((function(e,i){S(t);var r=n.subscribe({next:function(e){try{return t(e)}catch(t){i(t),r.unsubscribe()}},error:i,complete:e})}))}}),Ho(hu,{from:function(t){var e="function"==typeof this?this:hu,n=ou(u(t)[iu]);if(n){var i=u(n.call(t));return i.constructor===e?i:new e((function(t){return i.subscribe(t)}))}return new e((function(e){var n=!1;return nu((function(){if(!n){try{if(fo(t,!1,(function(t){if(e.next(t),n)return ru}))===ru)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}})),function(){n=!0}}))},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:hu)((function(t){var e=!1;return nu((function(){if(!e){for(var i=0;i<n.length;++i)if(t.next(n[i]),e)return;t.complete()}})),function(){e=!0}}))}}),y(hu.prototype,iu,(function(){return this})),R(R.G,{Observable:hu}),pr("Observable");var fu=[].slice,du=/MSIE .\./.test(Lo),gu=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&fu.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};R(R.G+R.B+R.F*du,{setTimeout:gu(e.setTimeout),setInterval:gu(e.setInterval)}),R(R.G+R.B,{setImmediate:So.set,clearImmediate:So.clear});for(var pu=O("iterator"),vu=O("toStringTag"),yu=Un.Array,mu={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},_u=it(mu),bu=0;bu<_u.length;bu++){var wu,xu=_u[bu],ku=mu[xu],Su=e[xu],Cu=Su&&Su.prototype;if(Cu&&(Cu[pu]||y(Cu,pu,yu),Cu[vu]||y(Cu,vu,xu),Un[xu]=yu,ku))for(wu in yr)Cu[wu]||k(Cu,wu,yr[wu],!0)}t((function(t){var e=function(t){var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof v?e:v,o=Object.create(r.prototype),a=new R(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===d)throw new Error("Generator is already running");if(i===g){if("throw"===r)throw o;return O()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=c(t,e,n);if("normal"===u.type){if(i=n.done?g:f,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=g,n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",f="suspendedYield",d="executing",g="completed",p={};function v(){}function y(){}function m(){}var _={};_[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(M([])));w&&w!==n&&i.call(w,o)&&(_=w);var x=m.prototype=v.prototype=Object.create(_);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function S(t,e){function n(r,o,a,s){var u=c(t[r],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"===_typeof2(h)&&i.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function C(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,p;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function M(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:e,done:!0}}return y.prototype=x.constructor=m,m.constructor=y,y.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},k(S.prototype),S.prototype[a]=function(){return this},t.AsyncIterator=S,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new S(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},k(x),u(x,s,"Generator"),x[o]=function(){return this},x.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=M,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:M(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}})),"undefined"!=typeof window&&function(){try{if("undefined"==typeof SVGElement||Boolean(SVGElement.prototype.innerHTML))return}catch(t){return}function t(e){switch(e.nodeType){case 1:return function(e){var n="";n+="<"+e.tagName,e.hasAttributes()&&[].forEach.call(e.attributes,(function(t){n+=" "+t.name+'="'+t.value+'"'}));n+=">",e.hasChildNodes()&&[].forEach.call(e.childNodes,(function(e){n+=t(e)}));return n+="</"+e.tagName+">",n}(e);case 3:return function(t){return t.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}(e);case 8:return function(t){return"\x3c!--"+t.nodeValue+"--\x3e"}(e)}}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var e="";return[].forEach.call(this.childNodes,(function(n){e+=t(n)})),e},set:function(t){for(;this.firstChild;)this.removeChild(this.firstChild);try{var e=new DOMParser;e.async=!1;var n="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+t+"</svg>",i=e.parseFromString(n,"text/xml").documentElement;[].forEach.call(i.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,!0))}.bind(this))}catch(t){throw new Error("Error parsing markup string")}}}),Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}})}()})),function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof2(exports))&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define("d3plus",["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).d3plus={})}(this,(function(t){var e=regeneratorRuntime.mark(u),n=regeneratorRuntime.mark(P),i=regeneratorRuntime.mark(co),r=regeneratorRuntime.mark(iM);function o(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function a(t){var e=t,n=t;function i(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;n(t[o],e)<0?i=o+1:r=o}return i}return 1===t.length&&(e=function(e,n){return t(e)-n},n=function(t){return function(e,n){return o(t(e),n)}}(t)),{left:i,center:function(t,n,r,o){null==r&&(r=0),null==o&&(o=t.length);var a=i(t,n,r,o-1);return a>r&&e(t[a-1],n)>-e(t[a],n)?a-1:a},right:function(t,e,i,r){for(null==i&&(i=0),null==r&&(r=t.length);i<r;){var o=i+r>>>1;n(t[o],e)>0?r=o:i=o+1}return i}}}function s(t){return null===t?NaN:+t}function u(t,n){var i,r,o,a,s,u,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==n){e.next=21;break}i=_createForOfIteratorHelper2(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=11;break}if(!(null!=(o=r.value)&&(o=+o)>=o)){e.next=9;break}return e.next=9,o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13,e.t0=e.catch(2),i.e(e.t0);case 16:return e.prev=16,i.f(),e.finish(16);case 19:e.next=40;break;case 21:a=-1,s=_createForOfIteratorHelper2(t),e.prev=23,s.s();case 25:if((u=s.n()).done){e.next=32;break}if(l=u.value,!(null!=(l=n(l,++a,t))&&(l=+l)>=l)){e.next=30;break}return e.next=30,l;case 30:e.next=25;break;case 32:e.next=37;break;case 34:e.prev=34,e.t1=e.catch(23),s.e(e.t1);case 37:return e.prev=37,s.f(),e.finish(37);case 40:case"end":return e.stop()}}),e,null,[[2,13,16,19],[23,34,37,40]])}var l=a(o).right;function c(t,e){var n=function(t,e){var n,i=0,r=0,o=0;if(void 0===e){var a,s=_createForOfIteratorHelper2(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;null!=u&&(u=+u)>=u&&(o+=(n=u-r)*(u-(r+=n/++i)))}}catch(t){s.e(t)}finally{s.f()}}else{var l,c=-1,h=_createForOfIteratorHelper2(t);try{for(h.s();!(l=h.n()).done;){var f=l.value;null!=(f=e(f,++c,t))&&(f=+f)>=f&&(o+=(n=f-r)*(f-(r+=n/++i)))}}catch(t){h.e(t)}finally{h.f()}}if(i>1)return o/(i-1)}(t,e);return n?Math.sqrt(n):n}function h(t,e){var n,i;if(void 0===e){var r,o=_createForOfIteratorHelper2(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!=a&&(void 0===n?a>=a&&(n=i=a):(n>a&&(n=a),i<a&&(i=a)))}}catch(t){o.e(t)}finally{o.f()}}else{var s,u=-1,l=_createForOfIteratorHelper2(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;null!=(c=e(c,++u,t))&&(void 0===n?c>=c&&(n=i=c):(n>c&&(n=c),i<c&&(i=c)))}}catch(t){l.e(t)}finally{l.f()}}return[n,i]}a(s).center;var f=function(){"use strict";function t(){_classCallCheck2(this,t),this._partials=new Float64Array(32),this._n=0}return _createClass2(t,[{key:"add",value:function(t){for(var e=this._partials,n=0,i=0;i<this._n&&i<32;i++){var r=e[i],o=t+r,a=Math.abs(t)<Math.abs(r)?t-(o-r):r-(o-t);a&&(e[n++]=a),t=o}return e[n]=t,this._n=n+1,this}},{key:"valueOf",value:function(){var t,e,n,i=this._partials,r=this._n,o=0;if(r>0){for(o=i[--r];r>0&&(t=o,!(n=(e=i[--r])-((o=t+e)-t))););r>0&&(n<0&&i[r-1]<0||n>0&&i[r-1]>0)&&(e=2*n)==(t=o+e)-o&&(o=t)}return o}}]),t}(),d=function(t){"use strict";_inherits2(n,_wrapNativeSuper(Map));var e=_createSuper2(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;_classCallCheck2(this,n),t=e.call(this),Object.defineProperties(_assertThisInitialized2(t),{_intern:{value:new Map},_key:{value:r}});var o,a=_createForOfIteratorHelper2(i);try{for(a.s();!(o=a.n()).done;){var s=_slicedToArray2(o.value,2),u=s[0],l=s[1];t.set(u,l)}}catch(t){a.e(t)}finally{a.f()}return t}return _createClass2(n,[{key:"get",value:function(t){return _get2(_getPrototypeOf2(n.prototype),"get",this).call(this,g(this,t))}},{key:"has",value:function(t){return _get2(_getPrototypeOf2(n.prototype),"has",this).call(this,g(this,t))}},{key:"set",value:function(t,e){return _get2(_getPrototypeOf2(n.prototype),"set",this).call(this,function(t,e){var n=t._intern,i=(0,t._key)(e);return n.has(i)?n.get(i):(n.set(i,e),e)}(this,t),e)}},{key:"delete",value:function(t){return _get2(_getPrototypeOf2(n.prototype),"delete",this).call(this,function(t,e){var n=t._intern,i=(0,t._key)(e);n.has(i)&&(e=n.get(e),n.delete(i));return e}(this,t))}}]),n}();function g(t,e){var n=t._intern,i=(0,t._key)(e);return n.has(i)?n.get(i):e}function p(t){return null!==t&&"object"===_typeof2(t)?t.valueOf():t}function v(t){return t}function y(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return m(t,v,e,i)}function m(t,e,n,i){return function t(r,o){if(o>=i.length)return n(r);var a,s=new d,u=i[o++],l=-1,c=_createForOfIteratorHelper2(r);try{for(c.s();!(a=c.n()).done;){var h=a.value,f=u(h,++l,r),g=s.get(f);g?g.push(h):s.set(f,[h])}}catch(t){c.e(t)}finally{c.f()}var p,v=_createForOfIteratorHelper2(s);try{for(v.s();!(p=v.n()).done;){var y=_slicedToArray2(p.value,2),m=y[0],_=y[1];s.set(m,t(_,o))}}catch(t){v.e(t)}finally{v.f()}return e(s)}(t,0)}var _=Math.sqrt(50),b=Math.sqrt(10),w=Math.sqrt(2);function x(t,e,n){var i,r,o,a,s=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];if((i=e<t)&&(r=t,t=e,e=r),0===(a=k(t,e,n))||!isFinite(a))return[];if(a>0){var u=Math.round(t/a),l=Math.round(e/a);for(u*a<t&&++u,l*a>e&&--l,o=new Array(r=l-u+1);++s<r;)o[s]=(u+s)*a}else{a=-a;var c=Math.round(t*a),h=Math.round(e*a);for(c/a<t&&++c,h/a>e&&--h,o=new Array(r=h-c+1);++s<r;)o[s]=(c+s)/a}return i&&o.reverse(),o}function k(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),o=i/Math.pow(10,r);return r>=0?(o>=_?10:o>=b?5:o>=w?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=_?10:o>=b?5:o>=w?2:1)}function S(t,e,n){var i=Math.abs(e-t)/Math.max(0,n),r=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),o=i/r;return o>=_?r*=10:o>=b?r*=5:o>=w&&(r*=2),e<t?-r:r}function C(t,e){var n;if(void 0===e){var i,r=_createForOfIteratorHelper2(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;null!=o&&(n<o||void 0===n&&o>=o)&&(n=o)}}catch(t){r.e(t)}finally{r.f()}}else{var a,s=-1,u=_createForOfIteratorHelper2(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n<l||void 0===n&&l>=l)&&(n=l)}}catch(t){u.e(t)}finally{u.f()}}return n}function E(t,e){var n;if(void 0===e){var i,r=_createForOfIteratorHelper2(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;null!=o&&(n>o||void 0===n&&o>=o)&&(n=o)}}catch(t){r.e(t)}finally{r.f()}}else{var a,s=-1,u=_createForOfIteratorHelper2(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;null!=(l=e(l,++s,t))&&(n>l||void 0===n&&l>=l)&&(n=l)}}catch(t){u.e(t)}finally{u.f()}}return n}function A(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length-1,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:o;i>n;){if(i-n>600){var a=i-n+1,s=e-n+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1);A(t,e,Math.max(n,Math.floor(e-s*l/a+c)),Math.min(i,Math.floor(e+(a-s)*l/a+c)),r)}var h=t[e],f=n,d=i;for(R(t,n,e),r(t[i],h)>0&&R(t,n,i);f<d;){for(R(t,f,d),++f,--d;r(t[f],h)<0;)++f;for(;r(t[d],h)>0;)--d}0===r(t[n],h)?R(t,n,d):R(t,++d,i),d<=e&&(n=d+1),e<=d&&(i=d-1)}return t}function R(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function M(t,e,n){if(i=(t=Float64Array.from(u(t,n))).length){if((e=+e)<=0||i<2)return E(t);if(e>=1)return C(t);var i,r=(i-1)*e,o=Math.floor(r),a=C(A(t,o).subarray(0,o+1));return a+(E(t.subarray(o+1))-a)*(r-o)}}function O(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;if(i=t.length){if((e=+e)<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(r-o)}}function T(t,e){var n=0,i=0;if(void 0===e){var r,o=_createForOfIteratorHelper2(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;null!=a&&(a=+a)>=a&&(++n,i+=a)}}catch(t){o.e(t)}finally{o.f()}}else{var s,u=-1,l=_createForOfIteratorHelper2(t);try{for(l.s();!(s=l.n()).done;){var c=s.value;null!=(c=e(c,++u,t))&&(c=+c)>=c&&(++n,i+=c)}}catch(t){l.e(t)}finally{l.f()}}if(n)return i/n}function P(t){var e,i,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e=_createForOfIteratorHelper2(t),n.prev=1,e.s();case 3:if((i=e.n()).done){n.next=8;break}return r=i.value,n.delegateYield(r,"t0",6);case 6:n.next=3;break;case 8:n.next=13;break;case 10:n.prev=10,n.t1=n.catch(1),e.e(n.t1);case 13:return n.prev=13,e.f(),n.finish(13);case 16:case"end":return n.stop()}}),n,null,[[1,10,13,16]])}function B(t){return Array.from(P(t))}function D(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(r);++i<r;)o[i]=t+i*n;return o}function N(t,e){var n=0;if(void 0===e){var i,r=_createForOfIteratorHelper2(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;(o=+o)&&(n+=o)}}catch(t){r.e(t)}finally{r.f()}}else{var a,s=-1,u=_createForOfIteratorHelper2(t);try{for(u.s();!(a=u.n()).done;){var l=a.value;(l=+e(l,++s,t))&&(n+=l)}}catch(t){u.e(t)}finally{u.f()}}return n}var z=new Date,j=new Date;function F(t,e,n,i){function r(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return r.floor=function(e){return t(e=new Date(+e)),e},r.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},r.round=function(t){var e=r(t),n=r.ceil(t);return t-e<n-t?e:n},r.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},r.range=function(n,i,o){var a,s=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<i);return s},r.filter=function(n){return F((function(e){if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),(function(t,i){if(t>=t)if(i<0)for(;++i<=0;)for(;e(t,-1),!n(t););else for(;--i>=0;)for(;e(t,1),!n(t););}))},n&&(r.count=function(e,i){return z.setTime(+e),j.setTime(+i),t(z),t(j),Math.floor(n(z,j))},r.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?r.filter(i?function(e){return i(e)%t==0}:function(e){return r.count(0,e)%t==0}):r:null}),r}var L=F((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));L.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?F((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):L:null};var I=1e3,H=6e4,G=60*H,V=24*G,U=7*V,W=30*V,q=365*V,K=F((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*I)}),(function(t,e){return(e-t)/I}),(function(t){return t.getUTCSeconds()})),Y=F((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*I)}),(function(t,e){t.setTime(+t+e*H)}),(function(t,e){return(e-t)/H}),(function(t){return t.getMinutes()})),X=F((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*I-t.getMinutes()*H)}),(function(t,e){t.setTime(+t+e*G)}),(function(t,e){return(e-t)/G}),(function(t){return t.getHours()})),Z=F((function(t){return t.setHours(0,0,0,0)}),(function(t,e){return t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*H)/V}),(function(t){return t.getDate()-1}));function J(t){return F((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*H)/U}))}var Q=J(0),tt=J(1);J(2),J(3);var et=J(4);J(5),J(6);var nt=F((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),it=F((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));it.every=function(t){return isFinite(t=Math.floor(t))&&t>0?F((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var rt=F((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*H)}),(function(t,e){return(e-t)/H}),(function(t){return t.getUTCMinutes()})),ot=F((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*G)}),(function(t,e){return(e-t)/G}),(function(t){return t.getUTCHours()})),at=F((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/V}),(function(t){return t.getUTCDate()-1}));function st(t){return F((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/U}))}var ut=st(0),lt=st(1);st(2),st(3);var ct=st(4);st(5),st(6);var ht=F((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),ft=F((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));function dt(t,e,n,i,r,o){var s=[[K,1,I],[K,5,5e3],[K,15,15e3],[K,30,3e4],[o,1,H],[o,5,5*H],[o,15,15*H],[o,30,30*H],[r,1,G],[r,3,3*G],[r,6,6*G],[r,12,12*G],[i,1,V],[i,2,2*V],[n,1,U],[e,1,W],[e,3,3*W],[t,1,q]];function u(e,n,i){var r=Math.abs(n-e)/i,o=a((function(t){return _slicedToArray2(t,3)[2]})).right(s,r);if(o===s.length)return t.every(S(e/q,n/q,i));if(0===o)return L.every(Math.max(S(e,n,i),1));var u=_slicedToArray2(s[r/s[o-1][2]<s[o][2]/r?o-1:o],2),l=u[0],c=u[1];return l.every(c)}return[function(t,e,n){var i=e<t;if(i){var r=[e,t];t=r[0],e=r[1]}var o=n&&"function"==typeof n.range?n:u(t,e,n),a=o?o.range(t,+e+1):[];return i?a.reverse():a},u]}ft.every=function(t){return isFinite(t=Math.floor(t))&&t>0?F((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var gt=_slicedToArray2(dt(ft,ht,ut,at,ot,rt),2),pt=gt[0],vt=gt[1],yt=_slicedToArray2(dt(it,nt,Q,Z,X,Y),2),mt=yt[0],_t=yt[1];function bt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function wt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function xt(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var kt,St,Ct,Et={"-":"",_:" ",0:"0"},At=/^\s*\d+/,Rt=/^%/,Mt=/[\\^$*+?|[\]().{}]/g;function Ot(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function Tt(t){return t.replace(Mt,"\\$&")}function Pt(t){return new RegExp("^(?:"+t.map(Tt).join("|")+")","i")}function Bt(t){return new Map(t.map((function(t,e){return[t.toLowerCase(),e]})))}function Dt(t,e,n){var i=At.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Nt(t,e,n){var i=At.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function zt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function jt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Ft(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Lt(t,e,n){var i=At.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function It(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function Ht(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function Gt(t,e,n){var i=At.exec(e.slice(n,n+1));return i?(t.q=3*i[0]-3,n+i[0].length):-1}function Vt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Ut(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Wt(t,e,n){var i=At.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function qt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Kt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Yt(t,e,n){var i=At.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Xt(t,e,n){var i=At.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Zt(t,e,n){var i=At.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function $t(t,e,n){var i=Rt.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Jt(t,e,n){var i=At.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function Qt(t,e,n){var i=At.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function te(t,e){return Ot(t.getDate(),e,2)}function ee(t,e){return Ot(t.getHours(),e,2)}function ne(t,e){return Ot(t.getHours()%12||12,e,2)}function ie(t,e){return Ot(1+Z.count(it(t),t),e,3)}function re(t,e){return Ot(t.getMilliseconds(),e,3)}function oe(t,e){return re(t,e)+"000"}function ae(t,e){return Ot(t.getMonth()+1,e,2)}function se(t,e){return Ot(t.getMinutes(),e,2)}function ue(t,e){return Ot(t.getSeconds(),e,2)}function le(t){var e=t.getDay();return 0===e?7:e}function ce(t,e){return Ot(Q.count(it(t)-1,t),e,2)}function he(t){var e=t.getDay();return e>=4||0===e?et(t):et.ceil(t)}function fe(t,e){return t=he(t),Ot(et.count(it(t),t)+(4===it(t).getDay()),e,2)}function de(t){return t.getDay()}function ge(t,e){return Ot(tt.count(it(t)-1,t),e,2)}function pe(t,e){return Ot(t.getFullYear()%100,e,2)}function ve(t,e){return Ot((t=he(t)).getFullYear()%100,e,2)}function ye(t,e){return Ot(t.getFullYear()%1e4,e,4)}function me(t,e){var n=t.getDay();return Ot((t=n>=4||0===n?et(t):et.ceil(t)).getFullYear()%1e4,e,4)}function _e(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ot(e/60|0,"0",2)+Ot(e%60,"0",2)}function be(t,e){return Ot(t.getUTCDate(),e,2)}function we(t,e){return Ot(t.getUTCHours(),e,2)}function xe(t,e){return Ot(t.getUTCHours()%12||12,e,2)}function ke(t,e){return Ot(1+at.count(ft(t),t),e,3)}function Se(t,e){return Ot(t.getUTCMilliseconds(),e,3)}function Ce(t,e){return Se(t,e)+"000"}function Ee(t,e){return Ot(t.getUTCMonth()+1,e,2)}function Ae(t,e){return Ot(t.getUTCMinutes(),e,2)}function Re(t,e){return Ot(t.getUTCSeconds(),e,2)}function Me(t){var e=t.getUTCDay();return 0===e?7:e}function Oe(t,e){return Ot(ut.count(ft(t)-1,t),e,2)}function Te(t){var e=t.getUTCDay();return e>=4||0===e?ct(t):ct.ceil(t)}function Pe(t,e){return t=Te(t),Ot(ct.count(ft(t),t)+(4===ft(t).getUTCDay()),e,2)}function Be(t){return t.getUTCDay()}function De(t,e){return Ot(lt.count(ft(t)-1,t),e,2)}function Ne(t,e){return Ot(t.getUTCFullYear()%100,e,2)}function ze(t,e){return Ot((t=Te(t)).getUTCFullYear()%100,e,2)}function je(t,e){return Ot(t.getUTCFullYear()%1e4,e,4)}function Fe(t,e){var n=t.getUTCDay();return Ot((t=n>=4||0===n?ct(t):ct.ceil(t)).getUTCFullYear()%1e4,e,4)}function Le(){return"+0000"}function Ie(){return"%"}function He(t){return+t}function Ge(t){return Math.floor(+t/1e3)}function Ve(t){return kt=function(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,l=Pt(r),c=Bt(r),h=Pt(o),f=Bt(o),d=Pt(a),g=Bt(a),p=Pt(s),v=Bt(s),y=Pt(u),m=Bt(u),_={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return s[t.getMonth()]},c:null,d:te,e:te,f:oe,g:ve,G:me,H:ee,I:ne,j:ie,L:re,m:ae,M:se,p:function(t){return r[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:He,s:Ge,S:ue,u:le,U:ce,V:fe,w:de,W:ge,x:null,X:null,y:pe,Y:ye,Z:_e,"%":Ie},b={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:be,e:be,f:Ce,g:ze,G:Fe,H:we,I:xe,j:ke,L:Se,m:Ee,M:Ae,p:function(t){return r[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:He,s:Ge,S:Re,u:Me,U:Oe,V:Pe,w:Be,W:De,x:null,X:null,y:Ne,Y:je,Z:Le,"%":Ie},w={a:function(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=g.get(i[0].toLowerCase()),n+i[0].length):-1},A:function(t,e,n){var i=h.exec(e.slice(n));return i?(t.w=f.get(i[0].toLowerCase()),n+i[0].length):-1},b:function(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=m.get(i[0].toLowerCase()),n+i[0].length):-1},B:function(t,e,n){var i=p.exec(e.slice(n));return i?(t.m=v.get(i[0].toLowerCase()),n+i[0].length):-1},c:function(t,n,i){return S(t,e,n,i)},d:Ut,e:Ut,f:Zt,g:It,G:Lt,H:qt,I:qt,j:Wt,L:Xt,m:Vt,M:Kt,p:function(t,e,n){var i=l.exec(e.slice(n));return i?(t.p=c.get(i[0].toLowerCase()),n+i[0].length):-1},q:Gt,Q:Jt,s:Qt,S:Yt,u:Nt,U:zt,V:jt,w:Dt,W:Ft,x:function(t,e,i){return S(t,n,e,i)},X:function(t,e,n){return S(t,i,e,n)},y:It,Y:Lt,Z:Ht,"%":$t};function x(t,e){return function(n){var i,r,o,a=[],s=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++s<l;)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(r=Et[i=t.charAt(++s)])?i=t.charAt(++s):r="e"===i?" ":"0",(o=e[i])&&(i=o(n,r)),a.push(i),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function k(t,e){return function(n){var i,r,o=xt(1900,void 0,1);if(S(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=wt(xt(o.y,0,1))).getUTCDay(),i=r>4||0===r?lt.ceil(i):lt(i),i=at.offset(i,7*(o.V-1)),o.y=i.getUTCFullYear(),o.m=i.getUTCMonth(),o.d=i.getUTCDate()+(o.w+6)%7):(r=(i=bt(xt(o.y,0,1))).getDay(),i=r>4||0===r?tt.ceil(i):tt(i),i=Z.offset(i,7*(o.V-1)),o.y=i.getFullYear(),o.m=i.getMonth(),o.d=i.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),r="Z"in o?wt(xt(o.y,0,1)).getUTCDay():bt(xt(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(r+5)%7:o.w+7*o.U-(r+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,wt(o)):bt(o)}}function S(t,e,n,i){for(var r,o,a=0,s=e.length,u=n.length;a<s;){if(i>=u)return-1;if(37===(r=e.charCodeAt(a++))){if(r=e.charAt(a++),!(o=w[r in Et?e.charAt(a++):r])||(i=o(t,n,i))<0)return-1}else if(r!=n.charCodeAt(i++))return-1}return i}return _.x=x(n,_),_.X=x(i,_),_.c=x(e,_),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b),{format:function(t){var e=x(t+="",_);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=x(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}(t),St=kt.format,kt.parse,Ct=kt.utcFormat,kt.utcParse,kt}function Ue(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function We(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}Ve({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"]});var qe=Symbol("implicit");function Ke(){var t=new Map,e=[],n=[],i=qe;function r(r){var o=r+"",a=t.get(o);if(!a){if(i!==qe)return i;t.set(o,a=e.push(r))}return n[(a-1)%n.length]}return r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Map;var i,o=_createForOfIteratorHelper2(n);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a+"";t.has(s)||t.set(s,e.push(a))}}catch(t){o.e(t)}finally{o.f()}return r},r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()},r.unknown=function(t){return arguments.length?(i=t,r):i},r.copy=function(){return Ke(e,n).unknown(i)},Ue.apply(r,arguments),r}function Ye(){var t,e,n=Ke().unknown(void 0),i=n.domain,r=n.range,o=0,a=1,s=!1,u=0,l=0,c=.5;function h(){var n=i().length,h=a<o,f=h?a:o,d=h?o:a;t=(d-f)/Math.max(1,n-u+2*l),s&&(t=Math.floor(t)),f+=(d-f-t*(n-u))*c,e=t*(1-u),s&&(f=Math.round(f),e=Math.round(e));var g=D(n).map((function(e){return f+t*e}));return r(h?g.reverse():g)}return delete n.unknown,n.domain=function(t){return arguments.length?(i(t),h()):i()},n.range=function(t){var e;return arguments.length?(e=_slicedToArray2(t,2),o=e[0],a=e[1],o=+o,a=+a,h()):[o,a]},n.rangeRound=function(t){var e;return e=_slicedToArray2(t,2),o=e[0],a=e[1],o=+o,a=+a,s=!0,h()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(s=!!t,h()):s},n.padding=function(t){return arguments.length?(u=Math.min(1,l=+t),h()):u},n.paddingInner=function(t){return arguments.length?(u=Math.min(1,t),h()):u},n.paddingOuter=function(t){return arguments.length?(l=+t,h()):l},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),h()):c},n.copy=function(){return Ye(i(),[o,a]).round(s).paddingInner(u).paddingOuter(l).align(c)},Ue.apply(h(),arguments)}function Xe(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return Xe(e())},t}function Ze(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function $e(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Je(){}var Qe=.7,tn=1/Qe,en="\\s*([+-]?\\d+)\\s*",nn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",on=/^#([0-9a-f]{3,8})$/,an=new RegExp("^rgb\\("+[en,en,en]+"\\)$"),sn=new RegExp("^rgb\\("+[rn,rn,rn]+"\\)$"),un=new RegExp("^rgba\\("+[en,en,en,nn]+"\\)$"),ln=new RegExp("^rgba\\("+[rn,rn,rn,nn]+"\\)$"),cn=new RegExp("^hsl\\("+[nn,rn,rn]+"\\)$"),hn=new RegExp("^hsla\\("+[nn,rn,rn,nn]+"\\)$"),fn={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};function dn(){return this.rgb().formatHex()}function gn(){return this.rgb().formatRgb()}function pn(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=on.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?vn(e):3===n?new _n(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?yn(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?yn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=an.exec(t))?new _n(e[1],e[2],e[3],1):(e=sn.exec(t))?new _n(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=un.exec(t))?yn(e[1],e[2],e[3],e[4]):(e=ln.exec(t))?yn(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=cn.exec(t))?kn(e[1],e[2]/100,e[3]/100,1):(e=hn.exec(t))?kn(e[1],e[2]/100,e[3]/100,e[4]):fn.hasOwnProperty(t)?vn(fn[t]):"transparent"===t?new _n(NaN,NaN,NaN,0):null}function vn(t){return new _n(t>>16&255,t>>8&255,255&t,1)}function yn(t,e,n,i){return i<=0&&(t=e=n=NaN),new _n(t,e,n,i)}function mn(t,e,n,i){return 1===arguments.length?((r=t)instanceof Je||(r=pn(r)),r?new _n((r=r.rgb()).r,r.g,r.b,r.opacity):new _n):new _n(t,e,n,null==i?1:i);var r}function _n(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function bn(){return"#"+xn(this.r)+xn(this.g)+xn(this.b)}function wn(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"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))+(1===t?")":", "+t+")")}function xn(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function kn(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new En(t,e,n,i)}function Sn(t){if(t instanceof En)return new En(t.h,t.s,t.l,t.opacity);if(t instanceof Je||(t=pn(t)),!t)return new En;if(t instanceof En)return t;var e=(t=t.rgb()).r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),a=NaN,s=o-r,u=(o+r)/2;return s?(a=e===o?(n-i)/s+6*(n<i):n===o?(i-e)/s+2:(e-n)/s+4,s/=u<.5?o+r:2-o-r,a*=60):s=u>0&&u<1?0:a,new En(a,s,u,t.opacity)}function Cn(t,e,n,i){return 1===arguments.length?Sn(t):new En(t,e,n,null==i?1:i)}function En(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function An(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Ze(Je,pn,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:dn,formatHex:dn,formatHsl:function(){return Sn(this).formatHsl()},formatRgb:gn,toString:gn}),Ze(_n,mn,$e(Je,{brighter:function(t){return t=null==t?tn:Math.pow(tn,t),new _n(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Qe:Math.pow(Qe,t),new _n(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){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:wn,toString:wn})),Ze(En,Cn,$e(Je,{brighter:function(t){return t=null==t?tn:Math.pow(tn,t),new En(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Qe:Math.pow(Qe,t),new En(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new _n(An(t>=240?t-240:t+120,r,i),An(t,r,i),An(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Rn=function(t){return function(){return t}};function Mn(t){return 1==(t=+t)?On:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):Rn(isNaN(e)?n:e)}}function On(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):Rn(isNaN(t)?e:t)}var Tn=function t(e){var n=Mn(e);function i(t,e){var i=n((t=mn(t)).r,(e=mn(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=On(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function Pn(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(o){for(n=0;n<i;++n)r[n]=t[n]*(1-o)+e[n]*o;return r}}function Bn(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,o=new Array(r),a=new Array(i);for(n=0;n<r;++n)o[n]=In(t[n],e[n]);for(;n<i;++n)a[n]=e[n];return function(t){for(n=0;n<r;++n)a[n]=o[n](t);return a}}function Dn(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Nn(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function zn(t,e){var n,i={},r={};for(n in null!==t&&"object"===_typeof2(t)||(t={}),null!==e&&"object"===_typeof2(e)||(e={}),e)n in t?i[n]=In(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}}var jn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fn=new RegExp(jn.source,"g");function Ln(t,e){var n,i,r,o=jn.lastIndex=Fn.lastIndex=0,a=-1,s=[],u=[];for(t+="",e+="";(n=jn.exec(t))&&(i=Fn.exec(e));)(r=i.index)>o&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,u.push({i:a,x:Nn(n,i)})),o=Fn.lastIndex;return o<e.length&&(r=e.slice(o),s[a]?s[a]+=r:s[++a]=r),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(t){return function(){return t}}(e):(e=u.length,function(t){for(var n,i=0;i<e;++i)s[(n=u[i]).i]=n.x(t);return s.join("")})}function In(t,e){var n,i=_typeof2(e);return null==e||"boolean"===i?Rn(e):("number"===i?Nn:"string"===i?(n=pn(e))?(e=n,Tn):Ln:e instanceof pn?Tn:e instanceof Date?Dn:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}(e)?Pn:Array.isArray(e)?Bn:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?zn:Nn)(t,e)}function Hn(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var Gn,Vn=180/Math.PI,Un={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Wn(t,e,n,i,r,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(s=Math.sqrt(n*n+i*i))&&(n/=s,i/=s,u/=s),t*i<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*Vn,skewX:Math.atan(u)*Vn,scaleX:a,scaleY:s}}function qn(t,e,n,i){function r(t){return t.length?t.pop()+" ":""}return function(o,a){var s=[],u=[];return o=t(o),a=t(a),function(t,i,r,o,a,s){if(t!==r||i!==o){var u=a.push("translate(",null,e,null,n);s.push({i:u-4,x:Nn(t,r)},{i:u-2,x:Nn(i,o)})}else(r||o)&&a.push("translate("+r+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:Nn(t,e)})):e&&n.push(r(n)+"rotate("+e+i)}(o.rotate,a.rotate,s,u),function(t,e,n,o){t!==e?o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:Nn(t,e)}):e&&n.push(r(n)+"skewX("+e+i)}(o.skewX,a.skewX,s,u),function(t,e,n,i,o,a){if(t!==n||e!==i){var s=o.push(r(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Nn(t,n)},{i:s-2,x:Nn(e,i)})}else 1===n&&1===i||o.push(r(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(t){for(var e,n=-1,i=u.length;++n<i;)s[(e=u[n]).i]=e.x(t);return s.join("")}}}var Kn=qn((function(t){var e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Un:Wn(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),Yn=qn((function(t){return null==t?Un:(Gn||(Gn=document.createElementNS("http://www.w3.org/2000/svg","g")),Gn.setAttribute("transform",t),(t=Gn.transform.baseVal.consolidate())?Wn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Un)}),", ",")",")");function Xn(t){return((t=Math.exp(t))+1/t)/2}var Zn=function t(e,n,i){function r(t,r){var o,a,s=t[0],u=t[1],l=t[2],c=r[0],h=r[1],f=r[2],d=c-s,g=h-u,p=d*d+g*g;if(p<1e-12)a=Math.log(f/l)/e,o=function(t){return[s+t*d,u+t*g,l*Math.exp(e*t*a)]};else{var v=Math.sqrt(p),y=(f*f-l*l+i*p)/(2*l*n*v),m=(f*f-l*l-i*p)/(2*f*n*v),_=Math.log(Math.sqrt(y*y+1)-y),b=Math.log(Math.sqrt(m*m+1)-m);a=(b-_)/e,o=function(t){var i=t*a,r=Xn(_),o=l/(n*v)*(r*function(t){return((t=Math.exp(2*t))-1)/(t+1)}(e*i+_)-function(t){return((t=Math.exp(t))-1/t)/2}(_));return[s+o*d,u+o*g,l*r/Xn(e*i+_)]}}return o.duration=1e3*a*e/Math.SQRT2,o}return r.rho=function(e){var n=Math.max(.001,+e),i=n*n;return t(n,i,i*i)},r}(Math.SQRT2,2,4);function $n(t,e){void 0===e&&(e=t,t=In);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(t){var e=Math.max(0,Math.min(i-1,Math.floor(t*=i)));return o[e](t-e)}}function Jn(t){return+t}var Qn=[0,1];function ti(t){return t}function ei(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:function(t){return function(){return t}}(isNaN(e)?NaN:.5)}function ni(t,e,n){var i=t[0],r=t[1],o=e[0],a=e[1];return r<i?(i=ei(r,i),o=n(a,o)):(i=ei(i,r),o=n(o,a)),function(t){return o(i(t))}}function ii(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),a=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<i;)r[a]=ei(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=l(t,e,1,i)-1;return o[n](r[n](e))}}function ri(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function oi(){var t,e,n,i,r,o,a=Qn,s=Qn,u=In,l=ti;function c(){var t=Math.min(a.length,s.length);return l!==ti&&(l=function(t,e){var n;return t>e&&(n=t,t=e,e=n),function(n){return Math.max(t,Math.min(e,n))}}(a[0],a[t-1])),i=t>2?ii:ni,r=o=null,h}function h(e){return null==e||isNaN(e=+e)?n:(r||(r=i(a.map(t),s,u)))(t(l(e)))}return h.invert=function(n){return l(e((o||(o=i(s,a.map(t),Nn)))(n)))},h.domain=function(t){return arguments.length?(a=Array.from(t,Jn),c()):a.slice()},h.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},h.rangeRound=function(t){return s=Array.from(t),u=Hn,c()},h.clamp=function(t){return arguments.length?(l=!!t||ti,c()):l!==ti},h.interpolate=function(t){return arguments.length?(u=t,c()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,i){return t=n,e=i,c()}}function ai(){return oi()(ti,ti)}function si(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function ui(t){return(t=si(Math.abs(t)))?t[1]:NaN}var li,ci=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hi(t){if(!(e=ci.exec(t)))throw new Error("invalid format: "+t);var e;return new fi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function fi(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function di(t,e){var n=si(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}hi.prototype=fi.prototype,fi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var gi={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return di(100*t,e)},r:di,s:function(t,e){var n=si(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(li=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=i.length;return o===a?i:o>a?i+new Array(o-a+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+si(t,Math.max(0,e+o-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function pi(t){return t}var vi,yi,mi,_i=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wi(t){var e,n,i=void 0===t.grouping||void 0===t.thousands?pi:(e=_i.call(t.grouping,Number),n=t.thousands+"",function(t,i){for(var r=t.length,o=[],a=0,s=e[0],u=0;r>0&&s>0&&(u+s+1>i&&(s=Math.max(1,i-u)),o.push(t.substring(r-=s,r+s)),!((u+=s+1)>i));)s=e[a=(a+1)%e.length];return o.reverse().join(n)}),r=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",s=void 0===t.numerals?pi:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(_i.call(t.numerals,String)),u=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function h(t){var e=(t=hi(t)).fill,n=t.align,h=t.sign,f=t.symbol,d=t.zero,g=t.width,p=t.comma,v=t.precision,y=t.trim,m=t.type;"n"===m?(p=!0,m="g"):gi[m]||(void 0===v&&(v=12),y=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var _="$"===f?r:"#"===f&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",b="$"===f?o:/[%p]/.test(m)?u:"",w=gi[m],x=/[defgprs%]/.test(m);function k(t){var r,o,u,f=_,k=b;if("c"===m)k=w(t)+k,t="";else{var S=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:w(Math.abs(t),v),y&&(t=function(t){t:for(var e,n=t.length,i=1,r=-1;i<n;++i)switch(t[i]){case".":r=e=i;break;case"0":0===r&&(r=i),e=i;break;default:if(!+t[i])break t;r>0&&(r=0)}return r>0?t.slice(0,r)+t.slice(e+1):t}(t)),S&&0==+t&&"+"!==h&&(S=!1),f=(S?"("===h?h:l:"-"===h||"("===h?"":h)+f,k=("s"===m?bi[8+li/3]:"")+k+(S&&"("===h?")":""),x)for(r=-1,o=t.length;++r<o;)if(48>(u=t.charCodeAt(r))||u>57){k=(46===u?a+t.slice(r+1):t.slice(r))+k,t=t.slice(0,r);break}}p&&!d&&(t=i(t,1/0));var C=f.length+t.length+k.length,E=C<g?new Array(g-C+1).join(e):"";switch(p&&d&&(t=i(E+t,E.length?g-k.length:1/0),E=""),n){case"<":t=f+t+k+E;break;case"=":t=f+E+t+k;break;case"^":t=E.slice(0,C=E.length>>1)+f+t+k+E.slice(C);break;default:t=E+f+t+k}return s(t)}return v=void 0===v?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return t+""},k}return{format:h,formatPrefix:function(t,e){var n=h(((t=hi(t)).type="f",t)),i=3*Math.max(-8,Math.min(8,Math.floor(ui(e)/3))),r=Math.pow(10,-i),o=bi[8+i/3];return function(t){return n(r*t)+o}}}}function xi(t){return vi=wi(t),yi=vi.format,mi=vi.formatPrefix,vi}function ki(t,e,n,i){var r,o=S(t,e,n);switch((i=hi(null==i?",f":i)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=i.precision||isNaN(r=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ui(e)/3)))-ui(Math.abs(t)))}(o,a))||(i.precision=r),mi(i,a);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(r=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ui(e)-ui(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(i.precision=r-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(r=function(t){return Math.max(0,-ui(Math.abs(t)))}(o))||(i.precision=r-2*("%"===i.type))}return yi(i)}function Si(t){var e=t.domain;return t.ticks=function(t){var n=e();return x(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var i=e();return ki(i[0],i[i.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var i,r,o=e(),a=0,s=o.length-1,u=o[a],l=o[s],c=10;for(l<u&&(r=u,u=l,l=r,r=a,a=s,s=r);c-- >0;){if((r=k(u,l,n))===i)return o[a]=u,o[s]=l,e(o);if(r>0)u=Math.floor(u/r)*r,l=Math.ceil(l/r)*r;else{if(!(r<0))break;u=Math.ceil(u*r)/r,l=Math.floor(l*r)/r}i=r}return t},t}function Ci(){var t=ai();return t.copy=function(){return ri(t,Ci())},Ue.apply(t,arguments),Si(t)}function Ei(t,e){var n,i=0,r=(t=t.slice()).length-1,o=t[i],a=t[r];return a<o&&(n=i,i=r,r=n,n=o,o=a,a=n),t[i]=e.floor(o),t[r]=e.ceil(a),t}function Ai(t){return Math.log(t)}function Ri(t){return Math.exp(t)}function Mi(t){return-Math.log(-t)}function Oi(t){return-Math.exp(-t)}function Ti(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Pi(t){return function(e){return-t(-e)}}function Bi(t){var e,n,i=t(Ai,Ri),r=i.domain,o=10;function a(){return e=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(o),n=function(t){return 10===t?Ti:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(o),r()[0]<0?(e=Pi(e),n=Pi(n),t(Mi,Oi)):t(Ai,Ri),i}return i.base=function(t){return arguments.length?(o=+t,a()):o},i.domain=function(t){return arguments.length?(r(t),a()):r()},i.ticks=function(t){var i,a=r(),s=a[0],u=a[a.length-1];(i=u<s)&&(f=s,s=u,u=f);var l,c,h,f=e(s),d=e(u),g=null==t?10:+t,p=[];if(!(o%1)&&d-f<g){if(f=Math.floor(f),d=Math.ceil(d),s>0){for(;f<=d;++f)for(c=1,l=n(f);c<o;++c)if(!((h=l*c)<s)){if(h>u)break;p.push(h)}}else for(;f<=d;++f)for(c=o-1,l=n(f);c>=1;--c)if(!((h=l*c)<s)){if(h>u)break;p.push(h)}2*p.length<g&&(p=x(s,u,g))}else p=x(f,d,Math.min(d-f,g)).map(n);return i?p.reverse():p},i.tickFormat=function(t,r){if(null==r&&(r=10===o?".0e":","),"function"!=typeof r&&(r=yi(r)),t===1/0)return r;null==t&&(t=10);var a=Math.max(1,o*t/i.ticks().length);return function(t){var i=t/n(Math.round(e(t)));return i*o<o-.5&&(i*=o),i<=a?r(t):""}},i.nice=function(){return r(Ei(r(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},i}function Di(){var t=Bi(oi()).domain([1,10]);return t.copy=function(){return ri(t,Di()).base(t.base())},Ue.apply(t,arguments),t}function Ni(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function zi(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ji(t){var e=1,n=t(Ni(e),zi(e));return n.constant=function(n){return arguments.length?t(Ni(e=+n),zi(e)):e},Si(n)}function Fi(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Li(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ii(t){return t<0?-t*t:t*t}function Hi(t){var e=t(ti,ti),n=1;return e.exponent=function(e){return arguments.length?1===(n=+e)?t(ti,ti):.5===n?t(Li,Ii):t(Fi(n),Fi(1/n)):n},Si(e)}function Gi(){var t=Hi(oi());return t.copy=function(){return ri(t,Gi()).exponent(t.exponent())},Ue.apply(t,arguments),t}function Vi(){return Gi.apply(null,arguments).exponent(.5)}function Ui(t){return Math.sign(t)*t*t}function Wi(){var t,e=[.5],n=[0,1],i=1;function r(r){return null!=r&&r<=r?n[l(e,r,0,i)]:t}return r.domain=function(t){return arguments.length?(e=Array.from(t),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(t){var i=n.indexOf(t);return[e[i-1],e[i]]},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return Wi().domain(e).range(n).unknown(t)},Ue.apply(r,arguments)}function qi(t){return new Date(t)}function Ki(t){return t instanceof Date?+t:+new Date(+t)}function Yi(t,e,n,i,r,o,a,s,u,l){var c=ai(),h=c.invert,f=c.domain,d=l(".%L"),g=l(":%S"),p=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y");function w(t){return(u(t)<t?d:s(t)<t?g:a(t)<t?p:o(t)<t?v:i(t)<t?r(t)<t?y:m:n(t)<t?_:b)(t)}return c.invert=function(t){return new Date(h(t))},c.domain=function(t){return arguments.length?f(Array.from(t,Ki)):f().map(qi)},c.ticks=function(e){var n=f();return t(n[0],n[n.length-1],null==e?10:e)},c.tickFormat=function(t,e){return null==e?w:l(e)},c.nice=function(t){var n=f();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?f(Ei(n,t)):c},c.copy=function(){return ri(c,Yi(t,e,n,i,r,o,a,s,u,l))},c}function Xi(){return Ue.apply(Yi(mt,_t,it,nt,Q,Z,X,Y,K,St).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Zi(){var t,e,n,i,r,o=0,a=1,s=ti,u=!1;function l(e){return null==e||isNaN(e=+e)?r:s(0===n?.5:(e=(i(e)-t)*n,u?Math.max(0,Math.min(1,e)):e))}function c(t){return function(e){var n,i,r;return arguments.length?(i=(n=_slicedToArray2(e,2))[0],r=n[1],s=t(i,r),l):[s(0),s(1)]}}return l.domain=function(r){var s;return arguments.length?(s=_slicedToArray2(r,2),o=s[0],a=s[1],t=i(o=+o),e=i(a=+a),n=t===e?0:1/(e-t),l):[o,a]},l.clamp=function(t){return arguments.length?(u=!!t,l):u},l.interpolator=function(t){return arguments.length?(s=t,l):s},l.range=c(In),l.rangeRound=c(Hn),l.unknown=function(t){return arguments.length?(r=t,l):r},function(r){return i=r,t=r(o),e=r(a),n=t===e?0:1/(e-t),l}}function $i(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Ji(){var t=Hi(Zi());return t.copy=function(){return $i(t,Ji()).exponent(t.exponent())},We.apply(t,arguments)}function Qi(){var t,e,n,i,r,o,a,s=0,u=.5,l=1,c=1,h=ti,f=!1;function d(t){return isNaN(t=+t)?a:(t=.5+((t=+o(t))-e)*(c*t<c*e?i:r),h(f?Math.max(0,Math.min(1,t)):t))}function g(t){return function(e){var n,i,r,o;return arguments.length?(i=(n=_slicedToArray2(e,3))[0],r=n[1],o=n[2],h=$n(t,[i,r,o]),d):[h(0),h(.5),h(1)]}}return d.domain=function(a){var h;return arguments.length?(h=_slicedToArray2(a,3),s=h[0],u=h[1],l=h[2],t=o(s=+s),e=o(u=+u),n=o(l=+l),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),c=e<t?-1:1,d):[s,u,l]},d.clamp=function(t){return arguments.length?(f=!!t,d):f},d.interpolator=function(t){return arguments.length?(h=t,d):h},d.range=g(In),d.rangeRound=g(Hn),d.unknown=function(t){return arguments.length?(a=t,d):a},function(a){return o=a,t=a(s),e=a(u),n=a(l),i=t===e?0:.5/(e-t),r=e===n?0:.5/(n-e),c=e<t?-1:1,d}}function tr(){var t=Hi(Qi());return t.copy=function(){return $i(t,tr()).exponent(t.exponent())},We.apply(t,arguments)}xi({thousands:",",grouping:[3],currency:["$",""]});var er=Object.freeze({__proto__:null,scaleBand:Ye,scalePoint:function(){return Xe(Ye.apply(null,arguments).paddingInner(1))},scaleIdentity:function t(e){var n;function i(t){return null==t||isNaN(t=+t)?n:t}return i.invert=i,i.domain=i.range=function(t){return arguments.length?(e=Array.from(t,Jn),i):e.slice()},i.unknown=function(t){return arguments.length?(n=t,i):n},i.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,Jn):[0,1],Si(i)},scaleLinear:Ci,scaleLog:Di,scaleSymlog:function t(){var e=ji(oi());return e.copy=function(){return ri(e,t()).constant(e.constant())},Ue.apply(e,arguments)},scaleOrdinal:Ke,scaleImplicit:qe,scalePow:Gi,scaleSqrt:Vi,scaleRadial:function t(){var e,n=ai(),i=[0,1],r=!1;function o(t){var i=function(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}(n(t));return isNaN(i)?e:r?Math.round(i):i}return o.invert=function(t){return n.invert(Ui(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((i=Array.from(t,Jn)).map(Ui)),o):i.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(r=!!t,o):r},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),i).round(r).clamp(n.clamp()).unknown(e)},Ue.apply(o,arguments),Si(o)},scaleQuantile:function t(){var e,n=[],i=[],r=[];function a(){var t=0,e=Math.max(1,i.length);for(r=new Array(e-1);++t<e;)r[t-1]=O(n,t/e);return s}function s(t){return null==t||isNaN(t=+t)?e:i[l(r,t)]}return s.invertExtent=function(t){var e=i.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:n[0],e<r.length?r[e]:n[n.length-1]]},s.domain=function(t){if(!arguments.length)return n.slice();n=[];var e,i=_createForOfIteratorHelper2(t);try{for(i.s();!(e=i.n()).done;){var r=e.value;null==r||isNaN(r=+r)||n.push(r)}}catch(t){i.e(t)}finally{i.f()}return n.sort(o),a()},s.range=function(t){return arguments.length?(i=Array.from(t),a()):i.slice()},s.unknown=function(t){return arguments.length?(e=t,s):e},s.quantiles=function(){return r.slice()},s.copy=function(){return t().domain(n).range(i).unknown(e)},Ue.apply(s,arguments)},scaleQuantize:function t(){var e,n=0,i=1,r=1,o=[.5],a=[0,1];function s(t){return null!=t&&t<=t?a[l(o,t,0,r)]:e}function u(){var t=-1;for(o=new Array(r);++t<r;)o[t]=((t+1)*i-(t-r)*n)/(r+1);return s}return s.domain=function(t){var e;return arguments.length?(e=_slicedToArray2(t,2),n=e[0],i=e[1],n=+n,i=+i,u()):[n,i]},s.range=function(t){return arguments.length?(r=(a=Array.from(t)).length-1,u()):a.slice()},s.invertExtent=function(t){var e=a.indexOf(t);return e<0?[NaN,NaN]:e<1?[n,o[0]]:e>=r?[o[r-1],i]:[o[e-1],o[e]]},s.unknown=function(t){return arguments.length?(e=t,s):s},s.thresholds=function(){return o.slice()},s.copy=function(){return t().domain([n,i]).range(a).unknown(e)},Ue.apply(Si(s),arguments)},scaleThreshold:Wi,scaleTime:Xi,scaleUtc:function(){return Ue.apply(Yi(pt,vt,ft,ht,ut,at,ot,rt,K,Ct).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function t(){var e=Si(Zi()(ti));return e.copy=function(){return $i(e,t())},We.apply(e,arguments)},scaleSequentialLog:function t(){var e=Bi(Zi()).domain([1,10]);return e.copy=function(){return $i(e,t()).base(e.base())},We.apply(e,arguments)},scaleSequentialPow:Ji,scaleSequentialSqrt:function(){return Ji.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function t(){var e=ji(Zi());return e.copy=function(){return $i(e,t()).constant(e.constant())},We.apply(e,arguments)},scaleSequentialQuantile:function t(){var e=[],n=ti;function i(t){if(null!=t&&!isNaN(t=+t))return n((l(e,t,1)-1)/(e.length-1))}return i.domain=function(t){if(!arguments.length)return e.slice();e=[];var n,r=_createForOfIteratorHelper2(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;null==a||isNaN(a=+a)||e.push(a)}}catch(t){r.e(t)}finally{r.f()}return e.sort(o),i},i.interpolator=function(t){return arguments.length?(n=t,i):n},i.range=function(){return e.map((function(t,i){return n(i/(e.length-1))}))},i.quantiles=function(t){return Array.from({length:t+1},(function(n,i){return M(e,i/t)}))},i.copy=function(){return t(n).domain(e)},We.apply(i,arguments)},scaleDiverging:function t(){var e=Si(Qi()(ti));return e.copy=function(){return $i(e,t())},We.apply(e,arguments)},scaleDivergingLog:function t(){var e=Bi(Qi()).domain([.1,1,10]);return e.copy=function(){return $i(e,t()).base(e.base())},We.apply(e,arguments)},scaleDivergingPow:tr,scaleDivergingSqrt:function(){return tr.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function t(){var e=ji(Qi());return e.copy=function(){return $i(e,t()).constant(e.constant())},We.apply(e,arguments)},tickFormat:ki}),nr="http://www.w3.org/1999/xhtml",ir={svg:"http://www.w3.org/2000/svg",xhtml:nr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function rr(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),ir.hasOwnProperty(e)?{space:ir[e],local:t}:t}function or(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===nr&&e.documentElement.namespaceURI===nr?e.createElement(t):e.createElementNS(n,t)}}function ar(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function sr(t){var e=rr(t);return(e.local?ar:or)(e)}function ur(){}function lr(t){return null==t?ur:function(){return this.querySelector(t)}}function cr(t){return"object"===_typeof2(t)&&"length"in t?t:Array.from(t)}function hr(){return[]}function fr(t){return null==t?hr:function(){return this.querySelectorAll(t)}}function dr(t){return function(){return this.matches(t)}}function gr(t){return function(e){return e.matches(t)}}var pr=Array.prototype.find;function vr(){return this.firstElementChild}var yr=Array.prototype.filter;function mr(){return this.children}function _r(t){return new Array(t.length)}function br(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function wr(t,e,n,i,r,o){for(var a,s=0,u=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new br(t,o[s]);for(;s<u;++s)(a=e[s])&&(r[s]=a)}function xr(t,e,n,i,r,o,a){var s,u,l,c=new Map,h=e.length,f=o.length,d=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(d[s]=l=a.call(u,u.__data__,s,e)+"",c.has(l)?r[s]=u:c.set(l,u));for(s=0;s<f;++s)l=a.call(t,o[s],s,o)+"",(u=c.get(l))?(i[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new br(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&c.get(d[s])===u&&(r[s]=u)}function kr(t){return t.__data__}function Sr(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Cr(t){return function(){this.removeAttribute(t)}}function Er(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ar(t,e){return function(){this.setAttribute(t,e)}}function Rr(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Mr(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Or(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Tr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Pr(t){return function(){this.style.removeProperty(t)}}function Br(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Dr(t,e,n){return function(){var i=e.apply(this,arguments);null==i?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Nr(t,e){return t.style.getPropertyValue(e)||Tr(t).getComputedStyle(t,null).getPropertyValue(e)}function zr(t){return function(){delete this[t]}}function jr(t,e){return function(){this[t]=e}}function Fr(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Lr(t){return t.trim().split(/^|\s+/)}function Ir(t){return t.classList||new Hr(t)}function Hr(t){this._node=t,this._names=Lr(t.getAttribute("class")||"")}function Gr(t,e){for(var n=Ir(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Vr(t,e){for(var n=Ir(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Ur(t){return function(){Gr(this,t)}}function Wr(t){return function(){Vr(this,t)}}function qr(t,e){return function(){(e.apply(this,arguments)?Gr:Vr)(this,t)}}function Kr(){this.textContent=""}function Yr(t){return function(){this.textContent=t}}function Xr(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Zr(){this.innerHTML=""}function $r(t){return function(){this.innerHTML=t}}function Jr(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Qr(){this.nextSibling&&this.parentNode.appendChild(this)}function to(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function eo(){return null}function no(){var t=this.parentNode;t&&t.removeChild(this)}function io(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ro(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oo(t){return function(){var e=this.__on;if(e){for(var n,i=0,r=-1,o=e.length;i<o;++i)n=e[i],t.type&&n.type!==t.type||n.name!==t.name?e[++r]=n:this.removeEventListener(n.type,n.listener,n.options);++r?e.length=r:delete this.__on}}}function ao(t,e,n){return function(){var i,r=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(r)for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===t.type&&i.name===t.name)return this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),void(i.value=e);this.addEventListener(t.type,o,n),i={type:t.type,name:t.name,value:e,listener:o,options:n},r?r.push(i):this.__on=[i]}}function so(t,e,n){var i=Tr(t),r=i.CustomEvent;"function"==typeof r?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function uo(t,e){return function(){return so(this,t,e)}}function lo(t,e){return function(){return so(this,t,e.apply(this,arguments))}}function co(){var t,e,n,r,o,a,s;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=this._groups,e=0,n=t.length;case 1:if(!(e<n)){i.next=13;break}r=t[e],o=0,a=r.length;case 3:if(!(o<a)){i.next=10;break}if(!(s=r[o])){i.next=7;break}return i.next=7,s;case 7:++o,i.next=3;break;case 10:++e,i.next=1;break;case 13:case"end":return i.stop()}}),i,this)}br.prototype={constructor:br,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}},Hr.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var ho=[null];function fo(t,e){this._groups=t,this._parents=e}function go(){return new fo([[document.documentElement]],ho)}function po(t){return"string"==typeof t?new fo([[document.querySelector(t)]],[document.documentElement]):new fo([[t]],ho)}function vo(t,e){if(t=function(t){for(var e;e=t.sourceEvent;)t=e;return t}(t),void 0===e&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}function yo(t){return"string"==typeof t?new fo([document.querySelectorAll(t)],[document.documentElement]):new fo([null==t?[]:cr(t)],ho)}fo.prototype=go.prototype=_defineProperty2({constructor:fo,select:function(t){"function"!=typeof t&&(t=lr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a,s=e[r],u=s.length,l=i[r]=new Array(u),c=0;c<u;++c)(o=s[c])&&(a=t.call(o,o.__data__,c,s))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new fo(i,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);return null==e?[]:cr(e)}}(t):fr(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(i.push(t.call(a,a.__data__,l,s)),r.push(a));return new fo(i,r)},selectChild:function(t){return this.select(null==t?vr:function(t){return function(){return pr.call(this.children,t)}}("function"==typeof t?t:gr(t)))},selectChildren:function(t){return this.selectAll(null==t?mr:function(t){return function(){return yr.call(this.children,t)}}("function"==typeof t?t:gr(t)))},filter:function(t){"function"!=typeof t&&(t=dr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,u=i[r]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new fo(i,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,kr);var n=e?xr:wr,i=this._parents,r=this._groups;"function"!=typeof t&&(t=function(t){return function(){return t}}(t));for(var o=r.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=i[l],h=r[l],f=h.length,d=cr(t.call(c,c&&c.__data__,l,i)),g=d.length,p=s[l]=new Array(g),v=a[l]=new Array(g);n(c,h,p,v,u[l]=new Array(f),d,e);for(var y,m,_=0,b=0;_<g;++_)if(y=p[_]){for(_>=b&&(b=_+1);!(m=v[b])&&++b<g;);y._next=m||null}}return(a=new fo(a,i))._enter=s,a._exit=u,a},enter:function(){return new fo(this._enter||this._groups.map(_r),this._parents)},exit:function(){return new fo(this._exit||this._groups.map(_r),this._parents)},join:function(t,e,n){var i=this.enter(),r=this,o=this.exit();return i="function"==typeof t?t(i):i.append(t+""),null!=e&&(r=e(r)),null==n?o.remove():n(o),i&&r?i.merge(r).order():r},merge:function(t){if(!(t instanceof fo))throw new Error("invalid merge");for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var u,l=e[s],c=n[s],h=l.length,f=a[s]=new Array(h),d=0;d<h;++d)(u=l[d]||c[d])&&(f[d]=u);for(;s<i;++s)a[s]=e[s];return new fo(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i,r=t[e],o=r.length-1,a=r[o];--o>=0;)(i=r[o])&&(a&&4^i.compareDocumentPosition(a)&&a.parentNode.insertBefore(i,a),a=i);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=Sr);for(var n=this._groups,i=n.length,r=new Array(i),o=0;o<i;++o){for(var a,s=n[o],u=s.length,l=r[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(e)}return new fo(r,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var a=i[r];if(a)return a}return null},size:function(){var t,e=0,n=_createForOfIteratorHelper2(this);try{for(n.s();!(t=n.n()).done;){t.value;++e}}catch(t){n.e(t)}finally{n.f()}return e},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r,o=e[n],a=0,s=o.length;a<s;++a)(r=o[a])&&t.call(r,r.__data__,a,o);return this},attr:function(t,e){var n=rr(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==e?n.local?Er:Cr:"function"==typeof e?n.local?Or:Mr:n.local?Rr:Ar)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Pr:"function"==typeof e?Dr:Br)(t,e,null==n?"":n)):Nr(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?zr:"function"==typeof e?Fr:jr)(t,e)):this.node()[t]},classed:function(t,e){var n=Lr(t+"");if(arguments.length<2){for(var i=Ir(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each(("function"==typeof e?qr:e?Ur:Wr)(n,e))},text:function(t){return arguments.length?this.each(null==t?Kr:("function"==typeof t?Xr:Yr)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Zr:("function"==typeof t?Jr:$r)(t)):this.node().innerHTML},raise:function(){return this.each(Qr)},lower:function(){return this.each(to)},append:function(t){var e="function"==typeof t?t:sr(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:sr(t),i=null==e?eo:"function"==typeof e?e:lr(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)}))},remove:function(){return this.each(no)},clone:function(t){return this.select(t?ro:io)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var i,r,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?ao:oo,i=0;i<a;++i)this.each(s(o[i],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(i=0,u=s[l];i<a;++i)if((r=o[i]).type===u.type&&r.name===u.name)return u.value},dispatch:function(t,e){return this.each(("function"==typeof e?lo:uo)(t,e))}},Symbol.iterator,co);var mo={value:function(){}};function _o(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new bo(i)}function bo(t){this._=t}function wo(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function xo(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=mo,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}bo.prototype=_o.prototype={constructor:bo,on:function(t,e){var n,i,r=this._,o=(i=r,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)r[n]=xo(r[n],t.name,e);else if(null==e)for(n in r)r[n]=xo(r[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=wo(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new bo(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var ko,So,Co=0,Eo=0,Ao=0,Ro=1e3,Mo=0,Oo=0,To=0,Po="object"===("undefined"==typeof performance?"undefined":_typeof2(performance))&&performance.now?performance:Date,Bo="object"===("undefined"==typeof window?"undefined":_typeof2(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Do(){return Oo||(Bo(No),Oo=Po.now()+To)}function No(){Oo=0}function zo(){this._call=this._time=this._next=null}function jo(t,e,n){var i=new zo;return i.restart(t,e,n),i}function Fo(){Oo=(Mo=Po.now())+To,Co=Eo=0;try{!function(){Do(),++Co;for(var t,e=ko;e;)(t=Oo-e._time)>=0&&e._call.call(null,t),e=e._next;--Co}()}finally{Co=0,function(){var t,e,n=ko,i=1/0;for(;n;)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:ko=e);So=t,Io(i)}(),Oo=0}}function Lo(){var t=Po.now(),e=t-Mo;e>Ro&&(To-=e,Mo=t)}function Io(t){Co||(Eo&&(Eo=clearTimeout(Eo)),t-Oo>24?(t<1/0&&(Eo=setTimeout(Fo,t-Po.now()-To)),Ao&&(Ao=clearInterval(Ao))):(Ao||(Mo=Po.now(),Ao=setInterval(Lo,Ro)),Co=1,Bo(Fo)))}function Ho(t,e,n){var i=new zo;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}zo.prototype=jo.prototype={constructor:zo,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Do():+n)+(null==e?0:+e),this._next||So===this||(So?So._next=this:ko=this,So=this),this._call=t,this._time=n,Io()},stop:function(){this._call&&(this._call=null,this._time=1/0,Io())}};var Go=_o("start","end","cancel","interrupt"),Vo=[],Uo=0,Wo=1,qo=2,Ko=3,Yo=4,Xo=5,Zo=6;function $o(t,e,n,i,r,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var i,r=t.__transition;function o(t){n.state=Wo,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,h,f;if(n.state!==Wo)return u();for(l in r)if((f=r[l]).name===n.name){if(f.state===Ko)return Ho(a);f.state===Yo?(f.state=Zo,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete r[l]):+l<e&&(f.state=Zo,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete r[l])}if(Ho((function(){n.state===Ko&&(n.state=Yo,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=qo,n.on.call("start",t,t.__data__,n.index,n.group),n.state===qo){for(n.state=Ko,i=new Array(h=n.tween.length),l=0,c=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(i[++c]=f);i.length=c+1}}function s(e){for(var r=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=Xo,1),o=-1,a=i.length;++o<a;)i[o].call(t,r);n.state===Xo&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var i in n.state=Zo,n.timer.stop(),delete r[e],r)return;delete t.__transition}r[e]=n,n.timer=jo(o,0,n.time)}(t,n,{name:e,index:i,group:r,on:Go,tween:Vo,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Uo})}function Jo(t,e){var n=ta(t,e);if(n.state>Uo)throw new Error("too late; already scheduled");return n}function Qo(t,e){var n=ta(t,e);if(n.state>Ko)throw new Error("too late; already running");return n}function ta(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function ea(t,e){var n,i,r,o=t.__transition,a=!0;if(o){for(r in e=null==e?null:e+"",o)(n=o[r]).name===e?(i=n.state>qo&&n.state<Xo,n.state=Zo,n.timer.stop(),n.on.call(i?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[r]):a=!1;a&&delete t.__transition}}function na(t,e){var n,i;return function(){var r=Qo(this,t),o=r.tween;if(o!==n)for(var a=0,s=(i=n=o).length;a<s;++a)if(i[a].name===e){(i=i.slice()).splice(a,1);break}r.tween=i}}function ia(t,e,n){var i,r;if("function"!=typeof n)throw new Error;return function(){var o=Qo(this,t),a=o.tween;if(a!==i){r=(i=a).slice();for(var s={name:e,value:n},u=0,l=r.length;u<l;++u)if(r[u].name===e){r[u]=s;break}u===l&&r.push(s)}o.tween=r}}function ra(t,e,n){var i=t._id;return t.each((function(){var t=Qo(this,i);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ta(t,i).value[e]}}function oa(t,e){var n;return("number"==typeof e?Nn:e instanceof pn?Tn:(n=pn(e))?(e=n,Tn):Ln)(t,e)}function aa(t){return function(){this.removeAttribute(t)}}function sa(t){return function(){this.removeAttributeNS(t.space,t.local)}}function ua(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===i?r:r=e(i=a,n)}}function la(t,e,n){var i,r,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===i?r:r=e(i=a,n)}}function ca(t,e,n){var i,r,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttribute(t))===(s=u+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,u));this.removeAttribute(t)}}function ha(t,e,n){var i,r,o;return function(){var a,s,u=n(this);if(null!=u)return(a=this.getAttributeNS(t.space,t.local))===(s=u+"")?null:a===i&&s===r?o:(r=s,o=e(i=a,u));this.removeAttributeNS(t.space,t.local)}}function fa(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,r)),n}return r._value=e,r}function da(t,e){var n,i;function r(){var r=e.apply(this,arguments);return r!==i&&(n=(i=r)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,r)),n}return r._value=e,r}function ga(t,e){return function(){Jo(this,t).delay=+e.apply(this,arguments)}}function pa(t,e){return e=+e,function(){Jo(this,t).delay=e}}function va(t,e){return function(){Qo(this,t).duration=+e.apply(this,arguments)}}function ya(t,e){return e=+e,function(){Qo(this,t).duration=e}}var ma=go.prototype.constructor;function _a(t){return function(){this.style.removeProperty(t)}}var ba=0;function wa(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function xa(t){return go().transition(t)}function ka(){return++ba}var Sa=go.prototype;wa.prototype=xa.prototype=_defineProperty2({constructor:wa,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=lr(t));for(var i=this._groups,r=i.length,o=new Array(r),a=0;a<r;++a)for(var s,u,l=i[a],c=l.length,h=o[a]=new Array(c),f=0;f<c;++f)(s=l[f])&&(u=t.call(s,s.__data__,f,l))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,$o(h[f],e,n,f,h,ta(s,n)));return new wa(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=fr(t));for(var i=this._groups,r=i.length,o=[],a=[],s=0;s<r;++s)for(var u,l=i[s],c=l.length,h=0;h<c;++h)if(u=l[h]){for(var f,d=t.call(u,u.__data__,h,l),g=ta(u,n),p=0,v=d.length;p<v;++p)(f=d[p])&&$o(f,e,n,p,d,g);o.push(d),a.push(u)}return new wa(o,a,e,n)},filter:function(t){"function"!=typeof t&&(t=dr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o,a=e[r],s=a.length,u=i[r]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new wa(i,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),a=new Array(i),s=0;s<o;++s)for(var u,l=e[s],c=n[s],h=l.length,f=a[s]=new Array(h),d=0;d<h;++d)(u=l[d]||c[d])&&(f[d]=u);for(;s<i;++s)a[s]=e[s];return new wa(a,this._parents,this._name,this._id)},selection:function(){return new ma(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=ka(),i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],u=s.length,l=0;l<u;++l)if(a=s[l]){var c=ta(a,e);$o(a,t,n,l,s,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new wa(i,this._parents,t,n)},call:Sa.call,nodes:Sa.nodes,node:Sa.node,size:Sa.size,empty:Sa.empty,each:Sa.each,on:function(t,e){var n=this._id;return arguments.length<2?ta(this.node(),n).on.on(t):this.each(function(t,e,n){var i,r,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?Jo:Qo;return function(){var a=o(this,t),s=a.on;s!==i&&(r=(i=s).copy()).on(e,n),a.on=r}}(n,t,e))},attr:function(t,e){var n=rr(t),i="transform"===n?Yn:oa;return this.attrTween(t,"function"==typeof e?(n.local?ha:ca)(n,i,ra(this,"attr."+t,e)):null==e?(n.local?sa:aa)(n):(n.local?la:ua)(n,i,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var i=rr(t);return this.tween(n,(i.local?fa:da)(i,e))},style:function(t,e,n){var i="transform"==(t+="")?Kn:oa;return null==e?this.styleTween(t,function(t,e){var n,i,r;return function(){var o=Nr(this,t),a=(this.style.removeProperty(t),Nr(this,t));return o===a?null:o===n&&a===i?r:r=e(n=o,i=a)}}(t,i)).on("end.style."+t,_a(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var i,r,o;return function(){var a=Nr(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Nr(this,t)),a===u?null:a===i&&u===r?o:(r=u,o=e(i=a,s))}}(t,i,ra(this,"style."+t,e))).each(function(t,e){var n,i,r,o,a="style."+e,s="end."+a;return function(){var u=Qo(this,t),l=u.on,c=null==u.value[a]?o||(o=_a(e)):void 0;l===n&&r===c||(i=(n=l).copy()).on(s,r=c),u.on=i}}(this._id,t)):this.styleTween(t,function(t,e,n){var i,r,o=n+"";return function(){var a=Nr(this,t);return a===o?null:a===i?r:r=e(i=a,n)}}(t,i,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==e)return this.tween(i,null);if("function"!=typeof e)throw new Error;return this.tween(i,function(t,e,n){var i,r;function o(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&function(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}(t,o,n)),i}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(ra(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function i(){var i=t.apply(this,arguments);return i!==n&&(e=(n=i)&&function(t){return function(e){this.textContent=t.call(this,e)}}(i)),e}return i._value=t,i}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i,r=ta(this.node(),n).tween,o=0,a=r.length;o<a;++o)if((i=r[o]).name===t)return i.value;return null}return this.each((null==e?na:ia)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?ga:pa)(e,t)):ta(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?va:ya)(e,t)):ta(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){Qo(this,t).ease=e}}(e,t)):ta(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;Qo(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,i=n._id,r=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0==--r&&o()}};n.each((function(){var n=Qo(this,i),r=n.on;r!==t&&((e=(t=r).copy())._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e})),0===r&&o()}))}},Symbol.iterator,Sa[Symbol.iterator]);var Ca={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ea(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error("transition ".concat(e," not found"));return n}function Aa(t,e){return void 0===e?function(e){return e[t]}:function(n){return void 0===n[t]?e:n[t]}}function Ra(t){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ra(t)}function Ma(t){return!(!t||"object"!==Ra(t)||"undefined"!=typeof window&&(t===window||t===window.document||t instanceof Element)||Array.isArray(t))}function Oa(){for(var t=arguments,e=arguments.length<=0?void 0:arguments[0],n=function(n){var i=n<0||t.length<=n?void 0:t[n];if(!Ma(i))return"continue";Object.keys(i).forEach((function(t){var n,r=i[t];Ma(r)&&(n=r,"undefined"==typeof window||n!==window&&n!==document)?e.hasOwnProperty(t)&&Ma(e[t])?e[t]=Oa({},e[t],r):e[t]=Oa({},r):Array.isArray(r)?e[t]=r.slice():e[t]=r}))},i=1;i<arguments.length;i++)n(i);return e}function Ta(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)({}).hasOwnProperty.call(e,n)&&t.attr(n,e[n])}go.prototype.interrupt=function(t){return this.each((function(){ea(this,t)}))},go.prototype.transition=function(t){var e,n;t instanceof wa?(e=t._id,t=t._name):(e=ka(),(n=Ca).time=Do(),t=null==t?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var a,s=i[o],u=s.length,l=0;l<u;++l)(a=s[l])&&$o(a,t,e,l,s,n||Ea(a,e));return new wa(i,this._parents,t,e)};var Pa={aa:{language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"},"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:{language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"},"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:{language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"},"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:{language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"},"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:{language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"},"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:{language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"},"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:{language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"},"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:{language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"},"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:{language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"},"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:{language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"},"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:{language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"},"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:{language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"},"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:{language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"},"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:{language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"},"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:{language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"},"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:{language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"},"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:{language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"},"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:{language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"},"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:{language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"},"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:{language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"},"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:{language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"},"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:{language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"},"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:{language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"},"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:{language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"},"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:{language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"},"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:{language:"Breton",location:null,id:126,tag:"br",version:"Release 7"},"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:{language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"},"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:{language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"},"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:{language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"},"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:{language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"},"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:{language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"},"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:{language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"},"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:{language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"},"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:{language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"},"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:{language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"},"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:{language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"},"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:{language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"},"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:{language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"},"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:{language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"},"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:{language:"Danish",location:null,id:6,tag:"da",version:"Release 7"},"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:{language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"},"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:{language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"},"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:{language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"},"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:{language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"},"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:{language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"},"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:{language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"},"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:{language:"English",location:null,id:9,tag:"en",version:"Release 7"},"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:{language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"},"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:{language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"},"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:{language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"},"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:{language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"},"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:{language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"},"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:{language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"},"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:{language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"},"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:{language:"French",location:null,id:12,tag:"fr",version:"Release 7"},"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:{language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"},"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:{language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"},"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:{language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"},"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:{language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"},"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:{language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"},"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:{language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"},"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:{language:"German",location:null,id:7,tag:"de",version:"Release 7"},"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:{language:"Greek",location:null,id:8,tag:"el",version:"Release 7"},"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:{language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"},"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:{language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"},"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:{language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"},"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:{language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"},"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:{language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"},"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:{language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"},"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:{language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"},"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:{language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"},"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:{language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"},"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:{language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"},"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:{language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"},"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:{language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"},"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:{language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"},"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:{language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"},"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:{language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"},"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:{language:"Italian",location:null,id:16,tag:"it",version:"Release 7"},"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:{language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"},"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:{language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"},"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:{language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"},"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:{language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"},"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:{language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"},"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:{language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"},"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:{language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"},"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:{language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"},"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:{language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"},"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:{language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"},"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:{language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"},"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:{language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"},"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:{language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"},"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:{language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"},"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:{language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"},"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:{language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"},"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:{language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"},"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:{language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"},"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:{language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"},"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:{language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"},"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:{language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"},"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:{language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"},"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:{language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"},"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:{language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"},"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:{language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"},"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:{language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"},"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:{language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"},"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:{language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"},"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:{language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"},"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:{language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"},"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:{language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"},"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:{language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"},"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:{language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"},"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:{language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"},"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:{language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"},"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:{language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"},"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:{language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"},"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:{language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"},"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:{language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"},"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:{language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"},"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:{language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"},"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:{language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"},"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:{language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"},"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:{language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"},"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:{language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"},"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:{language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"},"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:{language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"},"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:{language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"},"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:{language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"},"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:{language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"},"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:{language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"},"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:{language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"},"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:{language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"},"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:{language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"},"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:{language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"},"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:{language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"},"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:{language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"},"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:{language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"},"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:{language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"},"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:{language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"},nb:{language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"},"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:{language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"},"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:{language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"},"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:{language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"},"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:{language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"},"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:{language:"Odia",location:null,id:72,tag:"or",version:"Release 7"},"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:{language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"},"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:{language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"},"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:{language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"},"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:{language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"},"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:{language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"},"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:{language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"},"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:{language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"},"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:{language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"},"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:{language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"},"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:{language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"},"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:{language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"},"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:{language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"},"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:{language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"},"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:{language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"},"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:{language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"},"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:{language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"},"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:{language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"},"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:{language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"},"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:{language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"},"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:{language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"},"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:{language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"},"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:{language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"},"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:{language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"},"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:{language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"},"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:{language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"},"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:{language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"},"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:{language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"},"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:{language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"},"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:{language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"},"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:{language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"},"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:{language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"},"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:{language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"},"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:{language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"},"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:{language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"},"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:{language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"},"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:{language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"},"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:{language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"},"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:{language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"},"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:{language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"},"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:{language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"},"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:{language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"},"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:{language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"},"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:{language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"},"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:{language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"},"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:{language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"},"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:{language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"},"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:{language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"},"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:{language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"},"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:{language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"},"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:{language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"},"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:{language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"},"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:{language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"},"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:{language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"},"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:{language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"},"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:{language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"},"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:{language:"Thai",location:null,id:30,tag:"th",version:"Release 7"},"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:{language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"},"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:{language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"},"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:{language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"},"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:{language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"},"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:{language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"},"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:{language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"},"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:{language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"},"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:{language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"},"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:{language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"},"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:{language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"},"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:{language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"},"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:{language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"},"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:{language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"},"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:{language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"},"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:{language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"},"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:{language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"},"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:{language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"},"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:{language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"},"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:{language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"},"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:{language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"},"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:{language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"},"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:{language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"},"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:{language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"},"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:{language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"},"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:{language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"},"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:{language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"},"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:{language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"},"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}},Ba={Abkhazian:{name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"},Achinese:{name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null},Acoli:{name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null},Adangme:{name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null},Adygei:{name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null},Adyghe:{name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null},Afar:{name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"},Afrihili:{name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null},Afrikaans:{name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"},"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:{name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null},Akan:{name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"},Akkadian:{name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null},Albanian:{name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"},Alemannic:{name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Aleut:{name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null},"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:{name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:{name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"},Angika:{name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null},"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:{name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"},Aragonese:{name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"},Arapaho:{name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null},Arawak:{name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null},Armenian:{name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"},Aromanian:{name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:{name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Assamese:{name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"},Asturian:{name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null},Asturleonese:{name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null},"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:{name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"},Avestan:{name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"},Awadhi:{name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null},Aymara:{name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"},Azerbaijani:{name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"},Bable:{name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null},Balinese:{name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null},"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:{name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null},Bambara:{name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"},"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:{name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null},Bashkir:{name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"},Basque:{name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"},"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:{name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null},Beja:{name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null},Belarusian:{name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"},Bemba:{name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null},Bengali:{name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"},"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:{name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null},"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:{name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null},Bilin:{name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null},Bini:{name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null},Bislama:{name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"},Blin:{name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null},Bliss:{name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null},Blissymbolics:{name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null},Blissymbols:{name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null},"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:{name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"},Braj:{name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null},Breton:{name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"},Buginese:{name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null},Bulgarian:{name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"},Buriat:{name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null},Burmese:{name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"},Caddo:{name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null},Castilian:{name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"},Catalan:{name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"},"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:{name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null},"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:{name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null},"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:{name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"},Chechen:{name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"},Cherokee:{name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null},Chewa:{name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"},Cheyenne:{name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null},Chibcha:{name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null},Chichewa:{name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"},Chinese:{name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"},"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:{name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Choctaw:{name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null},Chuang:{name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"},"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:{name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null},Chuvash:{name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"},"Classical Nepal Bhasa":{name:"Classical Nepal Bhasa",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Newari":{name:"Classical Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Syriac":{name:"Classical Syriac",names:["Classical Syriac"],"iso639-2":"syc","iso639-1":null},"Cook Islands Maori":{name:"Cook Islands Maori",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null},Coptic:{name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null},Cornish:{name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"},Corsican:{name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"},Cree:{name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"},Creek:{name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null},"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:{name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"},"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:{name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"},Dakota:{name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null},Danish:{name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"},Dargwa:{name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null},Delaware:{name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null},"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:{name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"},Dimili:{name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Dimli:{name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Dinka:{name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null},Divehi:{name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"},Dogri:{name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null},Dogrib:{name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null},"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:{name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null},Dutch:{name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"},"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:{name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null},Dzongkha:{name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"},"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:{name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null},Efik:{name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null},"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:{name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null},Elamite:{name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null},English:{name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"},"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:{name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null},Esperanto:{name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"},Estonian:{name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"},Ewe:{name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"},Ewondo:{name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null},Fang:{name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null},Fanti:{name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null},Faroese:{name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"},Fijian:{name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"},Filipino:{name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null},Finnish:{name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"},"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:{name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"},Fon:{name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null},French:{name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"},"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:{name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null},Fulah:{name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"},Ga:{name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null},Gaelic:{name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:{name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"},Ganda:{name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"},Gayo:{name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null},Gbaya:{name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null},Geez:{name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null},Georgian:{name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"},German:{name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"},"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:{name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"},Gilbertese:{name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null},Gondi:{name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null},Gorontalo:{name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null},Gothic:{name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null},Grebo:{name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null},"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:{name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"},Guarani:{name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"},Gujarati:{name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"},"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:{name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null},Haitian:{name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:{name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"},Hawaiian:{name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null},Hebrew:{name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"},Herero:{name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"},Hiligaynon:{name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null},"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:{name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"},"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:{name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null},Hmong:{name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null},Hungarian:{name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"},Hupa:{name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null},Iban:{name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null},Icelandic:{name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"},Ido:{name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"},Igbo:{name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"},"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:{name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null},"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:{name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"},Ingush:{name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null},"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:{name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"},Inuktitut:{name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"},Inupiaq:{name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"},"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:{name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"},"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:{name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"},Japanese:{name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"},Javanese:{name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"},Jingpho:{name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null},"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:{name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null},Kabyle:{name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null},Kachin:{name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null},Kalaallisut:{name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"},Kalmyk:{name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null},Kamba:{name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null},Kannada:{name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"},Kanuri:{name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"},Kapampangan:{name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null},"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:{name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null},"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:{name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"},Kashubian:{name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null},Kawi:{name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null},Kazakh:{name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"},Khasi:{name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null},"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:{name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null},Kikuyu:{name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"},Kimbundu:{name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null},Kinyarwanda:{name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"},Kirdki:{name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Kirghiz:{name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"},Kirmanjki:{name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Klingon:{name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Komi:{name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"},Kongo:{name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"},Konkani:{name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null},Korean:{name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"},Kosraean:{name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null},Kpelle:{name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null},"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:{name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"},Kumyk:{name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null},Kurdish:{name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"},Kurukh:{name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null},Kutenai:{name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null},Kwanyama:{name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"},Kyrgyz:{name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"},Ladino:{name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null},Lahnda:{name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null},Lamba:{name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null},"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:{name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"},Latin:{name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"},Latvian:{name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"},Leonese:{name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null},Letzeburgesch:{name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"},Lezghian:{name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null},Limburgan:{name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"},Limburger:{name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"},Limburgish:{name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"},Lingala:{name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"},Lithuanian:{name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"},Lojban:{name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null},"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:{name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null},"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:{name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null},"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:{name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null},"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:{name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null},Luxembourgish:{name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"},"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:{name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"},Madurese:{name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null},Magahi:{name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null},Maithili:{name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null},Makasar:{name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null},Malagasy:{name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"},Malay:{name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"},Malayalam:{name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"},Maldivian:{name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"},Maltese:{name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"},Manchu:{name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null},Mandar:{name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null},Mandingo:{name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null},Manipuri:{name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null},"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:{name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"},Maori:{name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"},Mapuche:{name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null},Mapudungun:{name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null},Marathi:{name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"},Mari:{name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null},Marshallese:{name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"},Marwari:{name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null},Masai:{name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null},"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:{name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null},"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:{name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Minangkabau:{name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null},Mirandese:{name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null},Mohawk:{name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null},Moksha:{name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null},Moldavian:{name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"},Moldovan:{name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"},"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:{name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null},Mongo:{name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null},Mongolian:{name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"},Montenegrin:{name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null},Mossi:{name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null},"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:{name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"},Navaho:{name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"},Navajo:{name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"},"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:{name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"},Neapolitan:{name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null},"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:{name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"},Newari:{name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nias:{name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null},"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:{name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null},"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:{name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null},"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:{name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"},"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:{name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Nyamwezi:{name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null},Nyanja:{name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"},Nyankole:{name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null},"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:{name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null},Nzima:{name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null},Occidental:{name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"},"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:{name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null},Ojibwa:{name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"},"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:{name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"},Oromo:{name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"},Osage:{name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null},Ossetian:{name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"},Ossetic:{name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"},"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:{name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null},Palauan:{name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null},Pali:{name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"},Pampanga:{name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null},Pangasinan:{name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null},Panjabi:{name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"},Papiamento:{name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null},"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:{name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"},Pedi:{name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},Persian:{name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"},"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:{name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null},Pilipino:{name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null},Pohnpeian:{name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null},Polish:{name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"},Portuguese:{name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"},"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:{name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"},Pushto:{name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"},Quechua:{name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"},Rajasthani:{name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null},Rapanui:{name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null},Rarotongan:{name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null},"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:{name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"},Romansh:{name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"},Romany:{name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null},Rundi:{name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"},Russian:{name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"},Sakan:{name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null},"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:{name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"},Sandawe:{name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null},Sango:{name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"},Sanskrit:{name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"},Santali:{name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null},Sardinian:{name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"},Sasak:{name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null},"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:{name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null},"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:{name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null},"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:{name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},Serbian:{name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"},Serer:{name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null},Shan:{name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null},Shona:{name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"},"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:{name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null},Sidamo:{name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null},"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:{name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null},Sindhi:{name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"},Sinhala:{name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"},Sinhalese:{name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"},"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:{name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"},Slovenian:{name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"},Sogdian:{name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null},Somali:{name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"},"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:{name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null},"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:{name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"},"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:{name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null},Sumerian:{name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null},Sundanese:{name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"},Susu:{name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null},Swahili:{name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"},Swati:{name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"},Swedish:{name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"},"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:{name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null},Tagalog:{name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"},Tahitian:{name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"},"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:{name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"},Tamashek:{name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null},Tamil:{name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"},Tatar:{name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"},Telugu:{name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"},Tereno:{name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null},Tetum:{name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null},Thai:{name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"},Tibetan:{name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"},Tigre:{name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null},Tigrinya:{name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"},Timne:{name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null},Tiv:{name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null},"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:{name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null},"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:{name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null},"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:{name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null},Tsonga:{name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"},Tswana:{name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"},Tumbuka:{name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null},"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:{name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"},"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:{name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"},Tuvalu:{name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null},Tuvinian:{name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null},Twi:{name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"},Udmurt:{name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null},Ugaritic:{name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null},Uighur:{name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"},Ukrainian:{name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"},Umbundu:{name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null},"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:{name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null},"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:{name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"},Uyghur:{name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"},Uzbek:{name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"},Vai:{name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null},Valencian:{name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"},Venda:{name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"},Vietnamese:{name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"},"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:{name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null},"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:{name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"},Waray:{name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null},Washo:{name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null},Welsh:{name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"},"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:{name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null},Wolaytta:{name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null},Wolof:{name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"},Xhosa:{name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"},Yakut:{name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null},Yao:{name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null},Yapese:{name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null},Yiddish:{name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"},Yoruba:{name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"},"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:{name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null},Zaza:{name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Zazaki:{name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null},Zenaga:{name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null},Zhuang:{name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"},Zulu:{name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"},Zuni:{name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null}};function Da(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Na=[],za=Object.keys(Ba);Object.keys(Pa).map((function(t){var e,n=Pa[t],i=za.find((function(t){return t.toLowerCase()===n.language.toLowerCase()}));n.location&&i&&Na.push((Da(e={},"name",n.language),Da(e,"location",n.location),Da(e,"tag",n.tag),Da(e,"lcid",n.id),Da(e,"iso639-2",Ba[i]["iso639-2"]),Da(e,"iso639-1",Ba[i]["iso639-1"]),e))}));var ja={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 Fa(t){if("string"!=typeof t||5===t.length)return t;if(ja[t])return ja[t];var e=Na.filter((function(e){return e["iso639-1"]===t}));return e.length?1===e.length?e[0].tag:e.find((function(e){return e.tag==="".concat(t,"-").concat(t.toUpperCase())}))?"".concat(t,"-").concat(t.toUpperCase()):e[0].tag:t}function La(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}function Ia(){return"".concat(La()).concat(La(),"-").concat(La(),"-").concat(La(),"-").concat(La(),"-").concat(La()).concat(La()).concat(La())}var Ha="D3PLUS-COMMON-RESET",Ga={"es-ES":{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 Show":"Clic para Mostrar","Click to Show All":"Clic para Mostrar Todo",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","Shift+Click to Highlight":"Mayús+Clic para Resaltar",Total:"Total",Values:"Valores"},"pt-BR":{and:"e",Back:"Voltar","Click to Expand":"Clique para Expandir","Click to Hide":"Clique para Ocultar","Click to Highlight":"Clique para Destacar","Click to Show":"Clique para Mostrar","Click to Show All":"Clique para Mostrar Tudo",Download:"Baixar","Loading Visualization":"Carregando Visualização","No Data Available":"Dados Não Disponíveis","Powered by D3plus":"Funciona com D3plus",Share:"Porcentagem","Shift+Click to Hide":"Shift+Clique para Ocultar","Shift+Click to Highlight":"Shift+Clique para Destacar",Total:"Total",Values:"Valores"}};function Va(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ua(t,e){if(Ma(t))for(var n in t)if({}.hasOwnProperty.call(t,n)&&!n.startsWith("_")){var i=e&&Ma(e)?e[n]:void 0;t[n]===Ha?i?t[n]=i:delete t[n]:Ma(t[n])&&Ua(t[n],i)}}function Wa(t){var e=[];do{e=e.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t)}while(t&&t!==Object.prototype);return e.filter((function(t){return 0!==t.indexOf("_")&&!["config","constructor","parent","render"].includes(t)}))}var qa=function(){function t(){var e=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._locale="en-US",this._on={},this._parent={},this._translate=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e._locale,i=Ga[n];return i&&i[t]?i[t]:t},this._uuid=Ia()}var e,n,i;return e=t,n=[{key:"config",value:function(t){var e=this;if(!this._configDefault){var n={};Wa(this.__proto__).forEach((function(t){var i=e[t]();i!==e&&(n[t]=Ma(i)?Oa({},i):i)})),this._configDefault=n}if(arguments.length){for(var i in t)if({}.hasOwnProperty.call(t,i)&&i in this){var r=t[i];r===Ha?"on"===i?this._on=this._configDefault[i]:this[i](this._configDefault[i]):(Ua(r,this._configDefault[i]),this[i](r))}return this}var o={};return Wa(this.__proto__).forEach((function(t){o[t]=e[t]()})),o}},{key:"locale",value:function(t){return arguments.length?(this._locale=Fa(t),this):this._locale}},{key:"on",value:function(t,e){return 2===arguments.length?(this._on[t]=e,this):arguments.length?"string"==typeof t?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"parent",value:function(t){return arguments.length?(this._parent=t,this):this._parent}},{key:"translate",value:function(t){return arguments.length?(this._translate=t,this):this._translate}},{key:"shapeConfig",value:function(t){return arguments.length?(this._shapeConfig=Oa(this._shapeConfig,t),this):this._shapeConfig}}],n&&Va(e.prototype,n),i&&Va(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function Ka(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e&&e instanceof Array&&e.length)return e.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}))}function Ya(t){return Ya="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(t)}function Xa(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._shapeConfig,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"shape",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={duration:this._duration,on:{}},o=function(e){return function(n,i,r,o){if(!e)return e;for(var a;n.__d3plus__;)a&&(n.__d3plusParent__=a),a=n,i=n.i,n=n.data||n.feature;return e.bind(t)(n,i,r||a,o)}},a=function(t,e){for(var i in e)({}.hasOwnProperty.call(e,i)&&!i.includes(".")||i.includes(".".concat(n)))&&(t.on[i]=o(e[i]))},s=function t(e){return e.map((function(e){return e instanceof Array?t(e):"object"===Ya(e)?u({},e):"function"==typeof e?o(e):e}))},u=function t(e,n){for(var i in n)({}).hasOwnProperty.call(n,i)&&("on"===i?a(e,n[i]):"function"==typeof n[i]?e[i]=o(n[i]):n[i]instanceof Array?e[i]=s(n[i]):"object"===Ya(n[i])?(e[i]||(e[i]={}),e[i].on={},t(e[i],n[i])):e[i]=n[i])};return u(r,e),this._on&&a(r,this._on),i&&e[i]&&(u(r,e[i]),e[i].on&&a(r,e[i].on)),r}function Za(t){return function(){return t}}function $a(t,e){e=Object.assign({},{condition:!0,enter:{},exit:{},duration:0,parent:po("body"),update:{}},e);var n=/\.([^#]+)/g.exec(t),i=/#([^\.]+)/g.exec(t),r=xa().duration(e.duration),o=/^([^.^#]+)/g.exec(t)[1],a=e.parent.selectAll(t.includes(":")?t.split(":")[1]:t).data(e.condition?[null]:[]),s=a.enter().append(o).call(Ta,e.enter);i&&s.attr("id",i[1]),n&&s.attr("class",n[1]),a.exit().transition(r).call(Ta,e.exit).remove();var u=s.merge(a);return u.transition(r).call(Ta,e.update),u}var Ja="$";function Qa(){}function ts(t,e){var n=new Qa;if(t instanceof Qa)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,r=-1,o=t.length;if(null==e)for(;++r<o;)n.set(r,t[r]);else for(;++r<o;)n.set(e(i=t[r],r,t),i)}else if(t)for(var a in t)n.set(a,t[a]);return n}function es(){var t,e,n,i=[],r=[];function o(n,r,a,s){if(r>=i.length)return null!=t&&n.sort(t),null!=e?e(n):n;for(var u,l,c,h=-1,f=n.length,d=i[r++],g=ts(),p=a();++h<f;)(c=g.get(u=d(l=n[h])+""))?c.push(l):g.set(u,[l]);return g.each((function(t,e){s(p,e,o(t,r,a,s))})),p}function a(t,n){if(++n>i.length)return t;var o,s=r[n-1];return null!=e&&n>=i.length?o=t.entries():(o=[],t.each((function(t,e){o.push({key:e,values:a(t,n)})}))),null!=s?o.sort((function(t,e){return s(t.key,e.key)})):o}return n={object:function(t){return o(t,0,ns,is)},map:function(t){return o(t,0,rs,os)},entries:function(t){return a(o(t,0,rs,os),0)},key:function(t){return i.push(t),n},sortKeys:function(t){return r[i.length-1]=t,n},sortValues:function(e){return t=e,n},rollup:function(t){return e=t,n}}}function ns(){return{}}function is(t,e,n){t[e]=n}function rs(){return ts()}function os(t,e,n){t.set(e,n)}function as(){}Qa.prototype=ts.prototype={constructor:Qa,has:function(t){return Ja+t in this},get:function(t){return this[Ja+t]},set:function(t,e){return this[Ja+t]=e,this},remove:function(t){var e=Ja+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===Ja&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===Ja&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===Ja&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===Ja&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===Ja&&++t;return t},empty:function(){for(var t in this)if(t[0]===Ja)return!1;return!0},each:function(t){for(var e in this)e[0]===Ja&&t(this[e],e.slice(1),this)}};var ss=ts.prototype;function us(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(t){return t},n=t.map(e).map((function(t){return t instanceof Date?+t:t}));return t.filter((function(t,i){var r=e(t);return n.indexOf(r instanceof Date?+r:r)===i}))}function ls(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=us(B(t.map((function(t){return function(t){var e=[];for(var n in t)e.push(n);return e}(t)})))),i={};return n.forEach((function(n){var r;if(e[n])r=e[n](t,(function(t){return t[n]}));else{var o=t.map((function(t){return t[n]})),a=o.map((function(t){return t||!1===t?t.constructor:t})).filter((function(t){return void 0!==t}));a.length?a.indexOf(Array)>=0?1===(r=us(r=B(o.map((function(t){return t instanceof Array?t:[t]}))))).length&&(r=r[0]):a.indexOf(String)>=0?1===(r=us(o)).length&&(r=r[0]):a.indexOf(Number)>=0?r=N(o):a.indexOf(Object)>=0?r=1===(r=us(o.filter((function(t){return t})))).length?r[0]:ls(r):1===(r=us(o.filter((function(t){return void 0!==t})))).length&&(r=r[0]):r=void 0}i[n]=r})),i}function cs(t){var e;return 1===(e="number"==typeof t?[t]:t.split(/\s+/)).length?e=[e[0],e[0],e[0],e[0]]:2===e.length?e=e.concat(e):3===e.length&&e.push(e[1]),["top","right","bottom","left"].reduce((function(t,n,i){var r=parseFloat(e[i]);return t[n]=r||0,t}),{})}function hs(){return"-webkit-transform"in document.body.style?"-webkit-":"-moz-transform"in document.body.style?"-moz-":"-ms-transform"in document.body.style?"-ms-":"-o-transform"in document.body.style?"-o-":""}function fs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in e)({}).hasOwnProperty.call(e,n)&&t.style(n,e[n])}as.prototype={constructor:as,has:ss.has,add:function(t){return this[Ja+(t+="")]=t,this},remove:ss.remove,clear:ss.clear,values:ss.keys,size:ss.size,empty:ss.empty,each:ss.each};var ds={dark:"#555555",light:"#f7f7f7",missing:"#cccccc",off:"#C44536",on:"#6A994E",scale:Ke().range(["#4281A4","#F6AE2D","#C44536","#2A9D8F","#6A994E","#CEB54A","#5E548E","#C08497","#99582A","#8C8C99","#1D3557","#D08C60","#6D2E46","#8BB19C","#52796F","#5E60CE","#985277","#5C374C"])};function gs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t in e?e[t]:t in ds?ds[t]:ds.missing}function ps(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return[null,void 0].indexOf(t)>=0?gs("missing",e):!0===t?gs("on",e):!1===t?gs("off",e):pn(t)?t.toString():gs("scale",e)(t)}function vs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return gs((299*(t=mn(t)).r+587*t.g+114*t.b)/1e3>=128?"dark":"light",e)}function ys(t){return(t=Cn(t)).l>.45&&(t.s>.8&&(t.s=.8),t.l=.45),t.toString()}function ms(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.5;return e*=1-(t=Cn(t)).l,t.l+=e,t.s-=e,t.toString()}var _s={"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 bs(t){return bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bs(t)}var ws=function(t,e){return parseFloat(Math.round(t*Math.pow(10,e))/Math.pow(10,e)).toFixed(e)};function xs(t,e){var n=Math.pow(10,3*Math.abs(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function ks(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(!isFinite(t))return"N/A";var i,r=(t*=1)<0,o=t.toString().split(".")[0].replace("-","").length,a="object"===bs(e)?e:_s[e]||_s["en-US"],s=a.suffixes.map(xs),u=a.delimiters.decimal||".",l=a.separator||"",c=a.delimiters.thousands||",",h=wi({currency:a.currency||["$",""],decimal:u,grouping:a.grouping||[3],thousands:c});if(n)i=h.format(n)(t);else if(0===t)i="0";else if(o>=3){var f=function(t,e,n){var i=0,r=parseFloat(t.replace("","-"),10);r&&(r<0&&(r*=-1),i=1+Math.floor(1e-12+Math.log(r)/Math.LN10),i=Math.max(-24,Math.min(24,3*Math.floor((i-1)/3))));var o=n[8+i/3];return{number:ws(o.scale(r),e),symbol:o.symbol}}(h.format(".3r")(t),2,s),d=parseFloat(f.number).toString().replace(".",u),g=f.symbol;i="".concat(d).concat(l).concat(g)}else i=3===o?h.format(",f")(t):t<1&&t>-1?h.format(".2g")(t):h.format(".3g")(t);return"".concat(r&&""!==i.charAt(0)?"":"").concat(i).replace(/\/g,"-").replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}var Ss=function(t){return".3~a"===t?ks:yi(t)},Cs=St("%-d"),Es=St("%I %p"),As=St(".%L"),Rs=St("%I:%M"),Ms=St("%b"),Os=St("%b %-d"),Ts=St("%b %-d, %Y"),Ps=St("%b %Y"),Bs=St("Q%q %Y"),Ds=St(":%S"),Ns=St("%Y");function zs(t,e){var n=e.indexOf(t),i=e[n+1]||e[n-1],r=e.reduce((function(t,n,i){var r,o,a;return i&&t.push((r=e[i-1],a=12*((o=n).getFullYear()-r.getFullYear()),a-=r.getMonth(),(a+=o.getMonth())<=0?0:a)),t}),[]),o=r.find((function(t){return 3===t}))&&r.every((function(t){return t>=3&&!(t%3)}));return o?Bs(t):(K(t)<t?As:Y(t)<t?Ds:X(t)<t?Rs:Z(t)<t?0===n?Ts:Es:nt(t)<t?0===n?Ts:js(t,i,Z)?Os:Cs:it(t)<t?0===n?Ps:js(t,i,nt)?Os:Ms:js(t,i,it)?Ps:Ns)(t)}function js(t,e,n){return!!e&&+n.round(t)==+n.round(+t+Math.abs(e-t))}function Fs(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var Ls=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._duration=600,this._height=Aa("height"),this._id=Aa("id"),this._opacity=Za(1),this._pointerEvents=Za("auto"),this._select,this._url=Aa("url"),this._width=Aa("width"),this._x=Aa("x",0),this._y=Aa("y",0)}var e,n,i;return e=t,n=[{key:"render",value:function(e){var n=this;void 0===this._select&&this.select(po("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),r=i.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",(function(t,e){return n._x(t,e)+n._width(t,e)/2})).attr("y",(function(t,e){return n._y(t,e)+n._height(t,e)/2})),o=xa().duration(this._duration),a=this;return r.merge(i).attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(o).attr("opacity",this._opacity).attr("width",(function(t,e){return n._width(t,e)})).attr("height",(function(t,e){return n._height(t,e)})).attr("x",(function(t,e){return n._x(t,e)})).attr("y",(function(t,e){return n._y(t,e)})).each((function(e,n){var i=po(this),r=a._url(e,n);if(0!==r.indexOf("http://")&&0!==r.indexOf("https://")||0===r.indexOf(window.location.hostname)){var o=new t;o.src=r,o.crossOrigin="Anonymous",o.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height,t.getContext("2d").drawImage(this,0,0),i.attr("xlink:href",t.toDataURL("image/png"))}}})),i.exit().transition(o).attr("width",(function(t,e){return n._width(t,e)})).attr("height",(function(t,e){return n._height(t,e)})).attr("x",(function(t,e){return n._x(t,e)})).attr("y",(function(t,e){return n._y(t,e)})).attr("opacity",0).remove(),e&&setTimeout(e,this._duration+100),this}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function(t){return arguments.length?(this._height="function"==typeof t?t:Za(t),this):this._height}},{key:"id",value:function(t){return arguments.length?(this._id=t,this):this._id}},{key:"opacity",value:function(t){return arguments.length?(this._opacity="function"==typeof t?t:Za(t),this):this._opacity}},{key:"pointerEvents",value:function(t){return arguments.length?(this._pointerEvents="function"==typeof t?t:Za(t),this):this._pointerEvents}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"url",value:function(t){return arguments.length?(this._url=t,this):this._url}},{key:"width",value:function(t){return arguments.length?(this._width="function"==typeof t?t:Za(t),this):this._width}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Za(t),this):this._x}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Za(t),this):this._y}}],n&&Fs(e.prototype,n),i&&Fs(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}(),Is=Math.PI,Hs=2*Is,Gs=1e-6,Vs=Hs-Gs;function Us(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ws(){return new Us}function qs(t){return function(){return t}}Us.prototype=Ws.prototype={constructor:Us,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,a=this._y1,s=n-t,u=i-e,l=o-t,c=a-e,h=l*l+c*c;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Gs)if(Math.abs(c*s-u*l)>Gs&&r){var f=n-o,d=i-a,g=s*s+u*u,p=f*f+d*d,v=Math.sqrt(g),y=Math.sqrt(h),m=r*Math.tan((Is-Math.acos((g+h-p)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>Gs&&(this._+="L"+(t+_*l)+","+(e+_*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>l*d)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),u=t+a,l=e+s,c=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>Gs||Math.abs(this._y1-l)>Gs)&&(this._+="L"+u+","+l),n&&(h<0&&(h=h%Hs+Hs),h>Vs?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):h>Gs&&(this._+="A"+n+","+n+",0,"+ +(h>=Is)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var Ks=Math.abs,Ys=Math.atan2,Xs=Math.cos,Zs=Math.max,$s=Math.min,Js=Math.sin,Qs=Math.sqrt,tu=1e-12,eu=Math.PI,nu=eu/2,iu=2*eu;function ru(t){return t>=1?nu:t<=-1?-nu:Math.asin(t)}function ou(t){return t.innerRadius}function au(t){return t.outerRadius}function su(t){return t.startAngle}function uu(t){return t.endAngle}function lu(t){return t&&t.padAngle}function cu(t,e,n,i,r,o,a){var s=t-n,u=e-i,l=(a?o:-o)/Qs(s*s+u*u),c=l*u,h=-l*s,f=t+c,d=e+h,g=n+c,p=i+h,v=(f+g)/2,y=(d+p)/2,m=g-f,_=p-d,b=m*m+_*_,w=r-o,x=f*p-g*d,k=(_<0?-1:1)*Qs(Zs(0,w*w*b-x*x)),S=(x*_-m*k)/b,C=(-x*m-_*k)/b,E=(x*_+m*k)/b,A=(-x*m+_*k)/b,R=S-v,M=C-y,O=E-v,T=A-y;return R*R+M*M>O*O+T*T&&(S=E,C=A),{cx:S,cy:C,x01:-c,y01:-h,x11:S*(r/w-1),y11:C*(r/w-1)}}function hu(){var t=ou,e=au,n=qs(0),i=null,r=su,o=uu,a=lu,s=null;function u(){var u,l,c=+t.apply(this,arguments),h=+e.apply(this,arguments),f=r.apply(this,arguments)-nu,d=o.apply(this,arguments)-nu,g=Ks(d-f),p=d>f;if(s||(s=u=Ws()),h<c&&(l=h,h=c,c=l),h>tu)if(g>iu-tu)s.moveTo(h*Xs(f),h*Js(f)),s.arc(0,0,h,f,d,!p),c>tu&&(s.moveTo(c*Xs(d),c*Js(d)),s.arc(0,0,c,d,f,p));else{var v,y,m=f,_=d,b=f,w=d,x=g,k=g,S=a.apply(this,arguments)/2,C=S>tu&&(i?+i.apply(this,arguments):Qs(c*c+h*h)),E=$s(Ks(h-c)/2,+n.apply(this,arguments)),A=E,R=E;if(C>tu){var M=ru(C/c*Js(S)),O=ru(C/h*Js(S));(x-=2*M)>tu?(b+=M*=p?1:-1,w-=M):(x=0,b=w=(f+d)/2),(k-=2*O)>tu?(m+=O*=p?1:-1,_-=O):(k=0,m=_=(f+d)/2)}var T=h*Xs(m),P=h*Js(m),B=c*Xs(w),D=c*Js(w);if(E>tu){var N,z=h*Xs(_),j=h*Js(_),F=c*Xs(b),L=c*Js(b);if(g<eu&&(N=function(t,e,n,i,r,o,a,s){var u=n-t,l=i-e,c=a-r,h=s-o,f=h*u-c*l;if(!(f*f<tu))return[t+(f=(c*(e-o)-h*(t-r))/f)*u,e+f*l]}(T,P,F,L,z,j,B,D))){var I=T-N[0],H=P-N[1],G=z-N[0],V=j-N[1],U=1/Js(function(t){return t>1?0:t<-1?eu:Math.acos(t)}((I*G+H*V)/(Qs(I*I+H*H)*Qs(G*G+V*V)))/2),W=Qs(N[0]*N[0]+N[1]*N[1]);A=$s(E,(c-W)/(U-1)),R=$s(E,(h-W)/(U+1))}}k>tu?R>tu?(v=cu(F,L,T,P,h,R,p),y=cu(z,j,B,D,h,R,p),s.moveTo(v.cx+v.x01,v.cy+v.y01),R<E?s.arc(v.cx,v.cy,R,Ys(v.y01,v.x01),Ys(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,R,Ys(v.y01,v.x01),Ys(v.y11,v.x11),!p),s.arc(0,0,h,Ys(v.cy+v.y11,v.cx+v.x11),Ys(y.cy+y.y11,y.cx+y.x11),!p),s.arc(y.cx,y.cy,R,Ys(y.y11,y.x11),Ys(y.y01,y.x01),!p))):(s.moveTo(T,P),s.arc(0,0,h,m,_,!p)):s.moveTo(T,P),c>tu&&x>tu?A>tu?(v=cu(B,D,z,j,c,-A,p),y=cu(T,P,F,L,c,-A,p),s.lineTo(v.cx+v.x01,v.cy+v.y01),A<E?s.arc(v.cx,v.cy,A,Ys(v.y01,v.x01),Ys(y.y01,y.x01),!p):(s.arc(v.cx,v.cy,A,Ys(v.y01,v.x01),Ys(v.y11,v.x11),!p),s.arc(0,0,c,Ys(v.cy+v.y11,v.cx+v.x11),Ys(y.cy+y.y11,y.cx+y.x11),p),s.arc(y.cx,y.cy,A,Ys(y.y11,y.x11),Ys(y.y01,y.x01),!p))):s.arc(0,0,c,w,b,p):s.lineTo(B,D)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-eu/2;return[Xs(i)*n,Js(i)*n]},u.innerRadius=function(e){return arguments.length?(t="function"==typeof e?e:qs(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"==typeof t?t:qs(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"==typeof t?t:qs(+t),u):n},u.padRadius=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:qs(+t),u):i},u.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:qs(+t),u):r},u.endAngle=function(t){return arguments.length?(o="function"==typeof t?t:qs(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:qs(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u}var fu=Array.prototype.slice;function du(t){return"object"===_typeof2(t)&&"length"in t?t:Array.from(t)}function gu(t){this._context=t}function pu(t){return new gu(t)}function vu(t){return t[0]}function yu(t){return t[1]}function mu(t,e){var n=qs(!0),i=null,r=pu,o=null;function a(a){var s,u,l,c=(a=du(a)).length,h=!1;for(null==i&&(o=r(l=Ws())),s=0;s<=c;++s)!(s<c&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(l)return o=null,l+""||null}return t="function"==typeof t?t:void 0===t?vu:qs(t),e="function"==typeof e?e:void 0===e?yu:qs(e),a.x=function(e){return arguments.length?(t="function"==typeof e?e:qs(+e),a):t},a.y=function(t){return arguments.length?(e="function"==typeof t?t:qs(+t),a):e},a.defined=function(t){return arguments.length?(n="function"==typeof t?t:qs(!!t),a):n},a.curve=function(t){return arguments.length?(r=t,null!=i&&(o=r(i)),a):r},a.context=function(t){return arguments.length?(null==t?i=o=null:o=r(i=t),a):i},a}function _u(t,e,n){var i=null,r=qs(!0),o=null,a=pu,s=null;function u(u){var l,c,h,f,d,g=(u=du(u)).length,p=!1,v=new Array(g),y=new Array(g);for(null==o&&(s=a(d=Ws())),l=0;l<=g;++l){if(!(l<g&&r(f=u[l],l,u))===p)if(p=!p)c=l,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=l-1;h>=c;--h)s.point(v[h],y[h]);s.lineEnd(),s.areaEnd()}p&&(v[l]=+t(f,l,u),y[l]=+e(f,l,u),s.point(i?+i(f,l,u):v[l],n?+n(f,l,u):y[l]))}if(d)return s=null,d+""||null}function l(){return mu().defined(r).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?vu:qs(+t),e="function"==typeof e?e:qs(void 0===e?0:+e),n="function"==typeof n?n:void 0===n?yu:qs(+n),u.x=function(e){return arguments.length?(t="function"==typeof e?e:qs(+e),i=null,u):t},u.x0=function(e){return arguments.length?(t="function"==typeof e?e:qs(+e),u):t},u.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:qs(+t),u):i},u.y=function(t){return arguments.length?(e="function"==typeof t?t:qs(+t),n=null,u):e},u.y0=function(t){return arguments.length?(e="function"==typeof t?t:qs(+t),u):e},u.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:qs(+t),u):n},u.lineX0=u.lineY0=function(){return l().x(t).y(e)},u.lineY1=function(){return l().x(t).y(n)},u.lineX1=function(){return l().x(i).y(e)},u.defined=function(t){return arguments.length?(r="function"==typeof t?t:qs(!!t),u):r},u.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),u):a},u.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),u):o},u}function bu(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function wu(t){return t}function xu(){var t=wu,e=bu,n=null,i=qs(0),r=qs(iu),o=qs(0);function a(a){var s,u,l,c,h,f=(a=du(a)).length,d=0,g=new Array(f),p=new Array(f),v=+i.apply(this,arguments),y=Math.min(iu,Math.max(-iu,r.apply(this,arguments)-v)),m=Math.min(Math.abs(y)/f,o.apply(this,arguments)),_=m*(y<0?-1:1);for(s=0;s<f;++s)(h=p[g[s]=s]=+t(a[s],s,a))>0&&(d+=h);for(null!=e?g.sort((function(t,n){return e(p[t],p[n])})):null!=n&&g.sort((function(t,e){return n(a[t],a[e])})),s=0,l=d?(y-f*_)/d:0;s<f;++s,v=c)u=g[s],c=v+((h=p[u])>0?h*l:0)+_,p[u]={data:a[u],index:s,value:h,startAngle:v,endAngle:c,padAngle:m};return p}return a.value=function(e){return arguments.length?(t="function"==typeof e?e:qs(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(i="function"==typeof t?t:qs(+t),a):i},a.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:qs(+t),a):r},a.padAngle=function(t){return arguments.length?(o="function"==typeof t?t:qs(+t),a):o},a}gu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var ku=Cu(pu);function Su(t){this._curve=t}function Cu(t){function e(e){return new Su(t(e))}return e._curve=t,e}function Eu(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(Cu(t)):e()._curve},t}function Au(){return Eu(mu().curve(ku))}function Ru(){var t=_u().curve(ku),e=t.curve,n=t.lineX0,i=t.lineX1,r=t.lineY0,o=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Eu(n())},delete t.lineX0,t.lineEndAngle=function(){return Eu(i())},delete t.lineX1,t.lineInnerRadius=function(){return Eu(r())},delete t.lineY0,t.lineOuterRadius=function(){return Eu(o())},delete t.lineY1,t.curve=function(t){return arguments.length?e(Cu(t)):e()._curve},t}function Mu(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function Ou(t){return t.source}function Tu(t){return t.target}function Pu(t){var e=Ou,n=Tu,i=vu,r=yu,o=null;function a(){var a,s=fu.call(arguments),u=e.apply(this,s),l=n.apply(this,s);if(o||(o=a=Ws()),t(o,+i.apply(this,(s[0]=u,s)),+r.apply(this,s),+i.apply(this,(s[0]=l,s)),+r.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(i="function"==typeof t?t:qs(+t),a):i},a.y=function(t){return arguments.length?(r="function"==typeof t?t:qs(+t),a):r},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}function Bu(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function Du(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e,n=(n+r)/2,i,n,i,r)}function Nu(t,e,n,i,r){var o=Mu(e,n),a=Mu(e,n=(n+r)/2),s=Mu(i,n),u=Mu(i,r);t.moveTo(o[0],o[1]),t.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}Su.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var zu={draw:function(t,e){var n=Math.sqrt(e/eu);t.moveTo(n,0),t.arc(0,0,n,0,iu)}},ju={draw:function(t,e){var n=Math.sqrt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Fu=Math.sqrt(1/3),Lu=2*Fu,Iu={draw:function(t,e){var n=Math.sqrt(e/Lu),i=n*Fu;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},Hu=Math.sin(eu/10)/Math.sin(7*eu/10),Gu=Math.sin(iu/10)*Hu,Vu=-Math.cos(iu/10)*Hu,Uu={draw:function(t,e){var n=Math.sqrt(.8908130915292852*e),i=Gu*n,r=Vu*n;t.moveTo(0,-n),t.lineTo(i,r);for(var o=1;o<5;++o){var a=iu*o/5,s=Math.cos(a),u=Math.sin(a);t.lineTo(u*n,-s*n),t.lineTo(s*i-u*r,u*i+s*r)}t.closePath()}},Wu={draw:function(t,e){var n=Math.sqrt(e),i=-n/2;t.rect(i,i,n,n)}},qu=Math.sqrt(3),Ku={draw:function(t,e){var n=-Math.sqrt(e/(3*qu));t.moveTo(0,2*n),t.lineTo(-qu*n,-n),t.lineTo(qu*n,-n),t.closePath()}},Yu=-.5,Xu=Math.sqrt(3)/2,Zu=1/Math.sqrt(12),$u=3*(Zu/2+1),Ju={draw:function(t,e){var n=Math.sqrt(e/$u),i=n/2,r=n*Zu,o=i,a=n*Zu+n,s=-o,u=a;t.moveTo(i,r),t.lineTo(o,a),t.lineTo(s,u),t.lineTo(Yu*i-Xu*r,Xu*i+Yu*r),t.lineTo(Yu*o-Xu*a,Xu*o+Yu*a),t.lineTo(Yu*s-Xu*u,Xu*s+Yu*u),t.lineTo(Yu*i+Xu*r,Yu*r-Xu*i),t.lineTo(Yu*o+Xu*a,Yu*a-Xu*o),t.lineTo(Yu*s+Xu*u,Yu*u-Xu*s),t.closePath()}},Qu=[zu,ju,Iu,Wu,Uu,Ku,Ju];function tl(){}function el(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function nl(t){this._context=t}function il(t){this._context=t}function rl(t){this._context=t}nl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:el(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);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:el(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},il.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){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(){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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:el(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},rl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:el(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var ol=function(){"use strict";function t(e,n){_classCallCheck2(this,t),this._context=e,this._x=n}return _createClass2(t,[{key:"areaStart",value:function(){this._line=0}},{key:"areaEnd",value:function(){this._line=NaN}},{key:"lineStart",value:function(){this._point=0}},{key:"lineEnd",value:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}},{key:"point",value:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}]),t}();function al(t,e){this._basis=new nl(t),this._beta=e}al.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i,r=t[0],o=e[0],a=t[n]-r,s=e[n]-o,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(r+i*a),this._beta*e[u]+(1-this._beta)*(o+i*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var sl=function t(e){function n(t){return 1===e?new nl(t):new al(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function ul(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function ll(t,e){this._context=t,this._k=(1-e)/6}ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:ul(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:ul(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var cl=function t(e){function n(t){return new ll(t,e)}return n.tension=function(e){return t(+e)},n}(0);function hl(t,e){this._context=t,this._k=(1-e)/6}hl.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){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(){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)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ul(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var fl=function t(e){function n(t){return new hl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function dl(t,e){this._context=t,this._k=(1-e)/6}dl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,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:ul(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var gl=function t(e){function n(t){return new dl(t,e)}return n.tension=function(e){return t(+e)},n}(0);function pl(t,e,n){var i=t._x1,r=t._y1,o=t._x2,a=t._y2;if(t._l01_a>tu){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,r=(r*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>tu){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*l+t._x1*t._l23_2a-e*t._l12_2a)/c,a=(a*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(i,r,o,a,t._x2,t._y2)}function vl(t,e){this._context=t,this._alpha=e}vl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){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(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:pl(this,t,e)}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=e}};var yl=function t(e){function n(t){return e?new vl(t,e):new ll(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function ml(t,e){this._context=t,this._alpha=e}ml.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){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(){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)}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:pl(this,t,e)}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=e}};var _l=function t(e){function n(t){return e?new ml(t,e):new hl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function bl(t,e){this._context=t,this._alpha=e}bl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){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(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,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:pl(this,t,e)}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=e}};var wl=function t(e){function n(t){return e?new bl(t,e):new dl(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function xl(t){this._context=t}function kl(t){return t<0?-1:1}function Sl(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),a=(n-t._y1)/(r||i<0&&-0),s=(o*r+a*i)/(i+r);return(kl(o)+kl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Cl(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function El(t,e,n){var i=t._x0,r=t._y0,o=t._x1,a=t._y1,s=(o-i)/3;t._context.bezierCurveTo(i+s,r+s*e,o-s,a-s*n,o,a)}function Al(t){this._context=t}function Rl(t){this._context=new Ml(t)}function Ml(t){this._context=t}function Ol(t){this._context=t}function Tl(t){var e,n,i=t.length-1,r=new Array(i),o=new Array(i),a=new Array(i);for(r[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<i-1;++e)r[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(r[i-1]=2,o[i-1]=7,a[i-1]=8*t[i-1]+t[i],e=1;e<i;++e)n=r[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(r[i-1]=a[i-1]/o[i-1],e=i-2;e>=0;--e)r[e]=(a[e]-r[e+1])/o[e];for(o[i-1]=(t[i]+r[i-1])/2,e=0;e<i-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function Pl(t,e){this._context=t,this._t=e}function Bl(t,e){if((r=t.length)>1)for(var n,i,r,o=1,a=t[e[0]],s=a.length;o<r;++o)for(i=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function Dl(t){for(var e=t.length,n=new Array(e);--e>=0;)n[e]=e;return n}function Nl(t,e){return t[e]}function zl(t){var e=[];return e.key=t,e}function jl(){var t=qs([]),e=Dl,n=Bl,i=Nl;function r(r){var o,a,s,u=Array.from(t.apply(this,arguments),zl),l=u.length,c=-1,h=_createForOfIteratorHelper2(r);try{for(h.s();!(s=h.n()).done;){var f=s.value;for(o=0,++c;o<l;++o)(u[o][c]=[0,+i(f,u[o].key,c,r)]).data=f}}catch(t){h.e(t)}finally{h.f()}for(o=0,a=du(e(u));o<l;++o)u[a[o]].index=o;return n(u,a),u}return r.keys=function(e){return arguments.length?(t="function"==typeof e?e:qs(Array.from(e)),r):t},r.value=function(t){return arguments.length?(i="function"==typeof t?t:qs(+t),r):i},r.order=function(t){return arguments.length?(e=null==t?Dl:"function"==typeof t?t:qs(Array.from(t)),r):e},r.offset=function(t){return arguments.length?(n=null==t?Bl:t,r):n},r}function Fl(t){var e=t.map(Ll);return Dl(t).sort((function(t,n){return e[t]-e[n]}))}function Ll(t){for(var e,n=-1,i=0,r=t.length,o=-1/0;++n<r;)(e=+t[n][1])>o&&(o=e,i=n);return i}function Il(t){var e=t.map(Hl);return Dl(t).sort((function(t,n){return e[t]-e[n]}))}function Hl(t){for(var e,n=0,i=-1,r=t.length;++i<r;)(e=+t[i][1])&&(n+=e);return n}xl.prototype={areaStart:tl,areaEnd:tl,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Al.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:El(this,this._t0,Cl(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,El(this,Cl(this,n=Sl(this,t,e)),n);break;default:El(this,this._t0,n=Sl(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(Rl.prototype=Object.create(Al.prototype)).point=function(t,e){Al.prototype.point.call(this,e,t)},Ml.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}},Ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var i=Tl(t),r=Tl(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}};var Gl=Object.freeze({__proto__:null,arc:hu,area:_u,line:mu,pie:xu,areaRadial:Ru,radialArea:Ru,lineRadial:Au,radialLine:Au,pointRadial:Mu,linkHorizontal:function(){return Pu(Bu)},linkVertical:function(){return Pu(Du)},linkRadial:function(){var t=Pu(Nu);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},symbol:function(t,e){var n=null;function i(){var i;if(n||(n=i=Ws()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:qs(t||zu),e="function"==typeof e?e:qs(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:qs(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:qs(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i},symbols:Qu,symbolCircle:zu,symbolCross:ju,symbolDiamond:Iu,symbolSquare:Wu,symbolStar:Uu,symbolTriangle:Ku,symbolWye:Ju,curveBasisClosed:function(t){return new il(t)},curveBasisOpen:function(t){return new rl(t)},curveBasis:function(t){return new nl(t)},curveBumpX:function(t){return new ol(t,!0)},curveBumpY:function(t){return new ol(t,!1)},curveBundle:sl,curveCardinalClosed:fl,curveCardinalOpen:gl,curveCardinal:cl,curveCatmullRomClosed:_l,curveCatmullRomOpen:wl,curveCatmullRom:yl,curveLinearClosed:function(t){return new xl(t)},curveLinear:pu,curveMonotoneX:function(t){return new Al(t)},curveMonotoneY:function(t){return new Rl(t)},curveNatural:function(t){return new Ol(t)},curveStep:function(t){return new Pl(t,.5)},curveStepAfter:function(t){return new Pl(t,1)},curveStepBefore:function(t){return new Pl(t,0)},stack:jl,stackOffsetExpand:function(t,e){if((i=t.length)>0){for(var n,i,r,o=0,a=t[0].length;o<a;++o){for(r=n=0;n<i;++n)r+=t[n][o][1]||0;if(r)for(n=0;n<i;++n)t[n][o][1]/=r}Bl(t,e)}},stackOffsetDiverging:function(t,e){if((s=t.length)>0)for(var n,i,r,o,a,s,u=0,l=t[e[0]].length;u<l;++u)for(o=a=0,n=0;n<s;++n)(r=(i=t[e[n]][u])[1]-i[0])>0?(i[0]=o,i[1]=o+=r):r<0?(i[1]=a,i[0]=a+=r):(i[0]=0,i[1]=r)},stackOffsetNone:Bl,stackOffsetSilhouette:function(t,e){if((n=t.length)>0){for(var n,i=0,r=t[e[0]],o=r.length;i<o;++i){for(var a=0,s=0;a<n;++a)s+=t[a][i][1]||0;r[i][1]+=r[i][0]=-s/2}Bl(t,e)}},stackOffsetWiggle:function(t,e){if((r=t.length)>0&&(i=(n=t[e[0]]).length)>0){for(var n,i,r,o=0,a=1;a<i;++a){for(var s=0,u=0,l=0;s<r;++s){for(var c=t[e[s]],h=c[a][1]||0,f=(h-(c[a-1][1]||0))/2,d=0;d<s;++d){var g=t[e[d]];f+=(g[a][1]||0)-(g[a-1][1]||0)}u+=h,l+=f*h}n[a-1][1]+=n[a-1][0]=o,u&&(o-=l/u)}n[a-1][1]+=n[a-1][0]=o,Bl(t,e)}},stackOrderAppearance:Fl,stackOrderAscending:Il,stackOrderDescending:function(t){return Il(t).reverse()},stackOrderInsideOut:function(t){var e,n,i=t.length,r=t.map(Hl),o=Fl(t),a=0,s=0,u=[],l=[];for(e=0;e<i;++e)n=o[e],a<s?(a+=r[n],u.push(n)):(s+=r[n],l.push(n));return l.reverse().concat(u)},stackOrderNone:Dl,stackOrderReverse:function(t){return Dl(t).reverse()}});function Vl(t){if(""===t.replace(/\s+/g,""))return t;var e=(new DOMParser).parseFromString(t.replace(/<[^>]+>/g,""),"text/html");return e.documentElement?e.documentElement.textContent:t}function Ul(t,e){e=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},e);var n=document.createElement("canvas").getContext("2d"),i=[];return i.push(e["font-style"]),i.push(e["font-variant"]),i.push(e["font-weight"]),i.push("string"==typeof e["font-size"]?e["font-size"]:"".concat(e["font-size"],"px")),i.push(e["font-family"]),n.font=i.join(" "),t instanceof Array?t.map((function(t){return n.measureText(Vl(t)).width})):n.measureText(Vl(t)).width}function Wl(t){return t.toString().replace(/^\s+|\s+$/g,"")}function ql(t){return t.toString().replace(/\s+$/,"")}var Kl,Yl,Xl,Zl,$l="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",Jl={},Ql=function(t){Kl||(Kl=Ul($l,{"font-family":"DejaVuSans","font-size":32}),Yl=Ul($l,{"font-family":"-apple-system","font-size":32}),Xl=Ul($l,{"font-family":"monospace","font-size":32}),Zl=Ul($l,{"font-family":"sans-serif","font-size":32})),t instanceof Array||(t=t.split(",")),t=t.map((function(t){return Wl(t)}));for(var e=0;e<t.length;e++){var n=t[e];if(Jl[n]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(n))return n;if(!1!==Jl[n]){var i=Ul($l,{"font-family":n,"font-size":32});if(Jl[n]=i!==Xl,Jl[n]&&(Jl[n]=i!==Zl),Yl&&Jl[n]&&(Jl[n]=i!==Yl),Kl&&Jl[n]&&(Jl[n]=i!==Kl),Jl[n])return n}}return!1},tc=function(){return"rtl"===po("html").attr("dir")||"rtl"===po("body").attr("dir")||"rtl"===po("html").style("direction")||"rtl"===po("body").style("direction")};function ec(t){return void 0===t?t="undefined":"string"==typeof t||t instanceof String||(t=JSON.stringify(t)),t}var nc=[[/[\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 ic(t){return"".concat(t).replace(/[^A-Za-z0-9\-_]/g,(function(t){if(" "===t)return"-";for(var e=!1,n=0;n<nc.length;n++)if(new RegExp(nc[n][0]).test(t)){e=nc[n][1];break}return e||""}))}var rc=["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"].concat(["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"]),oc=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"],ac=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(oc),sc="က-ဪဿ-၉ၐ-ၕ㐀-龿぀-ゟ゠-ヿ＀--}⦅-゚㐀-䶿ກ-ຮະ-ໄ່-໋ໍ-ໝ",uc=new RegExp("(\\".concat(oc.join("|\\"),")*[^\\s|\\").concat(oc.join("|\\"),"]*(\\").concat(oc.join("|\\"),")*"),"g"),lc=new RegExp("[".concat(sc,"]")),cc=new RegExp("(\\".concat(["'","<","(","{","[","u00AB","u300A","u3008"].join("|\\"),")*[").concat(sc,"](\\").concat(ac.join("|\\"),"|\\").concat(rc.join("|\\"),")*|[a-z0-9]+"),"gi");function hc(t){return lc.test(t)?B(ec(t).match(uc).map((function(t){return lc.test(t)?t.match(cc):[t]}))):ec(t).match(uc).filter((function(t){return t.length}))}function fc(){var t,e="sans-serif",n=10,i=400,r=200,o=null,a=!1,s=hc,u=200;function l(l){l=ec(l),void 0===t&&(t=Math.ceil(1.4*n));for(var c=s(l),h={"font-family":e,"font-size":n,"font-weight":i,"line-height":t},f=1,d="",g=!1,p=0,v=[],y=Ul(c,h),m=Ul(" ",h),_=0;_<c.length;_++){var b=c[_],w=y[c.indexOf(b)];if(b+=l.slice(d.length+b.length).match("^( |\n)*","g")[0],"\n"===d.slice(-1)||p+w>u){if(!_&&!a){g=!0;break}if(v.length>=f&&(v[f-1]=ql(v[f-1])),f++,t*f>r||w>u&&!a||o&&f>o){g=!0;break}p=0,v.push(b)}else _?v[f-1]+=b:v[0]=b;d+=b,p+=w,p+=b.match(/[\s]*$/g)[0].length*m}return{lines:v,sentence:l,truncated:g,widths:Ul(v,h),words:c}}return l.fontFamily=function(t){return arguments.length?(e=t,l):e},l.fontSize=function(t){return arguments.length?(n=t,l):n},l.fontWeight=function(t){return arguments.length?(i=t,l):i},l.height=function(t){return arguments.length?(r=t,l):r},l.lineHeight=function(e){return arguments.length?(t=e,l):t},l.maxLines=function(t){return arguments.length?(o=t,l):o},l.overflow=function(t){return arguments.length?(a=t,l):a},l.split=function(t){return arguments.length?(s=t,l):s},l.width=function(t){return arguments.length?(u=t,l):u},l}function dc(t){return dc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(t)}function gc(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function pc(t,e){return pc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},pc(t,e)}function vc(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=yc(t);if(e){var r=yc(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===dc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function yc(t){return yc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},yc(t)}var mc={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"},_c=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pc(t,e)}(o,t);var e,n,i,r=vc(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._ariaHidden=Za("false"),t._delay=0,t._duration=0,t._ellipsis=function(t,e){return e?"".concat(t.replace(/\.|,$/g,""),"..."):""},t._fontColor=Za("black"),t._fontFamily=Za(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]),t._fontMax=Za(50),t._fontMin=Za(8),t._fontOpacity=Za(1),t._fontResize=Za(!1),t._fontSize=Za(10),t._fontStroke=Za("transparent"),t._fontStrokeWidth=Za(0),t._fontWeight=Za(400),t._height=Aa("height",200),t._html=mc,t._id=function(t,e){return t.id||"".concat(e)},t._lineHeight=function(e,n){return 1.2*t._fontSize(e,n)},t._maxLines=Za(null),t._on={},t._overflow=Za(!1),t._padding=Za(0),t._pointerEvents=Za("auto"),t._rotate=Za(0),t._rotateAnchor=function(t){return[t.w/2,t.h/2]},t._split=hc,t._text=Aa("text"),t._textAnchor=Za("start"),t._verticalAlign=Za("top"),t._width=Aa("width",200),t._x=Aa("x",0),t._y=Aa("y",0),t}return e=o,n=[{key:"render",value:function(t){var e=this;void 0===this._select&&this.select(po("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var n=this,i=this._select.selectAll(".d3plus-textBox").data(this._data.reduce((function(t,i,r){var o=e._text(i,r);if(void 0===o)return t;o=Wl(o);var a,s,u=e._fontResize(i,r),l=e._lineHeight(i,r)/e._fontSize(i,r),c=u?e._fontMax(i,r):e._fontSize(i,r),h=u?c*l:e._lineHeight(i,r),f=1,d=[],g={"font-family":Ql(e._fontFamily(i,r)),"font-size":c,"font-weight":e._fontWeight(i,r),"line-height":h},p=cs(e._padding(i,r)),v=e._height(i,r)-(p.top+p.bottom),y=e._width(i,r)-(p.left+p.right),m=fc().fontFamily(g["font-family"]).fontSize(c).fontWeight(g["font-weight"]).lineHeight(h).maxLines(e._maxLines(i,r)).height(v).overflow(e._overflow(i,r)).width(y).split(e._split),_=e._fontMax(i,r),b=e._fontMin(i,r),w=e._verticalAlign(i,r),x=e._split(o,r);if(y>b&&(v>h||u&&v>b*l)){if(u){var k=1.165+y/v*.1,S=y*v,A=C(a=Ul(x,g)),R=N(a,(function(t){return t*h}))*k;if(A>y||R>S){var M=E([Math.sqrt(S/R),y/A]);c=Math.floor(c*M)}var O=Math.floor(.8*v);c>O&&(c=O)}!function t(){var e=function(){f<1?d=[n._ellipsis("",f)]:d[f-1]=n._ellipsis(d[f-1],f)};if(c=E([c=C([c,b]),_]),u&&(h=c*l,m.fontSize(c).lineHeight(h),g["font-size"]=c,g["line-height"]=h),s=m(o),d=s.lines.filter((function(t){return""!==t})),f=d.length,s.truncated)if(u){if(--c<b)return c=b,void e();t()}else e()}()}if(d.length){var T=f*h,P=e._rotate(i,r),B=0===P?"top"===w?0:"middle"===w?v/2-T/2:v-T:0;B-=.1*h,t.push({aH:e._ariaHidden(i,r),data:i,i:r,lines:d,fC:e._fontColor(i,r),fStroke:e._fontStroke(i,r),fSW:e._fontStrokeWidth(i,r),fF:g["font-family"],fO:e._fontOpacity(i,r),fW:g["font-weight"],id:e._id(i,r),tA:e._textAnchor(i,r),vA:e._verticalAlign(i,r),widths:s.widths,fS:c,lH:h,w:y,h:v,r:P,x:e._x(i,r)+p.left,y:e._y(i,r)+B+p.top})}return t}),[]),(function(t){return e._id(t.data,t.i)})),r=this._select.transition().duration(this._duration);function o(t){t.attr("transform",(function(t,e){var i=n._rotateAnchor(t,e);return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.r,", ").concat(i[0],", ").concat(i[1],")")}))}0===this._duration?i.exit().remove():(i.exit().transition().delay(this._duration).remove(),i.exit().selectAll("text").transition(r).attr("opacity",0).style("opacity",0));var a=i.enter().append("g").attr("class","d3plus-textBox").attr("id",(function(t){return"d3plus-textBox-".concat(ic(t.id))})).call(o).merge(i),s=tc();a.order().style("pointer-events",(function(t){return e._pointerEvents(t.data,t.i)})).each((function(t){function e(t){var e=!1;t[n._html?"html":"text"]((function(t){var i=ql(t).replace(/&([^\;&]*)/g,(function(t,e){return"amp"===e?t:"&amp;".concat(e)})).replace(/<([^A-z^/]+)/g,(function(t,e){return"&lt;".concat(e)})).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,(function(t,e,n){return"".concat(e).concat(n).concat(e.replace("<","</"))})).replace(/^([^<^>]+)(<\/[^>]+>)/g,(function(t,e,n){return"".concat(n.replace("</","<")).concat(e).concat(n)})),r=new RegExp(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g);return i.match(r)?i=i.replace(r,(function(i,r,o){if(e=!!n._html[r]&&r){var a=n._html[e];return t.includes("</".concat(e,">"))&&(e=!1),'<tspan style="'.concat(a,'">').concat(o,"</tspan>")}return o})):e.length&&(i='<tspan style="'.concat(n._html[e],'">').concat(i,"</tspan>")),i}))}function i(e){e.attr("aria-hidden",t.aH).attr("dir",s?"rtl":"ltr").attr("fill",t.fC).attr("stroke",t.fStroke).attr("stroke-width",t.fSW).attr("text-anchor",t.tA).attr("font-family",t.fF).style("font-family",t.fF).attr("font-size","".concat(t.fS,"px")).style("font-size","".concat(t.fS,"px")).attr("font-weight",t.fW).style("font-weight",t.fW).attr("x","".concat("middle"===t.tA?t.w/2:s?"start"===t.tA?t.w:0:"end"===t.tA?t.w:2*Math.sin(Math.PI*t.r/180),"px")).attr("y",(function(e,n){return 0===t.r||"top"===t.vA?"".concat((n+1)*t.lH-(t.lH-t.fS),"px"):"middle"===t.vA?"".concat((t.h+t.fS)/2-(t.lH-t.fS)+(n-t.lines.length/2+.5)*t.lH,"px"):"".concat(t.h-2*(t.lH-t.fS)-(t.lines.length-(n+1))*t.lH+2*Math.cos(Math.PI*t.r/180),"px")}))}var o=po(this).selectAll("text").data(t.lines);0===n._duration?(o.call(e).call(i),o.exit().remove(),o.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(e).call(i).attr("opacity",t.fO).style("opacity",t.fO)):(o.call(e).transition(r).call(i),o.exit().transition(r).attr("opacity",0).remove(),o.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(e).call(i).merge(o).transition(r).delay(n._delay).call(i).attr("opacity",t.fO).style("opacity",t.fO))})).transition(r).call(o);for(var u=Object.keys(this._on),l=u.reduce((function(t,n){return t[n]=function(t,i){return e._on[n](t.data,i)},t}),{}),c=0;c<u.length;c++)a.on(u[c],l[u[c]]);return t&&setTimeout(t,this._duration+100),this}},{key:"ariaHidden",value:function(t){return void 0!==t?(this._ariaHidden="function"==typeof t?t:Za(t),this):this._ariaHidden}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"delay",value:function(t){return arguments.length?(this._delay=t,this):this._delay}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"ellipsis",value:function(t){return arguments.length?(this._ellipsis="function"==typeof t?t:Za(t),this):this._ellipsis}},{key:"fontColor",value:function(t){return arguments.length?(this._fontColor="function"==typeof t?t:Za(t),this):this._fontColor}},{key:"fontFamily",value:function(t){return arguments.length?(this._fontFamily="function"==typeof t?t:Za(t),this):this._fontFamily}},{key:"fontMax",value:function(t){return arguments.length?(this._fontMax="function"==typeof t?t:Za(t),this):this._fontMax}},{key:"fontMin",value:function(t){return arguments.length?(this._fontMin="function"==typeof t?t:Za(t),this):this._fontMin}},{key:"fontOpacity",value:function(t){return arguments.length?(this._fontOpacity="function"==typeof t?t:Za(t),this):this._fontOpacity}},{key:"fontResize",value:function(t){return arguments.length?(this._fontResize="function"==typeof t?t:Za(t),this):this._fontResize}},{key:"fontSize",value:function(t){return arguments.length?(this._fontSize="function"==typeof t?t:Za(t),this):this._fontSize}},{key:"fontStroke",value:function(t){return arguments.length?(this._fontStroke="function"==typeof t?t:Za(t),this):this._fontStroke}},{key:"fontStrokeWidth",value:function(t){return arguments.length?(this._fontStrokeWidth="function"==typeof t?t:Za(t),this):this._fontStrokeWidth}},{key:"fontWeight",value:function(t){return arguments.length?(this._fontWeight="function"==typeof t?t:Za(t),this):this._fontWeight}},{key:"height",value:function(t){return arguments.length?(this._height="function"==typeof t?t:Za(t),this):this._height}},{key:"html",value:function(t){return arguments.length?(this._html="boolean"==typeof t?!!t&&mc:t,this):this._html}},{key:"id",value:function(t){return arguments.length?(this._id="function"==typeof t?t:Za(t),this):this._id}},{key:"lineHeight",value:function(t){return arguments.length?(this._lineHeight="function"==typeof t?t:Za(t),this):this._lineHeight}},{key:"maxLines",value:function(t){return arguments.length?(this._maxLines="function"==typeof t?t:Za(t),this):this._maxLines}},{key:"overflow",value:function(t){return arguments.length?(this._overflow="function"==typeof t?t:Za(t),this):this._overflow}},{key:"padding",value:function(t){return arguments.length?(this._padding="function"==typeof t?t:Za(t),this):this._padding}},{key:"pointerEvents",value:function(t){return arguments.length?(this._pointerEvents="function"==typeof t?t:Za(t),this):this._pointerEvents}},{key:"rotate",value:function(t){return arguments.length?(this._rotate="function"==typeof t?t:Za(t),this):this._rotate}},{key:"rotateAnchor",value:function(t){return arguments.length?(this._rotateAnchor="function"==typeof t?t:Za(t),this):this._rotateAnchor}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"split",value:function(t){return arguments.length?(this._split=t,this):this._split}},{key:"text",value:function(t){return arguments.length?(this._text="function"==typeof t?t:Za(t),this):this._text}},{key:"textAnchor",value:function(t){return arguments.length?(this._textAnchor="function"==typeof t?t:Za(t),this):this._textAnchor}},{key:"verticalAlign",value:function(t){return arguments.length?(this._verticalAlign="function"==typeof t?t:Za(t),this):this._verticalAlign}},{key:"width",value:function(t){return arguments.length?(this._width="function"==typeof t?t:Za(t),this):this._width}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Za(t),this):this._x}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Za(t),this):this._y}}],n&&gc(e.prototype,n),i&&gc(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa),bc=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."],wc=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];var xc=function(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i},kc=function(t,e){return Math.sqrt(xc(t,e))};function Sc(t){return Sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(t)}function Cc(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ec(t,e){return Ec=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ec(t,e)}function Ac(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Rc(t);if(e){var r=Rc(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Rc(t){return Rc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rc(t)}var Mc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Ec(t,e)}(o,t);var e,n,i,r=Ac(o);function o(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"g";return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._activeOpacity=.25,t._activeStyle={stroke:function(e,n){var i=t._fill(e,n);return["transparent","none"].includes(i)&&(i=t._stroke(e,n)),pn(i).darker(1)},"stroke-width":function(e,n){return 3*(t._strokeWidth(e,n)||1)}},t._ariaLabel=Za(""),t._backgroundImage=Za(!1),t._backgroundImageClass=new Ls,t._data=[],t._duration=600,t._fill=Za("black"),t._fillOpacity=Za(1),t._hoverOpacity=.5,t._hoverStyle={stroke:function(e,n){var i=t._fill(e,n);return["transparent","none"].includes(i)&&(i=t._stroke(e,n)),pn(i).darker(.5)},"stroke-width":function(e,n){return 2*(t._strokeWidth(e,n)||1)}},t._id=function(t,e){return void 0!==t.id?t.id:e},t._label=Za(!1),t._labelClass=new _c,t._labelConfig={fontColor:function(e,n){return vs(t._fill(e,n))},fontSize:12,padding:5},t._name="Shape",t._opacity=Za(1),t._pointerEvents=Za("visiblePainted"),t._role=Za("presentation"),t._rotate=Za(0),t._rx=Za(0),t._ry=Za(0),t._scale=Za(1),t._shapeRendering=Za("geometricPrecision"),t._stroke=function(e,n){return pn(t._fill(e,n)).darker(1)},t._strokeDasharray=Za("0"),t._strokeLinecap=Za("butt"),t._strokeOpacity=Za(1),t._strokeWidth=Za(0),t._tagName=e,t._textAnchor=Za("start"),t._vectorEffect=Za("non-scaling-stroke"),t._verticalAlign=Za("top"),t._x=Aa("x",0),t._y=Aa("y",0),t}return e=o,n=[{key:"_aes",value:function(){return{}}},{key:"_applyEvents",value:function(t){for(var e=this,n=Object.keys(this._on),i=function(i){t.on(n[i],(function(t,r,o){if(e._on[n[i]]){if(void 0!==r.i&&(o=r.i),r.nested&&r.values){var a=vo(t,e._select.node()),s=r.values.map((function(t){return kc(a,function(t,n){return"x"===e._discrete?[e._x(t,n),a[1]]:"y"===e._discrete?[a[0],e._y(t,n)]:[e._x(t,n),e._y(t,n)]}(t,o))}));o=s.indexOf(E(s)),r=r.values[o]}e._on[n[i]].bind(e)(r,o,void 0,t)}}))},r=0;r<n.length;r++)i(r)}},{key:"_updateStyle",value:function(t,e){var n=this;function i(t,e){return"function"!=typeof this?this:t.nested&&t.key&&t.values?this(t.values[0],n._data.indexOf(t.values[0])):this(t,e)}t.size()&&"g"===t.node().tagName&&(t=t.selectAll("*"));var r={};for(var o in e)({}).hasOwnProperty.call(e,o)&&(r[o]=i.bind(e[o]));t.transition().duration(0).call(Ta,r)}},{key:"_applyStyle",value:function(t){var e=this;function n(t,n){return"function"!=typeof this?this:t.nested&&t.key&&t.values?this(t.values[0],e._data.indexOf(t.values[0])):this(t,n)}t.size()&&"g"===t.node().tagName&&(t=t.selectAll("*")),t.attr("fill",n.bind(this._fill)).attr("fill-opacity",n.bind(this._fillOpacity)).attr("rx",n.bind(this._rx)).attr("ry",n.bind(this._ry)).attr("stroke",n.bind(this._stroke)).attr("stroke-dasharray",n.bind(this._strokeDasharray)).attr("stroke-linecap",n.bind(this._strokeLinecap)).attr("stroke-opacity",n.bind(this._strokeOpacity)).attr("stroke-width",n.bind(this._strokeWidth)).attr("vector-effect",n.bind(this._vectorEffect))}},{key:"_applyTransform",value:function(t){var e=this;t.attr("transform",(function(t,n){return"\n translate(".concat(t.__d3plusShape__?t.translate?t.translate:"".concat(e._x(t.data,t.i),",").concat(e._y(t.data,t.i)):"".concat(e._x(t,n),",").concat(e._y(t,n)),")\n scale(").concat(t.__d3plusShape__?t.scale||e._scale(t.data,t.i):e._scale(t,n),")\n rotate(").concat(t.__d3plusShape__&&t.rotate?t.rotate:e._rotate(t.data||t,t.i),")")}))}},{key:"_nestWrapper",value:function(t){return function(e,n){return t(e.__d3plusShape__?e.data:e,e.__d3plusShape__?e.i:n)}}},{key:"_renderActive",value:function(){var t=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each((function(e,n){e||(e={}),e.parentNode||(e.parentNode=this.parentNode);var i=e.parentNode;if(po(this).classed("d3plus-textBox")&&(e=e.data),e.__d3plusShape__||e.__d3plus__)for(;e&&(e.__d3plusShape__||e.__d3plus__);)n=e.i,e=e.data;else n=t._data.indexOf(e);var r=t._active&&"function"==typeof t._active&&t._active(e,n)?t._activeGroup.node():i;r!==this.parentNode&&(r.appendChild(this),this.className.baseVal.includes("d3plus-Shape")&&(i===r?po(this).call(t._applyStyle.bind(t)):po(this).call(t._updateStyle.bind(t,po(this),t._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(){var t=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,n){e||(e={}),e.parentNode||(e.parentNode=this.parentNode);var i=e.parentNode;if(po(this).classed("d3plus-textBox")&&(e=e.data),e.__d3plusShape__||e.__d3plus__)for(;e&&(e.__d3plusShape__||e.__d3plus__);)n=e.i,e=e.data;else n=t._data.indexOf(e);var r=t._hover&&"function"==typeof t._hover&&t._hover(e,n)?t._hoverGroup.node():i;r!==this.parentNode&&r.appendChild(this),this.className.baseVal.includes("d3plus-Shape")&&(i===r?po(this).call(t._applyStyle.bind(t)):po(this).call(t._updateStyle.bind(t,po(this),t._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(){var t=this,e=[];this._update.merge(this._enter).data().forEach((function(n,i){var r=t._aes(n,i);if(r.r||r.width&&r.height){var o=n;n.nested&&n.key&&n.values&&(o=n.values[0],i=t._data.indexOf(o));var a=r.r?2*r.r:r.height,s=t._backgroundImage(o,i),u=r.r?2*r.r:r.width;if(s){var l=o.__d3plusShape__?o.translate?o.translate[0]:t._x(o.data,o.i):t._x(o,i),c=o.__d3plusShape__?o.translate?o.translate[1]:t._y(o.data,o.i):t._y(o,i);r.x&&(l+=r.x),r.y&&(c+=r.y),o.__d3plusShape__&&(i=(o=o.data).i),e.push({__d3plus__:!0,data:o,height:a,i:i,id:t._id(o,i),url:s,width:u,x:l+-u/2,y:c+-a/2})}}})),this._backgroundImageClass.data(e).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select($a("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function(){var t=this,e=[];this._update.merge(this._enter).data().forEach((function(n,i){var r=n;n.nested&&n.key&&n.values&&(r=n.values[0],i=t._data.indexOf(r));var o=t._label(r,i);if(t._labelBounds&&!1!==o&&null!=o){var a=t._labelBounds.bind(t)(r,i,t._aes(n,i));if(a){o.constructor!==Array&&(o=[o]);var s=r.__d3plusShape__?r.translate?r.translate[0]:t._x(r.data,r.i):t._x(r,i),u=r.__d3plusShape__?r.translate?r.translate[1]:t._y(r.data,r.i):t._y(r,i);r.__d3plusShape__&&(i=(r=r.data).i);for(var l=0;l<o.length;l++){var c=a.constructor===Array?a[l]:Object.assign({},a),h=t._rotate(r,i),f=r.labelConfig&&r.labelConfig.rotate?r.labelConfig.rotate:void 0!==a.angle?a.angle:0;f+=h;var d=0!==h?[-1*c.x||0,-1*c.y||0]:[c.width/2,c.height/2];e.push({__d3plus__:!0,data:r,height:c.height,l:l,id:"".concat(t._id(r,i),"_").concat(l),r:f,rotateAnchor:d,text:o[l],width:c.width,x:s+c.x,y:u+c.y})}}}})),this._labelClass.data(e).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate((function(t){return t.__d3plus__?t.r:t.data.r})).rotateAnchor((function(t){return t.__d3plus__?t.rotateAnchor:t.data.rotateAnchor})).select($a("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(Xa.bind(this)(this._labelConfig)).render()}},{key:"render",value:function(t){var e=this;void 0===this._select&&this.select(po("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node()),this._transition=xa(this._uuid).duration(this._duration);var n=this._data,i=this._id;this._dataFilter&&(n=this._dataFilter(n)).key&&(i=n.key),this._sort&&(n=n.sort((function(t,n){for(;t.__d3plusShape__||t.__d3plus__;)t=t.data;for(;n.__d3plusShape__||n.__d3plus__;)n=n.data;return e._sort(t,n)}))),yo("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each((function(t){t&&t.parentNode?t.parentNode.appendChild(this):this.parentNode.removeChild(this)})),this._group=$a("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var r=this._update=$a("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(n,i);r.order(),this._duration?r.transition(this._transition).call(this._applyTransform.bind(this)):r.call(this._applyTransform.bind(this));var o=(this._enter=r.enter().append(this._tagName).attr("class",(function(t,n){return"d3plus-Shape d3plus-".concat(e._name," d3plus-id-").concat(ic(e._nestWrapper(e._id)(t,n)))})).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity))).merge(r),a=o.attr("shape-rendering",this._nestWrapper(this._shapeRendering));this._duration&&(a=a.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)),a.attr("opacity",this._nestWrapper(this._opacity));var s=this._exit=r.exit();this._duration?s.transition().delay(this._duration).remove():s.remove(),this._renderImage(),this._renderLabels(),this._hoverGroup=$a("g.d3plus-".concat(this._name,"-hover"),{parent:this._group}),this._activeGroup=$a("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var u=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?n:[],i);u.order().call(this._applyTransform.bind(this));var l="Line"===this._name;if(l){var c=this._curve.bind(this)(this.config());l&&this._path.curve(Gl["curve".concat(c.charAt(0).toUpperCase()).concat(c.slice(1))]).defined(this._defined).x(this._x).y(this._y)}var h=u.enter().append(l?"path":"rect").attr("class",(function(t,n){return"d3plus-HitArea d3plus-id-".concat(ic(e._nestWrapper(e._id)(t,n)))})).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this)),f=this,d=u.merge(h).each((function(t){var e=f._data.indexOf(t),n=f._hitArea(t,e,f._aes(t,e));return!n||"Line"===f._name&&parseFloat(f._strokeWidth(t,e))>10?po(this).remove():po(this).call(Ta,n)}));return u.exit().remove(),this._applyEvents(this._hitArea?d:o),setTimeout((function(){e._active?e._renderActive():e._hover&&e._renderHover(),t&&t()}),this._duration+100),this}},{key:"active",value:function(t){return arguments.length&&void 0!==t?(this._active=t,this._group&&this._renderActive(),this):this._active}},{key:"activeOpacity",value:function(t){return arguments.length?(this._activeOpacity=t,this):this._activeOpacity}},{key:"activeStyle",value:function(t){return arguments.length?(this._activeStyle=Oa({},this._activeStyle,t),this):this._activeStyle}},{key:"ariaLabel",value:function(t){return void 0!==t?(this._ariaLabel="function"==typeof t?t:Za(t),this):this._ariaLabel}},{key:"backgroundImage",value:function(t){return arguments.length?(this._backgroundImage="function"==typeof t?t:Za(t),this):this._backgroundImage}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"discrete",value:function(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"fill",value:function(t){return arguments.length?(this._fill="function"==typeof t?t:Za(t),this):this._fill}},{key:"fillOpacity",value:function(t){return arguments.length?(this._fillOpacity="function"==typeof t?t:Za(t),this):this._fillOpacity}},{key:"hover",value:function(t){return arguments.length&&void 0!==t?(this._hover=t,this._group&&this._renderHover(),this):this._hover}},{key:"hoverStyle",value:function(t){return arguments.length?(this._hoverStyle=Oa({},this._hoverStyle,t),this):this._hoverStyle}},{key:"hoverOpacity",value:function(t){return arguments.length?(this._hoverOpacity=t,this):this._hoverOpacity}},{key:"hitArea",value:function(t){return arguments.length?(this._hitArea="function"==typeof t?t:Za(t),this):this._hitArea}},{key:"id",value:function(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function(t){return arguments.length?(this._label="function"==typeof t?t:Za(t),this):this._label}},{key:"labelBounds",value:function(t){return arguments.length?(this._labelBounds="function"==typeof t?t:Za(t),this):this._labelBounds}},{key:"labelConfig",value:function(t){return arguments.length?(this._labelConfig=Oa(this._labelConfig,t),this):this._labelConfig}},{key:"opacity",value:function(t){return arguments.length?(this._opacity="function"==typeof t?t:Za(t),this):this._opacity}},{key:"pointerEvents",value:function(t){return arguments.length?(this._pointerEvents="function"==typeof t?t:Za(t),this):this._pointerEvents}},{key:"role",value:function(t){return void 0!==t?(this._role="function"==typeof t?t:Za(t),this):this._role}},{key:"rotate",value:function(t){return arguments.length?(this._rotate="function"==typeof t?t:Za(t),this):this._rotate}},{key:"rx",value:function(t){return arguments.length?(this._rx="function"==typeof t?t:Za(t),this):this._rx}},{key:"ry",value:function(t){return arguments.length?(this._ry="function"==typeof t?t:Za(t),this):this._ry}},{key:"scale",value:function(t){return arguments.length?(this._scale="function"==typeof t?t:Za(t),this):this._scale}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"shapeRendering",value:function(t){return arguments.length?(this._shapeRendering="function"==typeof t?t:Za(t),this):this._shapeRendering}},{key:"sort",value:function(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"stroke",value:function(t){return arguments.length?(this._stroke="function"==typeof t?t:Za(t),this):this._stroke}},{key:"strokeDasharray",value:function(t){return arguments.length?(this._strokeDasharray="function"==typeof t?t:Za(t),this):this._strokeDasharray}},{key:"strokeLinecap",value:function(t){return arguments.length?(this._strokeLinecap="function"==typeof t?t:Za(t),this):this._strokeLinecap}},{key:"strokeOpacity",value:function(t){return arguments.length?(this._strokeOpacity="function"==typeof t?t:Za(t),this):this._strokeOpacity}},{key:"strokeWidth",value:function(t){return arguments.length?(this._strokeWidth="function"==typeof t?t:Za(t),this):this._strokeWidth}},{key:"textAnchor",value:function(t){return arguments.length?(this._textAnchor="function"==typeof t?t:Za(t),this):this._textAnchor}},{key:"vectorEffect",value:function(t){return arguments.length?(this._vectorEffect="function"==typeof t?t:Za(t),this):this._vectorEffect}},{key:"verticalAlign",value:function(t){return arguments.length?(this._verticalAlign="function"==typeof t?t:Za(t),this):this._verticalAlign}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Za(t),this):this._x}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Za(t),this):this._y}}],n&&Cc(e.prototype,n),i&&Cc(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa);function Oc(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Tc(t){return Tc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(t)}function Pc(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bc(){return Bc=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Bc.apply(this,arguments)}function Dc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Nc(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Dc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Dc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function zc(t,e){var n=[],i=[];return t.length&&function t(e,r){if(1===e.length)n.push(e[0]),i.push(e[0]);else{for(var o=Array(e.length-1),a=0;a<o.length;a++)0===a&&n.push(e[0]),a===o.length-1&&i.push(e[a+1]),o[a]=[(1-r)*e[a][0]+r*e[a+1][0],(1-r)*e[a][1]+r*e[a+1][1]];t(o,r)}}(t,e),{left:n,right:i.reverse()}}function jc(t){var e={};return 4===t.length&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],4===t.length?e.type="C":3===t.length?e.type="Q":e.type="L",e}function Fc(t,e,n){var i=[[t.x,t.y]];return null!=e.x1&&i.push([e.x1,e.y1]),null!=e.x2&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),function(t,e){for(var n=[],i=t,r=1/(e=e||2),o=0;o<e-1;o++){var a=zc(i,r/(1-r*o));n.push(a.left),i=a.right}return n.push(i),n}(i,n).map(jc)}var Lc=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,Ic={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};function Hc(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Gc(t){return"".concat(t.type).concat(Ic[t.type].map((function(e){return t[e]})).join(","))}function Vc(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,a=Hc(r).reduce((function(e,i,r){var a=Math.floor(o*r);if(n&&a<t.length-1&&n(t[a],t[a+1])){var s=o*r%1<.5;e[a]&&(s?a>0?a-=1:a<t.length-1&&(a+=1):a<t.length-1?a+=1:a>0&&(a-=1))}return e[a]=(e[a]||0)+1,e}),[]).reduce((function(e,n,i){if(i===t.length-1){var r=Hc(n,Bc({},t[t.length-1]));return"M"===r[0].type&&r.forEach((function(t){t.type="L"})),e.concat(r)}return e.concat(function(t,e,n){var i=[];if("L"===e.type||"Q"===e.type||"C"===e.type)i=i.concat(Fc(t,e,n));else{var r=Bc({},t);"M"===r.type&&(r.type="L"),(i=i.concat(Hc(n-1).map((function(){return r})))).push(e)}return i}(t[i],t[i+1],n))}),[]);return a.unshift(t[0]),a}function Uc(t){for(var e,n,i=(t||"").match(Lc)||[],r=[],o=0;o<i.length;++o)if(e=Ic[i[o]]){n={type:i[o]};for(var a=0;a<e.length;++a)n[e[a]]=+i[o+a+1];o+=e.length,r.push(n)}return r}function Wc(t,e,n){var i=null==t?[]:t.slice(),r=null==e?[]:e.slice(),o="object"===Tc(n)?n:{excludeSegment:n,snapEndsToInput:!0},a=o.excludeSegment,s=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var u=!(0!==i.length&&"Z"!==i[i.length-1].type||0!==r.length&&"Z"!==r[r.length-1].type);i.length>0&&"Z"===i[i.length-1].type&&i.pop(),r.length>0&&"Z"===r[r.length-1].type&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]),0!==Math.abs(r.length-i.length)&&(r.length>i.length?i=Vc(i,r,a):r.length<i.length&&(r=Vc(r,i,a)));var l=(i=i.map((function(t,e){return function(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&"M"!==e.type.toUpperCase()){var r={};Object.keys(e).forEach((function(o){var a=e[o],s=t[o];void 0===s&&(i.includes(o)?s=a:(void 0===s&&n[o]&&(s=t[n[o]]),void 0===s&&(s=0))),r[o]=s})),r.type=e.type,t=r}return t}(t,r[e])}))).map((function(t){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Oc(Object(n),!0).forEach((function(e){Pc(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Oc(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},t)}));return u&&(l.push({type:"Z"}),i.push({type:"Z"})),function(t){if(1===t&&s)return null==e?[]:e;if(0===t)return i;for(var n=0;n<l.length;++n){var o,a=i[n],u=r[n],c=l[n],h=Nc(Ic[c.type]);try{for(h.s();!(o=h.n()).done;){var f=o.value;c[f]=(1-t)*a[f]+t*u[f],"largeArcFlag"!==f&&"sweepFlag"!==f||(c[f]=Math.round(c[f]))}}catch(t){h.e(t)}finally{h.f()}}return l}}function qc(t,e,n){var i=Uc(t),r=Uc(e),o="object"===Tc(n)?n:{excludeSegment:n,snapEndsToInput:!0},a=o.excludeSegment,s=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var u=Wc(i,r,{excludeSegment:a,snapEndsToInput:s});return function(t){if(1===t&&s)return null==e?"":e;var n,i="",r=Nc(u(t));try{for(r.s();!(n=r.n()).done;){i+=Gc(n.value)}}catch(t){r.e(t)}finally{r.f()}return i}}function Kc(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function Yc(t,e){return t[0]-e[0]||t[1]-e[1]}function Xc(t){var e,n=t.length,i=[0,1],r=2;for(e=2;e<n;++e){for(;r>1&&Kc(t[i[r-2]],t[i[r-1]],t[e])<=0;)--r;i[r++]=e}return i.slice(0,r)}function Zc(t,e){for(var n,i,r=t.length,o=t[r-1],a=e[0],s=e[1],u=o[0],l=o[1],c=!1,h=0;h<r;++h)n=(o=t[h])[0],(i=o[1])>s!=l>s&&a<(u-n)*(s-i)/(l-i)+n&&(c=!c),u=n,l=i;return c}function $c(t,e,n,i){var r=t[0]-e[0],o=n[0]-i[0],a=t[1]-e[1],s=n[1]-i[1],u=r*s-a*o;if(Math.abs(u)<1e-9)return null;var l=t[0]*e[1]-t[1]*e[0],c=n[0]*i[1]-n[1]*i[0];return[(l*o-c*r)/u,(l*s-c*a)/u]}function Jc(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Qc(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qc(t,e)}(t,e)||function(){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 Qc(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function th(t,e,n){var i=1e-9,r=Jc(n,2),o=r[0],a=r[1];return!(o<Math.min(t[0],e[0])-i||o>Math.max(t[0],e[0])+i||a<Math.min(t[1],e[1])-i||a>Math.max(t[1],e[1])+i)}function eh(t,e,n,i){var r=$c(t,e,n,i);return!!r&&(th(t,e,r)&&th(n,i,r))}function nh(t,e){for(var n=-1,i=t.length,r=e.length,o=t[i-1];++n<i;){var a=o;o=t[n];for(var s=-1,u=e[r-1];++s<r;){if(eh(a,o,u,u=e[s]))return!1}}return Zc(e,t[0])}function ih(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return rh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rh(t,e)}(t,e)||function(){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 rh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function oh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=1e-9,r=ih(e=[e[0]+i*Math.cos(n),e[1]+i*Math.sin(n)],2),o=r[0],a=r[1],s=[o+Math.cos(n),a+Math.sin(n)],u=0;Math.abs(s[0]-o)<i&&(u=1);for(var l=-1,c=t.length,h=t[c-1],f=Number.MAX_VALUE,d=Number.MAX_VALUE,g=null,p=null;++l<c;){var v=h,y=$c(e,s,v,h=t[l]);if(y&&th(v,h,y)){var m=xc(e,y);y[u]<e[u]?m<f&&(f=m,g=y):y[u]>e[u]&&m<d&&(d=m,p=y)}}return[g,p]}function ah(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],i=Math.cos(e),r=Math.sin(e),o=t[0]-n[0],a=t[1]-n[1];return[i*o-r*a+n[0],r*o+i*a+n[1]]}Object.keys(Ic).forEach((function(t){Ic[t.toLowerCase()]=Ic[t]}));var sh=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0];return t.map((function(t){return ah(t,e,n)}))};function uh(t,e,n){var i=e[0],r=e[1],o=n[0]-i,a=n[1]-r;if(0!==o||0!==a){var s=((t[0]-i)*o+(t[1]-r)*a)/(o*o+a*a);s>1?(i=n[0],r=n[1]):s>0&&(i+=o*s,r+=a*s)}return(o=t[0]-i)*o+(a=t[1]-r)*a}function lh(t,e,n,i,r){for(var o,a=i,s=e+1;s<n;s++){var u=uh(t[s],t[e],t[n]);u>a&&(o=s,a=u)}a>i&&(o-e>1&&lh(t,e,o,i,r),r.push(t[o]),n-o>1&&lh(t,o,n,i,r))}function ch(t,e){var n=t.length-1,i=[t[0]];return lh(t,0,n,e,i),i.push(t[n]),i}var hh=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(t.length<=2)return t;var i=e*e;return t=n?t:function(t,e){for(var n,i=t[0],r=[i],o=1,a=t.length;o<a;o++)n=t[o],xc(n,i)>e&&(r.push(n),i=n);return i!==n&&r.push(n),r}(t,i),t=ch(t,i)};function fh(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return dh(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dh(t,e)}(t,e)||function(){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 dh(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var gh={};function ph(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.length<3)return e.verbose&&console.error("polygon has to have at least 3 points",t),null;var n,i=[],r=(e=Object.assign({angle:D(-90,95,5),cache:!0,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:!1},e)).angle instanceof Array?e.angle:"number"==typeof e.angle?[e.angle]:"string"!=typeof e.angle||isNaN(e.angle)?[]:[Number(e.angle)],o=e.aspectRatio instanceof Array?e.aspectRatio:"number"==typeof e.aspectRatio?[e.aspectRatio]:"string"!=typeof e.aspectRatio||isNaN(e.aspectRatio)?[]:[Number(e.aspectRatio)],a=e.origin&&e.origin instanceof Array?e.origin[0]instanceof Array?e.origin:[e.origin]:[];if(e.cache&&(n=B(t).join(","),n+="-".concat(e.minAspectRatio),n+="-".concat(e.maxAspectRatio),n+="-".concat(e.minHeight),n+="-".concat(e.minWidth),n+="-".concat(r.join(",")),n+="-".concat(a.join(",")),gh[n]))return gh[n];var s=Math.abs(function(t){for(var e,n=-1,i=t.length,r=t[i-1],o=0;++n<i;)e=r,r=t[n],o+=e[1]*r[0]-e[0]*r[1];return o/2}(t));if(0===s)return e.verbose&&console.error("polygon has 0 area",t),null;var u=fh(h(t,(function(t){return t[0]})),2),l=u[0],c=u[1],f=fh(h(t,(function(t){return t[1]})),2),d=f[0],g=f[1],p=Math.min(c-l,g-d)*e.tolerance;p>0&&(t=hh(t,p)),e.events&&i.push({type:"simplify",poly:t});var v=fh(h(t,(function(t){return t[0]})),2);l=v[0],c=v[1];var y=fh(h(t,(function(t){return t[1]})),2);d=y[0];var m=c-l,_=(g=y[1])-d,b=Math.min(m,_)/50;if(!a.length){var w=function(t){for(var e,n,i=-1,r=t.length,o=0,a=0,s=t[r-1],u=0;++i<r;)e=s,s=t[i],u+=n=e[0]*s[1]-s[0]*e[1],o+=(e[0]+s[0])*n,a+=(e[1]+s[1])*n;return[o/(u*=3),a/u]}(t);if(!isFinite(w[0]))return e.verbose&&console.error("cannot find centroid",t),null;Zc(t,w)&&a.push(w);for(var x=e.nTries;x;){var k=[Math.random()*m+l,Math.random()*_+d];Zc(t,k)&&a.push(k),x--}}e.events&&i.push({type:"origins",points:a});for(var S=0,C=null,E=0;E<r.length;E++){var A=r[E],R=-A*Math.PI/180;e.events&&i.push({type:"angle",angle:A});for(var M=0;M<a.length;M++){var O=a[M],T=fh(oh(t,O,R),2),P=T[0],N=T[1],z=fh(oh(t,O,R+Math.PI/2),2),j=z[0],F=z[1],L=[];P&&N&&L.push([(P[0]+N[0])/2,(P[1]+N[1])/2]),j&&F&&L.push([(j[0]+F[0])/2,(j[1]+F[1])/2]),e.events&&i.push({type:"modifOrigin",idx:M,p1W:P,p2W:N,p1H:j,p2H:F,modifOrigins:L});for(var I=0;I<L.length;I++){var H=L[I];e.events&&i.push({type:"origin",cx:H[0],cy:H[1]});var G=fh(oh(t,H,R),2),V=G[0],U=G[1];if(null!==V&&null!==U){var W=Math.min(xc(H,V),xc(H,U)),q=2*Math.sqrt(W),K=fh(oh(t,H,R+Math.PI/2),2),Y=K[0],X=K[1];if(null!==Y&&null!==X){var Z=Math.min(xc(H,Y),xc(H,X)),$=2*Math.sqrt(Z);if(!(q*$<S)){var J=o;if(!J.length)J=D(Math.max(e.minAspectRatio,e.minWidth/$,S/($*$)),Math.min(e.maxAspectRatio,q/e.minHeight,q*q/S)+.5,.5);for(var Q=0;Q<J.length;Q++){var tt=J[Q],et=Math.max(e.minWidth,Math.sqrt(S*tt)),nt=Math.min(q,$*tt);if(!(nt*$<S))for(e.events&&nt-et>=b&&i.push({type:"aRatio",aRatio:tt});nt-et>=b;){var it=(et+nt)/2,rt=it/tt,ot=fh(H,2),at=ot[0],st=ot[1],ut=[[at-it/2,st-rt/2],[at+it/2,st-rt/2],[at+it/2,st+rt/2],[at-it/2,st+rt/2]],lt=nh(ut=sh(ut,R,H),t);lt?(S=it*rt,ut.push(ut[0]),C={area:S,cx:at,cy:st,width:it,height:rt,angle:-A,points:ut},et=it):nt=it,e.events&&i.push({type:"rectangle",areaFraction:it*rt/s,cx:at,cy:st,width:it,height:rt,angle:A,insidePoly:lt})}}}}}}}}return e.cache&&(gh[n]=C),e.events?Object.assign(C||{},{events:i}):C}function vh(t){return vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vh(t)}function yh(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mh(){return mh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wh(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},mh.apply(this,arguments)}function _h(t,e){return _h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_h(t,e)}function bh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=wh(t);if(e){var r=wh(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===vh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function wh(t){return wh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wh(t)}var xh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&_h(t,e)}(o,t);var e,n,i,r=bh(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._curve=Za("linear"),t._defined=function(){return!0},t._labelBounds=function(e,n,i){var r=ph(i.points);return r?{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2-t._x(e,n),y:r.cy-r.height/2-t._y(e,n)}:null},t._labelConfig=Object.assign(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"}),t._name="Area",t._x=Aa("x"),t._x0=Aa("x"),t._x1=null,t._y=Za(0),t._y0=Za(0),t._y1=Aa("y"),t}return e=o,n=[{key:"_aes",value:function(t){var e=this,n=t.values.slice().sort((function(t,n){return e._y1?e._x(t)-e._x(n):e._y(t)-e._y(n)})),i=n.map((function(t,n){return[e._x0(t,n),e._y0(t,n)]})),r=n.reverse().map((function(t,n){return e._y1?[e._x(t,n),e._y1(t,n)]:[e._x1(t,n),e._y(t,n)]})),o=i.concat(r);return i[0][1]>r[0][1]&&(o=o.reverse()),o.push(o[0]),{points:o}}},{key:"_dataFilter",value:function(t){var e=this,n=es().key(this._id).entries(t).map((function(n){n.data=ls(n.values),n.i=t.indexOf(n.values[0]);var i=h(n.values.map(e._x).concat(n.values.map(e._x0)).concat(e._x1?n.values.map(e._x1):[]));n.xR=i,n.width=i[1]-i[0],n.x=i[0]+n.width/2;var r=h(n.values.map(e._y).concat(n.values.map(e._y0)).concat(e._y1?n.values.map(e._y1):[]));return n.yR=r,n.height=r[1]-r[0],n.y=r[0]+n.height/2,n.nested=!0,n.translate=[n.x,n.y],n.__d3plusShape__=!0,n}));return n.key=function(t){return t.key},n}},{key:"render",value:function(t){var e=this;mh(wh(o.prototype),"render",this).call(this,t);var n=this._curve.bind(this)(this.config()),i=Gl["curve".concat(n.charAt(0).toUpperCase()).concat(n.slice(1))],r=this._path=_u().defined(this._defined).curve(i).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1),a=_u().defined((function(t){return t})).curve(i).x(this._x).y(this._y).x0((function(t,n){return e._x1?e._x0(t,n)+(e._x1(t,n)-e._x0(t,n))/2:e._x0(t,n)})).x1((function(t,n){return e._x1?e._x0(t,n)+(e._x1(t,n)-e._x0(t,n))/2:e._x0(t,n)})).y0((function(t,n){return e._y1?e._y0(t,n)+(e._y1(t,n)-e._y0(t,n))/2:e._y0(t,n)})).y1((function(t,n){return e._y1?e._y0(t,n)+(e._y1(t,n)-e._y0(t,n))/2:e._y0(t,n)}));return this._enter.append("path").attr("transform",(function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")})).attr("d",(function(t){return a(t.values)})).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",(function(t){return qc(po(this).attr("d"),r(t.values))})),this._update.select("path").transition(this._transition).attr("transform",(function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")})).attrTween("d",(function(t){return qc(po(this).attr("d"),r(t.values))})).call(this._applyStyle.bind(this)),this._exit.select("path").transition(this._transition).attrTween("d",(function(t){return qc(po(this).attr("d"),a(t.values))})),this}},{key:"curve",value:function(t){return arguments.length?(this._curve="function"==typeof t?t:Za(t),this):this._curve}},{key:"defined",value:function(t){return arguments.length?(this._defined=t,this):this._defined}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Za(t),this._x0=this._x,this):this._x}},{key:"x0",value:function(t){return arguments.length?(this._x0="function"==typeof t?t:Za(t),this._x=this._x0,this):this._x0}},{key:"x1",value:function(t){return arguments.length?(this._x1="function"==typeof t||null===t?t:Za(t),this):this._x1}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Za(t),this._y0=this._y,this):this._y}},{key:"y0",value:function(t){return arguments.length?(this._y0="function"==typeof t?t:Za(t),this._y=this._y0,this):this._y0}},{key:"y1",value:function(t){return arguments.length?(this._y1="function"==typeof t||null===t?t:Za(t),this):this._y1}}],n&&yh(e.prototype,n),i&&yh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc);function kh(t){return kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kh(t)}function Sh(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ch(){return Ch="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Rh(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},Ch.apply(this,arguments)}function Eh(t,e){return Eh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Eh(t,e)}function Ah(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Rh(t);if(e){var r=Rh(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===kh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Rh(t){return Rh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Rh(t)}var Mh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Eh(t,e)}(o,t);var e,n,i,r=Ah(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"rect"))._name="Bar",t._height=Za(10),t._labelBounds=function(e,n,i){return{width:i.width,height:i.height,x:null!==t._x1?t._getX(e,n):-i.width/2,y:null===t._x1?t._getY(e,n):-i.height/2}},t._width=Za(10),t._x=Aa("x"),t._x0=Aa("x"),t._x1=null,t._y=Za(0),t._y0=Za(0),t._y1=Aa("y"),t}return e=o,n=[{key:"render",value:function(t){var e=this;Ch(Rh(o.prototype),"render",this).call(this,t);var n=this._enter.attr("width",(function(t,n){return null===e._x1?e._getWidth(t,n):0})).attr("height",(function(t,n){return null!==e._x1?e._getHeight(t,n):0})).attr("x",(function(t,n){return null===e._x1?-e._getWidth(t,n)/2:0})).attr("y",(function(t,n){return null!==e._x1?-e._getHeight(t,n)/2:0})).call(this._applyStyle.bind(this)),i=this._update;return this._duration&&(n=n.transition(this._transition),i=i.transition(this._transition),this._exit.transition(this._transition).attr("width",(function(t,n){return null===e._x1?e._getWidth(t,n):0})).attr("height",(function(t,n){return null!==e._x1?e._getHeight(t,n):0})).attr("x",(function(t,n){return null===e._x1?-e._getWidth(t,n)/2:0})).attr("y",(function(t,n){return null!==e._x1?-e._getHeight(t,n)/2:0}))),n.call(this._applyPosition.bind(this)),i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this)),this}},{key:"_aes",value:function(t,e){return{height:this._getHeight(t,e),width:this._getWidth(t,e)}}},{key:"_applyPosition",value:function(t){var e=this;t.attr("width",(function(t,n){return e._getWidth(t,n)})).attr("height",(function(t,n){return e._getHeight(t,n)})).attr("x",(function(t,n){return null!==e._x1?e._getX(t,n):-e._getWidth(t,n)/2})).attr("y",(function(t,n){return null===e._x1?e._getY(t,n):-e._getHeight(t,n)/2}))}},{key:"_getHeight",value:function(t,e){return null!==this._x1?this._height(t,e):Math.abs(this._y1(t,e)-this._y(t,e))}},{key:"_getWidth",value:function(t,e){return null===this._x1?this._width(t,e):Math.abs(this._x1(t,e)-this._x(t,e))}},{key:"_getX",value:function(t,e){var n=null===this._x1?this._x(t,e):this._x1(t,e)-this._x(t,e);return n<0?n:0}},{key:"_getY",value:function(t,e){var n=null!==this._x1?this._y(t,e):this._y1(t,e)-this._y(t,e);return n<0?n:0}},{key:"height",value:function(t){return arguments.length?(this._height="function"==typeof t?t:Za(t),this):this._height}},{key:"width",value:function(t){return arguments.length?(this._width="function"==typeof t?t:Za(t),this):this._width}},{key:"x0",value:function(t){return arguments.length?(this._x0="function"==typeof t?t:Za(t),this._x=this._x0,this):this._x0}},{key:"x1",value:function(t){return arguments.length?(this._x1="function"==typeof t||null===t?t:Za(t),this):this._x1}},{key:"y0",value:function(t){return arguments.length?(this._y0="function"==typeof t?t:Za(t),this._y=this._y0,this):this._y0}},{key:"y1",value:function(t){return arguments.length?(this._y1="function"==typeof t||null===t?t:Za(t),this):this._y1}}],n&&Sh(e.prototype,n),i&&Sh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc);function Oh(t){return Oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oh(t)}function Th(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ph(){return Ph="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Nh(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},Ph.apply(this,arguments)}function Bh(t,e){return Bh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Bh(t,e)}function Dh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Nh(t);if(e){var r=Nh(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Oh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Nh(t){return Nh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Nh(t)}var zh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Bh(t,e)}(o,t);var e,n,i,r=Dh(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"circle"))._labelBounds=function(t,e,n){return{width:1.5*n.r,height:1.5*n.r,x:.75*-n.r,y:.75*-n.r}},t._labelConfig=Oa(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"}),t._name="Circle",t._r=Aa("r"),t}return e=o,n=[{key:"_applyPosition",value:function(t){var e=this;t.attr("r",(function(t,n){return e._r(t,n)})).attr("x",(function(t,n){return-e._r(t,n)/2})).attr("y",(function(t,n){return-e._r(t,n)/2}))}},{key:"render",value:function(t){Ph(Nh(o.prototype),"render",this).call(this,t);var e=this._enter.call(this._applyStyle.bind(this)),n=this._update;return this._duration?(e.attr("r",0).attr("x",0).attr("y",0).transition(this._transition).call(this._applyPosition.bind(this)),n=n.transition(this._transition),this._exit.transition(this._transition).attr("r",0).attr("x",0).attr("y",0)):e.call(this._applyPosition.bind(this)),n.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this)),this}},{key:"_aes",value:function(t,e){return{r:this._r(t,e)}}},{key:"r",value:function(t){return arguments.length?(this._r="function"==typeof t?t:Za(t),this):this._r}}],n&&Th(e.prototype,n),i&&Th(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc);function jh(t){return jh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jh(t)}function Fh(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lh(){return Lh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Gh(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},Lh.apply(this,arguments)}function Ih(t,e){return Ih=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Ih(t,e)}function Hh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Gh(t);if(e){var r=Gh(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===jh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Gh(t){return Gh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Gh(t)}var Vh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Ih(t,e)}(o,t);var e,n,i,r=Hh(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"rect"))._height=Aa("height"),t._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}},t._name="Rect",t._width=Aa("width"),t}return e=o,n=[{key:"render",value:function(t){Lh(Gh(o.prototype),"render",this).call(this,t);var e=this._enter.attr("width",0).attr("height",0).attr("x",0).attr("y",0).call(this._applyStyle.bind(this)),n=this._update;return this._duration&&(e=e.transition(this._transition),n=n.transition(this._transition),this._exit.transition(this._transition).attr("width",0).attr("height",0).attr("x",0).attr("y",0)),e.call(this._applyPosition.bind(this)),n.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this)),this}},{key:"_aes",value:function(t,e){return{width:this._width(t,e),height:this._height(t,e)}}},{key:"_applyPosition",value:function(t){var e=this;t.attr("width",(function(t,n){return e._width(t,n)})).attr("height",(function(t,n){return e._height(t,n)})).attr("x",(function(t,n){return-e._width(t,n)/2})).attr("y",(function(t,n){return-e._height(t,n)/2}))}},{key:"height",value:function(t){return arguments.length?(this._height="function"==typeof t?t:Za(t),this):this._height}},{key:"width",value:function(t){return arguments.length?(this._width="function"==typeof t?t:Za(t),this):this._width}}],n&&Fh(e.prototype,n),i&&Fh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc);function Uh(t){return Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(t)}function Wh(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function qh(){return qh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Xh(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},qh.apply(this,arguments)}function Kh(t,e){return Kh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Kh(t,e)}function Yh(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Xh(t);if(e){var r=Xh(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Uh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Xh(t){return Xh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Xh(t)}var Zh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Kh(t,e)}(o,t);var e,n,i,r=Yh(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._curve=Za("linear"),t._defined=function(t){return t},t._fill=Za("none"),t._hitArea=Za({d:function(e){return t._path(e.values)},fill:"none","stroke-width":10,transform:null}),t._name="Line",t._path=mu(),t._stroke=Za("black"),t._strokeWidth=Za(1),t}return e=o,n=[{key:"_dataFilter",value:function(t){var e=this,n=es().key(this._id).entries(t).map((function(n){n.data=ls(n.values),n.i=t.indexOf(n.values[0]);var i=h(n.values,e._x);n.xR=i,n.width=i[1]-i[0],n.x=i[0]+n.width/2;var r=h(n.values,e._y);return n.yR=r,n.height=r[1]-r[0],n.y=r[0]+n.height/2,n.nested=!0,n.translate=[n.x,n.y],n.__d3plusShape__=!0,n}));return n.key=function(t){return t.key},n}},{key:"render",value:function(t){var e=this;qh(Xh(o.prototype),"render",this).call(this,t);var n=this;function i(t){t.initialLength=this.getTotalLength();var e=n._strokeDasharray(t.values[0],n._data.indexOf(t.values[0])).split(" ").map(Number);1===e.length&&0===e[0]?e=[t.initialLength]:1===e.length?e.push(e[0]):e.length%2&&(e=e.concat(e));for(var i=[],r=0;r<t.initialLength;)for(var o=0;o<e.length;o++){var a=e[o];if(r+=a,i.push(a),r>=t.initialLength)break}i.length>1&&i.length%2&&i.pop(),i[i.length-1]+=t.initialLength-N(i),i.length%2==0&&i.push(0),t.initialStrokeArray=i.join(" ")}var r=this._curve.bind(this)(this.config()),a=Gl["curve".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))];this._path.curve(a).defined(this._defined).x(this._x).y(this._y);var s=this._enter.append("path").attr("transform",(function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")})).attr("d",(function(t){return e._path(t.values)})).call(this._applyStyle.bind(this)),u=this._update.select("path").attr("stroke-dasharray",(function(t){return n._strokeDasharray(t.values[0],n._data.indexOf(t.values[0]))}));return this._duration?(s.each(i).attr("stroke-dasharray",(function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)})).attr("stroke-dashoffset",(function(t){return t.initialLength})).transition(this._transition).attr("stroke-dashoffset",0),u=u.transition(this._transition).attrTween("d",(function(t){return qc(po(this).attr("d"),n._path(t.values))})),this._exit.selectAll("path").each(i).attr("stroke-dasharray",(function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)})).transition(this._transition).attr("stroke-dashoffset",(function(t){return-t.initialLength}))):u=u.attr("d",(function(t){return n._path(t.values)})),u.attr("transform",(function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")})).call(this._applyStyle.bind(this)),this}},{key:"_aes",value:function(t,e){var n=this;return{points:t.values.map((function(t){return[n._x(t,e),n._y(t,e)]}))}}},{key:"curve",value:function(t){return arguments.length?(this._curve="function"==typeof t?t:Za(t),this):this._curve}},{key:"defined",value:function(t){return arguments.length?(this._defined=t,this):this._defined}}],n&&Wh(e.prototype,n),i&&Wh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc);function $h(t){return $h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$h(t)}function Jh(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Qh(t,e){return Qh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Qh(t,e)}function tf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=ef(t);if(e){var r=ef(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===$h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function ef(t){return ef=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ef(t)}var nf={Circle:zh,Rect:Vh},rf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&Qh(t,e)}(o,t);var e,n,i,r=tf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._endpoint=Aa("endpoint","Rect"),t._endpointConfig={Circle:{r:Aa("r",5)}},t._length=Aa("length",25),t._lineConfig={},t._orient=Aa("orient","top"),t._x=Aa("x",0),t._y=Aa("y",0),t}return e=o,n=[{key:"render",value:function(t){var e=this;void 0===this._select&&this.select(po("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var n=[];this._data.forEach((function(t,i){var r=e._orient(t,i),o=e._x(t,i),a=e._y(t,i),s=o;"left"===r?s-=e._length(t,i):"right"===r&&(s+=e._length(t,i));var u=a;"top"===r?u-=e._length(t,i):"bottom"===r&&(u+=e._length(t,i)),n.push({__d3plus__:!0,data:t,i:i,id:i,x:o,y:a}),n.push({__d3plus__:!0,data:t,i:i,id:i,x:s,y:u})})),this._line=(new Zh).data(n).select($a("g.d3plus-Whisker",{parent:this._select}).node()).config(Xa.bind(this)(this._lineConfig,"shape")).render(t);var i=this._data.map((function(t,n){var i={__d3plus__:!0};i.data=t,i.i=n,i.endpoint=e._endpoint(t,n),i.length=e._length(t,n),i.orient=e._orient(t,n);var r=e._x(t,n);"left"===i.orient?r-=i.length:"right"===i.orient&&(r+=i.length);var o=e._y(t,n);return"top"===i.orient?o-=i.length:"bottom"===i.orient&&(o+=i.length),i.x=r,i.y=o,i}));return this._whiskerEndpoint=[],es().key((function(t){return t.endpoint})).entries(i).forEach((function(t){var n=t.key;e._whiskerEndpoint.push((new nf[n]).data(t.values).select($a("g.d3plus-Whisker-Endpoint-".concat(n),{parent:e._select}).node()).config({height:function(t){return"top"===t.orient||"bottom"===t.orient?5:20},width:function(t){return"top"===t.orient||"bottom"===t.orient?20:5}}).config(Xa.bind(e)(e._endpointConfig,"shape",n)).render())})),this}},{key:"active",value:function(t){this._line&&this._line.active(t),this._whiskerEndpoint&&this._whiskerEndpoint.forEach((function(e){return e.active(t)}))}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"endpoint",value:function(t){return arguments.length?(this._endpoint="function"==typeof t?t:Za(t),this):this._endpoint}},{key:"endpointConfig",value:function(t){return arguments.length?(this._endpointConfig=Oa(this._endpointConfig,t),this):this._endpointConfig}},{key:"hover",value:function(t){this._line&&this._line.hover(t),this._whiskerEndpoint&&this._whiskerEndpoint.forEach((function(e){return e.hover(t)}))}},{key:"length",value:function(t){return arguments.length?(this._length="function"==typeof t?t:Za(t),this):this._length}},{key:"lineConfig",value:function(t){return arguments.length?(this._lineConfig=Oa(this._lineConfig,t),this):this._lineConfig}},{key:"orient",value:function(t){return arguments.length?(this._orient="function"==typeof t?t:Za(t),this):this._orient}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Za(t),this):this._x}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Za(t),this):this._y}}],n&&Jh(e.prototype,n),i&&Jh(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa);function of(t){return of="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},of(t)}function af(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function sf(t,e){return sf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},sf(t,e)}function uf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=lf(t);if(e){var r=lf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===of(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function lf(t){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},lf(t)}var cf={Circle:zh,Rect:Vh},hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&sf(t,e)}(o,t);var e,n,i,r=uf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._medianConfig={fill:Za("black")},t._orient=Aa("orient","vertical"),t._outlier=Aa("outlier","Circle"),t._outlierConfig={Circle:{r:Aa("r",5)},Rect:{height:function(e,n){return"vertical"===t._orient(e,n)?5:20},width:function(e,n){return"vertical"===t._orient(e,n)?20:5}}},t._rectConfig={fill:Za("white"),stroke:Za("black"),strokeWidth:Za(1)},t._rectWidth=Za(50),t._whiskerConfig={},t._whiskerMode=["tukey","tukey"],t._x=Aa("x",250),t._y=Aa("y",250),t}return e=o,n=[{key:"render",value:function(){var t=this;void 0===this._select&&this.select(po("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var e=[],n=es().key((function(e,n){return"vertical"===t._orient(e,n)?t._x(e,n):t._y(e,n)})).entries(this._data).map((function(n){n.data=ls(n.values),n.i=t._data.indexOf(n.values[0]),n.orient=t._orient(n.data,n.i);var i=n.values.map("vertical"===n.orient?t._y:t._x);i.sort((function(t,e){return t-e})),n.first=M(i,.25),n.median=M(i,.5),n.third=M(i,.75);var r=t._whiskerMode;"tukey"===r[0]?(n.lowerLimit=n.first-1.5*(n.third-n.first),n.lowerLimit<E(i)&&(n.lowerLimit=E(i))):"extent"===r[0]?n.lowerLimit=E(i):"number"==typeof r[0]&&(n.lowerLimit=M(i,r[0])),"tukey"===r[1]?(n.upperLimit=n.third+1.5*(n.third-n.first),n.upperLimit>C(i)&&(n.upperLimit=C(i))):"extent"===r[1]?n.upperLimit=C(i):"number"==typeof r[1]&&(n.upperLimit=M(i,r[1]));var o=n.third-n.first;return"vertical"===n.orient?(n.height=o,n.width=t._rectWidth(n.data,n.i),n.x=t._x(n.data,n.i),n.y=n.first+o/2):"horizontal"===n.orient&&(n.height=t._rectWidth(n.data,n.i),n.width=o,n.x=n.first+o/2,n.y=t._y(n.data,n.i)),n.values.forEach((function(i,r){var o="vertical"===n.orient?t._y(i,r):t._x(i,r);if(o<n.lowerLimit||o>n.upperLimit){var a={__d3plus__:!0};a.data=i,a.i=r,a.outlier=t._outlier(i,r),"vertical"===n.orient?(a.x=n.x,a.y=o,e.push(a)):"horizontal"===n.orient&&(a.y=n.y,a.x=o,e.push(a))}})),n.__d3plus__=!0,n}));this._box=(new Vh).data(n).x((function(t){return t.x})).y((function(t){return t.y})).select($a("g.d3plus-Box",{parent:this._select}).node()).config(Xa.bind(this)(this._rectConfig,"shape")).render(),this._median=(new Vh).data(n).x((function(t){return"vertical"===t.orient?t.x:t.median})).y((function(t){return"vertical"===t.orient?t.median:t.y})).height((function(t){return"vertical"===t.orient?1:t.height})).width((function(t){return"vertical"===t.orient?t.width:1})).select($a("g.d3plus-Box-Median",{parent:this._select}).node()).config(Xa.bind(this)(this._medianConfig,"shape")).render();var i=[];return n.forEach((function(t,e){var n=t.x,r=t.y,o=t.first-t.lowerLimit,a=t.upperLimit-t.third;if("vertical"===t.orient){var s=r-t.height/2,u=r+t.height/2;i.push({__d3plus__:!0,data:t,i:e,x:n,y:s,length:o,orient:"top"},{__d3plus__:!0,data:t,i:e,x:n,y:u,length:a,orient:"bottom"})}else if("horizontal"===t.orient){var l=n+t.width/2,c=n-t.width/2;i.push({__d3plus__:!0,data:t,i:e,x:l,y:r,length:a,orient:"right"},{__d3plus__:!0,data:t,i:e,x:c,y:r,length:o,orient:"left"})}})),this._whisker=(new rf).data(i).select($a("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(Xa.bind(this)(this._whiskerConfig,"shape")).render(),this._whiskerEndpoint=[],es().key((function(t){return t.outlier})).entries(e).forEach((function(e){var n=e.key;t._whiskerEndpoint.push((new cf[n]).data(e.values).select($a("g.d3plus-Box-Outlier-".concat(n),{parent:t._select}).node()).config(Xa.bind(t)(t._outlierConfig,"shape",n)).render())})),this}},{key:"active",value:function(t){this._box&&this._box.active(t),this._median&&this._median.active(t),this._whisker&&this._whisker.active(t),this._whiskerEndpoint&&this._whiskerEndpoint.forEach((function(e){return e.active(t)}))}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"hover",value:function(t){this._box&&this._box.hover(t),this._median&&this._median.hover(t),this._whisker&&this._whisker.hover(t),this._whiskerEndpoint&&this._whiskerEndpoint.forEach((function(e){return e.hover(t)}))}},{key:"medianConfig",value:function(t){return arguments.length?(this._medianConfig=Oa(this._medianConfig,t),this):this._medianConfig}},{key:"orient",value:function(t){return arguments.length?(this._orient="function"==typeof t?t:Za(t),this):this._orient}},{key:"outlier",value:function(t){return arguments.length?(this._outlier="function"==typeof t?t:Za(t),this):this._outlier}},{key:"outlierConfig",value:function(t){return arguments.length?(this._outlierConfig=Oa(this._outlierConfig,t),this):this._outlierConfig}},{key:"rectConfig",value:function(t){return arguments.length?(this._rectConfig=Oa(this._rectConfig,t),this):this._rectConfig}},{key:"rectWidth",value:function(t){return arguments.length?(this._rectWidth="function"==typeof t?t:Za(t),this):this._rectWidth}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"whiskerConfig",value:function(t){return arguments.length?(this._whiskerConfig=Oa(this._whiskerConfig,t),this):this._whiskerConfig}},{key:"whiskerMode",value:function(t){return arguments.length?(this._whiskerMode=t instanceof Array?t:[t,t],this):this._whiskerMode}},{key:"x",value:function(t){return arguments.length?(this._x="function"==typeof t?t:Aa(t),this):this._x}},{key:"y",value:function(t){return arguments.length?(this._y="function"==typeof t?t:Aa(t),this):this._y}}],n&&af(e.prototype,n),i&&af(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa),ff=Math.PI,df=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"circle";if(t<0&&(t=2*ff+t),"square"===n){var i=ff/180*45,r=0,o=0;if(t<ff/2){var a=Math.tan(t);r+=t<i?e:e/a,o+=t<i?a*e:e}else if(t<=ff){var s=Math.tan(ff-t);r-=t<ff-i?e/s:e,o+=t<ff-i?e:s*e}else t<i+ff?(r-=e,o-=Math.tan(t-ff)*e):t<3*ff/2?(r-=e/Math.tan(t-ff),o-=e):t<2*ff-i?(r+=e/Math.tan(2*ff-t),o-=e):(r+=e,o-=Math.tan(2*ff-t)*e);return[r,o]}return"circle"===n?[e*Math.cos(t),e*Math.sin(t)]:null},gf=Math.PI,pf=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],i=/([MLA])([^MLAZ]+)/gi,r=i.exec(t);null!==r;){if(["M","L"].includes(r[1]))n.push(r[2].split(",").map(Number));else if("A"===r[1]){var o=r[2].split(",").map(Number),a=o.slice(o.length-2,o.length),s=n[n.length-1],u=o[0],l=kc(s,a),c=Math.acos((u*u+u*u-l*l)/(2*u*u));o[2]&&(c=2*gf-c);for(var h=c/(c/(2*gf)*(u*gf*2)/e),f=Math.atan2(-s[1],-s[0])-gf,d=h;d<c;)n.push(df(o[4]?f+d:f-d,u)),d+=h;n.push(a)}r=i.exec(t)}return n};function vf(t){return vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vf(t)}function yf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mf(){return mf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wf(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},mf.apply(this,arguments)}function _f(t,e){return _f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_f(t,e)}function bf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=wf(t);if(e){var r=wf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===vf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function wf(t){return wf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wf(t)}var xf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),writable:!1}),e&&_f(t,e)}(o,t);var e,n,i,r=bf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,"path"))._d=Aa("path"),t._labelBounds=function(e,n,i){var r=ph(i.points,{angle:t._labelConfig.rotate?t._labelConfig.rotate(e,n):0});return!!r&&{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2,y:r.cy-r.height/2}},t._name="Path",t._labelConfig=Object.assign(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"}),t}return e=o,n=[{key:"_aes",value:function(t,e){return{points:pf(this._d(t,e))}}},{key:"render",value:function(t){mf(wf(o.prototype),"render",this).call(this,t);var e=this._enter.attr("d",this._d).call(this._applyStyle.bind(this)),n=this._update;return this._duration&&(e.attr("opacity",0).transition(this._transition).attr("opacity",1),n=n.transition(this._transition),this._exit.transition(this._transition).attr("opacity",0)),n.call(this._applyStyle.bind(this)).attr("d",this._d),this}},{key:"d",value:function(t){return arguments.length?(this._d="function"==typeof t?t:Za(t),this):this._d}}],n&&yf(e.prototype,n),i&&yf(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(Mc),kf=Object.freeze({__proto__:null,Image:Ls,Shape:Mc,Area:xh,Bar:Mh,Box:hf,Circle:zh,Line:Zh,Path:xf,Rect:Vh,Whisker:rf,largestRect:ph,lineIntersection:$c,path2polygon:pf,pointDistance:kc,pointDistanceSquared:xc,pointRotate:ah,polygonInside:nh,polygonRayCast:oh,polygonRotate:sh,segmentBoxContains:th,segmentsIntersect:eh,shapeEdgePoint:df,simplify:hh});function Sf(t){if(t.constructor===Date)return t;if(t.constructor===Number&&"".concat(t).length>5&&t%1==0)return new Date(t);var e="".concat(t),n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(e);if(n){var i=n[1];0===i.indexOf("-")&&(e=e.replace(i,i.substring(1)));var r=new Date(e);return r.setFullYear(i),r}var o=new RegExp(/^[A-z]{1,3} [A-z]{1,3} \d{1,2} (-*\d{1,4}) \d{1,2}:\d{1,2}:\d{1,2} [A-z]{1,3}-*\d{1,4} \([A-z]{1,3}\)/g).exec(e);if(o){var a=o[1];0===a.indexOf("-")&&(e=e.replace(a,a.substring(1)));var s=new Date(e);return s.setFullYear(a),s}var u=new RegExp(/^([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})[\s|-]{0,1}(-*\d{1,4})$/g).exec(e),l=new RegExp(/^(-*\d{1,4})[\s|-]{0,1}([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})$/g).exec(e);if(u||l){var c=+(u?u[1]:l[2]).toLowerCase().replace("q",""),h=+(u?u[2]:l[1]),f=new Date(h,3*c-3,1);return f.setFullYear(h),f}if(!(e.includes("/")||e.includes(" ")||e.includes("-")&&e.indexOf("-"))){var d=new Date(+e,0,1);return d.setFullYear(t),d}return new Date(e)}var Cf={"de-DE":{dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",quarter:"Q",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",quarter:"Q",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",quarter:"Q",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",quarter:"T",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",quarter:"T",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",quarter:"T",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",quarter:"T",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",quarter:"T",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 Ef(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Af(t){return function(t){if(Array.isArray(t))return Rf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Rf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rf(t,e)}(t)||function(){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 Rf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Mf(t){return Mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mf(t)}function Of(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Tf(t,e){return Tf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Tf(t,e)}function Pf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Bf(t);if(e){var r=Bf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Mf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Bf(t){return Bf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Bf(t)}var Df=function(t){return Math.pow(10,Math.floor(Math.log10(t)))};function Nf(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Vi().domain([10,400]).range([10,50]),i=t.range(),r=Math.abs(i[1]-i[0]),o=Math.floor(r/n(r));if("time"===this._scale&&this._data&&this._data.length){var a=h(this._data),s=this._data.reduce((function(t,e,n,i){if(n){var r=Math.abs(e-i[n-1]);r<t&&(t=r)}return t}),1/0),u=Math.round((a[1]-a[0])/s);o=E(e?[2*o,u]:[o,u])}return t.ticks(o)}var zf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tf(t,e)}(o,t);var e,n,i,r=Pf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._align="middle",t._barConfig={stroke:"#999","stroke-width":1},t._data=[],t._domain=[0,10],t._duration=600,t._gridConfig={stroke:"#eee","stroke-width":1},t._gridLog=!1,t._height=400,t._labelOffset=!1,t._labelRotation=!1,t.orient("bottom"),t._outerBounds={width:0,height:0,x:0,y:0},t._padding=5,t._paddingInner=.1,t._paddingOuter=.1,t._scale="linear",t._scalePadding=.5,t._shape="Line",t._shapeConfig={fill:"#999",height:function(t){return t.tick?8:0},label:function(t){return t.text},labelBounds:function(t){return t.labelBounds},labelConfig:{fontColor:"#999",fontFamily:(new _c).fontFamily(),fontResize:!1,fontSize:Za(14),padding:0,textAnchor:function(){var e=tc();return"left"===t._orient?e?"start":"end":"right"===t._orient?e?"end":"start":t._labelRotation?"bottom"===t._orient?"end":"start":"middle"},verticalAlign:function(){return"bottom"===t._orient?"top":"top"===t._orient?"bottom":"middle"}},r:function(t){return t.tick?4:0},stroke:"#999",strokeWidth:1,width:function(t){return t.tick?8:0}},t._tickSize=8,t._tickSuffix="normal",t._tickUnit=0,t._timeLocale=void 0,t._titleClass=new _c,t._titleConfig={fontColor:ds.dark,fontSize:12,textAnchor:"middle"},t._width=400,t}return e=o,n=[{key:"_barPosition",value:function(t){var e=this._position,n=e.height,i=e.x,r=e.y,o=e.opposite,a=this._margin[o],s=["top","left"].includes(this._orient)?this._outerBounds[r]+this._outerBounds[n]-a:this._outerBounds[r]+a,u="band"===this._scale?this._d3Scale.step()-this._d3Scale.bandwidth():"point"===this._scale?this._d3Scale.step()*this._d3Scale.padding():0,l="band"===this._scale?this._d3Scale.step():"point"===this._scale?this._d3Scale.step()*this._d3Scale.padding():0,c=(this._d3ScaleNegative?this._d3ScaleNegative.domain():[]).concat(this._d3Scale?this._d3Scale.domain():[]).sort((function(t,e){return t-e}));t.call(Ta,this._barConfig).attr("".concat(i,"1"),this._getPosition(c[0])-u).attr("".concat(i,"2"),this._getPosition(c[c.length-1])+l).attr("".concat(r,"1"),s).attr("".concat(r,"2"),s)}},{key:"_getDomain",value:function(){var t=[];this._d3ScaleNegative&&(t=this._d3ScaleNegative.domain()),this._d3Scale&&(t=t.concat(this._d3Scale.domain()));var e=["band","ordinal","point"].includes(this._scale)?t:h(t);return t[0]>t[1]?e.reverse():e}},{key:"_getPosition",value:function(t){return"log"===this._scale&&0===t?(this._d3Scale||this._d3ScaleNegative).range()[this._d3Scale?0:1]:("log"===this._scale&&t<0?this._d3ScaleNegative||function(){return 0}:this._d3Scale)(t)}},{key:"_getRange",value:function(){var t=[];return this._d3ScaleNegative&&(t=this._d3ScaleNegative.range()),this._d3Scale&&(t=t.concat(this._d3Scale.range())),t[0]>t[1]?h(t).reverse():h(t)}},{key:"_getLabels",value:function(){var t=[];return this._d3ScaleNegative&&(t=t.concat(Nf.bind(this)(this._d3ScaleNegative,!1))),this._d3Scale&&(t=t.concat(Nf.bind(this)(this._d3Scale,!1))),t}},{key:"_getTicks",value:function(){var t=[];return this._d3ScaleNegative&&(t=t.concat(Nf.bind(this)(this._d3ScaleNegative,!0))),this._d3Scale&&(t=t.concat(Nf.bind(this)(this._d3Scale,!0))),t}},{key:"_gridPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._position,i=n.height,r=n.x,o=n.y,a=n.opposite,s=this._margin[a],u=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[i]-s:this._outerBounds[o]+s,l=e&&this._lastScale||this._getPosition.bind(this),c=["top","left"].includes(this._orient)?s:-s,h="band"===this._scale?this._d3Scale.bandwidth()/2:0,f=function(t){return l(t.id)+h};t.call(Ta,this._gridConfig).attr("".concat(r,"1"),f).attr("".concat(r,"2"),f).attr("".concat(o,"1"),u).attr("".concat(o,"2"),e?u:u+c)}},{key:"render",value:function(t){var e,n=this;void 0===this._select&&this.select(po("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var i=this._timeLocale||Cf[this._locale]||Cf["en-US"];Ve(i).format();var r,o,a,s=this._position,u=s.width,l=s.height,c=s.x,h=s.y,f=s.horizontal,d=s.opposite,g="d3plus-Axis-clip-".concat(this._uuid),p=["top","left"].includes(this._orient),v=this._padding,y=this._select,m=[v,this["_".concat(u)]-v],_=xa().duration(this._duration),b="Circle"===this._shape?this._shapeConfig.r:"Rect"===this._shape?this._shapeConfig[u]:this._shapeConfig.strokeWidth,w="function"!=typeof b?function(){return b}:b,k=this._margin={top:0,right:0,bottom:0,left:0},S=this._tickFormat?this._tickFormat:function(t){if(isNaN(t)||["band","ordinal","point"].includes(n._scale))return t;if("time"===n._scale)return zs(t,(n._data||r).map(Sf)).replace(/^Q/g,i.quarter);if("linear"===n._scale&&"smallest"===n._tickSuffix){var e="object"===Mf(n._locale)?n._locale:_s[n._locale],o=e.separator,a=e.suffixes,s=t>=1e3?a[n._tickUnit+8]:"",u=t/Math.pow(10,3*n._tickUnit),l=ks(u,e,",.".concat(u.toString().length,"r"));return"".concat(l).concat(o).concat(s)}return ks(t,n._locale)};function A(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._range;o=e?e.slice():[void 0,void 0];var n=m[0],i=m[1];this._range&&(void 0!==this._range[0]&&(n=this._range[0]),void 0!==this._range[this._range.length-1]&&(i=this._range[this._range.length-1])),(void 0===o[0]||o[0]<n)&&(o[0]=n),(void 0===o[1]||o[1]>i)&&(o[1]=i);var s=i-n;if("ordinal"===this._scale&&this._domain.length>o.length)if(e===this._range){var u=this._domain.length+1;o=(o=D(u).map((function(t){return o[0]+s*(t/(u-1))})).slice(1,u)).map((function(t){return t-o[0]/2}))}else{var l=this._domain.length,c=o[1]-o[0];o=D(l).map((function(t){return o[0]+c*(t/(l-1))}))}else if(e===this._range){var h=Vi().domain([10,400]).range([10,50]),f="time"===this._scale?this._domain.map(Sf):this._domain,d=x(f[0],f[1],Math.floor(s/h(s)));a=(this._ticks?"time"===this._scale?this._ticks.map(Sf):this._ticks:d).slice();var g=(r=(this._labels?"time"===this._scale?this._labels.map(Sf):this._labels:d).slice()).length;if(g){var p=Math.ceil(s/g/2);o=[o[0]+p,o[1]-p]}}var v="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));if(this._d3Scale=er[v]().domain("time"===this._scale?this._domain.map(Sf):this._domain).range(o),this._d3Scale.padding&&this._d3Scale.padding(this._scalePadding),this._d3Scale.paddingInner&&this._d3Scale.paddingInner(this._paddingInner),this._d3Scale.paddingOuter&&this._d3Scale.paddingOuter(this._paddingOuter),this._d3ScaleNegative=null,"log"===this._scale){var y=this._d3Scale.domain();if(0===y[0]){var _=E([E(this._data),Math.abs(y[1])]);y[0]=0===_||1===_?1e-6:_<=1?Df(_):1,y[1]<0&&(y[0]*=-1)}else if(0===y[y.length-1]){var b=E([E(this._data),Math.abs(y[0])]);y[y.length-1]=0===b||1===b?1e-6:b<=1?Df(b):1,y[0]<0&&(y[y.length-1]*=-1)}var k=this._d3Scale.range();if(y[0]<0&&y[y.length-1]<0)this._d3ScaleNegative=this._d3Scale.copy().domain(y).range(k),this._d3Scale=null;else if(y[0]>0&&y[y.length-1]>0)this._d3Scale.domain(y).range(k);else{var C=Ci().domain(y).range([0,1])(0)*(k[1]-k[0]),A=E([E(this._data.filter((function(t){return t>=0}))),Math.abs(y[1])]),R=E([E(this._data.filter((function(t){return t<=-0}))),Math.abs(y[0])]),M=E([0===A?1e-6:A<=1?Df(A):1,0===R?-1e-6:R<=1?Df(R):1]);this._d3ScaleNegative=this._d3Scale.copy(),(y[0]<0?this._d3Scale:this._d3ScaleNegative).domain([y[0]<0?M:-M,y[1]]).range([k[0]+C,k[1]]),(y[0]<0?this._d3ScaleNegative:this._d3Scale).domain([y[0],y[0]<0?-M:M]).range([k[0],k[0]+C])}}if(a=(this._ticks?"time"===this._scale?this._ticks.map(Sf):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice(),r=(this._labels?"time"===this._scale?this._labels.map(Sf):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getLabels():a).slice(),"log"===this._scale){var O=r.filter((function(e,n){return!n||n===r.length-1||"1"===Math.abs(e).toString().charAt(0)&&(t._d3Scale?-1!==e:1!==e)}));O.length>2?r=O:r.length>=10&&(r=r.filter((function(t){return t%5==0||"1"===S(t).substr(-1)}))),r.includes(-1)&&r.includes(1)&&r.some((function(t){return t>10||t<10}))&&r.splice(r.indexOf(-1),1)}if("time"===this._scale&&(a=a.map(Number),r=r.map(Number)),a=a.sort((function(e,n){return t._getPosition(e)-t._getPosition(n)})),r=r.sort((function(e,n){return t._getPosition(e)-t._getPosition(n)})),"linear"===this._scale&&"smallest"===this._tickSuffix){var T=r.filter((function(t){return t>=1e3}));if(T.length>0)for(var P=Math.min.apply(Math,Af(T)),B=1;B&&B<7&&P/Math.pow(10,3*B)>=1;)this._tickUnit=B,B+=1}var N=[];this._availableTicks=a,a.forEach((function(e,n){var i=w({id:e,tick:!0},n);"Circle"===t._shape&&(i*=2);var r=t._getPosition(e);!N.length||Math.abs(Ka(r,N)-r)>2*i?N.push(r):N.push(!1)})),a=a.filter((function(t,e){return!1!==N[e]})),this._visibleTicks=a}function R(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=t.i,i=t.position;if("band"===this._scale)return this._d3Scale.bandwidth();var r=n-e<0?1!==H.length&&this._range?(i-H[n+e].position)/2-i:m[0]:i-(i-H[n-e].position)/2,o=Math.abs(i-r),a=n+e>H.length-1?1!==H.length&&this._range?(i-H[n-e].position)/2-i:m[1]:i-(i-H[n+e].position)/2;return 2*E([o,Math.abs(i-a)])}if(A.bind(this)(),this._title){var M=this._titleConfig,O=M.fontFamily,T=M.fontSize,P=M.lineHeight,B=fc().fontFamily("function"==typeof O?O():O).fontSize("function"==typeof T?T():T).lineHeight("function"==typeof P?P():P).width(o[o.length-1]-o[0]-2*v).height(this["_".concat(l)]-this._tickSize-2*v),N=B(this._title).lines.length;k[this._orient]=N*B.lineHeight()+v}var z="Circle"===this._shape?"function"==typeof this._shapeConfig.r?this._shapeConfig.r({tick:!0}):this._shapeConfig.r:"Rect"===this._shape?"function"==typeof this._shapeConfig[l]?this._shapeConfig[l]({tick:!0}):this._shapeConfig[l]:this._tickSize,j=w({tick:!0});"function"==typeof z&&(z=C(a.map(z))),"Rect"===this._shape&&(z/=2),"function"==typeof j&&(j=C(a.map(j))),"Circle"!==this._shape&&(j/=2);var F=this._shapeConfig.labelConfig,L=F.fontFamily,I=F.fontSize,H=r.map((function(t,e){var i="function"==typeof L?L(t,e):L,r="function"==typeof I?I(t,e):I,o=n._getPosition(t);return{d:t,i:e,fF:i,fS:r,lineHeight:n._shapeConfig.lineHeight?n._shapeConfig.lineHeight(t,e):1.4*r,position:o}}));function G(t){var e=t.d,n=t.i,i=t.fF,r=t.fS,o=t.rotate,a=t.space,s=o?"width":"height",u=o?"height":"width",l=E([this._maxSize,this._width]),c=E([this._maxSize,this._height]),h=fc().fontFamily(i).fontSize(r).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(e,n):void 0)[u](f?a:l-z-v-this._margin.left-this._margin.right)[s](f?c-z-v-this._margin.top-this._margin.bottom:a),d=h(S(e));return d.lines=d.lines.filter((function(t){return""!==t})),d.width=d.lines.length?Math.ceil(C(d.widths))+r/4:0,d.width%2&&d.width++,d.height=d.lines.length?Math.ceil(d.lines.length*h.lineHeight())+r/4:0,d.height%2&&d.height++,d}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=0;t.forEach((function(n){var i=t[n.i-1],r=n.rotate&&f||!n.rotate&&!f?"width":"height",o=n.rotate&&f||!n.rotate&&!f?"height":"width";i?i.position+i[o]/2>n.position-n[o]/2&&(e?(n.offset=i[r],e=0):e=1):e=1}))}H=H.map((function(t){t.rotate=n._labelRotation,t.space=R.bind(n)(t);var e=G.bind(n)(t);return Object.assign(e,t)}));var U=this._labelOffset&&H.some((function(t){return t.truncated}));this._labelRotation?H=H.map((function(t){t.rotate=!0;var e=G.bind(n)(t);return Object.assign(t,e)})):U&&(H=H.map((function(t){t.space=R.bind(n)(t,2);var e=G.bind(n)(t);return Object.assign(t,e)})),V.bind(this)(H));for(var W=[0,0],q=0;q<2;q++){var K=H[q?H.length-1:0];if(!K)break;var Y=K.height,X=K.position,Z=K.rotate,$=K.width,J=q?m[1]:m[0],Q=(Z||!f?Y:$)/2,tt=q?X+Q-J:X-Q-J;W[q]=tt}var et=o[0],nt=o[o.length-1],it=[et-W[0],nt-W[1]];this._range&&(void 0!==this._range[0]&&(it[0]=this._range[0]),void 0!==this._range[this._range.length-1]&&(it[1]=this._range[this._range.length-1])),it[0]===et&&it[1]===nt||(A.bind(this)(it),H=r.map((function(t,e){var i="function"==typeof L?L(t,e):L,r="function"==typeof I?I(t,e):I,o=n._getPosition(t);return{d:t,i:e,fF:i,fS:r,lineHeight:n._shapeConfig.lineHeight?n._shapeConfig.lineHeight(t,e):1.4*r,position:o}})),H=H.map((function(t){t.rotate=n._labelRotation,t.space=R.bind(n)(t,U?2:1);var e=G.bind(n)(t);return Object.assign(e,t)})),V.bind(this)(H));var rt=C(H,(function(t){return t.height}))||0;this._labelRotation=f&&void 0===this._labelRotation?H.some((function(t){var e=t.i,n=t.height,i=t.position,r=t.truncated,o=H[e-1];return r||e&&o.position+o.height/2>i-n/2})):this._labelRotation;var ot=this._labelOffset?C(H,(function(t){return t.offset||0})):0;H.forEach((function(t){return t.offset=t.offset?ot:0}));var at="Line"===this._shape?0:z,st=this._outerBounds=(Ef(e={},l,(C(H,(function(t){return Math.ceil(t[t.rotate||!f?"width":"height"]+t.offset)}))||0)+(H.length?v:0)),Ef(e,u,m[m.length-1]-m[0]),Ef(e,c,m[0]),e);st[l]=C([this._minSize,st[l]]),k[this._orient]+=z,k[d]=void 0!==this._gridSize?C([this._gridSize,at]):this["_".concat(l)]-k[this._orient]-st[l]-v,st[l]+=k[d]+k[this._orient],st[h]="start"===this._align?this._padding:"end"===this._align?this["_".concat(l)]-st[l]-this._padding:this["_".concat(l)]/2-st[l]/2;var ut=$a("g#d3plus-Axis-".concat(this._uuid),{parent:y});this._group=ut;var lt=$a("g.grid",{parent:ut}).selectAll("line").data((0!==this._gridSize?this._grid||"log"===this._scale&&!this._gridLog?r:a:[]).map((function(t){return{id:t}})),(function(t){return t.id}));lt.exit().transition(_).attr("opacity",0).call(this._gridPosition.bind(this)).remove(),lt.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(g,")")).call(this._gridPosition.bind(this),!0).merge(lt).transition(_).attr("opacity",1).call(this._gridPosition.bind(this));var ct=r.filter((function(t,e){return H[e].lines.length&&!a.includes(t)})),ht=H.some((function(t){return t.rotate})),ft=a.concat(ct).map((function(t){var e,i=H.find((function(e){return e.d===t})),o=n._getPosition(t),s=i?i.space:0,u=i?i.lines.length:1,g=i?i.lineHeight:1,y=i&&n._labelOffset?i.offset:0,m=f?s:st.width-k[n._position.opposite]-z-k[n._orient]+v,_=k[d],b=(z+y)*(p?-1:1),w=p?st[h]+st[l]-_:st[h]+_,x=(e={id:t,labelBounds:ht&&i?{x:-i.width/2+i.fS/4,y:"bottom"===n._orient?b+v+(i.width-g*u)/2:b-2*v-(i.width+g*u)/2,width:i.width,height:i.height}:{x:f?-s/2:"left"===n._orient?-m-v+b:b+v,y:f?"bottom"===n._orient?b+v:b-v-rt:-s/2,width:f?s:m,height:f?rt:s},rotate:!!i&&i.rotate,size:r.includes(t)?b:n._data.find((function(e){return+e===t}))?Math.ceil(b/2):0,text:!!r.includes(t)&&S(t),tick:a.includes(t)},Ef(e,c,o+("band"===n._scale?n._d3Scale.bandwidth()/2:0)),Ef(e,h,w),e);return x}));"Line"===this._shape&&(ft=ft.concat(ft.map((function(t){var e=Object.assign({},t);return e[h]+=t.size,e})))),(new kf[this._shape]).data(ft).duration(this._duration).labelConfig({ellipsis:function(t){return t&&t.length?"".concat(t,"..."):""},rotate:function(t){return t.rotate?-90:0}}).select($a("g.ticks",{parent:ut}).node()).config(this._shapeConfig).render();var dt=ut.selectAll("line.bar").data([null]);return dt.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(dt).transition(_).attr("opacity",1).call(this._barPosition.bind(this)),this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(k[this._orient]).rotate("left"===this._orient?-90:"right"===this._orient?90:0).select($a("g.d3plus-Axis-title",{parent:ut}).node()).text((function(t){return t.text})).verticalAlign("middle").width(o[o.length-1]-o[0]).x(f?o[0]:"left"===this._orient?st.x+k.left/2-(o[o.length-1]-o[0])/2:st.x+st.width-k.right/2-(o[o.length-1]-o[0])/2).y(f?"bottom"===this._orient?st.y+st.height-k.bottom:st.y:o[0]+(o[o.length-1]-o[0])/2-k[this._orient]/2).config(this._titleConfig).render(),this._lastScale=this._getPosition.bind(this),t&&setTimeout(t,this._duration+100),this}},{key:"align",value:function(t){return arguments.length?(this._align=t,this):this._align}},{key:"barConfig",value:function(t){return arguments.length?(this._barConfig=Object.assign(this._barConfig,t),this):this._barConfig}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"domain",value:function(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"grid",value:function(t){return arguments.length?(this._grid=t,this):this._grid}},{key:"gridConfig",value:function(t){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,t),this):this._gridConfig}},{key:"gridLog",value:function(t){return arguments.length?(this._gridLog=t,this):this._gridLog}},{key:"gridSize",value:function(t){return arguments.length?(this._gridSize=t,this):this._gridSize}},{key:"height",value:function(t){return arguments.length?(this._height=t,this):this._height}},{key:"labels",value:function(t){return arguments.length?(this._labels=t,this):this._labels}},{key:"labelOffset",value:function(t){return arguments.length?(this._labelOffset=t,this):this._labelOffset}},{key:"labelRotation",value:function(t){return arguments.length?(this._labelRotation=t,this):this._labelRotation}},{key:"maxSize",value:function(t){return arguments.length?(this._maxSize=t,this):this._maxSize}},{key:"minSize",value:function(t){return arguments.length?(this._minSize=t,this):this._minSize}},{key:"orient",value:function(t){if(arguments.length){var e=["top","bottom"].includes(t);return this._position={horizontal:e,width:e?"width":"height",height:e?"height":"width",x:e?"x":"y",y:e?"y":"x",opposite:{top:"bottom",right:"left",bottom:"top",left:"right"}[t]},this._orient=t,this}return this._orient}},{key:"outerBounds",value:function(){return this._outerBounds}},{key:"padding",value:function(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"paddingInner",value:function(t){return arguments.length?(this._paddingInner=t,this):this._paddingInner}},{key:"paddingOuter",value:function(t){return arguments.length?(this._paddingOuter=t,this):this._paddingOuter}},{key:"range",value:function(t){return arguments.length?(this._range=t,this):this._range}},{key:"scale",value:function(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"scalePadding",value:function(t){return arguments.length?(this._scalePadding=t,this):this._scalePadding}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"shape",value:function(t){return arguments.length?(this._shape=t,this):this._shape}},{key:"shapeConfig",value:function(t){return arguments.length?(this._shapeConfig=Oa(this._shapeConfig,t),this):this._shapeConfig}},{key:"tickFormat",value:function(t){return arguments.length?(this._tickFormat=t,this):this._tickFormat}},{key:"ticks",value:function(t){return arguments.length?(this._ticks=t,this):this._ticks}},{key:"tickSize",value:function(t){return arguments.length?(this._tickSize=t,this):this._tickSize}},{key:"tickSuffix",value:function(t){return arguments.length?(this._tickSuffix=t,this):this._tickSuffix}},{key:"timeLocale",value:function(t){return arguments.length?(this._timeLocale=t,this):this._timeLocale}},{key:"title",value:function(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function(t){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,t),this):this._titleConfig}},{key:"width",value:function(t){return arguments.length?(this._width=t,this):this._width}}],n&&Of(e.prototype,n),i&&Of(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa);function jf(t){return jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(t)}function Ff(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Lf(t,e){return Lf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Lf(t,e)}function If(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Hf(t);if(e){var r=Hf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===jf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Hf(t){return Hf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Hf(t)}var Gf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lf(t,e)}(o,t);var e,n,i,r=If(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this)).orient("bottom"),t}return e=o,n&&Ff(e.prototype,n),i&&Ff(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(zf);function Vf(t){return Vf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(t)}function Uf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Wf(t,e){return Wf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Wf(t,e)}function qf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Kf(t);if(e){var r=Kf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Vf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Kf(t){return Kf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Kf(t)}var Yf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wf(t,e)}(o,t);var e,n,i,r=qf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this)).orient("left"),t}return e=o,n&&Uf(e.prototype,n),i&&Uf(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(zf);function Xf(t){return Xf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xf(t)}function Zf(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function $f(t,e){return $f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},$f(t,e)}function Jf(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=Qf(t);if(e){var r=Qf(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===Xf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function Qf(t){return Qf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Qf(t)}var td=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$f(t,e)}(o,t);var e,n,i,r=Jf(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this)).orient("right"),t}return e=o,n&&Zf(e.prototype,n),i&&Zf(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(zf);function ed(t){return ed="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(t)}function nd(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function id(t,e){return id=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},id(t,e)}function rd(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=od(t);if(e){var r=od(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===ed(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function od(t){return od=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},od(t)}var ad=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&id(t,e)}(o,t);var e,n,i,r=rd(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this)).orient("top"),t}return e=o,n&&nd(e.prototype,n),i&&nd(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(zf),sd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ud(t){var e={exports:{}};return t(e,e.exports),e.exports}function ld(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var cd=ud((function(t,e){t.exports=function t(e,n,i){function r(a,s){if(!n[a]){if(!e[a]){if(!s&&ld)return ld(a);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};e[a][0].call(l.exports,(function(t){var n=e[a][1][t];return r(n||t)}),l,l.exports,t,e,n,i)}return n[a].exports}for(var o=ld,a=0;a<i.length;a++)r(i[a]);return r}({1:[function(t,e,n){(function(t){!function(i){var r="object"==_typeof2(n)&&n&&!n.nodeType&&n,o="object"==_typeof2(e)&&e&&!e.nodeType&&e,a="object"==_typeof2(t)&&t;a.global!==a&&a.window!==a&&a.self!==a||(i=a);var s,u,l=2147483647,c=36,h=1,f=26,d=38,g=700,p=72,v=128,y="-",m=/^xn--/,_=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-h,k=Math.floor,S=String.fromCharCode;function C(t){throw new RangeError(w[t])}function E(t,e){for(var n=t.length,i=[];n--;)i[n]=e(t[n]);return i}function A(t,e){var n=t.split("@"),i="";return n.length>1&&(i=n[0]+"@",t=n[1]),i+E((t=t.replace(b,".")).split("."),e).join(".")}function R(t){for(var e,n,i=[],r=0,o=t.length;r<o;)(e=t.charCodeAt(r++))>=55296&&e<=56319&&r<o?56320==(64512&(n=t.charCodeAt(r++)))?i.push(((1023&e)<<10)+(1023&n)+65536):(i.push(e),r--):i.push(e);return i}function M(t){return E(t,(function(t){var e="";return t>65535&&(e+=S((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=S(t)})).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:c}function T(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function P(t,e,n){var i=0;for(t=n?k(t/g):t>>1,t+=k(t/e);t>x*f>>1;i+=c)t=k(t/x);return k(i+(x+1)*t/(t+d))}function B(t){var e,n,i,r,o,a,s,u,d,g,m=[],_=t.length,b=0,w=v,x=p;for((n=t.lastIndexOf(y))<0&&(n=0),i=0;i<n;++i)t.charCodeAt(i)>=128&&C("not-basic"),m.push(t.charCodeAt(i));for(r=n>0?n+1:0;r<_;){for(o=b,a=1,s=c;r>=_&&C("invalid-input"),((u=O(t.charCodeAt(r++)))>=c||u>k((l-b)/a))&&C("overflow"),b+=u*a,!(u<(d=s<=x?h:s>=x+f?f:s-x));s+=c)a>k(l/(g=c-d))&&C("overflow"),a*=g;x=P(b-o,e=m.length+1,0==o),k(b/e)>l-w&&C("overflow"),w+=k(b/e),b%=e,m.splice(b++,0,w)}return M(m)}function D(t){var e,n,i,r,o,a,s,u,d,g,m,_,b,w,x,E=[];for(_=(t=R(t)).length,e=v,n=0,o=p,a=0;a<_;++a)(m=t[a])<128&&E.push(S(m));for(i=r=E.length,r&&E.push(y);i<_;){for(s=l,a=0;a<_;++a)(m=t[a])>=e&&m<s&&(s=m);for(s-e>k((l-n)/(b=i+1))&&C("overflow"),n+=(s-e)*b,e=s,a=0;a<_;++a)if((m=t[a])<e&&++n>l&&C("overflow"),m==e){for(u=n,d=c;!(u<(g=d<=o?h:d>=o+f?f:d-o));d+=c)x=u-g,w=c-g,E.push(S(T(g+x%w,0))),u=k(x/w);E.push(S(T(u,0))),o=P(n,b,i==r),n=0,++i}++n,++e}return E.join("")}function N(t){return A(t,(function(t){return m.test(t)?B(t.slice(4).toLowerCase()):t}))}function z(t){return A(t,(function(t){return _.test(t)?"xn--"+D(t):t}))}if(s={version:"1.3.2",ucs2:{decode:R,encode:M},decode:B,encode:D,toASCII:z,toUnicode:N},r&&o)if(e.exports==r)o.exports=s;else for(u in s)s.hasOwnProperty(u)&&(r[u]=s[u]);else i.punycode=s}(this)}).call(this,void 0!==sd?sd:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],2:[function(t,e,n){var i=t("./log");function r(t,e,n){!t.defaultView||e===t.defaultView.pageXOffset&&n===t.defaultView.pageYOffset||t.defaultView.scrollTo(e,n)}function o(t,e){try{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 a(t,e){for(var n=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;)!0!==e&&1===i.nodeType&&"SCRIPT"===i.nodeName||n.appendChild(a(i,e)),i=i.nextSibling;return 1===t.nodeType&&(n._scrollTop=t.scrollTop,n._scrollLeft=t.scrollLeft,"CANVAS"===t.nodeName?o(t,n):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(n.value=t.value)),n}function s(t){if(1===t.nodeType){t.scrollTop=t._scrollTop,t.scrollLeft=t._scrollLeft;for(var e=t.firstChild;e;)s(e),e=e.nextSibling}}e.exports=function(t,e,n,i,o,u,l){var c=a(t.documentElement,o.javascriptEnabled),h=e.createElement("iframe");return h.className="html2canvas-container",h.style.visibility="hidden",h.style.position="fixed",h.style.left="-10000px",h.style.top="0px",h.style.border="0",h.width=n,h.height=i,h.scrolling="no",e.body.appendChild(h),new Promise((function(e){var n=h.contentWindow.document;h.contentWindow.onload=h.onload=function(){var t=setInterval((function(){n.body.childNodes.length>0&&(s(n.documentElement),clearInterval(t),"view"===o.type&&(h.contentWindow.scrollTo(u,l),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||h.contentWindow.scrollY===l&&h.contentWindow.scrollX===u||(n.documentElement.style.top=-l+"px",n.documentElement.style.left=-u+"px",n.documentElement.style.position="absolute")),e(h))}),50)},n.open(),n.write("<!DOCTYPE html><html></html>"),r(t,u,l),n.replaceChild(n.adoptNode(c),n.documentElement),n.close()}))}},{"./log":13}],3:[function(t,e,n){function i(t){this.r=0,this.g=0,this.b=0,this.a=null,this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}i.prototype.darken=function(t){var e=1-t;return new i([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])},i.prototype.isTransparent=function(){return 0===this.a},i.prototype.isBlack=function(){return 0===this.r&&0===this.g&&0===this.b},i.prototype.fromArray=function(t){return Array.isArray(t)&&(this.r=Math.min(t[0],255),this.g=Math.min(t[1],255),this.b=Math.min(t[2],255),t.length>3&&(this.a=t[3])),Array.isArray(t)};var r=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(t){var e=null;return null!==(e=t.match(r))&&(this.r=parseInt(e[1][0]+e[1][0],16),this.g=parseInt(e[1][1]+e[1][1],16),this.b=parseInt(e[1][2]+e[1][2],16)),null!==e};var o=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(t){var e=null;return null!==(e=t.match(o))&&(this.r=parseInt(e[1].substring(0,2),16),this.g=parseInt(e[1].substring(2,4),16),this.b=parseInt(e[1].substring(4,6),16)),null!==e};var a=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(t){var e=null;return null!==(e=t.match(a))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3])),null!==e};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;i.prototype.rgba=function(t){var e=null;return null!==(e=t.match(s))&&(this.r=Number(e[1]),this.g=Number(e[2]),this.b=Number(e[3]),this.a=Number(e[4])),null!==e},i.prototype.toString=function(){return null!==this.a&&1!==this.a?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"},i.prototype.namedColor=function(t){t=t.toLowerCase();var e=u[t];if(e)this.r=e[0],this.g=e[1],this.b=e[2];else if("transparent"===t)return this.r=this.g=this.b=this.a=0,!0;return!!e},i.prototype.isColor=!0;var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=i},{}],4:[function(t,e,n){var i=t("./support"),r=t("./renderers/canvas"),o=t("./imageloader"),a=t("./nodeparser"),s=t("./nodecontainer"),u=t("./log"),l=t("./utils"),c=t("./clone"),h=t("./proxy").loadUrlDocument,f=l.getBounds,d="data-html2canvas-node",g=0;function p(t,e){var n=g++;if((e=e||{}).logging&&(u.options.logging=!0,u.options.start=Date.now()),e.async=void 0===e.async||e.async,e.allowTaint=void 0!==e.allowTaint&&e.allowTaint,e.removeContainer=void 0===e.removeContainer||e.removeContainer,e.javascriptEnabled=void 0!==e.javascriptEnabled&&e.javascriptEnabled,e.imageTimeout=void 0===e.imageTimeout?1e4:e.imageTimeout,e.renderer="function"==typeof e.renderer?e.renderer:r,e.strict=!!e.strict,"string"==typeof t){if("string"!=typeof e.proxy)return Promise.reject("Proxy must be used when rendering url");var i=null!=e.width?e.width:window.innerWidth,o=null!=e.height?e.height:window.innerHeight;return h(k(t),e.proxy,document,i,o,e).then((function(t){return m(t.contentWindow.document.documentElement,t,e,i,o)}))}var a=(void 0===t?[document.documentElement]:t.length?t:[t])[0];return a.setAttribute(d+n,n),y(a.ownerDocument,e,a.ownerDocument.defaultView.innerWidth,a.ownerDocument.defaultView.innerHeight,n).then((function(t){return"function"==typeof e.onrendered&&(u("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas"),e.onrendered(t)),t}))}p.CanvasRenderer=r,p.NodeContainer=s,p.log=u,p.utils=l;var v="undefined"==typeof document||"function"!=typeof Object.create||"function"!=typeof document.createElement("canvas").getContext?function(){return Promise.reject("No canvas support")}:p;function y(t,e,n,i,r){return c(t,t,n,i,e,t.defaultView.pageXOffset,t.defaultView.pageYOffset).then((function(o){u("Document cloned");var a=d+r,s="["+a+"='"+r+"']";t.querySelector(s).removeAttribute(a);var l=o.contentWindow,c=l.document.querySelector(s);return("function"==typeof e.onclone?Promise.resolve(e.onclone(l.document)):Promise.resolve(!0)).then((function(){return m(c,o,e,n,i)}))}))}function m(t,e,n,r,s){var l=e.contentWindow,c=new i(l.document),h=new o(n,c),d=f(t),g="view"===n.type?r:w(l.document),p="view"===n.type?s:x(l.document),v=new n.renderer(g,p,h,n,document);return new a(t,v,c,h,n).ready.then((function(){var i;return u("Finished rendering"),i="view"===n.type?b(v.canvas,{width:v.canvas.width,height:v.canvas.height,top:0,left:0,x:0,y:0}):t===l.document.body||t===l.document.documentElement||null!=n.canvas?v.canvas:b(v.canvas,{width:null!=n.width?n.width:d.width,height:null!=n.height?n.height:d.height,top:d.top,left:d.left,x:0,y:0}),_(e,n),i}))}function _(t,e){e.removeContainer&&(t.parentNode.removeChild(t),u("Cleaned up container"))}function b(t,e){var n=document.createElement("canvas"),i=Math.min(t.width-1,Math.max(0,e.left)),r=Math.min(t.width,Math.max(1,e.left+e.width)),o=Math.min(t.height-1,Math.max(0,e.top)),a=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width,n.height=e.height;var s=r-i,l=a-o;return u("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",l),u("Resulting crop with width",e.width,"and height",e.height,"with x",i,"and y",o),n.getContext("2d").drawImage(t,i,o,s,l,e.x,e.y,s,l),n}function w(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function x(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function k(t){var e=document.createElement("a");return e.href=t,e.href=e.href,e}e.exports=v},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){var i=t("./log"),r=t("./utils").smallImage;function o(t){if(this.src=t,i("DummyImageContainer for",t),!this.promise||!this.image){i("Initiating DummyImageContainer"),o.prototype.image=new Image;var e=this.image;o.prototype.promise=new Promise((function(t,n){e.onload=t,e.onerror=n,e.src=r(),!0===e.complete&&t(e)}))}}e.exports=o},{"./log":13,"./utils":26}],6:[function(t,e,n){var i=t("./utils").smallImage;function r(t,e){var n,r,o=document.createElement("div"),a=document.createElement("img"),s=document.createElement("span"),u="Hidden Text";o.style.visibility="hidden",o.style.fontFamily=t,o.style.fontSize=e,o.style.margin=0,o.style.padding=0,document.body.appendChild(o),a.src=i(),a.width=1,a.height=1,a.style.margin=0,a.style.padding=0,a.style.verticalAlign="baseline",s.style.fontFamily=t,s.style.fontSize=e,s.style.margin=0,s.style.padding=0,s.appendChild(document.createTextNode(u)),o.appendChild(s),o.appendChild(a),n=a.offsetTop-s.offsetTop+1,o.removeChild(s),o.appendChild(document.createTextNode(u)),o.style.lineHeight="normal",a.style.verticalAlign="super",r=a.offsetTop-o.offsetTop+1,document.body.removeChild(o),this.baseline=n,this.lineWidth=1,this.middle=r}e.exports=r},{"./utils":26}],7:[function(t,e,n){var i=t("./font");function r(){this.data={}}r.prototype.getMetrics=function(t,e){return void 0===this.data[t+"-"+e]&&(this.data[t+"-"+e]=new i(t,e)),this.data[t+"-"+e]},e.exports=r},{"./font":6}],8:[function(t,e,n){var i=t("./utils").getBounds,r=t("./proxy").loadUrlDocument;function o(e,n,r){this.image=null,this.src=e;var o=this,a=i(e);this.promise=(n?new Promise((function(t){"about:blank"===e.contentWindow.document.URL||null==e.contentWindow.document.documentElement?e.contentWindow.onload=e.onload=function(){t(e)}:t(e)})):this.proxyLoad(r.proxy,a,r)).then((function(e){return t("./core")(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:r.proxy,javascriptEnabled:r.javascriptEnabled,removeContainer:r.removeContainer,allowTaint:r.allowTaint,imageTimeout:r.imageTimeout/2})})).then((function(t){return o.image=t}))}o.prototype.proxyLoad=function(t,e,n){var i=this.src;return r(i.src,t,i.ownerDocument,e.width,e.height,n)},e.exports=o},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function i(t){this.src=t.value,this.colorStops=[],this.type=null,this.x0=.5,this.y0=.5,this.x1=.5,this.y1=.5,this.promise=Promise.resolve(!0)}i.TYPES={LINEAR:1,RADIAL:2},i.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i,e.exports=i},{}],10:[function(t,e,n){function i(t,e){this.src=t,this.image=new Image;var n=this;this.tainted=null,this.promise=new Promise((function(i,r){n.image.onload=i,n.image.onerror=r,e&&(n.image.crossOrigin="anonymous"),n.image.src=t,!0===n.image.complete&&i(n.image)}))}e.exports=i},{}],11:[function(t,e,n){var i=t("./log"),r=t("./imagecontainer"),o=t("./dummyimagecontainer"),a=t("./proxyimagecontainer"),s=t("./framecontainer"),u=t("./svgcontainer"),l=t("./svgnodecontainer"),c=t("./lineargradientcontainer"),h=t("./webkitgradientcontainer"),f=t("./utils").bind;function d(t,e){this.link=null,this.options=t,this.support=e,this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(t){var e=[];return t.reduce((function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t}),[]).forEach(this.addImage(e,this.loadImage),this),e},d.prototype.findBackgroundImage=function(t,e){return e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this),t},d.prototype.addImage=function(t,e){return function(n){n.args.forEach((function(r){this.imageExists(t,r)||(t.splice(0,0,e.call(this,n)),i("Added image #"+t.length,"string"==typeof r?r.substring(0,100):r))}),this)}},d.prototype.hasImageBackground=function(t){return"none"!==t.method},d.prototype.loadImage=function(t){if("url"===t.method){var e=t.args[0];return!this.isSVG(e)||this.support.svg||this.options.allowTaint?e.match(/data:image\/.*;base64,/i)?new r(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),!1):this.isSameOrigin(e)||!0===this.options.allowTaint||this.isSVG(e)?new r(e,!1):this.support.cors&&!this.options.allowTaint&&this.options.useCORS?new r(e,!0):this.options.proxy?new a(e,this.options.proxy):new o(e):new u(e)}return"linear-gradient"===t.method?new c(t):"gradient"===t.method?new h(t):"svg"===t.method?new l(t.args[0],this.support.svg):"IFRAME"===t.method?new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options):new o(t)},d.prototype.isSVG=function(t){return"svg"===t.substring(t.length-3).toLowerCase()||u.prototype.isInline(t)},d.prototype.imageExists=function(t,e){return t.some((function(t){return t.src===e}))},d.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin},d.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));return e.href=t,e.href=e.href,e.protocol+e.hostname+e.port},d.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout).catch((function(){return new o(t.src).promise.then((function(e){t.image=e}))}))},d.prototype.get=function(t){var e=null;return this.images.some((function(n){return(e=n).src===t}))?e:null},d.prototype.fetch=function(t){return this.images=t.reduce(f(this.findBackgroundImage,this),this.findImages(t)),this.images.forEach((function(t,e){t.promise.then((function(){i("Succesfully loaded image #"+(e+1),t)}),(function(n){i("Failed loading image #"+(e+1),t,n)}))})),this.ready=Promise.all(this.images.map(this.getPromise,this)),i("Finished searching images"),this},d.prototype.timeout=function(t,e){var n,r=Promise.race([t.promise,new Promise((function(r,o){n=setTimeout((function(){i("Timed out loading image",t),o(t)}),e)}))]).then((function(t){return clearTimeout(n),t}));return r.catch((function(){clearTimeout(n)})),r},e.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){var i=t("./gradientcontainer"),r=t("./color");function o(t){i.apply(this,arguments),this.type=i.TYPES.LINEAR;var e=o.REGEXP_DIRECTION.test(t.args[0])||!i.REGEXP_COLORSTOP.test(t.args[0]);e?t.args[0].split(/\s+/).reverse().forEach((function(t,e){switch(t){case"left":this.x0=0,this.x1=1;break;case"top":this.y0=0,this.y1=1;break;case"right":this.x0=1,this.x1=0;break;case"bottom":this.y0=1,this.y1=0;break;case"to":var n=this.y0,i=this.x0;this.y0=this.y1,this.x0=this.x1,this.x1=i,this.y1=n;break;case"center":break;default:var r=.01*parseFloat(t,10);if(isNaN(r))break;0===e?(this.y0=r,this.y1=1-this.y0):(this.x0=r,this.x1=1-this.x0)}}),this):(this.y0=0,this.y1=1),this.colorStops=t.args.slice(e?1:0).map((function(t){var e=t.match(i.REGEXP_COLORSTOP),n=+e[2],o=0===n?"%":e[3];return{color:new r(e[1]),stop:"%"===o?n/100:null}})),null===this.colorStops[0].stop&&(this.colorStops[0].stop=0),null===this.colorStops[this.colorStops.length-1].stop&&(this.colorStops[this.colorStops.length-1].stop=1),this.colorStops.forEach((function(t,e){null===t.stop&&this.colorStops.slice(e).some((function(n,i){return null!==n.stop&&(t.stop=(n.stop-this.colorStops[e-1].stop)/(i+1)+this.colorStops[e-1].stop,!0)}),this)}),this)}o.prototype=Object.create(i.prototype),o.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i,e.exports=o},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var i=function t(){t.options.logging&&window.console&&window.console.log&&Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-t.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))};i.options={logging:!1},e.exports=i},{}],14:[function(t,e,n){var i=t("./color"),r=t("./utils"),o=r.getBounds,a=r.parseBackgrounds,s=r.offsetBounds;function u(t,e){this.node=t,this.parent=e,this.stack=null,this.bounds=null,this.borders=null,this.clip=[],this.backgroundClip=[],this.offsetBounds=null,this.visible=null,this.computedStyles=null,this.colors={},this.styles={},this.backgroundImages=null,this.transformData=null,this.transformMatrix=null,this.isPseudoElement=!1,this.opacity=null}function l(t){var e=t.options[t.selectedIndex||0];return e&&e.text||""}function c(t){if(t&&"matrix"===t[1])return t[2].split(",").map((function(t){return parseFloat(t.trim())}));if(t&&"matrix3d"===t[1]){var e=t[2].split(",").map((function(t){return parseFloat(t.trim())}));return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function h(t){return-1!==t.toString().indexOf("%")}function f(t){return t.replace("px","")}function d(t){return parseFloat(t)}u.prototype.cloneTo=function(t){t.visible=this.visible,t.borders=this.borders,t.bounds=this.bounds,t.clip=this.clip,t.backgroundClip=this.backgroundClip,t.computedStyles=this.computedStyles,t.styles=this.styles,t.backgroundImages=this.backgroundImages,t.opacity=this.opacity},u.prototype.getOpacity=function(){return null===this.opacity?this.opacity=this.cssFloat("opacity"):this.opacity},u.prototype.assignStack=function(t){this.stack=t,t.children.push(this)},u.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:"none"!==this.css("display")&&"hidden"!==this.css("visibility")&&!this.node.hasAttribute("data-html2canvas-ignore")&&("INPUT"!==this.node.nodeName||"hidden"!==this.node.getAttribute("type"))},u.prototype.css=function(t){return this.computedStyles||(this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)),this.styles[t]||(this.styles[t]=this.computedStyles[t])},u.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"],n=this.css(t);return void 0===n&&e.some((function(e){return void 0!==(n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1)))}),this),void 0===n?null:n},u.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)},u.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e},u.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new i(this.css(t)))},u.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e},u.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal"}return t},u.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);return t?{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}:null},u.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=a(this.css("backgroundImage")))},u.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");return 1===(n=(n=n[e||0]||n[0]||"auto").trim().split(" ")).length&&(n=[n[0],h(n[0])?"auto":n[0]]),n},u.prototype.parseBackgroundSize=function(t,e,n){var i,r,o=this.cssList("backgroundSize",n);if(h(o[0]))i=t.width*parseFloat(o[0])/100;else{if(/contain|cover/.test(o[0])){var a=t.width/t.height,s=e.width/e.height;return a<s^"contain"===o[0]?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}i=parseInt(o[0],10)}return r="auto"===o[0]&&"auto"===o[1]?e.height:"auto"===o[1]?i/e.width*e.height:h(o[1])?t.height*parseFloat(o[1])/100:parseInt(o[1],10),"auto"===o[0]&&(i=r/e.height*e.width),{width:i,height:r}},u.prototype.parseBackgroundPosition=function(t,e,n,i){var r,o,a=this.cssList("backgroundPosition",n);return r=h(a[0])?(t.width-(i||e).width)*(parseFloat(a[0])/100):parseInt(a[0],10),o="auto"===a[1]?r/e.width*e.height:h(a[1])?(t.height-(i||e).height)*parseFloat(a[1])/100:parseInt(a[1],10),"auto"===a[0]&&(r=o/e.height*e.width),{left:r,top:o}},u.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]},u.prototype.parseTextShadows=function(){var t=this.css("textShadow"),e=[];if(t&&"none"!==t)for(var n=t.match(this.TEXT_SHADOW_PROPERTY),r=0;n&&r<n.length;r++){var o=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new i(o[0]),offsetX:o[1]?parseFloat(o[1].replace("px","")):0,offsetY:o[2]?parseFloat(o[2].replace("px","")):0,blur:o[3]?o[3].replace("px",""):0})}return e},u.prototype.parseTransform=function(){if(!this.transformData)if(this.hasTransform()){var t=this.parseBounds(),e=this.prefixedCss("transformOrigin").split(" ").map(f).map(d);e[0]+=t.left,e[1]+=t.top,this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]};return this.transformData},u.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform"),e=t?c(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e||[1,0,0,1,0,0]}return this.transformMatrix},u.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):o(this.node))},u.prototype.hasTransform=function(){return"1,0,0,1,0,0"!==this.parseTransformMatrix().join(",")||this.parent&&this.parent.hasTransform()},u.prototype.getValue=function(){var t=this.node.value||"";return"SELECT"===this.node.tagName?t=l(this.node):"password"===this.node.type&&(t=Array(t.length+1).join("•")),0===t.length?this.node.placeholder||"":t},u.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/,u.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g,u.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g,u.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/,e.exports=u},{"./color":3,"./utils":26}],15:[function(t,e,n){var i=t("./log"),r=t("punycode"),o=t("./nodecontainer"),a=t("./textcontainer"),s=t("./pseudoelementcontainer"),u=t("./fontmetrics"),l=t("./color"),c=t("./stackingcontext"),h=t("./utils"),f=h.bind,d=h.getBounds,g=h.parseBackgrounds,p=h.offsetBounds;function v(t,e,n,r,a){i("Starting NodeParser"),this.renderer=e,this.options=a,this.range=null,this.support=n,this.renderQueue=[],this.stack=new c(!0,1,t.ownerDocument,null);var s=new o(t,null);if(a.background&&e.rectangle(0,0,e.width,e.height,new l(a.background)),t===t.ownerDocument.documentElement){var h=new o(s.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,h.color("backgroundColor"))}s.visibile=s.isElementVisible(),this.createPseudoHideStyles(t.ownerDocument),this.disableAnimations(t.ownerDocument),this.nodes=X([s].concat(this.getChildren(s)).filter((function(t){return t.visible=t.isElementVisible()})).map(this.getPseudoElements,this)),this.fontMetrics=new u,i("Fetched nodes, total:",this.nodes.length),i("Calculate overflow clips"),this.calculateOverflowClips(),i("Start fetching images"),this.images=r.fetch(this.nodes.filter(H)),this.ready=this.images.ready.then(f((function(){return i("Images loaded, starting parsing"),i("Creating stacking contexts"),this.createStackingContexts(),i("Sorting stacking contexts"),this.sortStackingContexts(this.stack),this.parse(this.stack),i("Render queue created with "+this.renderQueue.length+" items"),new Promise(f((function(t){a.async?"function"==typeof a.async?a.async.call(this,this.renderQueue,t):this.renderQueue.length>0?(this.renderIndex=0,this.asyncRenderer(this.renderQueue,t)):t():(this.renderQueue.forEach(this.paint,this),t())}),this))}),this))}function y(t){return t.parent&&t.parent.clip.length}function m(t){return t.replace(/(\-[a-z])/g,(function(t){return t.toUpperCase().replace("-","")}))}function _(){}v.prototype.calculateOverflowClips=function(){this.nodes.forEach((function(t){if(H(t)){G(t)&&t.appendToDOM(),t.borders=this.parseBorders(t);var e="hidden"===t.css("overflow")?[t.borders.clip]:[],n=t.parseClip();n&&-1!==["absolute","fixed"].indexOf(t.css("position"))&&e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]]),t.clip=y(t)?t.parent.clip.concat(e):e,t.backgroundClip="hidden"!==t.css("overflow")?t.clip.concat([t.borders.clip]):t.clip,G(t)&&t.cleanDOM()}else V(t)&&(t.clip=y(t)?t.parent.clip:[]);G(t)||(t.bounds=null)}),this)},v.prototype.asyncRenderer=function(t,e,n){n=n||Date.now(),this.paint(t[this.renderIndex++]),t.length===this.renderIndex?e():n+20>Date.now()?this.asyncRenderer(t,e,n):setTimeout(f((function(){this.asyncRenderer(t,e)}),this),0)},v.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }.'+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')},v.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")},v.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e,t.body.appendChild(n)},v.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before"),i=this.getPseudoElement(t,":after");n&&e.push(n),i&&e.push(i)}return X(e)},v.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||"none"===n.content||"-moz-alt-content"===n.content||"none"===n.display)return null;for(var i=Z(n.content),r="url"===i.substr(0,3),o=document.createElement(r?"img":"html2canvaspseudoelement"),u=new s(o,t,e),l=n.length-1;l>=0;l--){var c=m(n.item(l));o.style[c]=n[c]}if(o.className=s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+s.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER,r)return o.src=g(i)[0].args[0],[u];var h=document.createTextNode(i);return o.appendChild(h),[u,new a(h,u)]},v.prototype.getChildren=function(t){return X([].filter.call(t.node.childNodes,N).map((function(e){var n=[e.nodeType===Node.TEXT_NODE?new a(e,t):new o(e,t)].filter(Y);return e.nodeType===Node.ELEMENT_NODE&&n.length&&"TEXTAREA"!==e.tagName?n[0].isElementVisible()?n.concat(this.getChildren(n[0])):[]:n}),this))},v.prototype.newStackingContext=function(t,e){var n=new c(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n),(e?n.getParentStack(this):n.parent.stack).contexts.push(n),t.stack=n},v.prototype.createStackingContexts=function(){this.nodes.forEach((function(t){H(t)&&(this.isRootElement(t)||W(t)||z(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())?this.newStackingContext(t,!0):H(t)&&(j(t)&&M(t)||L(t)||F(t))?this.newStackingContext(t,!1):t.assignStack(t.parent.stack)}),this)},v.prototype.isBodyWithTransparentRoot=function(t){return"BODY"===t.node.nodeName&&t.parent.color("backgroundColor").isTransparent()},v.prototype.isRootElement=function(t){return null===t.parent},v.prototype.sortStackingContexts=function(t){t.contexts.sort(U(t.contexts.slice(0))),t.contexts.forEach(this.sortStackingContexts,this)},v.prototype.parseTextBounds=function(t){return function(e,n,i){if("none"!==t.parent.css("textDecoration").substr(0,4)||0!==e.trim().length){if(this.support.rangeBounds&&!t.parent.hasTransform()){var r=i.slice(0,n).join("").length;return this.getRangeBounds(t.node,r,e.length)}if(t.node&&"string"==typeof t.node.data){var o=t.node.splitText(e.length),a=this.getWrapperBounds(t.node,t.parent.hasTransform());return t.node=o,a}}else this.support.rangeBounds&&!t.parent.hasTransform()||(t.node=t.node.splitText(e.length));return{}}},v.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper"),i=t.parentNode,r=t.cloneNode(!0);n.appendChild(t.cloneNode(!0)),i.replaceChild(n,t);var o=e?p(n):d(n);return i.replaceChild(r,n),o},v.prototype.getRangeBounds=function(t,e,n){var i=this.range||(this.range=t.ownerDocument.createRange());return i.setStart(t,e),i.setEnd(t,e+n),i.getBoundingClientRect()},v.prototype.parse=function(t){var e=t.contexts.filter(A),n=t.children.filter(H),i=n.filter(I(F)),r=i.filter(I(j)).filter(I(O)),o=n.filter(I(j)).filter(F),a=i.filter(I(j)).filter(O),s=t.contexts.concat(i.filter(j)).filter(M),u=t.children.filter(V).filter(P),l=t.contexts.filter(R);e.concat(r).concat(o).concat(a).concat(s).concat(u).concat(l).forEach((function(t){this.renderQueue.push(t),T(t)&&(this.parse(t),this.renderQueue.push(new _))}),this)},v.prototype.paint=function(t){try{t instanceof _?this.renderer.ctx.restore():V(t)?(G(t.parent)&&t.parent.appendToDOM(),this.paintText(t),G(t.parent)&&t.parent.cleanDOM()):this.paintNode(t)}catch(t){if(i(t),this.options.strict)throw t}},v.prototype.paintNode=function(t){T(t)&&(this.renderer.setOpacity(t.opacity),this.renderer.ctx.save(),t.hasTransform()&&this.renderer.setTransform(t.parseTransform())),"INPUT"===t.node.nodeName&&"checkbox"===t.node.type?this.paintCheckbox(t):"INPUT"===t.node.nodeName&&"radio"===t.node.type?this.paintRadio(t):this.paintElement(t)},v.prototype.paintElement=function(t){var e=t.parseBounds();this.renderer.clip(t.backgroundClip,(function(){this.renderer.renderBackground(t,e,t.borders.borders.map(K))}),this),this.renderer.clip(t.clip,(function(){this.renderer.renderBorders(t.borders.borders)}),this),this.renderer.clip(t.backgroundClip,(function(){switch(t.node.nodeName){case"svg":case"IFRAME":var n=this.images.get(t.node);n?this.renderer.renderImage(t,e,t.borders,n):i("Error loading <"+t.node.nodeName+">",t.node);break;case"IMG":var r=this.images.get(t.node.src);r?this.renderer.renderImage(t,e,t.borders,r):i("Error loading <img>",t.node.src);break;case"CANVAS":this.renderer.renderImage(t,e,t.borders,{image:t.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(t)}}),this)},v.prototype.paintCheckbox=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height),i={width:n-1,height:n-1,top:e.top,left:e.left},r=[3,3],o=[r,r,r,r],a=[1,1,1,1].map((function(t){return{color:new l("#A5A5A5"),width:t}})),s=k(i,o,a);this.renderer.clip(t.backgroundClip,(function(){this.renderer.rectangle(i.left+1,i.top+1,i.width-2,i.height-2,new l("#DEDEDE")),this.renderer.renderBorders(w(a,i,s,o)),t.node.checked&&(this.renderer.font(new l("#424242"),"normal","normal","bold",n-3+"px","arial"),this.renderer.text("✔",i.left+n/6,i.top+n-1))}),this)},v.prototype.paintRadio=function(t){var e=t.parseBounds(),n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,(function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new l("#DEDEDE"),1,new l("#A5A5A5")),t.node.checked&&this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new l("#424242"))}),this)},v.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument,r=n.createElement("html2canvaswrapper");["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"].forEach((function(e){try{r.style[e]=t.css(e)}catch(t){i("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}}));var o=t.parseBounds();r.style.position="fixed",r.style.left=o.left+"px",r.style.top=o.top+"px",r.textContent=e,n.body.appendChild(r),this.paintText(new a(r.firstChild,t)),n.body.removeChild(r)}},v.prototype.paintText=function(t){t.applyTextTransform();var e=r.ucs2.decode(t.node.data),n=this.options.letterRendering&&!B(t)||Q(t.node.data)?e.map((function(t){return r.ucs2.encode([t])})):$(e),i=t.parent.fontWeight(),o=t.parent.css("fontSize"),a=t.parent.css("fontFamily"),s=t.parent.parseTextShadows();this.renderer.font(t.parent.color("color"),t.parent.css("fontStyle"),t.parent.css("fontVariant"),i,o,a),s.length?this.renderer.fontShadow(s[0].color,s[0].offsetX,s[0].offsetY,s[0].blur):this.renderer.clearShadow(),this.renderer.clip(t.parent.clip,(function(){n.map(this.parseTextBounds(t),this).forEach((function(e,i){e&&(this.renderer.text(n[i],e.left,e.bottom),this.renderTextDecoration(t.parent,e,this.fontMetrics.getMetrics(a,o)))}),this)}),this)},v.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"))}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};function w(t,e,n,i){return t.map((function(r,o){if(r.width>0){var a=e.left,s=e.top,u=e.width,l=e.height-t[2].width;switch(o){case 0:l=t[0].width,r.args=C({c1:[a,s],c2:[a+u,s],c3:[a+u-t[1].width,s+l],c4:[a+t[3].width,s+l]},i[0],i[1],n.topLeftOuter,n.topLeftInner,n.topRightOuter,n.topRightInner);break;case 1:a=e.left+e.width-t[1].width,u=t[1].width,r.args=C({c1:[a+u,s],c2:[a+u,s+l+t[2].width],c3:[a,s+l],c4:[a,s+t[0].width]},i[1],i[2],n.topRightOuter,n.topRightInner,n.bottomRightOuter,n.bottomRightInner);break;case 2:s=s+e.height-t[2].width,l=t[2].width,r.args=C({c1:[a+u,s+l],c2:[a,s+l],c3:[a+t[3].width,s],c4:[a+u-t[3].width,s]},i[2],i[3],n.bottomRightOuter,n.bottomRightInner,n.bottomLeftOuter,n.bottomLeftInner);break;case 3:u=t[3].width,r.args=C({c1:[a,s+l+t[2].width],c2:[a,s],c3:[a+u,s+t[0].width],c4:[a+u,s+l]},i[3],i[0],n.bottomLeftOuter,n.bottomLeftInner,n.topLeftOuter,n.topLeftInner)}}return r}))}function x(t,e,n,i){var r=(Math.sqrt(2)-1)/3*4,o=n*r,a=i*r,s=t+n,u=e+i;return{topLeft:S({x:t,y:u},{x:t,y:u-a},{x:s-o,y:e},{x:s,y:e}),topRight:S({x:t,y:e},{x:t+o,y:e},{x:s,y:u-a},{x:s,y:u}),bottomRight:S({x:s,y:e},{x:s,y:e+a},{x:t+o,y:u},{x:t,y:u}),bottomLeft:S({x:s,y:u},{x:s-o,y:u},{x:t,y:e+a},{x:t,y:e})}}function k(t,e,n){var i=t.left,r=t.top,o=t.width,a=t.height,s=e[0][0]<o/2?e[0][0]:o/2,u=e[0][1]<a/2?e[0][1]:a/2,l=e[1][0]<o/2?e[1][0]:o/2,c=e[1][1]<a/2?e[1][1]:a/2,h=e[2][0]<o/2?e[2][0]:o/2,f=e[2][1]<a/2?e[2][1]:a/2,d=e[3][0]<o/2?e[3][0]:o/2,g=e[3][1]<a/2?e[3][1]:a/2,p=o-l,v=a-f,y=o-h,m=a-g;return{topLeftOuter:x(i,r,s,u).topLeft.subdivide(.5),topLeftInner:x(i+n[3].width,r+n[0].width,Math.max(0,s-n[3].width),Math.max(0,u-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(i+p,r,l,c).topRight.subdivide(.5),topRightInner:x(i+Math.min(p,o+n[3].width),r+n[0].width,p>o+n[3].width?0:l-n[3].width,c-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(i+y,r+v,h,f).bottomRight.subdivide(.5),bottomRightInner:x(i+Math.min(y,o-n[3].width),r+Math.min(v,a+n[0].width),Math.max(0,h-n[1].width),f-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(i,r+m,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(i+n[3].width,r+m,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(t,e,n,i){var r=function(t,e,n){return{x:t.x+(e.x-t.x)*n,y:t.y+(e.y-t.y)*n}};return{start:t,startControl:e,endControl:n,end:i,subdivide:function(o){var a=r(t,e,o),s=r(e,n,o),u=r(n,i,o),l=r(a,s,o),c=r(s,u,o),h=r(l,c,o);return[S(t,a,l,h),S(h,c,u,i)]},curveTo:function(t){t.push(["bezierCurve",e.x,e.y,n.x,n.y,i.x,i.y])},curveToReversed:function(i){i.push(["bezierCurve",n.x,n.y,e.x,e.y,t.x,t.y])}}}function C(t,e,n,i,r,o,a){var s=[];return e[0]>0||e[1]>0?(s.push(["line",i[1].start.x,i[1].start.y]),i[1].curveTo(s)):s.push(["line",t.c1[0],t.c1[1]]),n[0]>0||n[1]>0?(s.push(["line",o[0].start.x,o[0].start.y]),o[0].curveTo(s),s.push(["line",a[0].end.x,a[0].end.y]),a[0].curveToReversed(s)):(s.push(["line",t.c2[0],t.c2[1]]),s.push(["line",t.c3[0],t.c3[1]])),e[0]>0||e[1]>0?(s.push(["line",r[1].end.x,r[1].end.y]),r[1].curveToReversed(s)):s.push(["line",t.c4[0],t.c4[1]]),s}function E(t,e,n,i,r,o,a){e[0]>0||e[1]>0?(t.push(["line",i[0].start.x,i[0].start.y]),i[0].curveTo(t),i[1].curveTo(t)):t.push(["line",o,a]),(n[0]>0||n[1]>0)&&t.push(["line",r[0].start.x,r[0].start.y])}function A(t){return t.cssInt("zIndex")<0}function R(t){return t.cssInt("zIndex")>0}function M(t){return 0===t.cssInt("zIndex")}function O(t){return-1!==["inline","inline-block","inline-table"].indexOf(t.css("display"))}function T(t){return t instanceof c}function P(t){return t.node.data.trim().length>0}function B(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function D(t){return["TopLeft","TopRight","BottomRight","BottomLeft"].map((function(e){var n=t.css("border"+e+"Radius").split(" ");return n.length<=1&&(n[1]=n[0]),n.map(q)}))}function N(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function z(t){var e=t.css("position");return"auto"!==(-1!==["absolute","relative","fixed"].indexOf(e)?t.css("zIndex"):"auto")}function j(t){return"static"!==t.css("position")}function F(t){return"none"!==t.css("float")}function L(t){return-1!==["inline-block","inline-table"].indexOf(t.css("display"))}function I(t){var e=this;return function(){return!t.apply(e,arguments)}}function H(t){return t.node.nodeType===Node.ELEMENT_NODE}function G(t){return!0===t.isPseudoElement}function V(t){return t.node.nodeType===Node.TEXT_NODE}function U(t){return function(e,n){return e.cssInt("zIndex")+t.indexOf(e)/t.length-(n.cssInt("zIndex")+t.indexOf(n)/t.length)}}function W(t){return t.getOpacity()<1}function q(t){return parseInt(t,10)}function K(t){return t.width}function Y(t){return t.node.nodeType!==Node.ELEMENT_NODE||-1===["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)}function X(t){return[].concat.apply([],t)}function Z(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function $(t){for(var e,n=[],i=0,o=!1;t.length;)J(t[i])===o?((e=t.splice(0,i)).length&&n.push(r.ucs2.encode(e)),o=!o,i=0):i++,i>=t.length&&(e=t.splice(0,i)).length&&n.push(r.ucs2.encode(e));return n}function J(t){return-1!==[32,13,10,9,45].indexOf(t)}function Q(t){return/[^\u0000-\u00ff]/.test(t)}v.prototype.parseBorders=function(t){var e=t.parseBounds(),n=D(t),i=["Top","Right","Bottom","Left"].map((function(e,n){var i=t.css("border"+e+"Style"),r=t.color("border"+e+"Color");"inset"===i&&r.isBlack()&&(r=new l([255,255,255,r.a]));var o=b[i]?b[i][n]:null;return{width:t.cssInt("border"+e+"Width"),color:o?r[o[0]](o[1]):r,args:null}})),r=k(e,n,i);return{clip:this.parseBackgroundClip(t,r,i,n,e),borders:w(i,e,r,n)}},v.prototype.parseBackgroundClip=function(t,e,n,i,r){var o=[];switch(t.css("backgroundClip")){case"content-box":case"padding-box":E(o,i[0],i[1],e.topLeftInner,e.topRightInner,r.left+n[3].width,r.top+n[0].width),E(o,i[1],i[2],e.topRightInner,e.bottomRightInner,r.left+r.width-n[1].width,r.top+n[0].width),E(o,i[2],i[3],e.bottomRightInner,e.bottomLeftInner,r.left+r.width-n[1].width,r.top+r.height-n[2].width),E(o,i[3],i[0],e.bottomLeftInner,e.topLeftInner,r.left+n[3].width,r.top+r.height-n[2].width);break;default:E(o,i[0],i[1],e.topLeftOuter,e.topRightOuter,r.left,r.top),E(o,i[1],i[2],e.topRightOuter,e.bottomRightOuter,r.left+r.width,r.top),E(o,i[2],i[3],e.bottomRightOuter,e.bottomLeftOuter,r.left+r.width,r.top+r.height),E(o,i[3],i[0],e.bottomLeftOuter,e.topLeftOuter,r.left,r.top+r.height)}return o},e.exports=v},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,n){var i=t("./xhr"),r=t("./utils"),o=t("./log"),a=t("./clone"),s=r.decode64;function u(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e)return Promise.reject("No proxy configured");var o=f(r),a=d(e,t,o);return r?i(a):h(n,a,o).then((function(t){return s(t.content)}))}var l=0;function c(t,e,n){var i="crossOrigin"in new Image,r=f(i),o=d(e,t,r);return i?Promise.resolve(o):h(n,o,r).then((function(t){return"data:"+t.type+";base64,"+t.content}))}function h(t,e,n){return new Promise((function(i,r){var o=t.createElement("script"),a=function(){delete window.html2canvas.proxy[n],t.body.removeChild(o)};window.html2canvas.proxy[n]=function(t){a(),i(t)},o.src=e,o.onerror=function(t){a(),r(t)},t.body.appendChild(o)}))}function f(t){return t?"":"html2canvas_"+Date.now()+"_"+ ++l+"_"+Math.round(1e5*Math.random())}function d(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(t){return function(e){var n,i=new DOMParser;try{n=i.parseFromString(e,"text/html")}catch(t){o("DOMParser not supported, falling back to createHTMLDocument"),n=document.implementation.createHTMLDocument("");try{n.open(),n.write(e),n.close()}catch(t){o("createHTMLDocument write not supported, falling back to document.body.innerHTML"),n.body.innerHTML=e}}var r=n.querySelector("base");if(!r||!r.href.host){var a=n.createElement("base");a.href=t,n.head.insertBefore(a,n.head.firstChild)}return n}}function p(t,e,n,i,r,o){return new u(t,e,window.document).then(g(t)).then((function(t){return a(t,n,i,r,o,0,0)}))}n.Proxy=u,n.ProxyURL=c,n.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){var i=t("./proxy").ProxyURL;function r(t,e){var n=document.createElement("a");n.href=t,t=n.href,this.src=t,this.image=new Image;var r=this;this.promise=new Promise((function(n,o){r.image.crossOrigin="Anonymous",r.image.onload=n,r.image.onerror=o,new i(t,e,document).then((function(t){r.image.src=t})).catch(o)}))}e.exports=r},{"./proxy":16}],18:[function(t,e,n){var i=t("./nodecontainer");function r(t,e,n){i.call(this,t,e),this.isPseudoElement=!0,this.before=":before"===n}r.prototype.cloneTo=function(t){r.prototype.cloneTo.call(this,t),t.isPseudoElement=!0,t.before=this.before},r.prototype=Object.create(i.prototype),r.prototype.appendToDOM=function(){this.before?this.parent.node.insertBefore(this.node,this.parent.node.firstChild):this.parent.node.appendChild(this.node),this.parent.node.className+=" "+this.getHideClass()},r.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node),this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")},r.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]},r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",r.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",e.exports=r},{"./nodecontainer":14}],19:[function(t,e,n){var i=t("./log");function r(t,e,n,i,r){this.width=t,this.height=e,this.images=n,this.options=i,this.document=r}r.prototype.renderImage=function(t,e,n,i){var r=t.cssInt("paddingLeft"),o=t.cssInt("paddingTop"),a=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),u=n.borders,l=e.width-(u[1].width+u[3].width+r+a),c=e.height-(u[0].width+u[2].width+o+s);this.drawImage(i,0,0,i.image.width||l,i.image.height||c,e.left+r+u[3].width,e.top+o+u[0].width,l,c)},r.prototype.renderBackground=function(t,e,n){e.height>0&&e.width>0&&(this.renderBackgroundColor(t,e),this.renderBackgroundImage(t,e,n))},r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");n.isTransparent()||this.rectangle(e.left,e.top,e.width,e.height,n)},r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)},r.prototype.renderBorder=function(t){t.color.isTransparent()||null===t.args||this.drawShape(t.args,t.color)},r.prototype.renderBackgroundImage=function(t,e,n){t.parseBackgroundImages().reverse().forEach((function(r,o,a){switch(r.method){case"url":var s=this.images.get(r.args[0]);s?this.renderBackgroundRepeating(t,e,s,a.length-(o+1),n):i("Error loading background-image",r.args[0]);break;case"linear-gradient":case"gradient":var u=this.images.get(r.value);u?this.renderBackgroundGradient(u,e,n):i("Error loading background-image",r.args[0]);break;case"none":break;default:i("Unknown background-image type",r.args[0])}}),this)},r.prototype.renderBackgroundRepeating=function(t,e,n,i,r){var o=t.parseBackgroundSize(e,n.image,i),a=t.parseBackgroundPosition(e,n.image,i,o);switch(t.parseBackgroundRepeat(i)){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,a,o,e,e.left+r[3],e.top+a.top+r[0],99999,o.height,r);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,a,o,e,e.left+a.left+r[3],e.top+r[0],o.width,99999,r);break;case"no-repeat":this.backgroundRepeatShape(n,a,o,e,e.left+a.left+r[3],e.top+a.top+r[0],o.width,o.height,r);break;default:this.renderBackgroundRepeat(n,a,o,{top:e.top,left:e.left},r[3],r[0])}},e.exports=r},{"./log":13}],20:[function(t,e,n){var i=t("../renderer"),r=t("../lineargradientcontainer"),o=t("../log");function a(t,e){i.apply(this,arguments),this.canvas=this.options.canvas||this.document.createElement("canvas"),this.options.canvas||(this.canvas.width=t,this.canvas.height=e),this.ctx=this.canvas.getContext("2d"),this.taintCtx=this.document.createElement("canvas").getContext("2d"),this.ctx.textBaseline="bottom",this.variables={},o("Initialized CanvasRenderer with size",t,"x",e)}function s(t){return t.length>0}a.prototype=Object.create(i.prototype),a.prototype.setFillStyle=function(t){return this.ctx.fillStyle="object"===_typeof2(t)&&t.isColor?t.toString():t,this.ctx},a.prototype.rectangle=function(t,e,n,i,r){this.setFillStyle(r).fillRect(t,e,n,i)},a.prototype.circle=function(t,e,n,i){this.setFillStyle(i),this.ctx.beginPath(),this.ctx.arc(t+n/2,e+n/2,n/2,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill()},a.prototype.circleStroke=function(t,e,n,i,r,o){this.circle(t,e,n,i),this.ctx.strokeStyle=o.toString(),this.ctx.stroke()},a.prototype.drawShape=function(t,e){this.shape(t),this.setFillStyle(e).fill()},a.prototype.taints=function(t){if(null===t.tainted){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1),t.tainted=!1}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d"),t.tainted=!0}}return t.tainted},a.prototype.drawImage=function(t,e,n,i,r,o,a,s,u){this.taints(t)&&!this.options.allowTaint||this.ctx.drawImage(t.image,e,n,i,r,o,a,s,u)},a.prototype.clip=function(t,e,n){this.ctx.save(),t.filter(s).forEach((function(t){this.shape(t).clip()}),this),e.call(n),this.ctx.restore()},a.prototype.shape=function(t){return this.ctx.beginPath(),t.forEach((function(t,e){"rect"===t[0]?this.ctx.rect.apply(this.ctx,t.slice(1)):this.ctx[0===e?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}),this),this.ctx.closePath(),this.ctx},a.prototype.font=function(t,e,n,i,r,o){this.setFillStyle(t).font=[e,n,i,r,o].join(" ").split(",")[0]},a.prototype.fontShadow=function(t,e,n,i){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",i)},a.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")},a.prototype.setOpacity=function(t){this.ctx.globalAlpha=t},a.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]),this.ctx.transform.apply(this.ctx,t.matrix),this.ctx.translate(-t.origin[0],-t.origin[1])},a.prototype.setVariable=function(t,e){return this.variables[t]!==e&&(this.variables[t]=this.ctx[t]=e),this},a.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)},a.prototype.backgroundRepeatShape=function(t,e,n,i,r,o,a,s,u){var l=[["line",Math.round(r),Math.round(o)],["line",Math.round(r+a),Math.round(o)],["line",Math.round(r+a),Math.round(s+o)],["line",Math.round(r),Math.round(s+o)]];this.clip([l],(function(){this.renderBackgroundRepeat(t,e,n,i,u[3],u[0])}),this)},a.prototype.renderBackgroundRepeat=function(t,e,n,i,r,o){var a=Math.round(i.left+e.left+r),s=Math.round(i.top+e.top+o);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat")),this.ctx.translate(a,s),this.ctx.fill(),this.ctx.translate(-a,-s)},a.prototype.renderBackgroundGradient=function(t,e){if(t instanceof r){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach((function(t){n.addColorStop(t.stop,t.color.toString())})),this.rectangle(e.left,e.top,e.width,e.height,n)}},a.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height)return n;var i=document.createElement("canvas");return i.width=e.width,i.height=e.height,i.getContext("2d").drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height),i},e.exports=a},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){var i=t("./nodecontainer");function r(t,e,n,r){i.call(this,n,r),this.ownStacking=t,this.contexts=[],this.children=[],this.opacity=(this.parent?this.parent.stack.opacity:1)*e}r.prototype=Object.create(i.prototype),r.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack},e.exports=r},{"./nodecontainer":14}],22:[function(t,e,n){function i(t){this.rangeBounds=this.testRangeBounds(t),this.cors=this.testCORS(),this.svg=this.testSVG()}i.prototype.testRangeBounds=function(t){var e,n,i=!1;return t.createRange&&(e=t.createRange()).getBoundingClientRect&&((n=t.createElement("boundtest")).style.height="123px",n.style.display="block",t.body.appendChild(n),e.selectNode(n),123===e.getBoundingClientRect().height&&(i=!0),t.body.removeChild(n)),i},i.prototype.testCORS=function(){return void 0!==(new Image).crossOrigin},i.prototype.testSVG=function(){var t=new Image,e=document.createElement("canvas"),n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0),e.toDataURL()}catch(t){return!1}return!0},e.exports=i},{}],23:[function(t,e,n){var i=t("./xhr"),r=t("./utils").decode64;function o(t){this.src=t,this.image=null;var e=this;this.promise=this.hasFabric().then((function(){return e.isInline(t)?Promise.resolve(e.inlineFormatting(t)):i(t)})).then((function(t){return new Promise((function(n){window.html2canvas.svg.fabric.loadSVGFromString(t,e.createCanvas.call(e,n))}))}))}o.prototype.hasFabric=function(){return window.html2canvas.svg&&window.html2canvas.svg.fabric?Promise.resolve():Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg"))},o.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)},o.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")},o.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)},o.prototype.createCanvas=function(t){var e=this;return function(n,i){var r=new window.html2canvas.svg.fabric.StaticCanvas("c");e.image=r.lowerCanvasEl,r.setWidth(i.width).setHeight(i.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(n,i)).renderAll(),t(r.lowerCanvasEl)}},o.prototype.decode64=function(t){return"function"==typeof window.atob?window.atob(t):r(t)},e.exports=o},{"./utils":26,"./xhr":28}],24:[function(t,e,n){var i=t("./svgcontainer");function r(t,e){this.src=t,this.image=null;var n=this;this.promise=e?new Promise((function(e,i){n.image=new Image,n.image.onload=e,n.image.onerror=i,n.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(t),!0===n.image.complete&&e(n.image)})):this.hasFabric().then((function(){return new Promise((function(e){window.html2canvas.svg.fabric.parseSVGDocument(t,n.createCanvas.call(n,e))}))}))}r.prototype=Object.create(i.prototype),e.exports=r},{"./svgcontainer":23}],25:[function(t,e,n){var i=t("./nodecontainer");function r(t,e){i.call(this,t,e)}function o(t,e,n){if(t.length>0)return e+n.toUpperCase()}r.prototype=Object.create(i.prototype),r.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))},r.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,o);case"uppercase":return e.toUpperCase();default:return e}},e.exports=r},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},n.bind=function(t,e){return function(){return t.apply(e,arguments)}},n.decode64=function(t){var e,n,i,r,o,a,s,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=t.length,c="";for(e=0;e<l;e+=4)o=u.indexOf(t[e])<<2|(n=u.indexOf(t[e+1]))>>4,a=(15&n)<<4|(i=u.indexOf(t[e+2]))>>2,s=(3&i)<<6|(r=u.indexOf(t[e+3])),c+=64===i?String.fromCharCode(o):64===r||-1===r?String.fromCharCode(o,a):String.fromCharCode(o,a,s);return c},n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect(),n=null==t.offsetWidth?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:null==t.offsetHeight?e.height:t.offsetHeight}}return{}},n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}},n.parseBackgrounds=function(t){var e,n,i,r,o,a,s,u=" \r\n\t",l=[],c=0,h=0,f=function(){e&&('"'===n.substr(0,1)&&(n=n.substr(1,n.length-2)),n&&s.push(n),"-"===e.substr(0,1)&&(r=e.indexOf("-",1)+1)>0&&(i=e.substr(0,r),e=e.substr(r)),l.push({prefix:i,method:e.toLowerCase(),value:o,args:s,image:null})),s=[],e=i=n=o=""};return s=[],e=i=n=o="",t.split("").forEach((function(t){if(!(0===c&&u.indexOf(t)>-1)){switch(t){case'"':a?a===t&&(a=null):a=t;break;case"(":if(a)break;if(0===c)return c=1,void(o+=t);h++;break;case")":if(a)break;if(1===c){if(0===h)return c=0,o+=t,void f();h--}break;case",":if(a)break;if(0===c)return void f();if(1===c&&0===h&&!e.match(/^url$/i))return s.push(n),n="",void(o+=t)}o+=t,0===c?e+=t:n+=t}})),f(),l}},{}],27:[function(t,e,n){var i=t("./gradientcontainer");function r(t){i.apply(this,arguments),this.type="linear"===t.args[0]?i.TYPES.LINEAR:i.TYPES.RADIAL}r.prototype=Object.create(i.prototype),e.exports=r},{"./gradientcontainer":9}],28:[function(t,e,n){function i(t){return new Promise((function(e,n){var i=new XMLHttpRequest;i.open("GET",t),i.onload=function(){200===i.status?e(i.responseText):n(new Error(i.statusText))},i.onerror=function(){n(new Error("Network Error"))},i.send()}))}e.exports=i},{}]},{},[4])(4)})),hd=function(t){this.ok=!1,this.alpha=1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=(t=t.replace(/ /g,"")).toLowerCase();var e={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=e[t]||t;for(var n=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(t){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(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(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(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],i=0;i<n.length;i++){var r=n[i].re,o=n[i].process,a=r.exec(t);if(a){var s=o(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),n=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==n.length&&(n="0"+n),"#"+t+e+n},this.getHelpXML=function(){for(var t=new Array,i=0;i<n.length;i++)for(var r=n[i].example,o=0;o<r.length;o++)t[t.length]=r[o];for(var a in e)t[t.length]=a;var s=document.createElement("ul");s.setAttribute("id","rgbcolor-examples");for(i=0;i<t.length;i++)try{var u=document.createElement("li"),l=new RGBColor(t[i]),c=document.createElement("div");c.style.cssText="margin: 3px; border: 1px solid black; background:"+l.toHex()+"; color:"+l.toHex(),c.appendChild(document.createTextNode("test"));var h=document.createTextNode(" "+t[i]+" -> "+l.toRGB()+" -> "+l.toHex());u.appendChild(c),u.appendChild(h),s.appendChild(u)}catch(t){}return s}},fd=[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],dd=[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 gd(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}var pd=function(t,e,n,i){if(!(isNaN(i)||i<1)){var r,o,a,s,u,l,c,h,f,d,g,p,v,y,m,_,b,w,x,k,S,C,E,A,R=(i|=0)+i+1,M=e-1,O=n-1,T=i+1,P=T*(T+1)/2,B=new gd,D=B;for(a=1;a<R;a++)if(D=D.next=new gd,a==T)var N=D;D.next=B;var z=null,j=null;c=l=0;var F=fd[i],L=dd[i];for(o=0;o<n;o++){for(_=b=w=x=h=f=d=g=0,p=T*(k=t[l]),v=T*(S=t[l+1]),y=T*(C=t[l+2]),m=T*(E=t[l+3]),h+=P*k,f+=P*S,d+=P*C,g+=P*E,D=B,a=0;a<T;a++)D.r=k,D.g=S,D.b=C,D.a=E,D=D.next;for(a=1;a<T;a++)s=l+((M<a?M:a)<<2),h+=(D.r=k=t[s])*(A=T-a),f+=(D.g=S=t[s+1])*A,d+=(D.b=C=t[s+2])*A,g+=(D.a=E=t[s+3])*A,_+=k,b+=S,w+=C,x+=E,D=D.next;for(z=B,j=N,r=0;r<e;r++)t[l+3]=E=g*F>>L,0!=E?(E=255/E,t[l]=(h*F>>L)*E,t[l+1]=(f*F>>L)*E,t[l+2]=(d*F>>L)*E):t[l]=t[l+1]=t[l+2]=0,h-=p,f-=v,d-=y,g-=m,p-=z.r,v-=z.g,y-=z.b,m-=z.a,s=c+((s=r+i+1)<M?s:M)<<2,h+=_+=z.r=t[s],f+=b+=z.g=t[s+1],d+=w+=z.b=t[s+2],g+=x+=z.a=t[s+3],z=z.next,p+=k=j.r,v+=S=j.g,y+=C=j.b,m+=E=j.a,_-=k,b-=S,w-=C,x-=E,j=j.next,l+=4;c+=e}for(r=0;r<e;r++){for(b=w=x=_=f=d=g=h=0,p=T*(k=t[l=r<<2]),v=T*(S=t[l+1]),y=T*(C=t[l+2]),m=T*(E=t[l+3]),h+=P*k,f+=P*S,d+=P*C,g+=P*E,D=B,a=0;a<T;a++)D.r=k,D.g=S,D.b=C,D.a=E,D=D.next;for(u=e,a=1;a<=i;a++)l=u+r<<2,h+=(D.r=k=t[l])*(A=T-a),f+=(D.g=S=t[l+1])*A,d+=(D.b=C=t[l+2])*A,g+=(D.a=E=t[l+3])*A,_+=k,b+=S,w+=C,x+=E,D=D.next,a<O&&(u+=e);for(l=r,z=B,j=N,o=0;o<n;o++)t[(s=l<<2)+3]=E=g*F>>L,E>0?(E=255/E,t[s]=(h*F>>L)*E,t[s+1]=(f*F>>L)*E,t[s+2]=(d*F>>L)*E):t[s]=t[s+1]=t[s+2]=0,h-=p,f-=v,d-=y,g-=m,p-=z.r,v-=z.g,y-=z.b,m-=z.a,s=r+((s=o+T)<O?s:O)*e<<2,h+=_+=z.r=t[s],f+=b+=z.g=t[s+1],d+=w+=z.b=t[s+2],g+=x+=z.a=t[s+3],z=z.next,p+=k=j.r,v+=S=j.g,y+=C=j.b,m+=E=j.a,_-=k,b-=S,w-=C,x-=E,j=j.next,l+=e}}},vd=/[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]/,yd=new RegExp("[\\-\\.0-9"+vd.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),md=new RegExp("^"+vd.source+yd.source+"*(?::"+vd.source+yd.source+"*)?$"),_d=0,bd=1,wd=2,xd=3,kd=4,Sd=5,Cd=6,Ed=7;function Ad(){}function Rd(t,e){return e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber,e}function Md(t,e,n,i,r,o){for(var a,s=++e,u=_d;;){var l=t.charAt(s);switch(l){case"=":if(u===bd)a=t.slice(e,s),u=xd;else{if(u!==wd)throw new Error("attribute equal must after attrName");u=xd}break;case"'":case'"':if(u===xd||u===bd){if(u===bd&&(o.warning('attribute value must after "="'),a=t.slice(e,s)),e=s+1,!((s=t.indexOf(l,e))>0))throw new Error("attribute value no end '"+l+"' match");c=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(a,c,e-1),u=Sd}else{if(u!=kd)throw new Error('attribute value must after "="');c=t.slice(e,s).replace(/&#?\w+;/g,r),n.add(a,c,e),o.warning('attribute "'+a+'" missed start quot('+l+")!!"),e=s+1,u=Sd}break;case"/":switch(u){case _d:n.setTagName(t.slice(e,s));case Sd:case Cd:case Ed:u=Ed,n.closed=!0;case kd:case bd:case wd:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),u==_d&&n.setTagName(t.slice(e,s)),s;case">":switch(u){case _d:n.setTagName(t.slice(e,s));case Sd:case Cd:case Ed:break;case kd:case bd:"/"===(c=t.slice(e,s)).slice(-1)&&(n.closed=!0,c=c.slice(0,-1));case wd:u===wd&&(c=a),u==kd?(o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c.replace(/&#?\w+;/g,r),e)):("http://www.w3.org/1999/xhtml"===i[""]&&c.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+c+'" missed value!! "'+c+'" instead!!'),n.add(c,c,e));break;case xd:throw new Error("attribute value missed!!")}return s;case"€":l=" ";default:if(l<=" ")switch(u){case _d:n.setTagName(t.slice(e,s)),u=Cd;break;case bd:a=t.slice(e,s),u=wd;break;case kd:var c=t.slice(e,s).replace(/&#?\w+;/g,r);o.warning('attribute "'+c+'" missed quot(")!!'),n.add(a,c,e);case Sd:u=Cd}else switch(u){case wd:n.tagName,"http://www.w3.org/1999/xhtml"===i[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,e),e=s,u=bd;break;case Sd:o.warning('attribute space is required"'+a+'"!!');case Cd:u=bd,e=s;break;case xd:u=kd,e=s;break;case Ed:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function Od(t,e,n){for(var i=t.tagName,r=null,o=t.length;o--;){var a=t[o],s=a.qName,u=a.value;if((f=s.indexOf(":"))>0)var l=a.prefix=s.slice(0,f),c=s.slice(f+1),h="xmlns"===l&&c;else c=s,l=null,h="xmlns"===s&&"";a.localName=c,!1!==h&&(null==r&&(r={},Bd(n,n={})),n[h]=r[h]=u,a.uri="http://www.w3.org/2000/xmlns/",e.startPrefixMapping(h,u))}for(o=t.length;o--;){(l=(a=t[o]).prefix)&&("xml"===l&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==l&&(a.uri=n[l||""]))}var f;(f=i.indexOf(":"))>0?(l=t.prefix=i.slice(0,f),c=t.localName=i.slice(f+1)):(l=null,c=t.localName=i);var d=t.uri=n[l||""];if(e.startElement(d,c,i,t),!t.closed)return t.currentNSMap=n,t.localNSMap=r,!0;if(e.endElement(d,c,i),r)for(l in r)e.endPrefixMapping(l)}function Td(t,e,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var o=t.indexOf("</"+n+">",e),a=t.substring(e+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,i),r.characters(a,0,a.length),o)}return e+1}function Pd(t,e,n,i){var r=i[n];return null==r&&((r=t.lastIndexOf("</"+n+">"))<e&&(r=t.lastIndexOf("</"+n)),i[n]=r),r<e}function Bd(t,e){for(var n in t)e[n]=t[n]}function Dd(t,e,n,i){if("-"===t.charAt(e+2))return"-"===t.charAt(e+3)?(r=t.indexOf("--\x3e",e+4))>e?(n.comment(t,e+4,r-e-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==t.substr(e+3,6)){var r=t.indexOf("]]>",e+9);return n.startCDATA(),n.characters(t,e+9,r-e-9),n.endCDATA(),r+3}var o=function(t,e){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=e,r.exec(t);for(;n=r.exec(t);)if(i.push(n),n[1])return i}(t,e),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],u=a>3&&/^public$/i.test(o[2][0])&&o[3][0],l=a>4&&o[4][0],c=o[a-1];return n.startDTD(s,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),l&&l.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),c.index+c[0].length}return-1}function Nd(t,e,n){var i=t.indexOf("?>",e);if(i){var r=t.substring(e,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function zd(t){}function jd(t,e){return t.__proto__=e,t}Ad.prototype={parse:function(t,e,n){var i=this.domBuilder;i.startDocument(),Bd(e,e={}),function(t,e,n,i,r){function o(t){if(t>65535){var e=55296+((t-=65536)>>10),n=56320+(1023&t);return String.fromCharCode(e,n)}return String.fromCharCode(t)}function a(t){var e=t.slice(1,-1);return e in n?n[e]:"#"===e.charAt(0)?o(parseInt(e.substr(1).replace("x","0x"))):(r.error("entity not found:"+t),t)}function s(e){if(e>p){var n=t.substring(p,e).replace(/&#?\w+;/g,a);f&&u(p),i.characters(n,0,e-p),p=e}}function u(e,n){for(;e>=c&&(n=h.exec(t));)l=n.index,c=l+n[0].length,f.lineNumber++;f.columnNumber=e-l+1}var l=0,c=0,h=/.*(?:\r\n?|\n)|.*$/g,f=i.locator,d=[{currentNSMap:e}],g={},p=0;for(;;){try{var v=t.indexOf("<",p);if(v<0){if(!t.substr(p).match(/^\s*$/)){var y=i.doc,m=y.createTextNode(t.substr(p));y.appendChild(m),i.currentElement=m}return}switch(v>p&&s(v),t.charAt(v+1)){case"/":var _=t.indexOf(">",v+3),b=t.substring(v+2,_),w=d.pop();_<0?(b=t.substring(v+2).replace(/[\s<].*/,""),r.error("end tag name: "+b+" is not complete:"+w.tagName),_=v+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),r.error("end tag name: "+b+" maybe not complete"),_=v+1+b.length);var x=w.localNSMap,k=w.tagName==b;if(k||w.tagName&&w.tagName.toLowerCase()==b.toLowerCase()){if(i.endElement(w.uri,w.localName,b),x)for(var S in x)i.endPrefixMapping(S);k||r.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}else d.push(w);_++;break;case"?":f&&u(v),_=Nd(t,v,i);break;case"!":f&&u(v),_=Dd(t,v,i,r);break;default:f&&u(v);var C=new zd,E=d[d.length-1].currentNSMap,A=(_=Md(t,v,C,E,a,r),C.length);if(!C.closed&&Pd(t,_,C.tagName,g)&&(C.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),f&&A){for(var R=Rd(f,{}),M=0;M<A;M++){var O=C[M];u(O.offset),O.locator=Rd(f,{})}i.locator=R,Od(C,i,E)&&d.push(C),i.locator=f}else Od(C,i,E)&&d.push(C);"http://www.w3.org/1999/xhtml"!==C.uri||C.closed?_++:_=Td(t,_,C.tagName,a,i)}}catch(t){r.error("element parse error: "+t),_=-1}_>p?p=_:s(Math.max(v,p)+1)}}(t,e,n,i,this.errorHandler),i.endDocument()}},zd.prototype={setTagName:function(t){if(!md.test(t))throw new Error("invalid tagName:"+t);this.tagName=t},add:function(t,e,n){if(!md.test(t))throw new Error("invalid attribute:"+t);this[this.length++]={qName:t,value:e,offset:n}},length:0,getLocalName:function(t){return this[t].localName},getLocator:function(t){return this[t].locator},getQName:function(t){return this[t].qName},getURI:function(t){return this[t].uri},getValue:function(t){return this[t].value}},jd({},jd.prototype)instanceof jd||(jd=function(t,e){function n(){}for(e in n.prototype=e,n=new n,t)n[e]=t[e];return n});var Fd={XMLReader:Ad};function Ld(t,e){for(var n in t)e[n]=t[n]}function Id(t,e){var n=t.prototype;if(Object.create){var i=Object.create(e.prototype);n.__proto__=i}if(!(n instanceof e)){var r=function(){};r.prototype=e.prototype,Ld(n,r=new r),t.prototype=n=r}n.constructor!=t&&("function"!=typeof t&&console.error("unknow Class:"+t),n.constructor=t)}var Hd="http://www.w3.org/1999/xhtml",Gd={},Vd=Gd.ELEMENT_NODE=1,Ud=Gd.ATTRIBUTE_NODE=2,Wd=Gd.TEXT_NODE=3,qd=Gd.CDATA_SECTION_NODE=4,Kd=Gd.ENTITY_REFERENCE_NODE=5,Yd=Gd.ENTITY_NODE=6,Xd=Gd.PROCESSING_INSTRUCTION_NODE=7,Zd=Gd.COMMENT_NODE=8,$d=Gd.DOCUMENT_NODE=9,Jd=Gd.DOCUMENT_TYPE_NODE=10,Qd=Gd.DOCUMENT_FRAGMENT_NODE=11,tg=Gd.NOTATION_NODE=12,eg={},ng={};eg.INDEX_SIZE_ERR=(ng[1]="Index size error",1),eg.DOMSTRING_SIZE_ERR=(ng[2]="DOMString size error",2);var ig=eg.HIERARCHY_REQUEST_ERR=(ng[3]="Hierarchy request error",3);eg.WRONG_DOCUMENT_ERR=(ng[4]="Wrong document",4),eg.INVALID_CHARACTER_ERR=(ng[5]="Invalid character",5),eg.NO_DATA_ALLOWED_ERR=(ng[6]="No data allowed",6),eg.NO_MODIFICATION_ALLOWED_ERR=(ng[7]="No modification allowed",7);var rg=eg.NOT_FOUND_ERR=(ng[8]="Not found",8);eg.NOT_SUPPORTED_ERR=(ng[9]="Not supported",9);var og=eg.INUSE_ATTRIBUTE_ERR=(ng[10]="Attribute in use",10);function ag(t,e){if(e instanceof Error)var n=e;else n=this,Error.call(this,ng[t]),this.message=ng[t],Error.captureStackTrace&&Error.captureStackTrace(this,ag);return n.code=t,e&&(this.message=this.message+": "+e),n}function sg(){}function ug(t,e){this._node=t,this._refresh=e,lg(this)}function lg(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);Hg(t,"length",n.length),Ld(n,t),t._inc=e}}function cg(){}function hg(t,e){for(var n=t.length;n--;)if(t[n]===e)return n}function fg(t,e,n,i){if(i?e[hg(e,i)]=n:e[e.length++]=n,t){n.ownerElement=t;var r=t.ownerDocument;r&&(i&&_g(r,t,i),function(t,e,n){t&&t._inc++;var i=n.namespaceURI;"http://www.w3.org/2000/xmlns/"==i&&(e._nsMap[n.prefix?n.localName:""]=n.value)}(r,t,n))}}function dg(t,e,n){var i=hg(e,n);if(!(i>=0))throw ag(rg,new Error(t.tagName+"@"+n));for(var r=e.length-1;i<r;)e[i]=e[++i];if(e.length=r,t){var o=t.ownerDocument;o&&(_g(o,t,n),n.ownerElement=null)}}function gg(t){if(this._features={},t)for(var e in t)this._features=t[e]}function pg(){}function vg(t){return("<"==t?"&lt;":">"==t&&"&gt;")||"&"==t&&"&amp;"||'"'==t&&"&quot;"||"&#"+t.charCodeAt()+";"}function yg(t,e){if(e(t))return!0;if(t=t.firstChild)do{if(yg(t,e))return!0}while(t=t.nextSibling)}function mg(){}function _g(t,e,n,i){t&&t._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete e._nsMap[n.prefix?n.localName:""]}function bg(t,e,n){if(t&&t._inc){t._inc++;var i=e.childNodes;if(n)i[i.length++]=n;else{for(var r=e.firstChild,o=0;r;)i[o++]=r,r=r.nextSibling;i.length=o}}}function wg(t,e){var n=e.previousSibling,i=e.nextSibling;return n?n.nextSibling=i:t.firstChild=i,i?i.previousSibling=n:t.lastChild=n,bg(t.ownerDocument,t),e}function xg(t,e,n){var i=e.parentNode;if(i&&i.removeChild(e),e.nodeType===Qd){var r=e.firstChild;if(null==r)return e;var o=e.lastChild}else r=o=e;var a=n?n.previousSibling:t.lastChild;r.previousSibling=a,o.nextSibling=n,a?a.nextSibling=r:t.firstChild=r,null==n?t.lastChild=o:n.previousSibling=o;do{r.parentNode=t}while(r!==o&&(r=r.nextSibling));return bg(t.ownerDocument||t,t),e.nodeType==Qd&&(e.firstChild=e.lastChild=null),e}function kg(){this._nsMap={}}function Sg(){}function Cg(){}function Eg(){}function Ag(){}function Rg(){}function Mg(){}function Og(){}function Tg(){}function Pg(){}function Bg(){}function Dg(){}function Ng(){}function zg(t,e){var n=[],i=9==this.nodeType?this.documentElement:this,r=i.prefix,o=i.namespaceURI;if(o&&null==r&&null==(r=i.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return Fg(this,n,t,e,a),n.join("")}function jg(t,e,n){var i=t.prefix||"",r=t.namespaceURI;if(!i&&!r)return!1;if("xml"===i&&"http://www.w3.org/XML/1998/namespace"===r||"http://www.w3.org/2000/xmlns/"==r)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==i)return a.namespace!=r}return!0}function Fg(t,e,n,i,r){if(i){if(!(t=i(t)))return;if("string"==typeof t)return void e.push(t)}switch(t.nodeType){case Vd:r||(r=[]),r.length;var o=t.attributes,a=o.length,s=t.firstChild,u=t.tagName;n=Hd===t.namespaceURI||n,e.push("<",u);for(var l=0;l<a;l++){"xmlns"==(c=o.item(l)).prefix?r.push({prefix:c.localName,namespace:c.value}):"xmlns"==c.nodeName&&r.push({prefix:"",namespace:c.value})}for(l=0;l<a;l++){var c;if(jg(c=o.item(l),0,r)){var h=c.prefix||"",f=c.namespaceURI,d=h?" xmlns:"+h:" xmlns";e.push(d,'="',f,'"'),r.push({prefix:h,namespace:f})}Fg(c,e,n,i,r)}if(jg(t,0,r)){h=t.prefix||"",f=t.namespaceURI,d=h?" xmlns:"+h:" xmlns";e.push(d,'="',f,'"'),r.push({prefix:h,namespace:f})}if(s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(e.push(">"),n&&/^script$/i.test(u))for(;s;)s.data?e.push(s.data):Fg(s,e,n,i,r),s=s.nextSibling;else for(;s;)Fg(s,e,n,i,r),s=s.nextSibling;e.push("</",u,">")}else e.push("/>");return;case $d:case Qd:for(s=t.firstChild;s;)Fg(s,e,n,i,r),s=s.nextSibling;return;case Ud:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,vg),'"');case Wd:return e.push(t.data.replace(/[<&]/g,vg));case qd:return e.push("<![CDATA[",t.data,"]]>");case Zd:return e.push("\x3c!--",t.data,"--\x3e");case Jd:var g=t.publicId,p=t.systemId;if(e.push("<!DOCTYPE ",t.name),g)e.push(' PUBLIC "',g),p&&"."!=p&&e.push('" "',p),e.push('">');else if(p&&"."!=p)e.push(' SYSTEM "',p,'">');else{var v=t.internalSubset;v&&e.push(" [",v,"]"),e.push(">")}return;case Xd:return e.push("<?",t.target," ",t.data,"?>");case Kd:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function Lg(t,e,n){var i;switch(e.nodeType){case Vd:(i=e.cloneNode(!1)).ownerDocument=t;case Qd:break;case Ud:n=!0}if(i||(i=e.cloneNode(!1)),i.ownerDocument=t,i.parentNode=null,n)for(var r=e.firstChild;r;)i.appendChild(Lg(t,r,n)),r=r.nextSibling;return i}function Ig(t,e,n){var i=new e.constructor;for(var r in e){var o=e[r];"object"!=_typeof2(o)&&o!=i[r]&&(i[r]=o)}switch(e.childNodes&&(i.childNodes=new sg),i.ownerDocument=t,i.nodeType){case Vd:var a=e.attributes,s=i.attributes=new cg,u=a.length;s._ownerElement=i;for(var l=0;l<u;l++)i.setAttributeNode(Ig(t,a.item(l),!0));break;case Ud:n=!0}if(n)for(var c=e.firstChild;c;)i.appendChild(Ig(t,c,n)),c=c.nextSibling;return i}function Hg(t,e,n){t[e]=n}eg.INVALID_STATE_ERR=(ng[11]="Invalid state",11),eg.SYNTAX_ERR=(ng[12]="Syntax error",12),eg.INVALID_MODIFICATION_ERR=(ng[13]="Invalid modification",13),eg.NAMESPACE_ERR=(ng[14]="Invalid namespace",14),eg.INVALID_ACCESS_ERR=(ng[15]="Invalid access",15),ag.prototype=Error.prototype,Ld(eg,ag),sg.prototype={length:0,item:function(t){return this[t]||null},toString:function(t,e){for(var n=[],i=0;i<this.length;i++)Fg(this[i],n,t,e);return n.join("")}},ug.prototype.item=function(t){return lg(this),this[t]},Id(ug,sg),cg.prototype={length:0,item:sg.prototype.item,getNamedItem:function(t){for(var e=this.length;e--;){var n=this[e];if(n.nodeName==t)return n}},setNamedItem:function(t){var e=t.ownerElement;if(e&&e!=this._ownerElement)throw new ag(og);var n=this.getNamedItem(t.nodeName);return fg(this._ownerElement,this,t,n),n},setNamedItemNS:function(t){var e,n=t.ownerElement;if(n&&n!=this._ownerElement)throw new ag(og);return e=this.getNamedItemNS(t.namespaceURI,t.localName),fg(this._ownerElement,this,t,e),e},removeNamedItem:function(t){var e=this.getNamedItem(t);return dg(this._ownerElement,this,e),e},removeNamedItemNS:function(t,e){var n=this.getNamedItemNS(t,e);return dg(this._ownerElement,this,n),n},getNamedItemNS:function(t,e){for(var n=this.length;n--;){var i=this[n];if(i.localName==e&&i.namespaceURI==t)return i}return null}},gg.prototype={hasFeature:function(t,e){var n=this._features[t.toLowerCase()];return!(!n||e&&!(e in n))},createDocument:function(t,e,n){var i=new mg;if(i.implementation=this,i.childNodes=new sg,i.doctype=n,n&&i.appendChild(n),e){var r=i.createElementNS(t,e);i.appendChild(r)}return i},createDocumentType:function(t,e,n){var i=new Mg;return i.name=t,i.nodeName=t,i.publicId=e,i.systemId=n,i}},pg.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(t,e){return xg(this,t,e)},replaceChild:function(t,e){this.insertBefore(t,e),e&&this.removeChild(e)},removeChild:function(t){return wg(this,t)},appendChild:function(t){return this.insertBefore(t,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(t){return Ig(this.ownerDocument||this,this,t)},normalize:function(){for(var t=this.firstChild;t;){var e=t.nextSibling;e&&e.nodeType==Wd&&t.nodeType==Wd?(this.removeChild(e),t.appendData(e.data)):(t.normalize(),t=e)}},isSupported:function(t,e){return this.ownerDocument.implementation.hasFeature(t,e)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(t){for(var e=this;e;){var n=e._nsMap;if(n)for(var i in n)if(n[i]==t)return i;e=e.nodeType==Ud?e.ownerDocument:e.parentNode}return null},lookupNamespaceURI:function(t){for(var e=this;e;){var n=e._nsMap;if(n&&t in n)return n[t];e=e.nodeType==Ud?e.ownerDocument:e.parentNode}return null},isDefaultNamespace:function(t){return null==this.lookupPrefix(t)}},Ld(Gd,pg),Ld(Gd,pg.prototype),mg.prototype={nodeName:"#document",nodeType:$d,doctype:null,documentElement:null,_inc:1,insertBefore:function(t,e){if(t.nodeType==Qd){for(var n=t.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,e),n=i}return t}return null==this.documentElement&&t.nodeType==Vd&&(this.documentElement=t),xg(this,t,e),t.ownerDocument=this,t},removeChild:function(t){return this.documentElement==t&&(this.documentElement=null),wg(this,t)},importNode:function(t,e){return Lg(this,t,e)},getElementById:function(t){var e=null;return yg(this.documentElement,(function(n){if(n.nodeType==Vd&&n.getAttribute("id")==t)return e=n,!0})),e},createElement:function(t){var e=new kg;return e.ownerDocument=this,e.nodeName=t,e.tagName=t,e.childNodes=new sg,(e.attributes=new cg)._ownerElement=e,e},createDocumentFragment:function(){var t=new Bg;return t.ownerDocument=this,t.childNodes=new sg,t},createTextNode:function(t){var e=new Eg;return e.ownerDocument=this,e.appendData(t),e},createComment:function(t){var e=new Ag;return e.ownerDocument=this,e.appendData(t),e},createCDATASection:function(t){var e=new Rg;return e.ownerDocument=this,e.appendData(t),e},createProcessingInstruction:function(t,e){var n=new Dg;return n.ownerDocument=this,n.tagName=n.target=t,n.nodeValue=n.data=e,n},createAttribute:function(t){var e=new Sg;return e.ownerDocument=this,e.name=t,e.nodeName=t,e.localName=t,e.specified=!0,e},createEntityReference:function(t){var e=new Pg;return e.ownerDocument=this,e.nodeName=t,e},createElementNS:function(t,e){var n=new kg,i=e.split(":"),r=n.attributes=new cg;return n.childNodes=new sg,n.ownerDocument=this,n.nodeName=e,n.tagName=e,n.namespaceURI=t,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,r._ownerElement=n,n},createAttributeNS:function(t,e){var n=new Sg,i=e.split(":");return n.ownerDocument=this,n.nodeName=e,n.name=e,n.namespaceURI=t,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=e,n}},Id(mg,pg),kg.prototype={nodeType:Vd,hasAttribute:function(t){return null!=this.getAttributeNode(t)},getAttribute:function(t){var e=this.getAttributeNode(t);return e&&e.value||""},getAttributeNode:function(t){return this.attributes.getNamedItem(t)},setAttribute:function(t,e){var n=this.ownerDocument.createAttribute(t);n.value=n.nodeValue=""+e,this.setAttributeNode(n)},removeAttribute:function(t){var e=this.getAttributeNode(t);e&&this.removeAttributeNode(e)},appendChild:function(t){return t.nodeType===Qd?this.insertBefore(t,null):function(t,e){var n=e.parentNode;if(n){var i=t.lastChild;n.removeChild(e),i=t.lastChild}return i=t.lastChild,e.parentNode=t,e.previousSibling=i,e.nextSibling=null,i?i.nextSibling=e:t.firstChild=e,t.lastChild=e,bg(t.ownerDocument,t,e),e}(this,t)},setAttributeNode:function(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);n&&this.removeAttributeNode(n)},hasAttributeNS:function(t,e){return null!=this.getAttributeNodeNS(t,e)},getAttributeNS:function(t,e){var n=this.getAttributeNodeNS(t,e);return n&&n.value||""},setAttributeNS:function(t,e,n){var i=this.ownerDocument.createAttributeNS(t,e);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(t,e){return this.attributes.getNamedItemNS(t,e)},getElementsByTagName:function(t){return new ug(this,(function(e){var n=[];return yg(e,(function(i){i===e||i.nodeType!=Vd||"*"!==t&&i.tagName!=t||n.push(i)})),n}))},getElementsByTagNameNS:function(t,e){return new ug(this,(function(n){var i=[];return yg(n,(function(r){r===n||r.nodeType!==Vd||"*"!==t&&r.namespaceURI!==t||"*"!==e&&r.localName!=e||i.push(r)})),i}))}},mg.prototype.getElementsByTagName=kg.prototype.getElementsByTagName,mg.prototype.getElementsByTagNameNS=kg.prototype.getElementsByTagNameNS,Id(kg,pg),Sg.prototype.nodeType=Ud,Id(Sg,pg),Cg.prototype={data:"",substringData:function(t,e){return this.data.substring(t,t+e)},appendData:function(t){t=this.data+t,this.nodeValue=this.data=t,this.length=t.length},insertData:function(t,e){this.replaceData(t,0,e)},appendChild:function(t){throw new Error(ng[ig])},deleteData:function(t,e){this.replaceData(t,e,"")},replaceData:function(t,e,n){n=this.data.substring(0,t)+n+this.data.substring(t+e),this.nodeValue=this.data=n,this.length=n.length}},Id(Cg,pg),Eg.prototype={nodeName:"#text",nodeType:Wd,splitText:function(t){var e=this.data,n=e.substring(t);e=e.substring(0,t),this.data=this.nodeValue=e,this.length=e.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},Id(Eg,Cg),Ag.prototype={nodeName:"#comment",nodeType:Zd},Id(Ag,Cg),Rg.prototype={nodeName:"#cdata-section",nodeType:qd},Id(Rg,Cg),Mg.prototype.nodeType=Jd,Id(Mg,pg),Og.prototype.nodeType=tg,Id(Og,pg),Tg.prototype.nodeType=Yd,Id(Tg,pg),Pg.prototype.nodeType=Kd,Id(Pg,pg),Bg.prototype.nodeName="#document-fragment",Bg.prototype.nodeType=Qd,Id(Bg,pg),Dg.prototype.nodeType=Xd,Id(Dg,pg),Ng.prototype.serializeToString=function(t,e,n){return zg.call(t,e,n)},pg.prototype.toString=zg;try{if(Object.defineProperty){var Gg=function t(e){switch(e.nodeType){case Vd:case Qd:var n=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&n.push(t(e)),e=e.nextSibling;return n.join("");default:return e.nodeValue}};Object.defineProperty(ug.prototype,"length",{get:function(){return lg(this),this.$$length}}),Object.defineProperty(pg.prototype,"textContent",{get:function(){return Gg(this)},set:function(t){switch(this.nodeType){case Vd:case Qd:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),Hg=function(t,e,n){t["$$"+e]=n}}}catch(t){}var Vg={DOMImplementation:gg,XMLSerializer:Ng};function Ug(t,e,n){if(null!=t||null!=e||null!=n){"string"==typeof t&&(t=document.getElementById(t)),null!=t.svg&&t.svg.stop();var i=function(t){var e={opts:t},n=function(){var t;void 0!==Element.prototype.matches?t=function(t,e){return t.matches(e)}:void 0!==Element.prototype.webkitMatchesSelector?t=function(t,e){return t.webkitMatchesSelector(e)}:void 0!==Element.prototype.mozMatchesSelector?t=function(t,e){return t.mozMatchesSelector(e)}:void 0!==Element.prototype.msMatchesSelector?t=function(t,e){return t.msMatchesSelector(e)}:void 0!==Element.prototype.oMatchesSelector?t=function(t,e){return t.oMatchesSelector(e)}:("function"!=typeof jQuery&&"function"!=typeof Zepto||(t=function(t,e){return $(t).is(e)}),void 0===t&&(t=Sizzle.matchesSelector));return t}();"undefined"!=typeof CanvasRenderingContext2D&&(CanvasRenderingContext2D.prototype.drawSvg=function(t,e,n,i,r,o){var a={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:e,offsetY:n,scaleWidth:i,scaleHeight:r};for(var s in o)o.hasOwnProperty(s)&&(a[s]=o[s]);Ug(this.canvas,t,a)});e.FRAMERATE=30,e.MAX_VIRTUAL_PIXELS=3e4,e.log=function(t){},1==e.opts.log&&"undefined"!=typeof console&&(e.log=function(t){console.log(t)});e.init=function(t){var n=0;e.UniqueId=function(){return"canvg"+ ++n},e.Definitions={},e.Styles={},e.StylesSpecificity={},e.Animations=[],e.Images=[],e.ctx=t,e.ViewPort=new function(){this.viewPorts=[],this.Clear=function(){this.viewPorts=[]},this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})},this.RemoveCurrent=function(){this.viewPorts.pop()},this.Current=function(){return this.viewPorts[this.viewPorts.length-1]},this.width=function(){return this.Current().width},this.height=function(){return this.Current().height},this.ComputeSize=function(t){return null!=t&&"number"==typeof t?t:"x"==t?this.width():"y"==t?this.height():Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}},e.init(),e.ImagesLoaded=function(){for(var t=0;t<e.Images.length;t++)if(!e.Images[t].loaded)return!1;return!0},e.trim=function(t){return t.replace(/^\s+|\s+$/g,"")},e.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")},e.ajax=function(t){var e;return(e=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"))?(e.open("GET",t,!1),e.send(null),e.responseText):null},e.parseXml=function(t){if("undefined"!=typeof Windows&&void 0!==Windows.Data&&void 0!==Windows.Data.Xml){var e=new Windows.Data.Xml.Dom.XmlDocument,n=new Windows.Data.Xml.Dom.XmlLoadSettings;return n.prohibitDtd=!1,e.loadXml(t,n),e}return window.DOMParser?(new DOMParser).parseFromString(t,"text/xml"):(t=t.replace(/<!DOCTYPE svg[^>]*>/,""),(e=new ActiveXObject("Microsoft.XMLDOM")).async="false",e.loadXML(t),e)},e.Property=function(t,e){this.name=t,this.value=e},e.Property.prototype.getValue=function(){return this.value},e.Property.prototype.hasValue=function(){return null!=this.value&&""!=this.value},e.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);return(this.value+"").match(/%$/)&&(t/=100),t},e.Property.prototype.valueOrDefault=function(t){return this.hasValue()?this.value:t},e.Property.prototype.numValueOrDefault=function(t){return this.hasValue()?this.numValue():t},e.Property.prototype.addOpacity=function(t){var n=this.value;if(null!=t.value&&""!=t.value&&"string"==typeof this.value){var i=new hd(this.value);i.ok&&(n="rgba("+i.r+", "+i.g+", "+i.b+", "+t.numValue()+")")}return new e.Property(this.name,n)},e.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);return t&&(t=t[1]),t||(t=this.value),e.Definitions[t]},e.Property.prototype.isUrlDefinition=function(){return 0==this.value.indexOf("url(")},e.Property.prototype.getFillStyleDefinition=function(t,n){var i=this.getDefinition();if(null!=i&&i.createGradient)return i.createGradient(e.ctx,t,n);if(null!=i&&i.createPattern){if(i.getHrefAttribute().hasValue()){var r=i.attribute("patternTransform");i=i.getHrefAttribute().getDefinition(),r.hasValue()&&(i.attribute("patternTransform",!0).value=r.value)}return i.createPattern(e.ctx,t)}return null},e.Property.prototype.getDPI=function(t){return 96},e.Property.prototype.getEM=function(t){var n=12,i=new e.Property("fontSize",e.Font.Parse(e.ctx.font).fontSize);return i.hasValue()&&(n=i.toPixels(t)),n},e.Property.prototype.getUnits=function(){return(this.value+"").replace(/[0-9\.\-]/g,"")},e.Property.prototype.toPixels=function(t,n){if(!this.hasValue())return 0;var i=this.value+"";if(i.match(/em$/))return this.numValue()*this.getEM(t);if(i.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(i.match(/px$/))return this.numValue();if(i.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(i.match(/pc$/))return 15*this.numValue();if(i.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(i.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(i.match(/in$/))return this.numValue()*this.getDPI(t);if(i.match(/%$/))return this.numValue()*e.ViewPort.ComputeSize(t);var r=this.numValue();return n&&r<1?r*e.ViewPort.ComputeSize(t):r},e.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/s$/)?1e3*this.numValue():(t.match(/ms$/),this.numValue())},e.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";return t.match(/deg$/)?this.numValue()*(Math.PI/180):t.match(/grad$/)?this.numValue()*(Math.PI/200):t.match(/rad$/)?this.numValue():this.numValue()*(Math.PI/180)};var i={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"};return e.Property.prototype.toTextBaseline=function(){return this.hasValue()?i[this.value]:null},e.Font=new function(){this.Styles="normal|italic|oblique|inherit",this.Variants="normal|small-caps|inherit",this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",this.CreateFont=function(t,n,i,r,o,a){var s=null!=a?this.Parse(a):this.CreateFont("","","","","",e.ctx.font);return{fontFamily:o||s.fontFamily,fontSize:r||s.fontSize,fontStyle:t||s.fontStyle,fontWeight:i||s.fontWeight,fontVariant:n||s.fontVariant,toString:function(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var t=this;this.Parse=function(n){for(var i={},r=e.trim(e.compressSpaces(n||"")).split(" "),o={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1},a="",s=0;s<r.length;s++)o.fontStyle||-1==t.Styles.indexOf(r[s])?o.fontVariant||-1==t.Variants.indexOf(r[s])?o.fontWeight||-1==t.Weights.indexOf(r[s])?o.fontSize?"inherit"!=r[s]&&(a+=r[s]):("inherit"!=r[s]&&(i.fontSize=r[s].split("/")[0]),o.fontStyle=o.fontVariant=o.fontWeight=o.fontSize=!0):("inherit"!=r[s]&&(i.fontWeight=r[s]),o.fontStyle=o.fontVariant=o.fontWeight=!0):("inherit"!=r[s]&&(i.fontVariant=r[s]),o.fontStyle=o.fontVariant=!0):("inherit"!=r[s]&&(i.fontStyle=r[s]),o.fontStyle=!0);return""!=a&&(i.fontFamily=a),i}},e.ToNumberArray=function(t){for(var n=e.trim(e.compressSpaces((t||"").replace(/,/g," "))).split(" "),i=0;i<n.length;i++)n[i]=parseFloat(n[i]);return n},e.Point=function(t,e){this.x=t,this.y=e},e.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)},e.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4],n=this.x*t[1]+this.y*t[3]+t[5];this.x=e,this.y=n},e.CreatePoint=function(t){var n=e.ToNumberArray(t);return new e.Point(n[0],n[1])},e.CreatePath=function(t){for(var n=e.ToNumberArray(t),i=[],r=0;r<n.length;r+=2)i.push(new e.Point(n[r],n[r+1]));return i},e.BoundingBox=function(t,e,n,i){this.x1=Number.NaN,this.y1=Number.NaN,this.x2=Number.NaN,this.y2=Number.NaN,this.x=function(){return this.x1},this.y=function(){return this.y1},this.width=function(){return this.x2-this.x1},this.height=function(){return this.y2-this.y1},this.addPoint=function(t,e){null!=t&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=t,this.x2=t),t<this.x1&&(this.x1=t),t>this.x2&&(this.x2=t)),null!=e&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=e,this.y2=e),e<this.y1&&(this.y1=e),e>this.y2&&(this.y2=e))},this.addX=function(t){this.addPoint(t,null)},this.addY=function(t){this.addPoint(null,t)},this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1),this.addPoint(t.x2,t.y2)},this.addQuadraticCurve=function(t,e,n,i,r,o){var a=t+2/3*(n-t),s=e+2/3*(i-e),u=a+1/3*(r-t),l=s+1/3*(o-e);this.addBezierCurve(t,e,a,u,s,l,r,o)},this.addBezierCurve=function(t,e,n,i,r,o,a,s){var u=[t,e],l=[n,i],c=[r,o],h=[a,s];this.addPoint(u[0],u[1]),this.addPoint(h[0],h[1]);for(var f=0;f<=1;f++){var d=function(t){return Math.pow(1-t,3)*u[f]+3*Math.pow(1-t,2)*t*l[f]+3*(1-t)*Math.pow(t,2)*c[f]+Math.pow(t,3)*h[f]},g=6*u[f]-12*l[f]+6*c[f],p=-3*u[f]+9*l[f]-9*c[f]+3*h[f],v=3*l[f]-3*u[f];if(0!=p){var y=Math.pow(g,2)-4*v*p;if(!(y<0)){var m=(-g+Math.sqrt(y))/(2*p);0<m&&m<1&&(0==f&&this.addX(d(m)),1==f&&this.addY(d(m)));var _=(-g-Math.sqrt(y))/(2*p);0<_&&_<1&&(0==f&&this.addX(d(_)),1==f&&this.addY(d(_)))}}else{if(0==g)continue;var b=-v/g;0<b&&b<1&&(0==f&&this.addX(d(b)),1==f&&this.addY(d(b)))}}},this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2},this.addPoint(t,e),this.addPoint(n,i)},e.Transform=function(t){var n=this;this.Type={},this.Type.translate=function(t){this.p=e.CreatePoint(t),this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)},this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)},this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}},this.Type.rotate=function(t){var n=e.ToNumberArray(t);this.angle=new e.Property("angle",n[0]),this.cx=n[1]||0,this.cy=n[2]||0,this.apply=function(t){t.translate(this.cx,this.cy),t.rotate(this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.unapply=function(t){t.translate(this.cx,this.cy),t.rotate(-1*this.angle.toRadians()),t.translate(-this.cx,-this.cy)},this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]),t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]),t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}},this.Type.scale=function(t){this.p=e.CreatePoint(t),this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)},this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)},this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}},this.Type.matrix=function(t){this.m=e.ToNumberArray(t),this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])},this.unapply=function(t){var e=this.m[0],n=this.m[2],i=this.m[4],r=this.m[1],o=this.m[3],a=this.m[5],s=0,u=0,l=1,c=1/(e*(o*l-a*u)-n*(r*l-a*s)+i*(r*u-o*s));t.transform(c*(o*l-a*u),c*(a*s-r*l),c*(i*u-n*l),c*(e*l-i*s),c*(n*a-i*o),c*(i*r-e*a))},this.applyToPoint=function(t){t.applyTransform(this.m)}},this.Type.SkewBase=function(t){this.base=n.Type.matrix,this.base(t),this.angle=new e.Property("angle",t)},this.Type.SkewBase.prototype=new this.Type.matrix,this.Type.skewX=function(t){this.base=n.Type.SkewBase,this.base(t),this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]},this.Type.skewX.prototype=new this.Type.SkewBase,this.Type.skewY=function(t){this.base=n.Type.SkewBase,this.base(t),this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]},this.Type.skewY.prototype=new this.Type.SkewBase,this.transforms=[],this.apply=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].apply(t)},this.unapply=function(t){for(var e=this.transforms.length-1;e>=0;e--)this.transforms[e].unapply(t)},this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++)this.transforms[e].applyToPoint(t)};for(var i=e.trim(e.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/),r=0;r<i.length;r++){var o=e.trim(i[r].split("(")[0]),a=i[r].split("(")[1].replace(")",""),s=this.Type[o];if(void 0!==s){var u=new s(a);u.type=o,this.transforms.push(u)}}},e.AspectRatio=function(t,n,i,r,o,a,s,u,l,c){var h=(n=(n=e.compressSpaces(n)).replace(/^defer\s/,"")).split(" ")[0]||"xMidYMid",f=n.split(" ")[1]||"meet",d=i/r,g=o/a,p=Math.min(d,g),v=Math.max(d,g);"meet"==f&&(r*=p,a*=p),"slice"==f&&(r*=v,a*=v),l=new e.Property("refX",l),c=new e.Property("refY",c),l.hasValue()&&c.hasValue()?t.translate(-p*l.toPixels("x"),-p*c.toPixels("y")):(h.match(/^xMid/)&&("meet"==f&&p==g||"slice"==f&&v==g)&&t.translate(i/2-r/2,0),h.match(/YMid$/)&&("meet"==f&&p==d||"slice"==f&&v==d)&&t.translate(0,o/2-a/2),h.match(/^xMax/)&&("meet"==f&&p==g||"slice"==f&&v==g)&&t.translate(i-r,0),h.match(/YMax$/)&&("meet"==f&&p==d||"slice"==f&&v==d)&&t.translate(0,o-a)),"none"==h?t.scale(d,g):"meet"==f?t.scale(p,p):"slice"==f&&t.scale(v,v),t.translate(null==s?0:-s,null==u?0:-u)},e.Element={},e.EmptyProperty=new e.Property("EMPTY",""),e.Element.ElementBase=function(t){if(this.attributes={},this.styles={},this.stylesSpecificity={},this.children=[],this.attribute=function(t,n){var i=this.attributes[t];return null!=i?i:(1==n&&(i=new e.Property(t,""),this.attributes[t]=i),i||e.EmptyProperty)},this.getHrefAttribute=function(){for(var t in this.attributes)if("href"==t||t.match(/:href$/))return this.attributes[t];return e.EmptyProperty},this.style=function(t,n,i){var r=this.styles[t];if(null!=r)return r;var o=this.attribute(t);if(null!=o&&o.hasValue())return this.styles[t]=o,o;if(1!=i){var a=this.parent;if(null!=a){var s=a.style(t);if(null!=s&&s.hasValue())return s}}return 1==n&&(r=new e.Property(t,""),this.styles[t]=r),r||e.EmptyProperty},this.render=function(t){if("none"!=this.style("display").value&&"hidden"!=this.style("visibility").value){if(t.save(),this.style("mask").hasValue()){var e=this.style("mask").getDefinition();null!=e&&e.apply(t,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();null!=n&&n.apply(t,this)}else this.setContext(t),this.renderChildren(t),this.clearContext(t);t.restore()}},this.setContext=function(t){},this.clearContext=function(t){},this.renderChildren=function(t){for(var e=0;e<this.children.length;e++)this.children[e].render(t)},this.addChild=function(t,n){var i=t;n&&(i=e.CreateElement(t)),i.parent=this,"title"!=i.type&&this.children.push(i)},this.addStylesFromStyleDefinition=function(){for(var i in e.Styles)if("@"!=i[0]&&n(t,i)){var r=e.Styles[i],o=e.StylesSpecificity[i];if(null!=r)for(var a in r){var s=this.stylesSpecificity[a];void 0===s&&(s="000"),o>s&&(this.styles[a]=r[a],this.stylesSpecificity[a]=o)}}},null!=t&&1==t.nodeType){for(var i=0;i<t.attributes.length;i++){var r=t.attributes[i];this.attributes[r.nodeName]=new e.Property(r.nodeName,r.value)}if(this.addStylesFromStyleDefinition(),this.attribute("style").hasValue()){var o=this.attribute("style").value.split(";");for(i=0;i<o.length;i++)if(""!=e.trim(o[i])){var a=o[i].split(":"),s=e.trim(a[0]),u=e.trim(a[1]);this.styles[s]=new e.Property(s,u)}}this.attribute("id").hasValue()&&null==e.Definitions[this.attribute("id").value]&&(e.Definitions[this.attribute("id").value]=this);for(i=0;i<t.childNodes.length;i++){var l=t.childNodes[i];if(1==l.nodeType&&this.addChild(l,!0),this.captureTextNodes&&(3==l.nodeType||4==l.nodeType)){var c=l.value||l.text||l.textContent||"";""!=e.compressSpaces(c)&&this.addChild(new e.Element.tspan(l),!1)}}}},e.Element.RenderedElementBase=function(t){this.base=e.Element.ElementBase,this.base(t),this.setContext=function(t){var n;if(this.style("fill").isUrlDefinition())null!=(n=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity")))&&(t.fillStyle=n);else if(this.style("fill").hasValue()){var i;"currentColor"==(i=this.style("fill")).value&&(i.value=this.style("color").value),"inherit"!=i.value&&(t.fillStyle="none"==i.value?"rgba(0,0,0,0)":i.value)}this.style("fill-opacity").hasValue()&&(i=(i=new e.Property("fill",t.fillStyle)).addOpacity(this.style("fill-opacity")),t.fillStyle=i.value);if(this.style("stroke").isUrlDefinition())null!=(n=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity")))&&(t.strokeStyle=n);else if(this.style("stroke").hasValue()){var r;"currentColor"==(r=this.style("stroke")).value&&(r.value=this.style("color").value),"inherit"!=r.value&&(t.strokeStyle="none"==r.value?"rgba(0,0,0,0)":r.value)}this.style("stroke-opacity").hasValue()&&(r=(r=new e.Property("stroke",t.strokeStyle)).addOpacity(this.style("stroke-opacity")),t.strokeStyle=r.value);if(this.style("stroke-width").hasValue()){var o=this.style("stroke-width").toPixels();t.lineWidth=0==o?.001:o}if(this.style("stroke-linecap").hasValue()&&(t.lineCap=this.style("stroke-linecap").value),this.style("stroke-linejoin").hasValue()&&(t.lineJoin=this.style("stroke-linejoin").value),this.style("stroke-miterlimit").hasValue()&&(t.miterLimit=this.style("stroke-miterlimit").value),this.style("stroke-dasharray").hasValue()&&"none"!=this.style("stroke-dasharray").value){var a=e.ToNumberArray(this.style("stroke-dasharray").value);void 0!==t.setLineDash?t.setLineDash(a):void 0!==t.webkitLineDash?t.webkitLineDash=a:void 0===t.mozDash||1==a.length&&0==a[0]||(t.mozDash=a);var s=this.style("stroke-dashoffset").numValueOrDefault(1);void 0!==t.lineDashOffset?t.lineDashOffset=s:void 0!==t.webkitLineDashOffset?t.webkitLineDashOffset=s:void 0!==t.mozDashOffset&&(t.mozDashOffset=s)}(void 0!==t.font&&(t.font=e.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()),this.style("transform",!1,!0).hasValue())&&new e.Transform(this.style("transform",!1,!0).value).apply(t);if(this.style("clip-path",!1,!0).hasValue()){var u=this.style("clip-path",!1,!0).getDefinition();null!=u&&u.apply(t)}this.style("opacity").hasValue()&&(t.globalAlpha=this.style("opacity").numValue())}},e.Element.RenderedElementBase.prototype=new e.Element.ElementBase,e.Element.PathElementBase=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.path=function(t){return null!=t&&t.beginPath(),new e.BoundingBox},this.renderChildren=function(t){this.path(t),e.Mouse.checkPath(this,t),""!=t.fillStyle&&("inherit"!=this.style("fill-rule").valueOrDefault("inherit")?t.fill(this.style("fill-rule").value):t.fill()),""!=t.strokeStyle&&t.stroke();var n=this.getMarkers();if(null!=n){if(this.style("marker-start").isUrlDefinition())(i=this.style("marker-start").getDefinition()).render(t,n[0][0],n[0][1]);if(this.style("marker-mid").isUrlDefinition())for(var i=this.style("marker-mid").getDefinition(),r=1;r<n.length-1;r++)i.render(t,n[r][0],n[r][1]);if(this.style("marker-end").isUrlDefinition())(i=this.style("marker-end").getDefinition()).render(t,n[n.length-1][0],n[n.length-1][1])}},this.getBoundingBox=function(){return this.path()},this.getMarkers=function(){return null}},e.Element.PathElementBase.prototype=new e.Element.RenderedElementBase,e.Element.svg=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.baseClearContext=this.clearContext,this.clearContext=function(t){this.baseClearContext(t),e.ViewPort.RemoveCurrent()},this.baseSetContext=this.setContext,this.setContext=function(t){t.strokeStyle="rgba(0,0,0,0)",t.lineCap="butt",t.lineJoin="miter",t.miterLimit=4,void 0!==t.font&&void 0!==window.getComputedStyle&&(t.font=window.getComputedStyle(t.canvas).getPropertyValue("font")),this.baseSetContext(t),this.attribute("x").hasValue()||(this.attribute("x",!0).value=0),this.attribute("y").hasValue()||(this.attribute("y",!0).value=0),t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var n=e.ViewPort.width(),i=e.ViewPort.height();if(this.attribute("width").hasValue()||(this.attribute("width",!0).value="100%"),this.attribute("height").hasValue()||(this.attribute("height",!0).value="100%"),void 0===this.root){n=this.attribute("width").toPixels("x"),i=this.attribute("height").toPixels("y");var r=0,o=0;this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()&&(r=-this.attribute("refX").toPixels("x"),o=-this.attribute("refY").toPixels("y")),"visible"!=this.attribute("overflow").valueOrDefault("hidden")&&(t.beginPath(),t.moveTo(r,o),t.lineTo(n,o),t.lineTo(n,i),t.lineTo(r,i),t.closePath(),t.clip())}if(e.ViewPort.SetCurrent(n,i),this.attribute("viewBox").hasValue()){var a=e.ToNumberArray(this.attribute("viewBox").value),s=a[0],u=a[1];n=a[2],i=a[3],e.AspectRatio(t,this.attribute("preserveAspectRatio").value,e.ViewPort.width(),n,e.ViewPort.height(),i,s,u,this.attribute("refX").value,this.attribute("refY").value),e.ViewPort.RemoveCurrent(),e.ViewPort.SetCurrent(a[2],a[3])}}},e.Element.svg.prototype=new e.Element.RenderedElementBase,e.Element.rect=function(t){this.base=e.Element.PathElementBase,this.base(t),this.path=function(t){var n=this.attribute("x").toPixels("x"),i=this.attribute("y").toPixels("y"),r=this.attribute("width").toPixels("x"),o=this.attribute("height").toPixels("y"),a=this.attribute("rx").toPixels("x"),s=this.attribute("ry").toPixels("y");return this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue()&&(s=a),this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue()&&(a=s),a=Math.min(a,r/2),s=Math.min(s,o/2),null!=t&&(t.beginPath(),t.moveTo(n+a,i),t.lineTo(n+r-a,i),t.quadraticCurveTo(n+r,i,n+r,i+s),t.lineTo(n+r,i+o-s),t.quadraticCurveTo(n+r,i+o,n+r-a,i+o),t.lineTo(n+a,i+o),t.quadraticCurveTo(n,i+o,n,i+o-s),t.lineTo(n,i+s),t.quadraticCurveTo(n,i,n+a,i),t.closePath()),new e.BoundingBox(n,i,n+r,i+o)}},e.Element.rect.prototype=new e.Element.PathElementBase,e.Element.circle=function(t){this.base=e.Element.PathElementBase,this.base(t),this.path=function(t){var n=this.attribute("cx").toPixels("x"),i=this.attribute("cy").toPixels("y"),r=this.attribute("r").toPixels();return null!=t&&(t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!0),t.closePath()),new e.BoundingBox(n-r,i-r,n+r,i+r)}},e.Element.circle.prototype=new e.Element.PathElementBase,e.Element.ellipse=function(t){this.base=e.Element.PathElementBase,this.base(t),this.path=function(t){var n=(Math.sqrt(2)-1)/3*4,i=this.attribute("rx").toPixels("x"),r=this.attribute("ry").toPixels("y"),o=this.attribute("cx").toPixels("x"),a=this.attribute("cy").toPixels("y");return null!=t&&(t.beginPath(),t.moveTo(o,a-r),t.bezierCurveTo(o+n*i,a-r,o+i,a-n*r,o+i,a),t.bezierCurveTo(o+i,a+n*r,o+n*i,a+r,o,a+r),t.bezierCurveTo(o-n*i,a+r,o-i,a+n*r,o-i,a),t.bezierCurveTo(o-i,a-n*r,o-n*i,a-r,o,a-r),t.closePath()),new e.BoundingBox(o-i,a-r,o+i,a+r)}},e.Element.ellipse.prototype=new e.Element.PathElementBase,e.Element.line=function(t){this.base=e.Element.PathElementBase,this.base(t),this.getPoints=function(){return[new e.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new e.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]},this.path=function(t){var n=this.getPoints();return null!=t&&(t.beginPath(),t.moveTo(n[0].x,n[0].y),t.lineTo(n[1].x,n[1].y)),new e.BoundingBox(n[0].x,n[0].y,n[1].x,n[1].y)},this.getMarkers=function(){var t=this.getPoints(),e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}},e.Element.line.prototype=new e.Element.PathElementBase,e.Element.polyline=function(t){this.base=e.Element.PathElementBase,this.base(t),this.points=e.CreatePath(this.attribute("points").value),this.path=function(t){var n=new e.BoundingBox(this.points[0].x,this.points[0].y);null!=t&&(t.beginPath(),t.moveTo(this.points[0].x,this.points[0].y));for(var i=1;i<this.points.length;i++)n.addPoint(this.points[i].x,this.points[i].y),null!=t&&t.lineTo(this.points[i].x,this.points[i].y);return n},this.getMarkers=function(){for(var t=[],e=0;e<this.points.length-1;e++)t.push([this.points[e],this.points[e].angleTo(this.points[e+1])]);return t.length>0&&t.push([this.points[this.points.length-1],t[t.length-1][1]]),t}},e.Element.polyline.prototype=new e.Element.PathElementBase,e.Element.polygon=function(t){this.base=e.Element.polyline,this.base(t),this.basePath=this.path,this.path=function(t){var e=this.basePath(t);return null!=t&&(t.lineTo(this.points[0].x,this.points[0].y),t.closePath()),e}},e.Element.polygon.prototype=new e.Element.polyline,e.Element.path=function(t){this.base=e.Element.PathElementBase,this.base(t);var n=this.attribute("d").value;n=n.replace(/,/gm," ");for(var i=0;i<2;i++)n=n.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2");n=(n=n.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2")).replace(/([0-9])([+\-])/gm,"$1 $2");for(i=0;i<2;i++)n=n.replace(/(\.[0-9]*)(\.)/gm,"$1 $2");n=n.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 "),n=e.compressSpaces(n),n=e.trim(n),this.PathParser=new function(t){this.tokens=t.split(" "),this.reset=function(){this.i=-1,this.command="",this.previousCommand="",this.start=new e.Point(0,0),this.control=new e.Point(0,0),this.current=new e.Point(0,0),this.points=[],this.angles=[]},this.isEnd=function(){return this.i>=this.tokens.length-1},this.isCommandOrEnd=function(){return!!this.isEnd()||null!=this.tokens[this.i+1].match(/^[A-Za-z]$/)},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!0}return!1},this.getToken=function(){return this.i++,this.tokens[this.i]},this.getScalar=function(){return parseFloat(this.getToken())},this.nextCommand=function(){this.previousCommand=this.command,this.command=this.getToken()},this.getPoint=function(){var t=new e.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)},this.getAsControlPoint=function(){var t=this.getPoint();return this.control=t,t},this.getAsCurrentPoint=function(){var t=this.getPoint();return this.current=t,t},this.getReflectedControlPoint=function(){return"c"!=this.previousCommand.toLowerCase()&&"s"!=this.previousCommand.toLowerCase()&&"q"!=this.previousCommand.toLowerCase()&&"t"!=this.previousCommand.toLowerCase()?this.current:new e.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y)},this.makeAbsolute=function(t){return this.isRelativeCommand()&&(t.x+=this.current.x,t.y+=this.current.y),t},this.addMarker=function(t,e,n){null!=n&&this.angles.length>0&&null==this.angles[this.angles.length-1]&&(this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)),this.addMarkerAngle(t,null==e?null:e.angleTo(t))},this.addMarkerAngle=function(t,e){this.points.push(t),this.angles.push(e)},this.getMarkerPoints=function(){return this.points},this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++)if(null==this.angles[t])for(var e=t+1;e<this.angles.length;e++)if(null!=this.angles[e]){this.angles[t]=this.angles[e];break}return this.angles}}(n),this.path=function(t){var n=this.PathParser;n.reset();var i=new e.BoundingBox;for(null!=t&&t.beginPath();!n.isEnd();)switch(n.nextCommand(),n.command){case"M":case"m":var r=n.getAsCurrentPoint();for(n.addMarker(r),i.addPoint(r.x,r.y),null!=t&&t.moveTo(r.x,r.y),n.start=n.current;!n.isCommandOrEnd();){r=n.getAsCurrentPoint();n.addMarker(r,n.start),i.addPoint(r.x,r.y),null!=t&&t.lineTo(r.x,r.y)}break;case"L":case"l":for(;!n.isCommandOrEnd();){var o=n.current;r=n.getAsCurrentPoint();n.addMarker(r,o),i.addPoint(r.x,r.y),null!=t&&t.lineTo(r.x,r.y)}break;case"H":case"h":for(;!n.isCommandOrEnd();){var a=new e.Point((n.isRelativeCommand()?n.current.x:0)+n.getScalar(),n.current.y);n.addMarker(a,n.current),n.current=a,i.addPoint(n.current.x,n.current.y),null!=t&&t.lineTo(n.current.x,n.current.y)}break;case"V":case"v":for(;!n.isCommandOrEnd();){a=new e.Point(n.current.x,(n.isRelativeCommand()?n.current.y:0)+n.getScalar());n.addMarker(a,n.current),n.current=a,i.addPoint(n.current.x,n.current.y),null!=t&&t.lineTo(n.current.x,n.current.y)}break;case"C":case"c":for(;!n.isCommandOrEnd();){var s=n.current,u=n.getPoint(),l=n.getAsControlPoint(),c=n.getAsCurrentPoint();n.addMarker(c,l,u),i.addBezierCurve(s.x,s.y,u.x,u.y,l.x,l.y,c.x,c.y),null!=t&&t.bezierCurveTo(u.x,u.y,l.x,l.y,c.x,c.y)}break;case"S":case"s":for(;!n.isCommandOrEnd();){s=n.current,u=n.getReflectedControlPoint(),l=n.getAsControlPoint(),c=n.getAsCurrentPoint();n.addMarker(c,l,u),i.addBezierCurve(s.x,s.y,u.x,u.y,l.x,l.y,c.x,c.y),null!=t&&t.bezierCurveTo(u.x,u.y,l.x,l.y,c.x,c.y)}break;case"Q":case"q":for(;!n.isCommandOrEnd();){s=n.current,l=n.getAsControlPoint(),c=n.getAsCurrentPoint();n.addMarker(c,l,l),i.addQuadraticCurve(s.x,s.y,l.x,l.y,c.x,c.y),null!=t&&t.quadraticCurveTo(l.x,l.y,c.x,c.y)}break;case"T":case"t":for(;!n.isCommandOrEnd();){s=n.current,l=n.getReflectedControlPoint();n.control=l;c=n.getAsCurrentPoint();n.addMarker(c,l,l),i.addQuadraticCurve(s.x,s.y,l.x,l.y,c.x,c.y),null!=t&&t.quadraticCurveTo(l.x,l.y,c.x,c.y)}break;case"A":case"a":for(;!n.isCommandOrEnd();){s=n.current;var h=n.getScalar(),f=n.getScalar(),d=n.getScalar()*(Math.PI/180),g=n.getScalar(),p=n.getScalar(),v=(c=n.getAsCurrentPoint(),new e.Point(Math.cos(d)*(s.x-c.x)/2+Math.sin(d)*(s.y-c.y)/2,-Math.sin(d)*(s.x-c.x)/2+Math.cos(d)*(s.y-c.y)/2)),y=Math.pow(v.x,2)/Math.pow(h,2)+Math.pow(v.y,2)/Math.pow(f,2);y>1&&(h*=Math.sqrt(y),f*=Math.sqrt(y));var m=(g==p?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(f,2)-Math.pow(h,2)*Math.pow(v.y,2)-Math.pow(f,2)*Math.pow(v.x,2))/(Math.pow(h,2)*Math.pow(v.y,2)+Math.pow(f,2)*Math.pow(v.x,2)));isNaN(m)&&(m=0);var _=new e.Point(m*h*v.y/f,m*-f*v.x/h),b=new e.Point((s.x+c.x)/2+Math.cos(d)*_.x-Math.sin(d)*_.y,(s.y+c.y)/2+Math.sin(d)*_.x+Math.cos(d)*_.y),w=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))},x=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(w(t)*w(e))},k=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(x(t,e))},S=k([1,0],[(v.x-_.x)/h,(v.y-_.y)/f]),C=[(v.x-_.x)/h,(v.y-_.y)/f],E=[(-v.x-_.x)/h,(-v.y-_.y)/f],A=k(C,E);x(C,E)<=-1&&(A=Math.PI),x(C,E)>=1&&(A=0);var R=1-p?1:-1,M=S+R*(A/2),O=new e.Point(b.x+h*Math.cos(M),b.y+f*Math.sin(M));if(n.addMarkerAngle(O,M-R*Math.PI/2),n.addMarkerAngle(c,M-R*Math.PI),i.addPoint(c.x,c.y),null!=t){x=h>f?h:f;var T=h>f?1:h/f,P=h>f?f/h:1;t.translate(b.x,b.y),t.rotate(d),t.scale(T,P),t.arc(0,0,x,S,S+A,1-p),t.scale(1/T,1/P),t.rotate(-d),t.translate(-b.x,-b.y)}}break;case"Z":case"z":null!=t&&t.closePath(),n.current=n.start}return i},this.getMarkers=function(){for(var t=this.PathParser.getMarkerPoints(),e=this.PathParser.getMarkerAngles(),n=[],i=0;i<t.length;i++)n.push([t[i],e[i]]);return n}},e.Element.path.prototype=new e.Element.PathElementBase,e.Element.pattern=function(t){this.base=e.Element.ElementBase,this.base(t),this.createPattern=function(t,n){var i=this.attribute("width").toPixels("x",!0),r=this.attribute("height").toPixels("y",!0),o=new e.Element.svg;o.attributes.viewBox=new e.Property("viewBox",this.attribute("viewBox").value),o.attributes.width=new e.Property("width",i+"px"),o.attributes.height=new e.Property("height",r+"px"),o.attributes.transform=new e.Property("transform",this.attribute("patternTransform").value),o.children=this.children;var a=document.createElement("canvas");a.width=i,a.height=r;var s=a.getContext("2d");this.attribute("x").hasValue()&&this.attribute("y").hasValue()&&s.translate(this.attribute("x").toPixels("x",!0),this.attribute("y").toPixels("y",!0));for(var u=-1;u<=1;u++)for(var l=-1;l<=1;l++)s.save(),o.attributes.x=new e.Property("x",u*a.width),o.attributes.y=new e.Property("y",l*a.height),o.render(s),s.restore();return t.createPattern(a,"repeat")}},e.Element.pattern.prototype=new e.Element.ElementBase,e.Element.marker=function(t){this.base=e.Element.ElementBase,this.base(t),this.baseRender=this.render,this.render=function(t,n,i){t.translate(n.x,n.y),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(i),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(t.lineWidth,t.lineWidth),t.save();var r=new e.Element.svg;r.attributes.viewBox=new e.Property("viewBox",this.attribute("viewBox").value),r.attributes.refX=new e.Property("refX",this.attribute("refX").value),r.attributes.refY=new e.Property("refY",this.attribute("refY").value),r.attributes.width=new e.Property("width",this.attribute("markerWidth").value),r.attributes.height=new e.Property("height",this.attribute("markerHeight").value),r.attributes.fill=new e.Property("fill",this.attribute("fill").valueOrDefault("black")),r.attributes.stroke=new e.Property("stroke",this.attribute("stroke").valueOrDefault("none")),r.children=this.children,r.render(t),t.restore(),"strokeWidth"==this.attribute("markerUnits").valueOrDefault("strokeWidth")&&t.scale(1/t.lineWidth,1/t.lineWidth),"auto"==this.attribute("orient").valueOrDefault("auto")&&t.rotate(-i),t.translate(-n.x,-n.y)}},e.Element.marker.prototype=new e.Element.ElementBase,e.Element.defs=function(t){this.base=e.Element.ElementBase,this.base(t),this.render=function(t){}},e.Element.defs.prototype=new e.Element.ElementBase,e.Element.GradientBase=function(t){this.base=e.Element.ElementBase,this.base(t),this.stops=[];for(var n=0;n<this.children.length;n++){var i=this.children[n];"stop"==i.type&&this.stops.push(i)}this.getGradient=function(){},this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")},this.attributesToInherit=["gradientUnits"],this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var n=this.attributesToInherit[e];!this.attribute(n).hasValue()&&t.attribute(n).hasValue()&&(this.attribute(n,!0).value=t.attribute(n).value)}},this.createGradient=function(t,n,i){var r=this;this.getHrefAttribute().hasValue()&&(r=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(r));var o=function(t){return i.hasValue()?new e.Property("color",t).addOpacity(i).value:t},a=this.getGradient(t,n);if(null==a)return o(r.stops[r.stops.length-1].color);for(var s=0;s<r.stops.length;s++)a.addColorStop(r.stops[s].offset,o(r.stops[s].color));if(this.attribute("gradientTransform").hasValue()){var u=e.ViewPort.viewPorts[0],l=new e.Element.rect;l.attributes.x=new e.Property("x",-e.MAX_VIRTUAL_PIXELS/3),l.attributes.y=new e.Property("y",-e.MAX_VIRTUAL_PIXELS/3),l.attributes.width=new e.Property("width",e.MAX_VIRTUAL_PIXELS),l.attributes.height=new e.Property("height",e.MAX_VIRTUAL_PIXELS);var c=new e.Element.g;c.attributes.transform=new e.Property("transform",this.attribute("gradientTransform").value),c.children=[l];var h=new e.Element.svg;h.attributes.x=new e.Property("x",0),h.attributes.y=new e.Property("y",0),h.attributes.width=new e.Property("width",u.width),h.attributes.height=new e.Property("height",u.height),h.children=[c];var f=document.createElement("canvas");f.width=u.width,f.height=u.height;var d=f.getContext("2d");return d.fillStyle=a,h.render(d),d.createPattern(f,"no-repeat")}return a}},e.Element.GradientBase.prototype=new e.Element.ElementBase,e.Element.linearGradient=function(t){this.base=e.Element.GradientBase,this.base(t),this.attributesToInherit.push("x1"),this.attributesToInherit.push("y1"),this.attributesToInherit.push("x2"),this.attributesToInherit.push("y2"),this.getGradient=function(t,e){var n="objectBoundingBox"==this.gradientUnits()?e.getBoundingBox():null;this.attribute("x1").hasValue()||this.attribute("y1").hasValue()||this.attribute("x2").hasValue()||this.attribute("y2").hasValue()||(this.attribute("x1",!0).value=0,this.attribute("y1",!0).value=0,this.attribute("x2",!0).value=1,this.attribute("y2",!0).value=0);var i="objectBoundingBox"==this.gradientUnits()?n.x()+n.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y"),o="objectBoundingBox"==this.gradientUnits()?n.x()+n.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x"),a="objectBoundingBox"==this.gradientUnits()?n.y()+n.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");return i==o&&r==a?null:t.createLinearGradient(i,r,o,a)}},e.Element.linearGradient.prototype=new e.Element.GradientBase,e.Element.radialGradient=function(t){this.base=e.Element.GradientBase,this.base(t),this.attributesToInherit.push("cx"),this.attributesToInherit.push("cy"),this.attributesToInherit.push("r"),this.attributesToInherit.push("fx"),this.attributesToInherit.push("fy"),this.getGradient=function(t,e){var n=e.getBoundingBox();this.attribute("cx").hasValue()||(this.attribute("cx",!0).value="50%"),this.attribute("cy").hasValue()||(this.attribute("cy",!0).value="50%"),this.attribute("r").hasValue()||(this.attribute("r",!0).value="50%");var i="objectBoundingBox"==this.gradientUnits()?n.x()+n.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x"),r="objectBoundingBox"==this.gradientUnits()?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y"),o=i,a=r;this.attribute("fx").hasValue()&&(o="objectBoundingBox"==this.gradientUnits()?n.x()+n.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")),this.attribute("fy").hasValue()&&(a="objectBoundingBox"==this.gradientUnits()?n.y()+n.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y"));var s="objectBoundingBox"==this.gradientUnits()?(n.width()+n.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return t.createRadialGradient(o,a,0,i,r,s)}},e.Element.radialGradient.prototype=new e.Element.GradientBase,e.Element.stop=function(t){this.base=e.Element.ElementBase,this.base(t),this.offset=this.attribute("offset").numValue(),this.offset<0&&(this.offset=0),this.offset>1&&(this.offset=1);var n=this.style("stop-color",!0);""==n.value&&(n.value="#000"),this.style("stop-opacity").hasValue()&&(n=n.addOpacity(this.style("stop-opacity"))),this.color=n.value},e.Element.stop.prototype=new e.Element.ElementBase,e.Element.AnimateBase=function(t){this.base=e.Element.ElementBase,this.base(t),e.Animations.push(this),this.duration=0,this.begin=this.attribute("begin").toMilliseconds(),this.maxDuration=this.begin+this.attribute("dur").toMilliseconds(),this.getProperty=function(){var t=this.attribute("attributeType").value,e=this.attribute("attributeName").value;return"CSS"==t?this.parent.style(e,!0):this.parent.attribute(e,!0)},this.initialValue=null,this.initialUnits="",this.removed=!1,this.calcValue=function(){return""},this.update=function(t){if(null==this.initialValue&&(this.initialValue=this.getProperty().value,this.initialUnits=this.getProperty().getUnits()),this.duration>this.maxDuration){if("indefinite"==this.attribute("repeatCount").value||"indefinite"==this.attribute("repeatDur").value)this.duration=0;else if("freeze"!=this.attribute("fill").valueOrDefault("remove")||this.frozen){if("remove"==this.attribute("fill").valueOrDefault("remove")&&!this.removed)return this.removed=!0,this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue,!0}else this.frozen=!0,this.parent.animationFrozen=!0,this.parent.animationFrozenValue=this.getProperty().value;return!1}this.duration=this.duration+t;var e=!1;if(this.begin<this.duration){var n=this.calcValue();if(this.attribute("type").hasValue())n=this.attribute("type").value+"("+n+")";this.getProperty().value=n,e=!0}return e},this.from=this.attribute("from"),this.to=this.attribute("to"),this.values=this.attribute("values"),this.values.hasValue()&&(this.values.value=this.values.value.split(";")),this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var n=t.progress*(this.values.value.length-1),i=Math.floor(n),r=Math.ceil(n);t.from=new e.Property("from",parseFloat(this.values.value[i])),t.to=new e.Property("to",parseFloat(this.values.value[r])),t.progress=(n-i)/(r-i)}else t.from=this.from,t.to=this.to;return t}},e.Element.AnimateBase.prototype=new e.Element.ElementBase,e.Element.animate=function(t){this.base=e.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress();return t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress+this.initialUnits}},e.Element.animate.prototype=new e.Element.AnimateBase,e.Element.animateColor=function(t){this.base=e.Element.AnimateBase,this.base(t),this.calcValue=function(){var t=this.progress(),e=new hd(t.from.value),n=new hd(t.to.value);if(e.ok&&n.ok){var i=e.r+(n.r-e.r)*t.progress,r=e.g+(n.g-e.g)*t.progress,o=e.b+(n.b-e.b)*t.progress;return"rgb("+parseInt(i,10)+","+parseInt(r,10)+","+parseInt(o,10)+")"}return this.attribute("from").value}},e.Element.animateColor.prototype=new e.Element.AnimateBase,e.Element.animateTransform=function(t){this.base=e.Element.AnimateBase,this.base(t),this.calcValue=function(){for(var t=this.progress(),n=e.ToNumberArray(t.from.value),i=e.ToNumberArray(t.to.value),r="",o=0;o<n.length;o++)r+=n[o]+(i[o]-n[o])*t.progress+" ";return r}},e.Element.animateTransform.prototype=new e.Element.animate,e.Element.font=function(t){this.base=e.Element.ElementBase,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.isRTL=!1,this.isArabic=!1,this.fontFace=null,this.missingGlyph=null,this.glyphs=[];for(var n=0;n<this.children.length;n++){var i=this.children[n];"font-face"==i.type?(this.fontFace=i,i.style("font-family").hasValue()&&(e.Definitions[i.style("font-family").value]=this)):"missing-glyph"==i.type?this.missingGlyph=i:"glyph"==i.type&&(""!=i.arabicForm?(this.isRTL=!0,this.isArabic=!0,void 0===this.glyphs[i.unicode]&&(this.glyphs[i.unicode]=[]),this.glyphs[i.unicode][i.arabicForm]=i):this.glyphs[i.unicode]=i)}},e.Element.font.prototype=new e.Element.ElementBase,e.Element.fontface=function(t){this.base=e.Element.ElementBase,this.base(t),this.ascent=this.attribute("ascent").value,this.descent=this.attribute("descent").value,this.unitsPerEm=this.attribute("units-per-em").numValue()},e.Element.fontface.prototype=new e.Element.ElementBase,e.Element.missingglyph=function(t){this.base=e.Element.path,this.base(t),this.horizAdvX=0},e.Element.missingglyph.prototype=new e.Element.path,e.Element.glyph=function(t){this.base=e.Element.path,this.base(t),this.horizAdvX=this.attribute("horiz-adv-x").numValue(),this.unicode=this.attribute("unicode").value,this.arabicForm=this.attribute("arabic-form").value},e.Element.glyph.prototype=new e.Element.path,e.Element.text=function(t){this.captureTextNodes=!0,this.base=e.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();null==e&&(e=this.style("alignment-baseline").toTextBaseline()),null!=e&&(t.textBaseline=e)},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),i=this.parent.style("font-size").numValueOrDefault(e.Font.Parse(e.ctx.font).fontSize);return new e.BoundingBox(t,n-i,t+Math.floor(2*i/3)*this.children[0].getText().length,n)},this.renderChildren=function(t){this.x=this.attribute("x").toPixels("x"),this.y=this.attribute("y").toPixels("y"),this.attribute("dx").hasValue()&&(this.x+=this.attribute("dx").toPixels("x")),this.attribute("dy").hasValue()&&(this.y+=this.attribute("dy").toPixels("y")),this.x+=this.getAnchorDelta(t,this,0);for(var e=0;e<this.children.length;e++)this.renderChild(t,this,this,e)},this.getAnchorDelta=function(t,e,n){var i=this.style("text-anchor").valueOrDefault("start");if("start"!=i){for(var r=0,o=n;o<e.children.length;o++){var a=e.children[o];if(o>n&&a.attribute("x").hasValue())break;r+=a.measureTextRecursive(t)}return-1*("end"==i?r:r/2)}return 0},this.renderChild=function(t,e,n,i){var r=n.children[i];r.attribute("x").hasValue()?(r.x=r.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,i),r.attribute("dx").hasValue()&&(r.x+=r.attribute("dx").toPixels("x"))):(r.attribute("dx").hasValue()&&(e.x+=r.attribute("dx").toPixels("x")),r.x=e.x),e.x=r.x+r.measureText(t),r.attribute("y").hasValue()?(r.y=r.attribute("y").toPixels("y"),r.attribute("dy").hasValue()&&(r.y+=r.attribute("dy").toPixels("y"))):(r.attribute("dy").hasValue()&&(e.y+=r.attribute("dy").toPixels("y")),r.y=e.y),e.y=r.y,r.render(t);for(i=0;i<r.children.length;i++)e.renderChild(t,e,r,i)}},e.Element.text.prototype=new e.Element.RenderedElementBase,e.Element.TextElementBase=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.getGlyph=function(t,e,n){var i=e[n],r=null;if(t.isArabic){var o="isolated";(0==n||" "==e[n-1])&&n<e.length-2&&" "!=e[n+1]&&(o="terminal"),n>0&&" "!=e[n-1]&&n<e.length-2&&" "!=e[n+1]&&(o="medial"),n>0&&" "!=e[n-1]&&(n==e.length-1||" "==e[n+1])&&(o="initial"),void 0!==t.glyphs[i]&&null==(r=t.glyphs[i][o])&&"glyph"==t.glyphs[i].type&&(r=t.glyphs[i])}else r=t.glyphs[i];return null==r&&(r=t.missingGlyph),r},this.renderChildren=function(t){var n=this.parent.style("font-family").getDefinition();if(null==n)""!=t.fillStyle&&t.fillText(e.compressSpaces(this.getText()),this.x,this.y),""!=t.strokeStyle&&t.strokeText(e.compressSpaces(this.getText()),this.x,this.y);else{var i=this.parent.style("font-size").numValueOrDefault(e.Font.Parse(e.ctx.font).fontSize),r=this.parent.style("font-style").valueOrDefault(e.Font.Parse(e.ctx.font).fontStyle),o=this.getText();n.isRTL&&(o=o.split("").reverse().join(""));for(var a=e.ToNumberArray(this.parent.attribute("dx").value),s=0;s<o.length;s++){var u=this.getGlyph(n,o,s),l=i/n.fontFace.unitsPerEm;t.translate(this.x,this.y),t.scale(l,-l);var c=t.lineWidth;t.lineWidth=t.lineWidth*n.fontFace.unitsPerEm/i,"italic"==r&&t.transform(1,0,.4,1,0,0),u.render(t),"italic"==r&&t.transform(1,0,-.4,1,0,0),t.lineWidth=c,t.scale(1/l,-1/l),t.translate(-this.x,-this.y),this.x+=i*(u.horizAdvX||n.horizAdvX)/n.fontFace.unitsPerEm,void 0===a[s]||isNaN(a[s])||(this.x+=a[s])}}},this.getText=function(){},this.measureTextRecursive=function(t){for(var e=this.measureText(t),n=0;n<this.children.length;n++)e+=this.children[n].measureTextRecursive(t);return e},this.measureText=function(t){var n=this.parent.style("font-family").getDefinition();if(null!=n){var i=this.parent.style("font-size").numValueOrDefault(e.Font.Parse(e.ctx.font).fontSize),r=0,o=this.getText();n.isRTL&&(o=o.split("").reverse().join(""));for(var a=e.ToNumberArray(this.parent.attribute("dx").value),s=0;s<o.length;s++){r+=(this.getGlyph(n,o,s).horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,void 0===a[s]||isNaN(a[s])||(r+=a[s])}return r}var u=e.compressSpaces(this.getText());if(!t.measureText)return 10*u.length;t.save(),this.setContext(t);var l=t.measureText(u).width;return t.restore(),l}},e.Element.TextElementBase.prototype=new e.Element.RenderedElementBase,e.Element.tspan=function(t){this.captureTextNodes=!0,this.base=e.Element.TextElementBase,this.base(t),this.text=e.compressSpaces(t.value||t.text||t.textContent||""),this.getText=function(){return this.children.length>0?"":this.text}},e.Element.tspan.prototype=new e.Element.TextElementBase,e.Element.tref=function(t){this.base=e.Element.TextElementBase,this.base(t),this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(null!=t)return t.children[0].getText()}},e.Element.tref.prototype=new e.Element.TextElementBase,e.Element.a=function(t){this.base=e.Element.TextElementBase,this.base(t),this.hasText=t.childNodes.length>0;for(var n=0;n<t.childNodes.length;n++)3!=t.childNodes[n].nodeType&&(this.hasText=!1);this.text=this.hasText?t.childNodes[0].value:"",this.getText=function(){return this.text},this.baseRenderChildren=this.renderChildren,this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var n=new e.Property("fontSize",e.Font.Parse(e.ctx.font).fontSize);e.Mouse.checkBoundingBox(this,new e.BoundingBox(this.x,this.y-n.toPixels("y"),this.x+this.measureText(t),this.y))}else if(this.children.length>0){var i=new e.Element.g;i.children=this.children,i.parent=this,i.render(t)}},this.onclick=function(){window.open(this.getHrefAttribute().value)},this.onmousemove=function(){e.ctx.canvas.style.cursor="pointer"}},e.Element.a.prototype=new e.Element.TextElementBase,e.Element.image=function(t){this.base=e.Element.RenderedElementBase,this.base(t);var n=this.getHrefAttribute().value;if(""!=n){var i=n.match(/\.svg$/);if(e.Images.push(this),this.loaded=!1,i)this.img=e.ajax(n),this.loaded=!0;else{this.img=document.createElement("img"),1==e.opts.useCORS&&(this.img.crossOrigin="Anonymous");var r=this;this.img.onload=function(){r.loaded=!0},this.img.onerror=function(){e.log('ERROR: image "'+n+'" not found'),r.loaded=!0},this.img.src=n}this.renderChildren=function(t){var n=this.attribute("x").toPixels("x"),r=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");0!=o&&0!=a&&(t.save(),i?t.drawSvg(this.img,n,r,o,a):(t.translate(n,r),e.AspectRatio(t,this.attribute("preserveAspectRatio").value,o,this.img.width,a,this.img.height,0,0),t.drawImage(this.img,0,0)),t.restore())},this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x"),n=this.attribute("y").toPixels("y"),i=this.attribute("width").toPixels("x"),r=this.attribute("height").toPixels("y");return new e.BoundingBox(t,n,t+i,n+r)}}},e.Element.image.prototype=new e.Element.RenderedElementBase,e.Element.g=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.getBoundingBox=function(){for(var t=new e.BoundingBox,n=0;n<this.children.length;n++)t.addBoundingBox(this.children[n].getBoundingBox());return t}},e.Element.g.prototype=new e.Element.RenderedElementBase,e.Element.symbol=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.render=function(t){}},e.Element.symbol.prototype=new e.Element.RenderedElementBase,e.Element.style=function(t){this.base=e.Element.ElementBase,this.base(t);for(var n="",i=0;i<t.childNodes.length;i++)n+=t.childNodes[i].data;n=n.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");var r=(n=e.compressSpaces(n)).split("}");for(i=0;i<r.length;i++)if(""!=e.trim(r[i]))for(var o=r[i].split("{"),a=o[0].split(","),s=o[1].split(";"),u=0;u<a.length;u++){var l=e.trim(a[u]);if(""!=l){for(var c=e.Styles[l]||{},h=0;h<s.length;h++){var f=s[h].indexOf(":"),d=s[h].substr(0,f),g=s[h].substr(f+1,s[h].length-f);null!=d&&null!=g&&(c[e.trim(d)]=new e.Property(e.trim(d),e.trim(g)))}if(e.Styles[l]=c,e.StylesSpecificity[l]=Wg(l),"@font-face"==l)for(var p=c["font-family"].value.replace(/"/g,""),v=c.src.value.split(","),y=0;y<v.length;y++)if(v[y].indexOf('format("svg")')>0)for(var m=v[y].indexOf("url"),_=v[y].indexOf(")",m),b=v[y].substr(m+5,_-m-6),w=e.parseXml(e.ajax(b)).getElementsByTagName("font"),x=0;x<w.length;x++){var k=e.CreateElement(w[x]);e.Definitions[p]=k}}}},e.Element.style.prototype=new e.Element.ElementBase,e.Element.use=function(t){this.base=e.Element.RenderedElementBase,this.base(t),this.baseSetContext=this.setContext,this.setContext=function(t){this.baseSetContext(t),this.attribute("x").hasValue()&&t.translate(this.attribute("x").toPixels("x"),0),this.attribute("y").hasValue()&&t.translate(0,this.attribute("y").toPixels("y"))};var n=this.getHrefAttribute().getDefinition();this.path=function(t){null!=n&&n.path(t)},this.getBoundingBox=function(){if(null!=n)return n.getBoundingBox()},this.renderChildren=function(t){if(null!=n){var i=n;"symbol"==n.type&&((i=new e.Element.svg).type="svg",i.attributes.viewBox=new e.Property("viewBox",n.attribute("viewBox").value),i.attributes.preserveAspectRatio=new e.Property("preserveAspectRatio",n.attribute("preserveAspectRatio").value),i.attributes.overflow=new e.Property("overflow",n.attribute("overflow").value),i.children=n.children),"svg"==i.type&&(this.attribute("width").hasValue()&&(i.attributes.width=new e.Property("width",this.attribute("width").value)),this.attribute("height").hasValue()&&(i.attributes.height=new e.Property("height",this.attribute("height").value)));var r=i.parent;i.parent=null,i.render(t),i.parent=r}}},e.Element.use.prototype=new e.Element.RenderedElementBase,e.Element.mask=function(t){this.base=e.Element.ElementBase,this.base(t),this.apply=function(t,n){var i=this.attribute("x").toPixels("x"),r=this.attribute("y").toPixels("y"),o=this.attribute("width").toPixels("x"),a=this.attribute("height").toPixels("y");if(0==o&&0==a){for(var s=new e.BoundingBox,u=0;u<this.children.length;u++)s.addBoundingBox(this.children[u].getBoundingBox());i=Math.floor(s.x1),r=Math.floor(s.y1),o=Math.floor(s.width()),a=Math.floor(s.height())}var l=n.attribute("mask").value;n.attribute("mask").value="";var c=document.createElement("canvas");c.width=i+o,c.height=r+a;var h=c.getContext("2d");this.renderChildren(h);var f=document.createElement("canvas");f.width=i+o,f.height=r+a;var d=f.getContext("2d");n.render(d),d.globalCompositeOperation="destination-in",d.fillStyle=h.createPattern(c,"no-repeat"),d.fillRect(0,0,i+o,r+a),t.fillStyle=d.createPattern(f,"no-repeat"),t.fillRect(0,0,i+o,r+a),n.attribute("mask").value=l},this.render=function(t){}},e.Element.mask.prototype=new e.Element.ElementBase,e.Element.clipPath=function(t){this.base=e.Element.ElementBase,this.base(t),this.apply=function(t){var n=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var i=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){},n.call(t);for(var r=0;r<this.children.length;r++){var o=this.children[r];if(void 0!==o.path){var a=null;o.style("transform",!1,!0).hasValue()&&(a=new e.Transform(o.style("transform",!1,!0).value)).apply(t),o.path(t),CanvasRenderingContext2D.prototype.closePath=i,a&&a.unapply(t)}}i.call(t),t.clip(),CanvasRenderingContext2D.prototype.beginPath=n,CanvasRenderingContext2D.prototype.closePath=i},this.render=function(t){}},e.Element.clipPath.prototype=new e.Element.ElementBase,e.Element.filter=function(t){this.base=e.Element.ElementBase,this.base(t),this.apply=function(t,e){var n=e.getBoundingBox(),i=Math.floor(n.x1),r=Math.floor(n.y1),o=Math.floor(n.width()),a=Math.floor(n.height()),s=e.style("filter").value;e.style("filter").value="";for(var u=0,l=0,c=0;c<this.children.length;c++){var h=this.children[c].extraFilterDistance||0;u=Math.max(u,h),l=Math.max(l,h)}var f=document.createElement("canvas");f.width=o+2*u,f.height=a+2*l;var d=f.getContext("2d");d.translate(-i+u,-r+l),e.render(d);for(c=0;c<this.children.length;c++)"function"==typeof this.children[c].apply&&this.children[c].apply(d,0,0,o+2*u,a+2*l);t.drawImage(f,0,0,o+2*u,a+2*l,i-u,r-l,o+2*u,a+2*l),e.style("filter",!0).value=s},this.render=function(t){}},e.Element.filter.prototype=new e.Element.ElementBase,e.Element.feMorphology=function(t){this.base=e.Element.ElementBase,this.base(t),this.apply=function(t,e,n,i,r){}},e.Element.feMorphology.prototype=new e.Element.ElementBase,e.Element.feComposite=function(t){this.base=e.Element.ElementBase,this.base(t),this.apply=function(t,e,n,i,r){}},e.Element.feComposite.prototype=new e.Element.ElementBase,e.Element.feColorMatrix=function(t){this.base=e.Element.ElementBase,this.base(t);var n=e.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var r=n[0]*Math.PI/180,o=function(t,e,n){return t+Math.cos(r)*e+Math.sin(r)*n};n=[o(.213,.787,-.213),o(.715,-.715,-.715),o(.072,-.072,.928),0,0,o(.213,-.213,.143),o(.715,.285,.14),o(.072,-.072,-.283),0,0,o(.213,-.213,-.787),o(.715,-.715,.715),o(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":n=[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]}function a(t,e,n,i,r,o){return t[n*i*4+4*e+o]}function s(t,e,n,i,r,o,a){t[n*i*4+4*e+o]=a}function u(t,e){var i=n[t];return i*(i<0?e-255:e)}this.apply=function(t,e,n,i,r){var o=t.getImageData(0,0,i,r);for(n=0;n<r;n++)for(e=0;e<i;e++){var l=a(o.data,e,n,i,r,0),c=a(o.data,e,n,i,r,1),h=a(o.data,e,n,i,r,2),f=a(o.data,e,n,i,r,3);s(o.data,e,n,i,r,0,u(0,l)+u(1,c)+u(2,h)+u(3,f)+u(4,1)),s(o.data,e,n,i,r,1,u(5,l)+u(6,c)+u(7,h)+u(8,f)+u(9,1)),s(o.data,e,n,i,r,2,u(10,l)+u(11,c)+u(12,h)+u(13,f)+u(14,1)),s(o.data,e,n,i,r,3,u(15,l)+u(16,c)+u(17,h)+u(18,f)+u(19,1))}t.clearRect(0,0,i,r),t.putImageData(o,0,0)}},e.Element.feColorMatrix.prototype=new e.Element.ElementBase,e.Element.feGaussianBlur=function(t){this.base=e.Element.ElementBase,this.base(t),this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue()),this.extraFilterDistance=this.blurRadius,this.apply=function(t,n,i,r,o){void 0!==pd.canvasRGBA?(t.canvas.id=e.UniqueId(),t.canvas.style.display="none",document.body.appendChild(t.canvas),pd.canvasRGBA(t.canvas.id,n,i,r,o,this.blurRadius),document.body.removeChild(t.canvas)):e.log("ERROR: StackBlur.js must be included for blur to work")}},e.Element.feGaussianBlur.prototype=new e.Element.ElementBase,e.Element.title=function(t){},e.Element.title.prototype=new e.Element.ElementBase,e.Element.desc=function(t){},e.Element.desc.prototype=new e.Element.ElementBase,e.Element.MISSING=function(t){e.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")},e.Element.MISSING.prototype=new e.Element.ElementBase,e.CreateElement=function(t){var n=t.nodeName.replace(/^[^:]+:/,"");n=n.replace(/\-/g,"");var i=null;return(i=void 0!==e.Element[n]?new e.Element[n](t):new e.Element.MISSING(t)).type=t.nodeName,i},e.load=function(t,n){e.loadXml(t,e.ajax(n))},e.loadXml=function(t,n){e.loadXmlDoc(t,e.parseXml(n))},e.loadXmlDoc=function(t,n){e.init(t);var i=function(e){for(var n=t.canvas;n;)e.x-=n.offsetLeft,e.y-=n.offsetTop,n=n.offsetParent;return window.scrollX&&(e.x+=window.scrollX),window.scrollY&&(e.y+=window.scrollY),e};1!=e.opts.ignoreMouse&&(t.canvas.onclick=function(t){var n=i(new e.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));e.Mouse.onclick(n.x,n.y)},t.canvas.onmousemove=function(t){var n=i(new e.Point(null!=t?t.clientX:event.clientX,null!=t?t.clientY:event.clientY));e.Mouse.onmousemove(n.x,n.y)});var r=e.CreateElement(n.documentElement);r.root=!0,r.addStylesFromStyleDefinition();var o=!0,a=function(){e.ViewPort.Clear(),t.canvas.parentNode&&e.ViewPort.SetCurrent(t.canvas.parentNode.clientWidth,t.canvas.parentNode.clientHeight),1!=e.opts.ignoreDimensions&&(r.style("width").hasValue()&&(t.canvas.width=r.style("width").toPixels("x"),t.canvas.style.width=t.canvas.width+"px"),r.style("height").hasValue()&&(t.canvas.height=r.style("height").toPixels("y"),t.canvas.style.height=t.canvas.height+"px"));var i=t.canvas.clientWidth||t.canvas.width,a=t.canvas.clientHeight||t.canvas.height;if(1==e.opts.ignoreDimensions&&r.style("width").hasValue()&&r.style("height").hasValue()&&(i=r.style("width").toPixels("x"),a=r.style("height").toPixels("y")),e.ViewPort.SetCurrent(i,a),null!=e.opts.offsetX&&(r.attribute("x",!0).value=e.opts.offsetX),null!=e.opts.offsetY&&(r.attribute("y",!0).value=e.opts.offsetY),null!=e.opts.scaleWidth||null!=e.opts.scaleHeight){var s=null,u=null,l=e.ToNumberArray(r.attribute("viewBox").value);null!=e.opts.scaleWidth&&(r.attribute("width").hasValue()?s=r.attribute("width").toPixels("x")/e.opts.scaleWidth:isNaN(l[2])||(s=l[2]/e.opts.scaleWidth)),null!=e.opts.scaleHeight&&(r.attribute("height").hasValue()?u=r.attribute("height").toPixels("y")/e.opts.scaleHeight:isNaN(l[3])||(u=l[3]/e.opts.scaleHeight)),null==s&&(s=u),null==u&&(u=s),r.attribute("width",!0).value=e.opts.scaleWidth,r.attribute("height",!0).value=e.opts.scaleHeight,r.style("transform",!0,!0).value+=" scale("+1/s+","+1/u+")"}1!=e.opts.ignoreClear&&t.clearRect(0,0,i,a),r.render(t),o&&(o=!1,"function"==typeof e.opts.renderCallback&&e.opts.renderCallback(n))},s=!0;e.ImagesLoaded()&&(s=!1,a()),e.intervalID=setInterval((function(){var t=!1;if(s&&e.ImagesLoaded()&&(s=!1,t=!0),1!=e.opts.ignoreMouse&&(t|=e.Mouse.hasEvents()),1!=e.opts.ignoreAnimation)for(var n=0;n<e.Animations.length;n++)t|=e.Animations[n].update(1e3/e.FRAMERATE);"function"==typeof e.opts.forceRedraw&&1==e.opts.forceRedraw()&&(t=!0),t&&(a(),e.Mouse.runEvents())}),1e3/e.FRAMERATE)},e.stop=function(){e.intervalID&&clearInterval(e.intervalID)},e.Mouse=new function(){this.events=[],this.hasEvents=function(){return 0!=this.events.length},this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function(t){t.onclick&&t.onclick()}})},this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function(t){t.onmousemove&&t.onmousemove()}})},this.eventElements=[],this.checkPath=function(t,e){for(var n=0;n<this.events.length;n++){var i=this.events[n];e.isPointInPath&&e.isPointInPath(i.x,i.y)&&(this.eventElements[n]=t)}},this.checkBoundingBox=function(t,e){for(var n=0;n<this.events.length;n++){var i=this.events[n];e.isPointInBox(i.x,i.y)&&(this.eventElements[n]=t)}},this.runEvents=function(){e.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++)for(var n=this.events[t],i=this.eventElements[t];i;)n.run(i),i=i.parent;this.events=[],this.eventElements=[]}},e}(n||{});1==t.childNodes.length&&"OBJECT"==t.childNodes[0].nodeName||(t.svg=i);var r=t.getContext("2d");void 0!==e.documentElement?i.loadXmlDoc(r,e):"<"==e.substr(0,1)?i.loadXml(r,e):i.load(r,e)}else for(var o=document.querySelectorAll("svg"),a=0;a<o.length;a++){var s=o[a],u=document.createElement("canvas");u.width=s.clientWidth,u.height=s.clientHeight,s.parentNode.insertBefore(u,s),s.parentNode.removeChild(s);var l=document.createElement("div");l.appendChild(s),Ug(u,l.innerHTML)}}function Wg(t){var e=[0,0,0],n=function(n,i){var r=t.match(n);null!=r&&(e[i]+=r.length,t=t.replace(n," "))};return t=(t=t.replace(/:not\(([^\)]*)\)/g," $1 ")).replace(/{[^]*/gm," "),n(/(\[[^\]]+\])/g,1),n(/(#[^\s\+>~\.\[:]+)/g,0),n(/(\.[^\s\+>~\.\[:]+)/g,1),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,2),n(/(:[\w-]+\([^\)]*\))/gi,1),n(/(:[^\s\+>~\.\[:]+)/g,1),t=(t=t.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),n(/([^\s\+>~\.\[:]+)/g,2),e.join("")}ud((function(t,e){function n(t){this.options=t||{locator:{}}}function i(){this.cdata=!1}function r(t,e){e.lineNumber=t.lineNumber,e.columnNumber=t.columnNumber}function o(t){if(t)return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}function a(t,e,n){return"string"==typeof t?t.substr(e,n):t.length>=e+n||e?new java.lang.String(t,e,n)+"":t}function s(t,e){t.currentElement?t.currentElement.appendChild(e):t.doc.appendChild(e)}n.prototype.parseFromString=function(t,e){var n=this.options,r=new u,a=n.domBuilder||new i,s=n.errorHandler,l=n.locator,c=n.xmlns||{},h={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return l&&a.setDocumentLocator(l),r.errorHandler=function(t,e,n){if(!t){if(e instanceof i)return e;t=e}var r={},a=t instanceof Function;function s(e){var i=t[e];!i&&a&&(i=2==t.length?function(n){t(e,n)}:t),r[e]=i&&function(t){i("[xmldom "+e+"]\t"+t+o(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,a,l),r.domBuilder=n.domBuilder||a,/\/x?html?$/.test(e)&&(h.nbsp=" ",h.copy="©",c[""]="http://www.w3.org/1999/xhtml"),c.xml=c.xml||"http://www.w3.org/XML/1998/namespace",t?r.parse(t,c,h):r.errorHandler.error("invalid doc source"),a.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(t,e,n,i){var o=this.doc,a=o.createElementNS(t,n||e),u=i.length;s(this,a),this.currentElement=a,this.locator&&r(this.locator,a);for(var l=0;l<u;l++){t=i.getURI(l);var c=i.getValue(l),h=(n=i.getQName(l),o.createAttributeNS(t,n));this.locator&&r(i.getLocator(l),h),h.value=h.nodeValue=c,a.setAttributeNode(h)}},endElement:function(t,e,n){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(t,e){},endPrefixMapping:function(t){},processingInstruction:function(t,e){var n=this.doc.createProcessingInstruction(t,e);this.locator&&r(this.locator,n),s(this,n)},ignorableWhitespace:function(t,e,n){},characters:function(t,e,n){if(t=a.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(t);else i=this.doc.createTextNode(t);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(t)&&this.doc.appendChild(i),this.locator&&r(this.locator,i)}},skippedEntity:function(t){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(t){(this.locator=t)&&(t.lineNumber=0)},comment:function(t,e,n){t=a.apply(this,arguments);var i=this.doc.createComment(t);this.locator&&r(this.locator,i),s(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(t,e,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var o=i.createDocumentType(t,e,n);this.locator&&r(this.locator,o),s(this,o)}},warning:function(t){console.warn("[xmldom warning]\t"+t,o(this.locator))},error:function(t){console.error("[xmldom error]\t"+t,o(this.locator))},fatalError:function(t){throw console.error("[xmldom fatalError]\t"+t,o(this.locator)),t}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(t){i.prototype[t]=function(){return null}}));var u=Fd.XMLReader,l=e.DOMImplementation=Vg.DOMImplementation;e.XMLSerializer=Vg.XMLSerializer,e.DOMParser=n}));var qg=Ug;function Kg(t){if(t&&t.size()){var e=t.attr("stroke-width");t.attr("stroke-width",e||0),e||t.attr("stroke","transparent"),t.attr("fill")||"text"!==t.node().tagName||t.attr("fill","#000");var n=["none","transparent"].includes(t.attr("fill")),i=t.attr("fill-opacity");t.attr("fill-opacity",n?0:i),t.attr("aria-label",null),"NaN"===t.attr("x")&&t.attr("x","0px"),"NaN"===t.attr("y")&&t.attr("y","0px");var r=t.attr("xlink:href");r&&"undefined"!=typeof window&&"/"===r.charAt(0)&&t.attr("xlink:href","".concat(window.location.origin).concat(r))}}function Yg(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return Xg(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(t,e)}(t,e)||function(){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 Xg(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Zg,$g,Jg,Qg,tp,ep,np,ip,rp={background:!1,callback:function(){},exclude:[],padding:0,scale:1},op={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0};function ap(t){var e=po(t).attr("transform"),n=1,i=0,r=0;if(e){n=(n=e.match(/scale\(([^a-z]+)\)/i))?parseFloat(n[1]):1;var o=e.match(/translate\(([^a-z]+)\)/i);if(o){var a=Yg(o[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map((function(t){return parseFloat(t)*n})),2);i=a[0],r=a[1]}}return[n,i,r]}function sp(t,e){if(t){t instanceof Array||(t=[t]),e=Object.assign({},rp,e);var n=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent),i=window&&window.devicePixelRatio||1,r=t[0];r.constructor===Object&&(r=r.element);var o,a,s=e.height||parseFloat(po(r).style("height"))+parseFloat(po(r).style("padding-top"))+parseFloat(po(r).style("padding-bottom")),u=e.width||parseFloat(po(r).style("width"))+parseFloat(po(r).style("padding-left"))+parseFloat(po(r).style("padding-right")),l=0,c=0;if(r.getBoundingClientRect){var h=r.getBoundingClientRect();l=h.left,c=h.top}else l=r.offsetLeft,c=r.offsetTop;var f=e.canvas||document.createElement("canvas");f.width=(u+2*e.padding)*e.scale*i,f.height=(s+2*e.padding)*e.scale*i,f.style.width=(u+2*e.padding)*e.scale,f.style.height=(s+2*e.padding)*e.scale;var d=f.getContext("2d");d.scale(e.scale*i,e.scale*i),d.clearRect(0,0,f.width/i,f.height/i),e.background&&(d.beginPath(),d.rect(0,0,f.width/i,f.height/i),d.fillStyle=e.background,d.fill());for(var g=[],p=0;p<t.length;p++){var v=t[p],y={scale:1,x:0,y:0,svg:!1};v.constructor===Object&&(y=Object.assign(y,v),v=v.element),o=y.x,a=y.y,m.bind(v)(y)}!function t(){for(var i=!0,r=0;r<g.length;r++)if(!1===g[r].loaded){i=!1;break}i?function(){for(var t=0;t<g.length;t++){var i=g[t],r=i.clip||{height:s,width:u,x:0,y:0};switch(i.type){case"img":i.value&&(d.save(),d.beginPath(),d.translate(e.padding+r.x,e.padding+r.y),d.rect(0,0,r.width,r.height),d.clip(),d.drawImage(i.value,i.x+r.x,i.y+r.y,i.width,i.height),d.restore());break;case"html":d.save(),d.beginPath(),d.translate(e.padding,e.padding),d.drawImage(i.value,i.x,i.y,i.width,i.height),d.restore();break;case"text":var o=po(i.style),a=i.value.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"),l=o.style("color"),c=o.style("font-size"),h=o.style("font-family").split(",")[0];0!==h.indexOf("'")&&(h="'".concat(h,"'"));var p="<text stroke='none' dy='".concat(c,"' fill='").concat(l,"' font-family=").concat(h," font-size='").concat(c,"'>").concat(a,"</text>");d.save(),d.translate(e.padding,e.padding),qg(f,p,Object.assign({},op,{offsetX:i.x,offsetY:i.y})),d.restore();break;case"svg":var v=n?(new XMLSerializer).serializeToString(i.value):i.value.outerHTML;d.save(),d.translate(e.padding+r.x+i.x,e.padding+r.y+i.y),d.rect(0,0,r.width,r.height),d.clip(),qg(f,v,Object.assign({},op,{offsetX:i.x+r.x,offsetY:i.y+r.y})),d.restore();break;default:console.warn("uncaught",i)}}e.callback(f)}():setTimeout(t,500)}()}function m(t){var n=(this.tagName||"").toLowerCase();if(!e.exclude.includes(this)&&"foreignobject"!==n){var r=Object.assign({},t);if(this.tagName){var h=po(this).attr("opacity")||po(this).style("opacity"),f=po(this).style("display"),d=po(this).style("visibility");if("none"===f||"hidden"===d||h&&0===parseFloat(h))return;var p=this.tagName.toLowerCase();if(p.length&&["defs","title","desc"].includes(p))return;if("svg"===p){if(!r.svg){var v=this.getBoundingClientRect(),y=v.left,m=v.top;r.x+=y-l,r.y+=m-c,r.svg=!0}var b=po(this).attr("x");b=b?parseFloat(b)*r.scale:0,r.x+=b;var w=po(this).attr("y");w=w?parseFloat(w)*r.scale:0,r.y+=w,r.clip={height:parseFloat(po(this).attr("height")||po(this).style("height")),width:parseFloat(po(this).attr("width")||po(this).style("width")),x:b,y:w}}else{var x=po(this).attr("x");x&&(r.x+=parseFloat(x)*r.scale);var k=po(this).attr("y");k&&(r.y+=parseFloat(k)*r.scale)}}if(n.length)if("text"===n){var S=this.cloneNode(!0);po(S).call(Kg),g.push(Object.assign({},r,{type:"svg",value:S}))}else if(["image","img"].includes(n)){var C=po(this).attr("href")||po(this).attr("xlink:href");if(C.length){var E=parseFloat(po(this).attr("height"))*r.scale,A=parseFloat(po(this).attr("width"))*r.scale,R={clip:r.clip,height:E,loaded:!1,type:"img",width:A,x:r.x,y:r.y};g.push(R);var M=new Image;M.crossOrigin="Anonymous",M.onload=function(){var t=document.createElement("canvas"),e=t.getContext("2d");t.height=E*i,t.width=A*i,e.drawImage(this,0,0,A*i,E*i);var n=document.createElement("img");n.src=t.toDataURL("image/png"),R.value=n,R.loaded=!0},M.onerror=function(){R.loaded=!0,R.value=!1},M.src=C}}else if(["svg","g","text"].includes(n)||po(this).selectAll("svg").size())if("svg"!==n&&this.childNodes.length>0&&!po(this).selectAll("image, img, svg").size()){var O=this.cloneNode(!0);po(O).selectAll("*").each((function(){po(this).call(Kg),"0"===po(this).attr("opacity")&&this.parentNode.removeChild(this)})),g.push(Object.assign({},r,{type:"svg",value:O,tag:n}))}else if(this.childNodes.length>0){var T=Yg(ap(this),3),P=T[0],B=T[1],D=T[2];r.scale*=P,r.x+=B,r.y+=D,_(this,r)}else{var N=this.cloneNode(!0);if(po(N).selectAll("*").each((function(){"0"===po(this).attr("opacity")&&this.parentNode.removeChild(this)})),"line"===n)po(N).attr("x1",parseFloat(po(N).attr("x1"))+r.x),po(N).attr("x2",parseFloat(po(N).attr("x2"))+r.x),po(N).attr("y1",parseFloat(po(N).attr("y1"))+r.y),po(N).attr("y2",parseFloat(po(N).attr("y2"))+r.y);else if("path"===n){var z=Yg(ap(N),3),j=z[0],F=z[1],L=z[2];po(N).attr("transform")&&po(N).attr("transform","scale(".concat(j,")translate(").concat(F+r.x,",").concat(L+r.y,")"))}po(N).call(Kg);var I=po(N).attr("fill"),H=I&&0===I.indexOf("url");if(g.push(Object.assign({},r,{type:"svg",value:N,tag:n})),H){var G=po(I.slice(4,-1)).node().cloneNode(!0);if("pattern"===(G.tagName||"").toLowerCase()){var V=Yg(ap(N),3),U=V[0],W=V[1],q=V[2];r.scale*=U,r.x+=W,r.y+=q,_(G,r)}}}else{var K=e.scale*i,Y={height:Math.floor(s+2*e.padding+c),loaded:!1,type:"html",width:Math.floor(u+2*e.padding+l),x:Math.floor(o-l),y:Math.floor(a-c)},X=document.createElement("canvas");X.width=Y.width*K,X.height=Y.height*K,X.style.width="".concat(Y.width*K,"px"),X.style.height="".concat(Y.height*K,"px"),X.getContext("2d").scale(K,K),g.push(Y),function(t){t.selectAll("*").each((function(){var t=this.tagName.toLowerCase();if(!["option"].includes(t)){var e=po(this),n=e.style("letter-spacing");e.style("letter-spacing","normal"===n?"0.1px":n)}}))}(po(this)),cd(this,{allowTaint:!0,canvas:X,letterRendering:!0}).then((function(t){Y.value=t,Y.loaded=!0}))}else if((this.wholeText||"").replace(/\s/g,"").length){var Z=this.nodeValue.replace(/^\s*/,"").replace(/^\n/,"").replace(/^\s*/,"").replace(/\n$/,"").replace(/\s*$/,"").replace(/\n$/,"");g.push({type:"text",style:this.parentNode,value:Z,x:r.x,y:r.y})}}}function _(t,e){yo(t.childNodes).each((function(){m.bind(this)(e)}))}}
/*! @source http://purl.eligrey.com/github/canvas-toBlob.js/blob/master/canvas-toBlob.js */Zg="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||sd.content||sd,Jg=Zg.Uint8Array,Qg=Zg.HTMLCanvasElement,tp=Qg&&Qg.prototype,ep=/\s*;\s*base64\s*(?:;|$)/i,np="toDataURL",ip=function(t){for(var e,n,i=t.length,r=new Jg(i/4*3|0),o=0,a=0,s=[0,0],u=0,l=0;i--;)n=t.charCodeAt(o++),255!==(e=$g[n-43])&&void 0!==e&&(s[1]=s[0],s[0]=n,l=l<<6|e,4==++u&&(r[a++]=l>>>16,61!==s[1]&&(r[a++]=l>>>8),61!==s[0]&&(r[a++]=l),u=0));return r},Jg&&($g=new Jg([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])),!Qg||tp.toBlob&&tp.toBlobHD||(tp.toBlob||(tp.toBlob=function(t,e){if(e||(e="image/png"),this.mozGetAsFile)t(this.mozGetAsFile("canvas",e));else if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e))t(this.msToBlob());else{var n,i=Array.prototype.slice.call(arguments,1),r=this[np].apply(this,i),o=r.indexOf(","),a=r.substring(o+1),s=ep.test(r.substring(0,o));Blob.fake?((n=new Blob).encoding=s?"base64":"URI",n.data=a,n.size=a.length):Jg&&(n=s?new Blob([ip(a)],{type:e}):new Blob([decodeURIComponent(a)],{type:e})),t(n)}}),!tp.toBlobHD&&tp.toDataURLHD?tp.toBlobHD=function(){np="toDataURLHD";var t=this.toBlob();return np="toDataURL",t}:tp.toBlobHD=tp.toBlob);var up=ud((function(t){
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */
var e=e||function(t){if(!(void 0===t||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var e=t.document,n=function(){return t.URL||t.webkitURL||t},i=e.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in i,o=/constructor/i.test(t.HTMLElement)||t.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent),s=function(e){(t.setImmediate||t.setTimeout)((function(){throw e}),0)},u=function(t){setTimeout((function(){"string"==typeof t?n().revokeObjectURL(t):t.remove()}),4e4)},l=function(t){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t},c=function(e,c,h){h||(e=l(e));var f,d=this,g="application/octet-stream"===e.type,p=function(){!function(t,e,n){for(var i=(e=[].concat(e)).length;i--;){var r=t["on"+e[i]];if("function"==typeof r)try{r.call(t,n||t)}catch(t){s(t)}}}(d,"writestart progress write writeend".split(" "))};if(d.readyState=d.INIT,r)return f=n().createObjectURL(e),void setTimeout((function(){i.href=f,i.download=c,function(t){var e=new MouseEvent("click");t.dispatchEvent(e)}(i),p(),u(f),d.readyState=d.DONE}));!function(){if((a||g&&o)&&t.FileReader){var i=new FileReader;return i.onloadend=function(){var e=a?i.result:i.result.replace(/^data:[^;]*;/,"data:attachment/file;");t.open(e,"_blank")||(t.location.href=e),e=void 0,d.readyState=d.DONE,p()},i.readAsDataURL(e),void(d.readyState=d.INIT)}(f||(f=n().createObjectURL(e)),g)?t.location.href=f:t.open(f,"_blank")||(t.location.href=f);d.readyState=d.DONE,p(),u(f)}()},h=c.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(t,e,n){return e=e||t.name||"download",n||(t=l(t)),navigator.msSaveOrOpenBlob(t,e)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(t,e,n){return new c(t,e||t.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||sd.content);t.exports&&(t.exports.saveAs=e)})),lp={filename:"download",type:"png"};function cp(t){t.preventDefault(),t.stopImmediatePropagation()}function hp(t){var e=t.document.documentElement,n=po(t).on("dragstart.drag",cp,!0);"onselectstart"in e?n.on("selectstart.drag",cp,!0):(e.__noselect=e.style.MozUserSelect,e.style.MozUserSelect="none")}function fp(t,e){var n=t.document.documentElement,i=po(t).on("dragstart.drag",null);e&&(i.on("click.drag",cp,!0),setTimeout((function(){i.on("click.drag",null)}),0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var dp=function(t){return function(){return t}};function gp(t,e){var n=e.sourceEvent,i=e.target,r=e.transform,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function pp(t,e,n){this.k=t,this.x=e,this.y=n}pp.prototype={constructor:pp,scale:function(t){return 1===t?this:new pp(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new pp(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vp=new pp(1,0,0);function yp(t){for(;!t.__zoom;)if(!(t=t.parentNode))return vp;return t.__zoom}function mp(t){t.stopImmediatePropagation()}function _p(t){t.preventDefault(),t.stopImmediatePropagation()}function bp(t){return!(t.ctrlKey&&"wheel"!==t.type||t.button)}function wp(){var t=this;return t instanceof SVGElement?(t=t.ownerSVGElement||t).hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]:[[0,0],[t.clientWidth,t.clientHeight]]}function xp(){return this.__zoom||vp}function kp(t){return-t.deltaY*(1===t.deltaMode?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function Sp(){return navigator.maxTouchPoints||"ontouchstart"in this}function Cp(t,e,n){var i=t.invertX(e[0][0])-n[0][0],r=t.invertX(e[1][0])-n[1][0],o=t.invertY(e[0][1])-n[0][1],a=t.invertY(e[1][1])-n[1][1];return t.translate(r>i?(i+r)/2:Math.min(0,i)||Math.max(0,r),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}yp.prototype=pp.prototype;var Ep=1e-6,Ap=1e-12,Rp=Math.PI,Mp=Rp/2,Op=Rp/4,Tp=2*Rp,Pp=180/Rp,Bp=Rp/180,Dp=Math.abs,Np=Math.atan,zp=Math.atan2,jp=Math.cos,Fp=Math.ceil,Lp=Math.exp,Ip=Math.hypot,Hp=Math.log,Gp=Math.pow,Vp=Math.sin,Up=Math.sign||function(t){return t>0?1:t<0?-1:0},Wp=Math.sqrt,qp=Math.tan;function Kp(t){return t>1?0:t<-1?Rp:Math.acos(t)}function Yp(t){return t>1?Mp:t<-1?-Mp:Math.asin(t)}function Xp(t){return(t=Vp(t/2))*t}function Zp(){}function $p(t,e){t&&Qp.hasOwnProperty(t.type)&&Qp[t.type](t,e)}var Jp={Feature:function(t,e){$p(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)$p(n[i].geometry,e)}},Qp={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)t=n[i],e.point(t[0],t[1],t[2])},LineString:function(t,e){tv(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)tv(n[i],e,0)},Polygon:function(t,e){ev(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)ev(n[i],e)},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)$p(n[i],e)}};function tv(t,e,n){var i,r=-1,o=t.length-n;for(e.lineStart();++r<o;)i=t[r],e.point(i[0],i[1],i[2]);e.lineEnd()}function ev(t,e){var n=-1,i=t.length;for(e.polygonStart();++n<i;)tv(t[n],e,1);e.polygonEnd()}function nv(t,e){t&&Jp.hasOwnProperty(t.type)?Jp[t.type](t,e):$p(t,e)}var iv,rv,ov,av,sv,uv,lv,cv,hv,fv,dv,gv,pv,vv,yv,mv,_v=new f,bv=new f,wv={point:Zp,lineStart:Zp,lineEnd:Zp,polygonStart:function(){_v=new f,wv.lineStart=xv,wv.lineEnd=kv},polygonEnd:function(){var t=+_v;bv.add(t<0?Tp+t:t),this.lineStart=this.lineEnd=this.point=Zp},sphere:function(){bv.add(Tp)}};function xv(){wv.point=Sv}function kv(){Cv(iv,rv)}function Sv(t,e){wv.point=Cv,iv=t,rv=e,ov=t*=Bp,av=jp(e=(e*=Bp)/2+Op),sv=Vp(e)}function Cv(t,e){var n=(t*=Bp)-ov,i=n>=0?1:-1,r=i*n,o=jp(e=(e*=Bp)/2+Op),a=Vp(e),s=sv*a,u=av*o+s*jp(r),l=s*i*Vp(r);_v.add(zp(l,u)),ov=t,av=o,sv=a}function Ev(t){return[zp(t[1],t[0]),Yp(t[2])]}function Av(t){var e=t[0],n=t[1],i=jp(n);return[i*jp(e),i*Vp(e),Vp(n)]}function Rv(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Mv(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Ov(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Tv(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Pv(t){var e=Wp(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var Bv,Dv,Nv,zv,jv,Fv,Lv,Iv,Hv,Gv,Vv,Uv,Wv,qv,Kv,Yv,Xv={point:Zv,lineStart:Jv,lineEnd:Qv,polygonStart:function(){Xv.point=ty,Xv.lineStart=ey,Xv.lineEnd=ny,vv=new f,wv.polygonStart()},polygonEnd:function(){wv.polygonEnd(),Xv.point=Zv,Xv.lineStart=Jv,Xv.lineEnd=Qv,_v<0?(uv=-(cv=180),lv=-(hv=90)):vv>Ep?hv=90:vv<-Ep&&(lv=-90),mv[0]=uv,mv[1]=cv},sphere:function(){uv=-(cv=180),lv=-(hv=90)}};function Zv(t,e){yv.push(mv=[uv=t,cv=t]),e<lv&&(lv=e),e>hv&&(hv=e)}function $v(t,e){var n=Av([t*Bp,e*Bp]);if(pv){var i=Mv(pv,n),r=Mv([i[1],-i[0],0],i);Pv(r),r=Ev(r);var o,a=t-fv,s=a>0?1:-1,u=r[0]*Pp*s,l=Dp(a)>180;l^(s*fv<u&&u<s*t)?(o=r[1]*Pp)>hv&&(hv=o):l^(s*fv<(u=(u+360)%360-180)&&u<s*t)?(o=-r[1]*Pp)<lv&&(lv=o):(e<lv&&(lv=e),e>hv&&(hv=e)),l?t<fv?iy(uv,t)>iy(uv,cv)&&(cv=t):iy(t,cv)>iy(uv,cv)&&(uv=t):cv>=uv?(t<uv&&(uv=t),t>cv&&(cv=t)):t>fv?iy(uv,t)>iy(uv,cv)&&(cv=t):iy(t,cv)>iy(uv,cv)&&(uv=t)}else yv.push(mv=[uv=t,cv=t]);e<lv&&(lv=e),e>hv&&(hv=e),pv=n,fv=t}function Jv(){Xv.point=$v}function Qv(){mv[0]=uv,mv[1]=cv,Xv.point=Zv,pv=null}function ty(t,e){if(pv){var n=t-fv;vv.add(Dp(n)>180?n+(n>0?360:-360):n)}else dv=t,gv=e;wv.point(t,e),$v(t,e)}function ey(){wv.lineStart()}function ny(){ty(dv,gv),wv.lineEnd(),Dp(vv)>Ep&&(uv=-(cv=180)),mv[0]=uv,mv[1]=cv,pv=null}function iy(t,e){return(e-=t)<0?e+360:e}function ry(t,e){return t[0]-e[0]}function oy(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function ay(t){var e,n,i,r,o,a,s;if(hv=cv=-(uv=lv=1/0),yv=[],nv(t,Xv),n=yv.length){for(yv.sort(ry),e=1,o=[i=yv[0]];e<n;++e)oy(i,(r=yv[e])[0])||oy(i,r[1])?(iy(i[0],r[1])>iy(i[0],i[1])&&(i[1]=r[1]),iy(r[0],i[1])>iy(i[0],i[1])&&(i[0]=r[0])):o.push(i=r);for(a=-1/0,e=0,i=o[n=o.length-1];e<=n;i=r,++e)r=o[e],(s=iy(i[1],r[0]))>a&&(a=s,uv=r[0],cv=i[1])}return yv=mv=null,uv===1/0||lv===1/0?[[NaN,NaN],[NaN,NaN]]:[[uv,lv],[cv,hv]]}var sy={sphere:Zp,point:uy,lineStart:cy,lineEnd:dy,polygonStart:function(){sy.lineStart=gy,sy.lineEnd=py},polygonEnd:function(){sy.lineStart=cy,sy.lineEnd=dy}};function uy(t,e){t*=Bp;var n=jp(e*=Bp);ly(n*jp(t),n*Vp(t),Vp(e))}function ly(t,e,n){++Bv,Nv+=(t-Nv)/Bv,zv+=(e-zv)/Bv,jv+=(n-jv)/Bv}function cy(){sy.point=hy}function hy(t,e){t*=Bp;var n=jp(e*=Bp);qv=n*jp(t),Kv=n*Vp(t),Yv=Vp(e),sy.point=fy,ly(qv,Kv,Yv)}function fy(t,e){t*=Bp;var n=jp(e*=Bp),i=n*jp(t),r=n*Vp(t),o=Vp(e),a=zp(Wp((a=Kv*o-Yv*r)*a+(a=Yv*i-qv*o)*a+(a=qv*r-Kv*i)*a),qv*i+Kv*r+Yv*o);Dv+=a,Fv+=a*(qv+(qv=i)),Lv+=a*(Kv+(Kv=r)),Iv+=a*(Yv+(Yv=o)),ly(qv,Kv,Yv)}function dy(){sy.point=uy}function gy(){sy.point=vy}function py(){yy(Uv,Wv),sy.point=uy}function vy(t,e){Uv=t,Wv=e,t*=Bp,e*=Bp,sy.point=yy;var n=jp(e);qv=n*jp(t),Kv=n*Vp(t),Yv=Vp(e),ly(qv,Kv,Yv)}function yy(t,e){t*=Bp;var n=jp(e*=Bp),i=n*jp(t),r=n*Vp(t),o=Vp(e),a=Kv*o-Yv*r,s=Yv*i-qv*o,u=qv*r-Kv*i,l=Ip(a,s,u),c=Yp(l),h=l&&-c/l;Hv.add(h*a),Gv.add(h*s),Vv.add(h*u),Dv+=c,Fv+=c*(qv+(qv=i)),Lv+=c*(Kv+(Kv=r)),Iv+=c*(Yv+(Yv=o)),ly(qv,Kv,Yv)}function my(t){Bv=Dv=Nv=zv=jv=Fv=Lv=Iv=0,Hv=new f,Gv=new f,Vv=new f,nv(t,sy);var e=+Hv,n=+Gv,i=+Vv,r=Ip(e,n,i);return r<Ap&&(e=Fv,n=Lv,i=Iv,Dv<Ep&&(e=Nv,n=zv,i=jv),(r=Ip(e,n,i))<Ap)?[NaN,NaN]:[zp(n,e)*Pp,Yp(i/r)*Pp]}function _y(t){return function(){return t}}function by(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,i){return(n=e.invert(n,i))&&t.invert(n[0],n[1])}),n}function wy(t,e){return[Dp(t)>Rp?t+Math.round(-t/Tp)*Tp:t,e]}function xy(t,e,n){return(t%=Tp)?e||n?by(Sy(t),Cy(e,n)):Sy(t):e||n?Cy(e,n):wy}function ky(t){return function(e,n){return[(e+=t)>Rp?e-Tp:e<-Rp?e+Tp:e,n]}}function Sy(t){var e=ky(t);return e.invert=ky(-t),e}function Cy(t,e){var n=jp(t),i=Vp(t),r=jp(e),o=Vp(e);function a(t,e){var a=jp(e),s=jp(t)*a,u=Vp(t)*a,l=Vp(e),c=l*n+s*i;return[zp(u*r-c*o,s*n-l*i),Yp(c*r+u*o)]}return a.invert=function(t,e){var a=jp(e),s=jp(t)*a,u=Vp(t)*a,l=Vp(e),c=l*r-u*o;return[zp(u*r+l*o,s*n+c*i),Yp(c*n-s*i)]},a}function Ey(t){function e(e){return(e=t(e[0]*Bp,e[1]*Bp))[0]*=Pp,e[1]*=Pp,e}return t=xy(t[0]*Bp,t[1]*Bp,t.length>2?t[2]*Bp:0),e.invert=function(e){return(e=t.invert(e[0]*Bp,e[1]*Bp))[0]*=Pp,e[1]*=Pp,e},e}function Ay(t,e,n,i,r,o){if(n){var a=jp(e),s=Vp(e),u=i*n;null==r?(r=e+i*Tp,o=e-u/2):(r=Ry(a,r),o=Ry(a,o),(i>0?r<o:r>o)&&(r+=i*Tp));for(var l,c=r;i>0?c>o:c<o;c-=u)l=Ev([a,-s*jp(c),-s*Vp(c)]),t.point(l[0],l[1])}}function Ry(t,e){(e=Av(e))[0]-=t,Pv(e);var n=Kp(-e[1]);return((-e[2]<0?-n:n)+Tp-Ep)%Tp}function My(){var t,e,n=_y([0,0]),i=_y(90),r=_y(6),o={point:function(n,i){t.push(n=e(n,i)),n[0]*=Pp,n[1]*=Pp}};function a(){var a=n.apply(this,arguments),s=i.apply(this,arguments)*Bp,u=r.apply(this,arguments)*Bp;return t=[],e=xy(-a[0]*Bp,-a[1]*Bp,0).invert,Ay(o,s,u,1),a={type:"Polygon",coordinates:[t]},t=e=null,a}return a.center=function(t){return arguments.length?(n="function"==typeof t?t:_y([+t[0],+t[1]]),a):n},a.radius=function(t){return arguments.length?(i="function"==typeof t?t:_y(+t),a):i},a.precision=function(t){return arguments.length?(r="function"==typeof t?t:_y(+t),a):r},a}function Oy(){var t,e=[];return{point:function(e,n,i){t.push([e,n,i])},lineStart:function(){e.push(t=[])},lineEnd:Zp,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Ty(t,e){return Dp(t[0]-e[0])<Ep&&Dp(t[1]-e[1])<Ep}function Py(t,e,n,i){this.x=t,this.z=e,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function By(t,e,n,i,r){var o,a,s=[],u=[];if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n,i=t[0],a=t[e];if(Ty(i,a)){if(!i[2]&&!a[2]){for(r.lineStart(),o=0;o<e;++o)r.point((i=t[o])[0],i[1]);return void r.lineEnd()}a[0]+=2*Ep}s.push(n=new Py(i,t,null,!0)),u.push(n.o=new Py(i,null,n,!1)),s.push(n=new Py(a,t,null,!1)),u.push(n.o=new Py(a,null,n,!0))}})),s.length){for(u.sort(e),Dy(s),Dy(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var l,c,h=s[0];;){for(var f=h,d=!0;f.v;)if((f=f.n)===h)return;l=f.z,r.lineStart();do{if(f.v=f.o.v=!0,f.e){if(d)for(o=0,a=l.length;o<a;++o)r.point((c=l[o])[0],c[1]);else i(f.x,f.n.x,1,r);f=f.n}else{if(d)for(l=f.p.z,o=l.length-1;o>=0;--o)r.point((c=l[o])[0],c[1]);else i(f.x,f.p.x,-1,r);f=f.p}l=(f=f.o).z,d=!d}while(!f.v);r.lineEnd()}}}function Dy(t){if(e=t.length){for(var e,n,i=0,r=t[0];++i<e;)r.n=n=t[i],n.p=r,r=n;r.n=n=t[0],n.p=r}}function Ny(t){return Dp(t[0])<=Rp?t[0]:Up(t[0])*((Dp(t[0])+Rp)%Tp-Rp)}function zy(t,e){var n=Ny(e),i=e[1],r=Vp(i),o=[Vp(n),-jp(n),0],a=0,s=0,u=new f;1===r?i=Mp+Ep:-1===r&&(i=-Mp-Ep);for(var l=0,c=t.length;l<c;++l)if(d=(h=t[l]).length)for(var h,d,g=h[d-1],p=Ny(g),v=g[1]/2+Op,y=Vp(v),m=jp(v),_=0;_<d;++_,p=w,y=k,m=S,g=b){var b=h[_],w=Ny(b),x=b[1]/2+Op,k=Vp(x),S=jp(x),C=w-p,E=C>=0?1:-1,A=E*C,R=A>Rp,M=y*k;if(u.add(zp(M*E*Vp(A),m*S+M*jp(A))),a+=R?C+E*Tp:C,R^p>=n^w>=n){var O=Mv(Av(g),Av(b));Pv(O);var T=Mv(o,O);Pv(T);var P=(R^C>=0?-1:1)*Yp(T[2]);(i>P||i===P&&(O[0]||O[1]))&&(s+=R^C>=0?1:-1)}}return(a<-Ep||a<Ep&&u<-Ap)^1&s}function jy(t,e,n,i){return function(r){var o,a,s,u=e(r),l=Oy(),c=e(l),h=!1,f={point:d,lineStart:p,lineEnd:v,polygonStart:function(){f.point=y,f.lineStart=m,f.lineEnd=_,a=[],o=[]},polygonEnd:function(){f.point=d,f.lineStart=p,f.lineEnd=v,a=B(a);var t=zy(o,i);a.length?(h||(r.polygonStart(),h=!0),By(a,Ly,t,n,r)):t&&(h||(r.polygonStart(),h=!0),r.lineStart(),n(null,null,1,r),r.lineEnd()),h&&(r.polygonEnd(),h=!1),a=o=null},sphere:function(){r.polygonStart(),r.lineStart(),n(null,null,1,r),r.lineEnd(),r.polygonEnd()}};function d(e,n){t(e,n)&&r.point(e,n)}function g(t,e){u.point(t,e)}function p(){f.point=g,u.lineStart()}function v(){f.point=d,u.lineEnd()}function y(t,e){s.push([t,e]),c.point(t,e)}function m(){c.lineStart(),s=[]}function _(){y(s[0][0],s[0][1]),c.lineEnd();var t,e,n,i,u=c.clean(),f=l.result(),d=f.length;if(s.pop(),o.push(s),s=null,d)if(1&u){if((e=(n=f[0]).length-1)>0){for(h||(r.polygonStart(),h=!0),r.lineStart(),t=0;t<e;++t)r.point((i=n[t])[0],i[1]);r.lineEnd()}}else d>1&&2&u&&f.push(f.pop().concat(f.shift())),a.push(f.filter(Fy))}return f}}function Fy(t){return t.length>1}function Ly(t,e){return((t=t.x)[0]<0?t[1]-Mp-Ep:Mp-t[1])-((e=e.x)[0]<0?e[1]-Mp-Ep:Mp-e[1])}wy.invert=wy;var Iy=jy((function(){return!0}),(function(t){var e,n=NaN,i=NaN,r=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(o,a){var s=o>0?Rp:-Rp,u=Dp(o-n);Dp(u-Rp)<Ep?(t.point(n,i=(i+a)/2>0?Mp:-Mp),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(s,i),t.point(o,i),e=0):r!==s&&u>=Rp&&(Dp(n-r)<Ep&&(n-=r*Ep),Dp(o-s)<Ep&&(o-=s*Ep),i=function(t,e,n,i){var r,o,a=Vp(t-n);return Dp(a)>Ep?Np((Vp(e)*(o=jp(i))*Vp(n)-Vp(i)*(r=jp(e))*Vp(t))/(r*o*a)):(e+i)/2}(n,i,o,a),t.point(r,i),t.lineEnd(),t.lineStart(),t.point(s,i),e=0),t.point(n=o,i=a),r=s},lineEnd:function(){t.lineEnd(),n=i=NaN},clean:function(){return 2-e}}}),(function(t,e,n,i){var r;if(null==t)r=n*Mp,i.point(-Rp,r),i.point(0,r),i.point(Rp,r),i.point(Rp,0),i.point(Rp,-r),i.point(0,-r),i.point(-Rp,-r),i.point(-Rp,0),i.point(-Rp,r);else if(Dp(t[0]-e[0])>Ep){var o=t[0]<e[0]?Rp:-Rp;r=n*o/2,i.point(-o,r),i.point(0,r),i.point(o,r)}else i.point(e[0],e[1])}),[-Rp,-Mp]);function Hy(t){var e=jp(t),n=6*Bp,i=e>0,r=Dp(e)>Ep;function o(t,n){return jp(t)*jp(n)>e}function a(t,n,i){var r=[1,0,0],o=Mv(Av(t),Av(n)),a=Rv(o,o),s=o[0],u=a-s*s;if(!u)return!i&&t;var l=e*a/u,c=-e*s/u,h=Mv(r,o),f=Tv(r,l);Ov(f,Tv(o,c));var d=h,g=Rv(f,d),p=Rv(d,d),v=g*g-p*(Rv(f,f)-1);if(!(v<0)){var y=Wp(v),m=Tv(d,(-g-y)/p);if(Ov(m,f),m=Ev(m),!i)return m;var _,b=t[0],w=n[0],x=t[1],k=n[1];w<b&&(_=b,b=w,w=_);var S=w-b,C=Dp(S-Rp)<Ep;if(!C&&k<x&&(_=x,x=k,k=_),C||S<Ep?C?x+k>0^m[1]<(Dp(m[0]-b)<Ep?x:k):x<=m[1]&&m[1]<=k:S>Rp^(b<=m[0]&&m[0]<=w)){var E=Tv(d,(-g+y)/p);return Ov(E,f),[m,Ev(E)]}}}function s(e,n){var r=i?t:Rp-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}return jy(o,(function(t){var e,n,u,l,c;return{lineStart:function(){l=u=!1,c=1},point:function(h,f){var d,g=[h,f],p=o(h,f),v=i?p?0:s(h,f):p?s(h+(h<0?Rp:-Rp),f):0;if(!e&&(l=u=p)&&t.lineStart(),p!==u&&(!(d=a(e,g))||Ty(e,d)||Ty(g,d))&&(g[2]=1),p!==u)c=0,p?(t.lineStart(),d=a(g,e),t.point(d[0],d[1])):(d=a(e,g),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(r&&e&&i^p){var y;v&n||!(y=a(g,e,!0))||(c=0,i?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!p||e&&Ty(e,g)||t.point(g[0],g[1]),e=g,u=p,n=v},lineEnd:function(){u&&t.lineEnd(),e=null},clean:function(){return c|(l&&u)<<1}}}),(function(e,i,r,o){Ay(o,t,n,r,e,i)}),i?[0,-t]:[-Rp,t-Rp])}var Gy,Vy,Uy,Wy,qy=1e9,Ky=-qy;function Yy(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,s,l){var c=0,h=0;if(null==r||(c=a(r,s))!==(h=a(o,s))||u(r,o)<0^s>0)do{l.point(0===c||3===c?t:n,c>1?i:e)}while((c=(c+s+4)%4)!==h);else l.point(o[0],o[1])}function a(i,r){return Dp(i[0]-t)<Ep?r>0?0:3:Dp(i[0]-n)<Ep?r>0?2:1:Dp(i[1]-e)<Ep?r>0?1:0:r>0?3:2}function s(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),i=a(e,1);return n!==i?n-i:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(a){var u,l,c,h,f,d,g,p,v,y,m,_=a,b=Oy(),w={point:x,lineStart:function(){w.point=k,l&&l.push(c=[]);y=!0,v=!1,g=p=NaN},lineEnd:function(){u&&(k(h,f),d&&v&&b.rejoin(),u.push(b.result()));w.point=x,v&&_.lineEnd()},polygonStart:function(){_=b,u=[],l=[],m=!0},polygonEnd:function(){var e=function(){for(var e=0,n=0,r=l.length;n<r;++n)for(var o,a,s=l[n],u=1,c=s.length,h=s[0],f=h[0],d=h[1];u<c;++u)o=f,a=d,f=(h=s[u])[0],d=h[1],a<=i?d>i&&(f-o)*(i-a)>(d-a)*(t-o)&&++e:d<=i&&(f-o)*(i-a)<(d-a)*(t-o)&&--e;return e}(),n=m&&e,r=(u=B(u)).length;(n||r)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),r&&By(u,s,e,o,a),a.polygonEnd());_=a,u=l=c=null}};function x(t,e){r(t,e)&&_.point(t,e)}function k(o,a){var s=r(o,a);if(l&&c.push([o,a]),y)h=o,f=a,d=s,y=!1,s&&(_.lineStart(),_.point(o,a));else if(s&&v)_.point(o,a);else{var u=[g=Math.max(Ky,Math.min(qy,g)),p=Math.max(Ky,Math.min(qy,p))],b=[o=Math.max(Ky,Math.min(qy,o)),a=Math.max(Ky,Math.min(qy,a))];!function(t,e,n,i,r,o){var a,s=t[0],u=t[1],l=0,c=1,h=e[0]-s,f=e[1]-u;if(a=n-s,h||!(a>0)){if(a/=h,h<0){if(a<l)return;a<c&&(c=a)}else if(h>0){if(a>c)return;a>l&&(l=a)}if(a=r-s,h||!(a<0)){if(a/=h,h<0){if(a>c)return;a>l&&(l=a)}else if(h>0){if(a<l)return;a<c&&(c=a)}if(a=i-u,f||!(a>0)){if(a/=f,f<0){if(a<l)return;a<c&&(c=a)}else if(f>0){if(a>c)return;a>l&&(l=a)}if(a=o-u,f||!(a<0)){if(a/=f,f<0){if(a>c)return;a>l&&(l=a)}else if(f>0){if(a<l)return;a<c&&(c=a)}return l>0&&(t[0]=s+l*h,t[1]=u+l*f),c<1&&(e[0]=s+c*h,e[1]=u+c*f),!0}}}}}(u,b,t,e,n,i)?s&&(_.lineStart(),_.point(o,a),m=!1):(v||(_.lineStart(),_.point(u[0],u[1])),_.point(b[0],b[1]),s||_.lineEnd(),m=!1)}g=o,p=a,v=s}return w}}var Xy={sphere:Zp,point:Zp,lineStart:function(){Xy.point=$y,Xy.lineEnd=Zy},lineEnd:Zp,polygonStart:Zp,polygonEnd:Zp};function Zy(){Xy.point=Xy.lineEnd=Zp}function $y(t,e){Vy=t*=Bp,Uy=Vp(e*=Bp),Wy=jp(e),Xy.point=Jy}function Jy(t,e){t*=Bp;var n=Vp(e*=Bp),i=jp(e),r=Dp(t-Vy),o=jp(r),a=i*Vp(r),s=Wy*n-Uy*i*o,u=Uy*n+Wy*i*o;Gy.add(zp(Wp(a*a+s*s),u)),Vy=t,Uy=n,Wy=i}function Qy(t){return Gy=new f,nv(t,Xy),+Gy}var tm=[null,null],em={type:"LineString",coordinates:tm};function nm(t,e){return tm[0]=t,tm[1]=e,Qy(em)}var im={Feature:function(t,e){return om(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,i=-1,r=n.length;++i<r;)if(om(n[i].geometry,e))return!0;return!1}},rm={Sphere:function(){return!0},Point:function(t,e){return am(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(am(n[i],e))return!0;return!1},LineString:function(t,e){return sm(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(sm(n[i],e))return!0;return!1},Polygon:function(t,e){return um(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,i=-1,r=n.length;++i<r;)if(um(n[i],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,i=-1,r=n.length;++i<r;)if(om(n[i],e))return!0;return!1}};function om(t,e){return!(!t||!rm.hasOwnProperty(t.type))&&rm[t.type](t,e)}function am(t,e){return 0===nm(t,e)}function sm(t,e){for(var n,i,r,o=0,a=t.length;o<a;o++){if(0===(i=nm(t[o],e)))return!0;if(o>0&&(r=nm(t[o],t[o-1]))>0&&n<=r&&i<=r&&(n+i-r)*(1-Math.pow((n-i)/r,2))<Ap*r)return!0;n=i}return!1}function um(t,e){return!!zy(t.map(lm),cm(e))}function lm(t){return(t=t.map(cm)).pop(),t}function cm(t){return[t[0]*Bp,t[1]*Bp]}function hm(t,e,n){var i=D(t,e-Ep,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function fm(t,e,n){var i=D(t,e-Ep,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function dm(){var t,e,n,i,r,o,a,s,u,l,c,h,f=10,d=f,g=90,p=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:m()}}function m(){return D(Fp(i/g)*g,n,g).map(c).concat(D(Fp(s/p)*p,a,p).map(h)).concat(D(Fp(e/f)*f,t,f).filter((function(t){return Dp(t%g)>Ep})).map(u)).concat(D(Fp(o/d)*d,r,d).filter((function(t){return Dp(t%p)>Ep})).map(l))}return y.lines=function(){return m().map((function(t){return{type:"LineString",coordinates:t}}))},y.outline=function(){return{type:"Polygon",coordinates:[c(i).concat(h(a).slice(1),c(n).reverse().slice(1),h(s).reverse().slice(1))]}},y.extent=function(t){return arguments.length?y.extentMajor(t).extentMinor(t):y.extentMinor()},y.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],s=+t[0][1],a=+t[1][1],i>n&&(t=i,i=n,n=t),s>a&&(t=s,s=a,a=t),y.precision(v)):[[i,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],r=+n[1][1],e>t&&(n=e,e=t,t=n),o>r&&(n=o,o=r,r=n),y.precision(v)):[[e,o],[t,r]]},y.step=function(t){return arguments.length?y.stepMajor(t).stepMinor(t):y.stepMinor()},y.stepMajor=function(t){return arguments.length?(g=+t[0],p=+t[1],y):[g,p]},y.stepMinor=function(t){return arguments.length?(f=+t[0],d=+t[1],y):[f,d]},y.precision=function(f){return arguments.length?(v=+f,u=hm(o,r,90),l=fm(e,t,v),c=hm(s,a,90),h=fm(i,n,v),y):v},y.extentMajor([[-180,-90+Ep],[180,90-Ep]]).extentMinor([[-180,-80-Ep],[180,80+Ep]])}function gm(t,e){var n=t[0]*Bp,i=t[1]*Bp,r=e[0]*Bp,o=e[1]*Bp,a=jp(i),s=Vp(i),u=jp(o),l=Vp(o),c=a*jp(n),h=a*Vp(n),f=u*jp(r),d=u*Vp(r),g=2*Yp(Wp(Xp(o-i)+a*u*Xp(r-n))),p=Vp(g),v=g?function(t){var e=Vp(t*=g)/p,n=Vp(g-t)/p,i=n*c+e*f,r=n*h+e*d,o=n*s+e*l;return[zp(r,i)*Pp,zp(o,Wp(i*i+r*r))*Pp]}:function(){return[n*Pp,i*Pp]};return v.distance=g,v}var pm,vm,ym,mm,_m=function(t){return t},bm=new f,wm=new f,xm={point:Zp,lineStart:Zp,lineEnd:Zp,polygonStart:function(){xm.lineStart=km,xm.lineEnd=Em},polygonEnd:function(){xm.lineStart=xm.lineEnd=xm.point=Zp,bm.add(Dp(wm)),wm=new f},result:function(){var t=bm/2;return bm=new f,t}};function km(){xm.point=Sm}function Sm(t,e){xm.point=Cm,pm=ym=t,vm=mm=e}function Cm(t,e){wm.add(mm*t-ym*e),ym=t,mm=e}function Em(){Cm(pm,vm)}var Am=1/0,Rm=Am,Mm=-Am,Om=Mm,Tm={point:function(t,e){t<Am&&(Am=t);t>Mm&&(Mm=t);e<Rm&&(Rm=e);e>Om&&(Om=e)},lineStart:Zp,lineEnd:Zp,polygonStart:Zp,polygonEnd:Zp,result:function(){var t=[[Am,Rm],[Mm,Om]];return Mm=Om=-(Rm=Am=1/0),t}};var Pm,Bm,Dm,Nm,zm=0,jm=0,Fm=0,Lm=0,Im=0,Hm=0,Gm=0,Vm=0,Um=0,Wm={point:qm,lineStart:Km,lineEnd:Zm,polygonStart:function(){Wm.lineStart=$m,Wm.lineEnd=Jm},polygonEnd:function(){Wm.point=qm,Wm.lineStart=Km,Wm.lineEnd=Zm},result:function(){var t=Um?[Gm/Um,Vm/Um]:Hm?[Lm/Hm,Im/Hm]:Fm?[zm/Fm,jm/Fm]:[NaN,NaN];return zm=jm=Fm=Lm=Im=Hm=Gm=Vm=Um=0,t}};function qm(t,e){zm+=t,jm+=e,++Fm}function Km(){Wm.point=Ym}function Ym(t,e){Wm.point=Xm,qm(Dm=t,Nm=e)}function Xm(t,e){var n=t-Dm,i=e-Nm,r=Wp(n*n+i*i);Lm+=r*(Dm+t)/2,Im+=r*(Nm+e)/2,Hm+=r,qm(Dm=t,Nm=e)}function Zm(){Wm.point=qm}function $m(){Wm.point=Qm}function Jm(){t_(Pm,Bm)}function Qm(t,e){Wm.point=t_,qm(Pm=Dm=t,Bm=Nm=e)}function t_(t,e){var n=t-Dm,i=e-Nm,r=Wp(n*n+i*i);Lm+=r*(Dm+t)/2,Im+=r*(Nm+e)/2,Hm+=r,Gm+=(r=Nm*t-Dm*e)*(Dm+t),Vm+=r*(Nm+e),Um+=3*r,qm(Dm=t,Nm=e)}function e_(t){this._context=t}e_.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,Tp)}},result:Zp};var n_,i_,r_,o_,a_,s_=new f,u_={point:Zp,lineStart:function(){u_.point=l_},lineEnd:function(){n_&&c_(i_,r_),u_.point=Zp},polygonStart:function(){n_=!0},polygonEnd:function(){n_=null},result:function(){var t=+s_;return s_=new f,t}};function l_(t,e){u_.point=c_,i_=o_=t,r_=a_=e}function c_(t,e){o_-=t,a_-=e,s_.add(Wp(o_*o_+a_*a_)),o_=t,a_=e}function h_(){this._string=[]}function f_(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function d_(t){return function(e){var n=new g_;for(var i in t)n[i]=t[i];return n.stream=e,n}}function g_(){}function p_(t,e,n){var i=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=i&&t.clipExtent(null),nv(n,t.stream(Tm)),e(Tm.result()),null!=i&&t.clipExtent(i),t}function v_(t,e,n){return p_(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),a=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,s=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([a,s])}),n)}function y_(t,e,n){return v_(t,[[0,0],e],n)}function m_(t,e,n){return p_(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,a=-r*n[0][1];t.scale(150*r).translate([o,a])}),n)}function __(t,e,n){return p_(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],a=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,a])}),n)}h_.prototype={_radius:4.5,_circle:f_(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push("M",t,",",e),this._point=1;break;case 1:this._string.push("L",t,",",e);break;default:null==this._circle&&(this._circle=f_(this._radius)),this._string.push("M",t,",",e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join("");return this._string=[],t}return null}},g_.prototype={constructor:g_,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var b_=16,w_=jp(30*Bp);function x_(t,e){return+e?function(t,e){function n(i,r,o,a,s,u,l,c,h,f,d,g,p,v){var y=l-i,m=c-r,_=y*y+m*m;if(_>4*e&&p--){var b=a+f,w=s+d,x=u+g,k=Wp(b*b+w*w+x*x),S=Yp(x/=k),C=Dp(Dp(x)-1)<Ep||Dp(o-h)<Ep?(o+h)/2:zp(w,b),E=t(C,S),A=E[0],R=E[1],M=A-i,O=R-r,T=m*M-y*O;(T*T/_>e||Dp((y*M+m*O)/_-.5)>.3||a*f+s*d+u*g<w_)&&(n(i,r,o,a,s,u,A,R,C,b/=k,w/=k,x,p,v),v.point(A,R),n(A,R,C,b,w,x,l,c,h,f,d,g,p,v))}}return function(e){var i,r,o,a,s,u,l,c,h,f,d,g,p={point:v,lineStart:y,lineEnd:_,polygonStart:function(){e.polygonStart(),p.lineStart=b},polygonEnd:function(){e.polygonEnd(),p.lineStart=y}};function v(n,i){n=t(n,i),e.point(n[0],n[1])}function y(){c=NaN,p.point=m,e.lineStart()}function m(i,r){var o=Av([i,r]),a=t(i,r);n(c,h,l,f,d,g,c=a[0],h=a[1],l=i,f=o[0],d=o[1],g=o[2],b_,e),e.point(c,h)}function _(){p.point=v,e.lineEnd()}function b(){y(),p.point=w,p.lineEnd=x}function w(t,e){m(i=t,e),r=c,o=h,a=f,s=d,u=g,p.point=m}function x(){n(c,h,l,f,d,g,r,o,i,a,s,u,b_,e),p.lineEnd=_,_()}return p}}(t,e):function(t){return d_({point:function(e,n){e=t(e,n),this.stream.point(e[0],e[1])}})}(t)}var k_=d_({point:function(t,e){this.stream.point(t*Bp,e*Bp)}});function S_(t,e,n,i,r,o){if(!o)return function(t,e,n,i,r){function o(o,a){return[e+t*(o*=i),n-t*(a*=r)]}return o.invert=function(o,a){return[(o-e)/t*i,(n-a)/t*r]},o}(t,e,n,i,r);var a=jp(o),s=Vp(o),u=a*t,l=s*t,c=a/t,h=s/t,f=(s*n-a*e)/t,d=(s*e+a*n)/t;function g(t,o){return[u*(t*=i)-l*(o*=r)+e,n-l*t-u*o]}return g.invert=function(t,e){return[i*(c*t-h*e+f),r*(d-h*t-c*e)]},g}function C_(t){return E_((function(){return t}))()}function E_(t){var e,n,i,r,o,a,s,u,l,c,h=150,f=480,d=250,g=0,p=0,v=0,y=0,m=0,_=0,b=1,w=1,x=null,k=Iy,S=null,C=_m,E=.5;function A(t){return u(t[0]*Bp,t[1]*Bp)}function R(t){return(t=u.invert(t[0],t[1]))&&[t[0]*Pp,t[1]*Pp]}function M(){var t=S_(h,0,0,b,w,_).apply(null,e(g,p)),i=S_(h,f-t[0],d-t[1],b,w,_);return n=xy(v,y,m),s=by(e,i),u=by(n,s),a=x_(s,E),O()}function O(){return l=c=null,A}return A.stream=function(t){return l&&c===t?l:l=k_(function(t){return d_({point:function(e,n){var i=t(e,n);return this.stream.point(i[0],i[1])}})}(n)(k(a(C(c=t)))))},A.preclip=function(t){return arguments.length?(k=t,x=void 0,O()):k},A.postclip=function(t){return arguments.length?(C=t,S=i=r=o=null,O()):C},A.clipAngle=function(t){return arguments.length?(k=+t?Hy(x=t*Bp):(x=null,Iy),O()):x*Pp},A.clipExtent=function(t){return arguments.length?(C=null==t?(S=i=r=o=null,_m):Yy(S=+t[0][0],i=+t[0][1],r=+t[1][0],o=+t[1][1]),O()):null==S?null:[[S,i],[r,o]]},A.scale=function(t){return arguments.length?(h=+t,M()):h},A.translate=function(t){return arguments.length?(f=+t[0],d=+t[1],M()):[f,d]},A.center=function(t){return arguments.length?(g=t[0]%360*Bp,p=t[1]%360*Bp,M()):[g*Pp,p*Pp]},A.rotate=function(t){return arguments.length?(v=t[0]%360*Bp,y=t[1]%360*Bp,m=t.length>2?t[2]%360*Bp:0,M()):[v*Pp,y*Pp,m*Pp]},A.angle=function(t){return arguments.length?(_=t%360*Bp,M()):_*Pp},A.reflectX=function(t){return arguments.length?(b=t?-1:1,M()):b<0},A.reflectY=function(t){return arguments.length?(w=t?-1:1,M()):w<0},A.precision=function(t){return arguments.length?(a=x_(s,E=t*t),O()):Wp(E)},A.fitExtent=function(t,e){return v_(A,t,e)},A.fitSize=function(t,e){return y_(A,t,e)},A.fitWidth=function(t,e){return m_(A,t,e)},A.fitHeight=function(t,e){return __(A,t,e)},function(){return e=t.apply(this,arguments),A.invert=e.invert&&R,M()}}function A_(t){var e=0,n=Rp/3,i=E_(t),r=i(e,n);return r.parallels=function(t){return arguments.length?i(e=t[0]*Bp,n=t[1]*Bp):[e*Pp,n*Pp]},r}function R_(t,e){var n=Vp(t),i=(n+Vp(e))/2;if(Dp(i)<Ep)return function(t){var e=jp(t);function n(t,n){return[t*e,Vp(n)/e]}return n.invert=function(t,n){return[t/e,Yp(n*e)]},n}(t);var r=1+n*(2*i-n),o=Wp(r)/i;function a(t,e){var n=Wp(r-2*i*Vp(e))/i;return[n*Vp(t*=i),o-n*jp(t)]}return a.invert=function(t,e){var n=o-e,a=zp(t,Dp(n))*Up(n);return n*i<0&&(a-=Rp*Up(t)*Up(n)),[a/i,Yp((r-(t*t+n*n)*i*i)/(2*i))]},a}function M_(){return A_(R_).scale(155.424).center([0,33.6442])}function O_(){return M_().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function T_(t){return function(e,n){var i=jp(e),r=jp(n),o=t(i*r);return o===1/0?[2,0]:[o*r*Vp(e),o*Vp(n)]}}function P_(t){return function(e,n){var i=Wp(e*e+n*n),r=t(i),o=Vp(r),a=jp(r);return[zp(e*o,i*a),Yp(i&&n*o/i)]}}var B_=T_((function(t){return Wp(2/(1+t))}));B_.invert=P_((function(t){return 2*Yp(t/2)}));var D_=T_((function(t){return(t=Kp(t))&&t/Vp(t)}));function N_(t,e){return[t,Hp(qp((Mp+e)/2))]}function z_(){return j_(N_).scale(961/Tp)}function j_(t){var e,n,i,r=C_(t),o=r.center,a=r.scale,s=r.translate,u=r.clipExtent,l=null;function c(){var o=Rp*a(),s=r(Ey(r.rotate()).invert([0,0]));return u(null==l?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:t===N_?[[Math.max(s[0]-o,l),e],[Math.min(s[0]+o,n),i]]:[[l,Math.max(s[1]-o,e)],[n,Math.min(s[1]+o,i)]])}return r.scale=function(t){return arguments.length?(a(t),c()):a()},r.translate=function(t){return arguments.length?(s(t),c()):s()},r.center=function(t){return arguments.length?(o(t),c()):o()},r.clipExtent=function(t){return arguments.length?(null==t?l=e=n=i=null:(l=+t[0][0],e=+t[0][1],n=+t[1][0],i=+t[1][1]),c()):null==l?null:[[l,e],[n,i]]},c()}function F_(t){return qp((Mp+t)/2)}function L_(t,e){var n=jp(t),i=t===e?Vp(t):Hp(n/jp(e))/Hp(F_(e)/F_(t)),r=n*Gp(F_(t),i)/i;if(!i)return N_;function o(t,e){r>0?e<-Mp+Ep&&(e=-Mp+Ep):e>Mp-Ep&&(e=Mp-Ep);var n=r/Gp(F_(e),i);return[n*Vp(i*t),r-n*jp(i*t)]}return o.invert=function(t,e){var n=r-e,o=Up(i)*Wp(t*t+n*n),a=zp(t,Dp(n))*Up(n);return n*i<0&&(a-=Rp*Up(t)*Up(n)),[a/i,2*Np(Gp(r/o,1/i))-Mp]},o}function I_(){return A_(L_).scale(109.5).parallels([30,30])}function H_(t,e){return[t,e]}function G_(){return C_(H_).scale(152.63)}function V_(t,e){var n=jp(t),i=t===e?Vp(t):(n-jp(e))/(e-t),r=n/i+t;if(Dp(i)<Ep)return H_;function o(t,e){var n=r-e,o=i*t;return[n*Vp(o),r-n*jp(o)]}return o.invert=function(t,e){var n=r-e,o=zp(t,Dp(n))*Up(n);return n*i<0&&(o-=Rp*Up(t)*Up(n)),[o/i,r-Up(i)*Wp(t*t+n*n)]},o}function U_(){return A_(V_).scale(131.154).center([0,13.9389])}D_.invert=P_((function(t){return t})),N_.invert=function(t,e){return[t,2*Np(Lp(e))-Mp]},H_.invert=H_;var W_=1.340264,q_=-.081106,K_=893e-6,Y_=.003796,X_=Wp(3)/2;function Z_(t,e){var n=Yp(X_*Vp(e)),i=n*n,r=i*i*i;return[t*jp(n)/(X_*(W_+3*q_*i+r*(7*K_+9*Y_*i))),n*(W_+q_*i+r*(K_+Y_*i))]}function $_(t,e){var n=jp(e),i=jp(t)*n;return[n*Vp(t)/i,Vp(e)/i]}function J_(){return C_($_).scale(144.049).clipAngle(60)}function Q_(t,e){var n=e*e,i=n*n;return[t*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),e*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}function tb(t,e){return[jp(e)*Vp(t),Vp(e)]}function eb(){return C_(tb).scale(249.5).clipAngle(90+Ep)}function nb(t,e){var n=jp(e),i=1+jp(t)*n;return[n*Vp(t)/i,Vp(e)/i]}function ib(){return C_(nb).scale(250).clipAngle(142)}function rb(t,e){return[Hp(qp((Mp+e)/2)),-t]}function ob(){var t=j_(rb),e=t.center,n=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):[(t=n())[0],t[1],t[2]-90]},n([0,0,90]).scale(159.155)}Z_.invert=function(t,e){for(var n,i=e,r=i*i,o=r*r*r,a=0;a<12&&(o=(r=(i-=n=(i*(W_+q_*r+o*(K_+Y_*r))-e)/(W_+3*q_*r+o*(7*K_+9*Y_*r)))*i)*r*r,!(Dp(n)<Ap));++a);return[X_*t*(W_+3*q_*r+o*(7*K_+9*Y_*r))/jp(i),Yp(Vp(i)/X_)]},$_.invert=P_(Np),Q_.invert=function(t,e){var n,i=e,r=25;do{var o=i*i,a=o*o;i-=n=(i*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-e)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Dp(n)>Ep&&--r>0);return[t/(.8707+(o=i*i)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),i]},tb.invert=P_(Yp),nb.invert=P_((function(t){return 2*Np(t)})),rb.invert=function(t,e){return[-e,2*Np(Lp(t))-Mp]};var ab=Object.freeze({__proto__:null,geoArea:function(t){return bv=new f,nv(t,wv),2*bv},geoBounds:ay,geoCentroid:my,geoCircle:My,geoClipAntimeridian:Iy,geoClipCircle:Hy,geoClipExtent:function(){var t,e,n,i=0,r=0,o=960,a=500;return n={stream:function(n){return t&&e===n?t:t=Yy(i,r,o,a)(e=n)},extent:function(s){return arguments.length?(i=+s[0][0],r=+s[0][1],o=+s[1][0],a=+s[1][1],t=e=null,n):[[i,r],[o,a]]}}},geoClipRectangle:Yy,geoContains:function(t,e){return(t&&im.hasOwnProperty(t.type)?im[t.type]:om)(t,e)},geoDistance:nm,geoGraticule:dm,geoGraticule10:function(){return dm()()},geoInterpolate:gm,geoLength:Qy,geoPath:function(t,e){var n,i,r=4.5;function o(t){return t&&("function"==typeof r&&i.pointRadius(+r.apply(this,arguments)),nv(t,n(i))),i.result()}return o.area=function(t){return nv(t,n(xm)),xm.result()},o.measure=function(t){return nv(t,n(u_)),u_.result()},o.bounds=function(t){return nv(t,n(Tm)),Tm.result()},o.centroid=function(t){return nv(t,n(Wm)),Wm.result()},o.projection=function(e){return arguments.length?(n=null==e?(t=null,_m):(t=e).stream,o):t},o.context=function(t){return arguments.length?(i=null==t?(e=null,new h_):new e_(e=t),"function"!=typeof r&&i.pointRadius(r),o):e},o.pointRadius=function(t){return arguments.length?(r="function"==typeof t?t:(i.pointRadius(+t),+t),o):r},o.projection(t).context(e)},geoAlbers:O_,geoAlbersUsa:function(){var t,e,n,i,r,o,a=O_(),s=M_().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=M_().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){o=[t,e]}};function c(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?s:r>=.166&&r<.234&&i>=-.214&&i<-.115?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(.35*t),u.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,c-.238*e],[o+.455*e,c+.238*e]]).stream(l),i=s.translate([o-.307*e,c+.201*e]).clipExtent([[o-.425*e+Ep,c+.12*e+Ep],[o-.214*e-Ep,c+.234*e-Ep]]).stream(l),r=u.translate([o-.205*e,c+.212*e]).clipExtent([[o-.214*e+Ep,c+.166*e+Ep],[o-.115*e-Ep,c+.234*e-Ep]]).stream(l),h()},c.fitExtent=function(t,e){return v_(c,t,e)},c.fitSize=function(t,e){return y_(c,t,e)},c.fitWidth=function(t,e){return m_(c,t,e)},c.fitHeight=function(t,e){return __(c,t,e)},c.scale(1070)},geoAzimuthalEqualArea:function(){return C_(B_).scale(124.75).clipAngle(179.999)},geoAzimuthalEqualAreaRaw:B_,geoAzimuthalEquidistant:function(){return C_(D_).scale(79.4188).clipAngle(179.999)},geoAzimuthalEquidistantRaw:D_,geoConicConformal:I_,geoConicConformalRaw:L_,geoConicEqualArea:M_,geoConicEqualAreaRaw:R_,geoConicEquidistant:U_,geoConicEquidistantRaw:V_,geoEqualEarth:function(){return C_(Z_).scale(177.158)},geoEqualEarthRaw:Z_,geoEquirectangular:G_,geoEquirectangularRaw:H_,geoGnomonic:J_,geoGnomonicRaw:$_,geoIdentity:function(){var t,e,n,i,r,o,a,s=1,u=0,l=0,c=1,h=1,f=0,d=null,g=1,p=1,v=d_({point:function(t,e){var n=_([t,e]);this.stream.point(n[0],n[1])}}),y=_m;function m(){return g=s*c,p=s*h,o=a=null,_}function _(n){var i=n[0]*g,r=n[1]*p;if(f){var o=r*t-i*e;i=i*t+r*e,r=o}return[i+u,r+l]}return _.invert=function(n){var i=n[0]-u,r=n[1]-l;if(f){var o=r*t+i*e;i=i*t-r*e,r=o}return[i/g,r/p]},_.stream=function(t){return o&&a===t?o:o=v(y(a=t))},_.postclip=function(t){return arguments.length?(y=t,d=n=i=r=null,m()):y},_.clipExtent=function(t){return arguments.length?(y=null==t?(d=n=i=r=null,_m):Yy(d=+t[0][0],n=+t[0][1],i=+t[1][0],r=+t[1][1]),m()):null==d?null:[[d,n],[i,r]]},_.scale=function(t){return arguments.length?(s=+t,m()):s},_.translate=function(t){return arguments.length?(u=+t[0],l=+t[1],m()):[u,l]},_.angle=function(n){return arguments.length?(e=Vp(f=n%360*Bp),t=jp(f),m()):f*Pp},_.reflectX=function(t){return arguments.length?(c=t?-1:1,m()):c<0},_.reflectY=function(t){return arguments.length?(h=t?-1:1,m()):h<0},_.fitExtent=function(t,e){return v_(_,t,e)},_.fitSize=function(t,e){return y_(_,t,e)},_.fitWidth=function(t,e){return m_(_,t,e)},_.fitHeight=function(t,e){return __(_,t,e)},_},geoProjection:C_,geoProjectionMutator:E_,geoMercator:z_,geoMercatorRaw:N_,geoNaturalEarth1:function(){return C_(Q_).scale(175.295)},geoNaturalEarth1Raw:Q_,geoOrthographic:eb,geoOrthographicRaw:tb,geoStereographic:ib,geoStereographicRaw:nb,geoTransverseMercator:ob,geoTransverseMercatorRaw:rb,geoRotation:Ey,geoStream:nv,geoTransform:function(t){return{stream:d_(t)}}}),sb=Math.abs,ub=Math.atan,lb=Math.atan2,cb=Math.cos,hb=Math.exp,fb=Math.floor,db=Math.log,gb=Math.max,pb=Math.min,vb=Math.pow,yb=Math.round,mb=Math.sign||function(t){return t>0?1:t<0?-1:0},_b=Math.sin,bb=Math.tan,wb=1e-6,xb=1e-12,kb=Math.PI,Sb=kb/2,Cb=kb/4,Eb=Math.SQRT1_2,Ab=Db(2),Rb=Db(kb),Mb=2*kb,Ob=180/kb,Tb=kb/180;function Pb(t){return t>1?Sb:t<-1?-Sb:Math.asin(t)}function Bb(t){return t>1?0:t<-1?kb:Math.acos(t)}function Db(t){return t>0?Math.sqrt(t):0}function Nb(t){return(hb(t)-hb(-t))/2}function zb(t){return(hb(t)+hb(-t))/2}function jb(t){var e=bb(t/2),n=2*db(cb(t/2))/(e*e);function i(t,e){var i=cb(t),r=cb(e),o=_b(e),a=r*i,s=-((1-a?db((1+a)/2)/(1-a):-.5)+n/(1+a));return[s*r*_b(t),s*o]}return i.invert=function(e,i){var r,o=Db(e*e+i*i),a=-t/2,s=50;if(!o)return[0,0];do{var u=a/2,l=cb(u),c=_b(u),h=c/l,f=-db(sb(l));a-=r=(2/h*f-n*h-o)/(-f/(c*c)+1-n/(2*l*l))*(l<0?.7:1)}while(sb(r)>wb&&--s>0);var d=_b(a);return[lb(e*d,o*cb(a)),Pb(i*d/o)]},i}function Fb(t,e){var n=cb(e),i=function(t){return t?t/Math.sin(t):1}(Bb(n*cb(t/=2)));return[2*n*_b(t)*i,_b(e)*i]}function Lb(t){var e=_b(t),n=cb(t),i=t>=0?1:-1,r=bb(i*t),o=(1+e-n)/2;function a(t,a){var s=cb(a),u=cb(t/=2);return[(1+s)*_b(t),(i*a>-lb(u,r)-.001?0:10*-i)+o+_b(a)*n-(1+s)*e*u]}return a.invert=function(t,a){var s=0,u=0,l=50;do{var c=cb(s),h=_b(s),f=cb(u),d=_b(u),g=1+f,p=g*h-t,v=o+d*n-g*e*c-a,y=g*c/2,m=-h*d,_=e*g*h/2,b=n*f+e*c*d,w=m*_-b*y,x=(v*m-p*b)/w/2,k=(p*_-v*y)/w;sb(k)>2&&(k/=2),s-=x,u-=k}while((sb(x)>wb||sb(k)>wb)&&--l>0);return i*u>-lb(cb(s),r)-.001?[2*s,u]:null},a}function Ib(t,e){var n=bb(e/2),i=Db(1-n*n),r=1+i*cb(t/=2),o=_b(t)*i/r,a=n/r,s=o*o,u=a*a;return[4/3*o*(3+s-3*u),4/3*a*(3+3*s-u)]}Fb.invert=function(t,e){if(!(t*t+4*e*e>kb*kb+wb)){var n=t,i=e,r=25;do{var o,a=_b(n),s=_b(n/2),u=cb(n/2),l=_b(i),c=cb(i),h=_b(2*i),f=l*l,d=c*c,g=s*s,p=1-d*u*u,v=p?Bb(c*u)*Db(o=1/p):o=0,y=2*v*c*s-t,m=v*l-e,_=o*(d*g+v*c*u*f),b=o*(.5*a*h-2*v*l*s),w=.25*o*(h*s-v*l*d*a),x=o*(f*u+v*g*c),k=b*w-x*_;if(!k)break;var S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,i-=C}while((sb(S)>wb||sb(C)>wb)&&--r>0);return[n,i]}},Ib.invert=function(t,e){if(e*=3/8,!(t*=3/8)&&sb(e)>1)return null;var n=1+t*t+e*e,i=Db((n-Db(n*n-4*e*e))/2),r=Pb(i)/3,o=i?function(t){return db(t+Db(t*t-1))}(sb(e/i))/3:function(t){return db(t+Db(t*t+1))}(sb(t))/3,a=cb(r),s=zb(o),u=s*s-a*a;return[2*mb(t)*lb(Nb(o)*a,.25-u),2*mb(e)*lb(s*_b(r),.25+u)]};var Hb=Db(8),Gb=db(1+Ab);function Vb(t,e){var n=sb(e);return n<Cb?[t,db(bb(Cb+e/2))]:[t*cb(n)*(2*Ab-1/_b(n)),mb(e)*(2*Ab*(n-Cb)-db(bb(n/2)))]}function Ub(t){var e=2*kb/t;function n(t,n){var i=D_(t,n);if(sb(t)>Sb){var r=lb(i[1],i[0]),o=Db(i[0]*i[0]+i[1]*i[1]),a=e*yb((r-Sb)/e)+Sb,s=lb(_b(r-=a),2-cb(r));r=a+Pb(kb/o*_b(s))-s,i[0]=o*cb(r),i[1]=o*_b(r)}return i}return n.invert=function(t,n){var i=Db(t*t+n*n);if(i>Sb){var r=lb(n,t),o=e*yb((r-Sb)/e)+Sb,a=r>o?-1:1,s=i*cb(o-r),u=1/bb(a*Bb((s-kb)/Db(kb*(kb-2*s)+i*i)));r=o+2*ub((u+a*Db(u*u-3))/3),t=i*cb(r),n=i*_b(r)}return D_.invert(t,n)},n}function Wb(t,e){if(arguments.length<2&&(e=t),1===e)return B_;if(e===1/0)return qb;function n(n,i){var r=B_(n/e,i);return r[0]*=t,r}return n.invert=function(n,i){var r=B_.invert(n/t,i);return r[0]*=e,r},n}function qb(t,e){return[t*cb(e)/cb(e/=2),2*_b(e)]}function Kb(t,e,n){var i,r,o,a=100;n=void 0===n?0:+n,e=+e;do{(r=t(n))===(o=t(n+wb))&&(o=r+wb),n-=i=-1*wb*(r-e)/(r-o)}while(a-- >0&&sb(i)>wb);return a<0?NaN:n}function Yb(t,e,n){return void 0===e&&(e=40),void 0===n&&(n=xb),function(i,r,o,a){var s,u,l;o=void 0===o?0:+o,a=void 0===a?0:+a;for(var c=0;c<e;c++){var h=t(o,a),f=h[0]-i,d=h[1]-r;if(sb(f)<n&&sb(d)<n)break;var g=f*f+d*d;if(g>s)o-=u/=2,a-=l/=2;else{s=g;var p=(o>0?-1:1)*n,v=(a>0?-1:1)*n,y=t(o+p,a),m=t(o,a+v),_=(y[0]-h[0])/p,b=(y[1]-h[1])/p,w=(m[0]-h[0])/v,x=(m[1]-h[1])/v,k=x*_-b*w,S=(sb(k)<.5?.5:1)/k;if(o+=u=(d*w-f*x)*S,a+=l=(f*b-d*_)*S,sb(u)<n&&sb(l)<n)break}}return[o,a]}}function Xb(){var t=Wb(1.68,2);function e(e,n){if(e+n<-1.4){var i=(e-n+1.6)*(e+n+1.4)/8;e+=i,n-=.8*i*_b(n+kb/2)}var r=t(e,n),o=(1-cb(e*n))/12;return r[1]<0&&(r[0]*=1+o),r[1]>0&&(r[1]*=1+o/1.5*r[0]*r[0]),r}return e.invert=Yb(e),e}function Zb(t,e){var n,i=t*_b(e),r=30;do{e-=n=(e+_b(e)-i)/(1+cb(e))}while(sb(n)>wb&&--r>0);return e/2}function $b(t,e,n){function i(i,r){return[t*i*cb(r=Zb(n,r)),e*_b(r)]}return i.invert=function(i,r){return r=Pb(r/e),[i/(t*cb(r)),Pb((2*r+_b(2*r))/n)]},i}Vb.invert=function(t,e){if((i=sb(e))<Gb)return[t,2*ub(hb(e))-Sb];var n,i,r=Cb,o=25;do{var a=cb(r/2),s=bb(r/2);r-=n=(Hb*(r-Cb)-db(s)-i)/(Hb-a*a/(2*s))}while(sb(n)>xb&&--o>0);return[t/(cb(r)*(Hb-1/_b(r))),mb(e)*r]},qb.invert=function(t,e){var n=2*Pb(e/2);return[t*cb(n/2)/cb(n),n]};var Jb=$b(Ab/Sb,Ab,kb);var Qb=2.00276,tw=1.11072;function ew(t,e){var n=Zb(kb,e);return[Qb*t/(1/cb(e)+tw/cb(n)),(e+Ab*_b(n))/Qb]}function nw(t){var e=0,n=E_(t),i=n(e);return i.parallel=function(t){return arguments.length?n(e=t*Tb):e*Ob},i}function iw(t,e){return[t*cb(e),e]}function rw(t){if(!t)return iw;var e=1/bb(t);function n(n,i){var r=e+t-i,o=r?n*cb(i)/r:r;return[r*_b(o),e-r*cb(o)]}return n.invert=function(n,i){var r=Db(n*n+(i=e-i)*i),o=e+t-r;return[r/cb(o)*lb(n,i),o]},n}function ow(t){function e(e,n){var i=Sb-n,r=i?e*t*_b(i)/i:i;return[i*_b(r)/t,Sb-i*cb(r)]}return e.invert=function(e,n){var i=e*t,r=Sb-n,o=Db(i*i+r*r),a=lb(i,r);return[(o?o/_b(o):1)*a/t,Sb-o]},e}ew.invert=function(t,e){var n,i,r=Qb*e,o=e<0?-Cb:Cb,a=25;do{i=r-Ab*_b(o),o-=n=(_b(2*o)+2*o-kb*_b(i))/(2*cb(2*o)+2+kb*cb(i)*Ab*cb(o))}while(sb(n)>wb&&--a>0);return i=r-Ab*_b(o),[t*(1/cb(i)+tw/cb(o))/Qb,i]},iw.invert=function(t,e){return[t/cb(e),e]};var aw=$b(1,4/kb,kb);function sw(t,e,n,i,r,o){var a,s=cb(o);if(sb(t)>1||sb(o)>1)a=Bb(n*r+e*i*s);else{var u=_b(t/2),l=_b(o/2);a=2*Pb(Db(u*u+e*i*l*l))}return sb(a)>wb?[a,lb(i*_b(o),e*r-n*i*s)]:[0,0]}function uw(t,e,n){return Bb((t*t+e*e-n*n)/(2*t*e))}function lw(t){return t-2*kb*fb((t+kb)/(2*kb))}function cw(t,e,n){for(var i,r=[[t[0],t[1],_b(t[1]),cb(t[1])],[e[0],e[1],_b(e[1]),cb(e[1])],[n[0],n[1],_b(n[1]),cb(n[1])]],o=r[2],a=0;a<3;++a,o=i)i=r[a],o.v=sw(i[1]-o[1],o[3],o[2],i[3],i[2],i[0]-o[0]),o.point=[0,0];var s=uw(r[0].v[0],r[2].v[0],r[1].v[0]),u=uw(r[0].v[0],r[1].v[0],r[2].v[0]),l=kb-s;r[2].point[1]=0,r[0].point[0]=-(r[1].point[0]=r[0].v[0]/2);var c=[r[2].point[0]=r[0].point[0]+r[2].v[0]*cb(s),2*(r[0].point[1]=r[1].point[1]=r[2].v[0]*_b(s))];return function(t,e){var n,i=_b(e),o=cb(e),a=new Array(3);for(n=0;n<3;++n){var s=r[n];if(a[n]=sw(e-s[1],s[3],s[2],o,i,t-s[0]),!a[n][0])return s.point;a[n][1]=lw(a[n][1]-s.v[1])}var h=c.slice();for(n=0;n<3;++n){var f=2==n?0:n+1,d=uw(r[n].v[0],a[n][0],a[f][0]);a[n][1]<0&&(d=-d),n?1==n?(d=u-d,h[0]-=a[n][0]*cb(d),h[1]-=a[n][0]*_b(d)):(d=l-d,h[0]+=a[n][0]*cb(d),h[1]+=a[n][0]*_b(d)):(h[0]+=a[n][0]*cb(d),h[1]-=a[n][0]*_b(d))}return h[0]/=3,h[1]/=3,h}}function hw(t){return t[0]*=Tb,t[1]*=Tb,t}function fw(t,e,n){var i=my({type:"MultiPoint",coordinates:[t,e,n]}),r=[-i[0],-i[1]],o=Ey(r),a=cw(hw(o(t)),hw(o(e)),hw(o(n)));a.invert=Yb(a);var s=C_(a).rotate(r),u=s.center;return delete s.rotate,s.center=function(t){return arguments.length?u(o(t)):o.invert(u())},s.clipAngle(90)}function dw(t,e){var n=Db(1-_b(e));return[2/Rb*t*n,Rb*(1-n)]}function gw(t){var e=bb(t);function n(t,n){return[t,(t?t/_b(t):1)*(_b(n)*cb(t)-e*cb(n))]}return n.invert=e?function(t,n){t&&(n*=_b(t)/t);var i=cb(t);return[t,2*lb(Db(i*i+e*e-n*n)-i,e-n)]}:function(t,e){return[t,Pb(t?e*bb(t)/t:e)]},n}dw.invert=function(t,e){var n=(n=e/Rb-1)*n;return[n>0?t*Db(kb/n)/2:0,Pb(1-n)]};var pw=Db(3);function vw(t,e){return[pw*t*(2*cb(2*e/3)-1)/Rb,pw*Rb*_b(e/3)]}function yw(t){var e=cb(t);function n(t,n){return[t*e,_b(n)/e]}return n.invert=function(t,n){return[t/e,Pb(n*e)]},n}function mw(t){var e=cb(t);function n(t,n){return[t*e,(1+e)*bb(n/2)]}return n.invert=function(t,n){return[t/e,2*ub(n/(1+e))]},n}function _w(t,e){var n=Db(8/(3*kb));return[n*t*(1-sb(e)/kb),n*e]}function bw(t,e){var n=Db(4-3*_b(sb(e)));return[2/Db(6*kb)*t*n,mb(e)*Db(2*kb/3)*(2-n)]}function ww(t,e){var n=Db(kb*(4+kb));return[2/n*t*(1+Db(1-4*e*e/(kb*kb))),4/n*e]}function xw(t,e){var n=(2+Sb)*_b(e);e/=2;for(var i=0,r=1/0;i<10&&sb(r)>wb;i++){var o=cb(e);e-=r=(e+_b(e)*(o+2)-n)/(2*o*(1+o))}return[2/Db(kb*(4+kb))*t*(1+cb(e)),2*Db(kb/(4+kb))*_b(e)]}function kw(t,e){return[t*(1+cb(e))/Db(2+kb),2*e/Db(2+kb)]}function Sw(t,e){for(var n=(1+Sb)*_b(e),i=0,r=1/0;i<10&&sb(r)>wb;i++)e-=r=(e+_b(e)-n)/(1+cb(e));return n=Db(2+kb),[t*(1+cb(e))/n,2*e/n]}vw.invert=function(t,e){var n=3*Pb(e/(pw*Rb));return[Rb*t/(pw*(2*cb(2*n/3)-1)),n]},_w.invert=function(t,e){var n=Db(8/(3*kb)),i=e/n;return[t/(n*(1-sb(i)/kb)),i]},bw.invert=function(t,e){var n=2-sb(e)/Db(2*kb/3);return[t*Db(6*kb)/(2*n),mb(e)*Pb((4-n*n)/3)]},ww.invert=function(t,e){var n=Db(kb*(4+kb))/2;return[t*n/(1+Db(1-e*e*(4+kb)/(4*kb))),e*n/2]},xw.invert=function(t,e){var n=e*Db((4+kb)/kb)/2,i=Pb(n),r=cb(i);return[t/(2/Db(kb*(4+kb))*(1+r)),Pb((i+n*(r+2))/(2+Sb))]},kw.invert=function(t,e){var n=Db(2+kb),i=e*n/2;return[n*t/(1+cb(i)),i]},Sw.invert=function(t,e){var n=1+Sb,i=Db(n/2);return[2*t*i/(1+cb(e*=i)),Pb((e+_b(e))/n)]};var Cw=3+2*Ab;function Ew(t,e){var n=_b(t/=2),i=cb(t),r=Db(cb(e)),o=cb(e/=2),a=_b(e)/(o+Ab*i*r),s=Db(2/(1+a*a)),u=Db((Ab*o+(i+n)*r)/(Ab*o+(i-n)*r));return[Cw*(s*(u-1/u)-2*db(u)),Cw*(s*a*(u+1/u)-2*ub(a))]}Ew.invert=function(t,e){if(!(n=Ib.invert(t/1.2,1.065*e)))return null;var n,i=n[0],r=n[1],o=20;t/=Cw,e/=Cw;do{var a=i/2,s=r/2,u=_b(a),l=cb(a),c=_b(s),h=cb(s),f=cb(r),d=Db(f),g=c/(h+Ab*l*d),p=g*g,v=Db(2/(1+p)),y=(Ab*h+(l+u)*d)/(Ab*h+(l-u)*d),m=Db(y),_=m-1/m,b=m+1/m,w=v*_-2*db(m)-t,x=v*g*b-2*ub(g)-e,k=c&&Eb*d*u*p/c,S=(Ab*l*h+d)/(2*(h+Ab*l*d)*(h+Ab*l*d)*d),C=-.5*g*v*v*v,E=C*k,A=C*S,R=(R=2*h+Ab*d*(l-u))*R*m,M=(Ab*l*h*d+f)/R,O=-Ab*u*c/(d*R),T=_*E-2*M/m+v*(M+M/y),P=_*A-2*O/m+v*(O+O/y),B=g*b*E-2*k/(1+p)+v*b*k+v*g*(M-M/y),D=g*b*A-2*S/(1+p)+v*b*S+v*g*(O-O/y),N=P*B-D*T;if(!N)break;var z=(x*P-w*D)/N,j=(w*B-x*T)/N;i-=z,r=gb(-Sb,pb(Sb,r-j))}while((sb(z)>wb||sb(j)>wb)&&--o>0);return sb(sb(r)-Sb)<wb?[0,r]:o&&[i,r]};var Aw=cb(35*Tb);function Rw(t,e){var n=bb(e/2);return[t*Aw*Db(1-n*n),(1+Aw)*n]}function Mw(t,e){var n=e/2,i=cb(n);return[2*t/Rb*cb(e)*i*i,Rb*bb(n)]}function Ow(t){var e=1-t,n=r(kb,0)[0]-r(-kb,0)[0],i=Db(2*(r(0,Sb)[1]-r(0,-Sb)[1])/n);function r(n,i){var r=cb(i),o=_b(i);return[r/(e+t*r)*n,e*i+t*o]}function o(t,e){var n=r(t,e);return[n[0]*i,n[1]/i]}function a(t){return o(0,t)[1]}return o.invert=function(n,r){var o=Kb(a,r);return[n/i*(t+e/cb(o)),o]},o}function Tw(t){return[t[0]/2,Pb(bb(t[1]/2*Tb))*Ob]}function Pw(t){return[2*t[0],2*ub(_b(t[1]*Tb))*Ob]}function Bw(t,e){var n=2*kb/e,i=t*t;function r(e,r){var o=D_(e,r),a=o[0],s=o[1],u=a*a+s*s;if(u>i){var l=Db(u),c=lb(s,a),h=n*yb(c/n),f=c-h,d=t*cb(f),g=(t*_b(f)-f*_b(d))/(Sb-d),p=Dw(f,g),v=(kb-t)/Nw(p,d,kb);a=l;var y,m=50;do{a-=y=(t+Nw(p,d,a)*v-l)/(p(a)*v)}while(sb(y)>wb&&--m>0);s=f*_b(a),a<Sb&&(s-=g*(a-Sb));var _=_b(h),b=cb(h);o[0]=a*b-s*_,o[1]=a*_+s*b}return o}return r.invert=function(e,r){var o=e*e+r*r;if(o>i){var a=Db(o),s=lb(r,e),u=n*yb(s/n),l=s-u;e=a*cb(l),r=a*_b(l);for(var c=e-Sb,h=_b(e),f=r/h,d=e<Sb?1/0:0,g=10;;){var p=t*_b(f),v=t*cb(f),y=_b(v),m=Sb-v,_=(p-f*y)/m,b=Dw(f,_);if(sb(d)<xb||!--g)break;f-=d=(f*h-_*c-r)/(h-2*c*(m*(v+f*p*cb(v)-y)-p*(p-f*y))/(m*m))}e=(a=t+Nw(b,v,e)*(kb-t)/Nw(b,v,kb))*cb(s=u+f),r=a*_b(s)}return D_.invert(e,r)},r}function Dw(t,e){return function(n){var i=t*cb(n);return n<Sb&&(i-=e),Db(1+i*i)}}function Nw(t,e,n){for(var i=(n-e)/50,r=t(e)+t(n),o=1,a=e;o<50;++o)r+=2*t(a+=i);return.5*r*i}function zw(t,e,n,i,r,o,a,s){function u(u,l){if(!l)return[t*u/kb,0];var c=l*l,h=t+c*(e+c*(n+c*i)),f=l*(r-1+c*(o-s+c*a)),d=(h*h+f*f)/(2*f),g=u*Pb(h/d)/kb;return[d*_b(g),l*(1+c*s)+d*(1-cb(g))]}return arguments.length<8&&(s=0),u.invert=function(u,l){var c,h,f=kb*u/t,d=l,g=50;do{var p=d*d,v=t+p*(e+p*(n+p*i)),y=d*(r-1+p*(o-s+p*a)),m=v*v+y*y,_=2*y,b=m/_,w=b*b,x=Pb(v/b)/kb,k=f*x,S=v*v,C=(2*e+p*(4*n+6*p*i))*d,E=r+p*(3*o+5*p*a),A=(2*(v*C+y*(E-1))*_-m*(2*(E-1)))/(_*_),R=cb(k),M=_b(k),O=b*R,T=b*M,P=f/kb*(1/Db(1-S/w))*(C*b-v*A)/w,B=T-u,D=d*(1+p*s)+b-O-l,N=A*M+O*P,z=O*x,j=1+A-(A*R-T*P),F=T*x,L=N*F-j*z;if(!L)break;f-=c=(D*N-B*j)/L,d-=h=(B*F-D*z)/L}while((sb(c)>wb||sb(h)>wb)&&--g>0);return[f,d]},u}Rw.invert=function(t,e){var n=e/(1+Aw);return[t&&t/(Aw*Db(1-n*n)),2*ub(n)]},Mw.invert=function(t,e){var n=ub(e/Rb),i=cb(n),r=2*n;return[t*Rb/2/(cb(r)*i*i),r]};var jw=zw(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);var Fw=zw(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);var Lw=zw(5/6*kb,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Iw(t,e){var n=t*t,i=e*e;return[t*(1-.162388*i)*(.87-952426e-9*n*n),e*(1+i/12)]}Iw.invert=function(t,e){var n,i=t,r=e,o=50;do{var a=r*r;r-=n=(r*(1+a/12)-e)/(1+a/4)}while(sb(n)>wb&&--o>0);o=50,t/=1-.162388*a;do{var s=(s=i*i)*s;i-=n=(i*(.87-952426e-9*s)-t)/(.87-.00476213*s)}while(sb(n)>wb&&--o>0);return[i,r]};var Hw=zw(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Gw(t){var e=t(Sb,0)[0]-t(-Sb,0)[0];function n(n,i){var r=n>0?-.5:.5,o=t(n+r*kb,i);return o[0]-=r*e,o}return t.invert&&(n.invert=function(n,i){var r=n>0?-.5:.5,o=t.invert(n+r*e,i),a=o[0]-r*kb;return a<-kb?a+=2*kb:a>kb&&(a-=2*kb),o[0]=a,o}),n}function Vw(t,e){var n=mb(t),i=mb(e),r=cb(e),o=cb(t)*r,a=_b(t)*r,s=_b(i*e);t=sb(lb(a,s)),e=Pb(o),sb(t-Sb)>wb&&(t%=Sb);var u=function(t,e){if(e===Sb)return[0,0];var n,i,r=_b(e),o=r*r,a=o*o,s=1+a,u=1+3*a,l=1-a,c=Pb(1/Db(s)),h=l+o*s*c,f=(1-r)/h,d=Db(f),g=f*s,p=Db(g),v=d*l;if(0===t)return[0,-(v+o*p)];var y,m=cb(e),_=1/m,b=2*r*m,w=(-3*o+c*u)*b,x=(-h*m-(1-r)*w)/(h*h),k=o*s*x+f*u*b,S=-_*b,C=-_*k,E=-2*_*(l*(.5*x/d)-2*o*d*b),A=4*t/kb;if(t>.222*kb||e<kb/4&&t>.175*kb){if(n=(v+o*Db(g*(1+a)-v*v))/(1+a),t>kb/4)return[n,n];var R=n,M=.5*n;n=.5*(M+R),i=50;do{var O=n*(E+S*Db(g-n*n))+C*Pb(n/p)-A;if(!O)break;O<0?M=n:R=n,n=.5*(M+R)}while(sb(R-M)>wb&&--i>0)}else{n=wb,i=25;do{var T=n*n,P=Db(g-T),B=E+S*P,D=n*B+C*Pb(n/p)-A;n-=y=P?D/(B+(C-S*T)/P):0}while(sb(y)>wb&&--i>0)}return[n,-v-o*Db(g-n*n)]}(t>kb/4?Sb-t:t,e);return t>kb/4&&(s=u[0],u[0]=-u[1],u[1]=-s),u[0]*=n,u[1]*=-i,u}function Uw(t,e){var n,i,r,o,a;if(e<wb)return[(o=_b(t))-(n=e*(t-o*(i=cb(t)))/4)*i,i+n*o,1-e*o*o/2,t-n];if(e>=1-wb)return n=(1-e)/4,i=zb(t),o=function(t){return((t=hb(2*t))-1)/(t+1)}(t),r=1/i,[o+n*((a=i*Nb(t))-t)/(i*i),r-n*o*r*(a-t),r+n*o*r*(a+t),2*ub(hb(t))-Sb+n*(a-t)/i];var s=[1,0,0,0,0,0,0,0,0],u=[Db(e),0,0,0,0,0,0,0,0],l=0;for(i=Db(1-e),a=1;sb(u[l]/s[l])>wb&&l<8;)n=s[l++],u[l]=(n-i)/2,s[l]=(n+i)/2,i=Db(n*i),a*=2;r=a*s[l]*t;do{r=(Pb(o=u[l]*_b(i=r)/s[l])+r)/2}while(--l);return[_b(r),o=cb(r),o/cb(r-i),r]}function Ww(t,e){if(!e)return t;if(1===e)return db(bb(t/2+Cb));for(var n=1,i=Db(1-e),r=Db(e),o=0;sb(r)>wb;o++){if(t%kb){var a=ub(i*bb(t)/n);a<0&&(a+=kb),t+=a+~~(t/kb)*kb}else t+=t;r=(n+i)/2,i=Db(n*i),r=((n=r)-i)/2}return t/(vb(2,o)*n)}function qw(t,e){var n=(Ab-1)/(Ab+1),i=Db(1-n*n),r=Ww(Sb,i*i),o=db(bb(kb/4+sb(e)/2)),a=hb(-1*o)/Db(n),s=function(t,e){var n=t*t,i=e+1,r=1-n-e*e;return[.5*((t>=0?Sb:-Sb)-lb(r,2*t)),-.25*db(r*r+4*n)+.5*db(i*i+n)]}(a*cb(-1*t),a*_b(-1*t)),u=function(t,e,n){var i=sb(t),r=Nb(sb(e));if(i){var o=1/_b(i),a=1/(bb(i)*bb(i)),s=-(a+n*(r*r*o*o)-1+n),u=(-s+Db(s*s-(n-1)*a*4))/2;return[Ww(ub(1/Db(u)),n)*mb(t),Ww(ub(Db((u/a-1)/n)),1-n)*mb(e)]}return[0,Ww(ub(r),1-n)*mb(e)]}(s[0],s[1],i*i);return[-u[1],(e>=0?1:-1)*(.5*r-u[0])]}function Kw(t){var e=_b(t),n=cb(t),i=Yw(t);function r(t,r){var o=i(t,r);t=o[0],r=o[1];var a=_b(r),s=cb(r),u=cb(t),l=Bb(e*a+n*s*u),c=_b(l),h=sb(c)>wb?l/c:1;return[h*n*_b(t),(sb(t)>Sb?h:-h)*(e*s-n*a*u)]}return i.invert=Yw(-t),r.invert=function(t,n){var r=Db(t*t+n*n),o=-_b(r),a=cb(r),s=r*a,u=-n*o,l=r*e,c=Db(s*s+u*u-l*l),h=lb(s*l+u*c,u*l-s*c),f=(r>Sb?-1:1)*lb(t*o,r*cb(h)*a+n*_b(h)*o);return i.invert(f,h)},r}function Yw(t){var e=_b(t),n=cb(t);return function(t,i){var r=cb(i),o=cb(t)*r,a=_b(t)*r,s=_b(i);return[lb(a,o*n-s*e),Pb(s*n+o*e)]}}Vw.invert=function(t,e){sb(t)>1&&(t=2*mb(t)-t),sb(e)>1&&(e=2*mb(e)-e);var n=mb(t),i=mb(e),r=-n*t,o=-i*e,a=o/r<1,s=function(t,e){var n=0,i=1,r=.5,o=50;for(;;){var a=r*r,s=Db(r),u=Pb(1/Db(1+a)),l=1-a+r*(1+a)*u,c=(1-s)/l,h=Db(c),f=c*(1+a),d=h*(1-a),g=Db(f-t*t),p=e+d+r*g;if(sb(i-n)<xb||0==--o||0===p)break;p>0?n=r:i=r,r=.5*(n+i)}if(!o)return null;var v=Pb(s),y=cb(v),m=1/y,_=2*s*y,b=(-l*y-(-3*r+u*(1+3*a))*_*(1-s))/(l*l),w=.5*b/h,x=(1-a)*w-2*r*h*_;return[kb/4*(t*(-2*m*x+-m*_*g)+-m*(r*(1+a)*b+c*(1+3*a)*_)*Pb(t/Db(f))),v]}(a?o:r,a?r:o),u=s[0],l=s[1],c=cb(l);return a&&(u=-Sb-u),[n*(lb(_b(u)*c,-_b(l))+kb),i*Pb(cb(u)*c)]},qw.invert=function(t,e){var n=(Ab-1)/(Ab+1),i=Db(1-n*n),r=function(t,e,n){var i,r,o;return t?(i=Uw(t,n),e?(o=(r=Uw(e,1-n))[1]*r[1]+n*i[0]*i[0]*r[0]*r[0],[[i[0]*r[2]/o,i[1]*i[2]*r[0]*r[1]/o],[i[1]*r[1]/o,-i[0]*i[2]*r[0]*r[2]/o],[i[2]*r[1]*r[2]/o,-n*i[0]*i[1]*r[0]/o]]):[[i[0],0],[i[1],0],[i[2],0]]):[[0,(r=Uw(e,1-n))[0]/r[1]],[1/r[1],0],[r[2]/r[1],0]]}(.5*Ww(Sb,i*i)-e,-t,i*i),o=function(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}(r[0],r[1]);return[lb(o[1],o[0])/-1,2*ub(hb(-.5*db(n*o[0]*o[0]+n*o[1]*o[1])))-Sb]};var Xw=Pb(1-1/3)*Ob,Zw=yw(0);function $w(t){var e=Xw*Tb,n=dw(kb,e)[0]-dw(-kb,e)[0],i=Zw(0,e)[1],r=dw(0,e)[1],o=Rb-r,a=Mb/t,s=4/Mb,u=i+o*o*4/Mb;function l(l,c){var h,f=sb(c);if(f>e){var d=pb(t-1,gb(0,fb((l+kb)/a)));(h=dw(l+=kb*(t-1)/t-d*a,f))[0]=h[0]*Mb/n-Mb*(t-1)/(2*t)+d*Mb/t,h[1]=i+4*(h[1]-r)*o/Mb,c<0&&(h[1]=-h[1])}else h=Zw(l,c);return h[0]*=s,h[1]/=u,h}return l.invert=function(e,l){e/=s;var c=sb(l*=u);if(c>i){var h=pb(t-1,gb(0,fb((e+kb)/a)));e=(e+kb*(t-1)/t-h*a)*n/Mb;var f=dw.invert(e,.25*(c-i)*Mb/o+r);return f[0]-=kb*(t-1)/t-h*a,l<0&&(f[1]=-f[1]),f}return Zw.invert(e,l)},l}function Jw(t,e){return[t,1&e?90-wb:Xw]}function Qw(t,e){return[t,1&e?-90+wb:-Xw]}function tx(t){return[t[0]*(1-wb),t[1]]}function ex(t){var e,n=1+t,i=Pb(_b(1/n)),r=2*Db(kb/(e=kb+4*i*n)),o=.5*r*(n+Db(t*(2+t))),a=t*t,s=n*n;function u(u,l){var c,h,f=1-_b(l);if(f&&f<2){var d,g=Sb-l,p=25;do{var v=_b(g),y=cb(g),m=i+lb(v,n-y),_=1+s-2*n*y;g-=d=(g-a*i-n*v+_*m-.5*f*e)/(2*n*v*m)}while(sb(d)>xb&&--p>0);c=r*Db(_),h=u*m/kb}else c=r*(t+f),h=u*i/kb;return[c*_b(h),o-c*cb(h)]}return u.invert=function(t,u){var l=t*t+(u-=o)*u,c=(1+s-l/(r*r))/(2*n),h=Bb(c),f=_b(h),d=i+lb(f,n-c);return[Pb(t/Db(l))*kb/d,Pb(1-2*(h-a*i-n*f+(1+s-2*n*c)*d)/e)]},u}var nx=.7109889596207567,ix=.0528035274542;function rx(t,e){return e>-nx?((t=Jb(t,e))[1]+=ix,t):iw(t,e)}function ox(t,e){return sb(e)>nx?((t=Jb(t,e))[1]-=e>0?ix:-ix,t):iw(t,e)}function ax(t,e,n,i){var r=Db(4*kb/(2*n+(1+t-e/2)*_b(2*n)+(t+e)/2*_b(4*n)+e/2*_b(6*n))),o=Db(i*_b(n)*Db((1+t*cb(2*n)+e*cb(4*n))/(1+t+e))),a=n*u(1);function s(n){return Db(1+t*cb(2*n)+e*cb(4*n))}function u(i){var r=i*n;return(2*r+(1+t-e/2)*_b(2*r)+(t+e)/2*_b(4*r)+e/2*_b(6*r))/n}function l(t){return s(t)*_b(t)}var c=function(t,e){var i=n*Kb(u,a*_b(e)/n,e/kb);isNaN(i)&&(i=n*mb(e));var l=r*s(i);return[l*o*t/kb*cb(i),l/o*_b(i)]};return c.invert=function(t,e){var i=Kb(l,e*o/r);return[t*kb/(cb(i)*r*o*s(i)),Pb(n*u(i/n)/a)]},0===n&&(r=Db(i/kb),c=function(t,e){return[t*r,_b(e)/r]},c.invert=function(t,e){return[t/r,Pb(e*r)]}),c}function sx(t,e,n,i,r,o,a,s,u,l,c){if(c.nanEncountered)return NaN;var h,f,d,g,p,v,y,m,_,b;if(f=t(e+.25*(h=n-e)),d=t(n-.25*h),isNaN(f))c.nanEncountered=!0;else{if(!isNaN(d))return b=((v=(g=h*(i+4*f+r)/12)+(p=h*(r+4*d+o)/12))-a)/15,l>u?(c.maxDepthCount++,v+b):Math.abs(b)<s?v+b:(m=sx(t,e,y=e+.5*h,i,f,r,g,.5*s,u,l+1,c),isNaN(m)?(c.nanEncountered=!0,NaN):(_=sx(t,y,n,r,d,o,p,.5*s,u,l+1,c),isNaN(_)?(c.nanEncountered=!0,NaN):m+_));c.nanEncountered=!0}}function ux(t,e,n,i,r){void 0===i&&(i=1e-8),void 0===r&&(r=20);var o=t(e),a=t(.5*(e+n)),s=t(n);return sx(t,e,n,o,a,s,(o+4*a+s)*(n-e)/6,i,r,1,{maxDepthCount:0,nanEncountered:!1})}function lx(t,e,n){function i(n){return t+(1-t)*vb(1-vb(n,e),1/e)}function r(t){return ux(i,0,t,1e-4)}for(var o=1/r(1),a=1e3,s=(1+1e-8)*o,u=[],l=0;l<=a;l++)u.push(r(l/a)*s);function c(t){var e=0,n=a,i=500;do{u[i]>t?n=i:e=i,i=e+n>>1}while(i>e);var r=u[i+1]-u[i];return r&&(r=(t-u[i+1])/r),(i+1+r)/a}var h=2*c(1)/kb*o/n,f=function(t,e){var n=c(sb(_b(e))),r=i(n)*t;return n/=h,[r,e>=0?n:-n]};return f.invert=function(t,e){var n;return sb(e*=h)<1&&(n=mb(e)*Pb(r(sb(e))*o)),[t/i(sb(e)),n]},f}function cx(t,e){return sb(t[0]-e[0])<wb&&sb(t[1]-e[1])<wb}function hx(t,e){for(var n,i,r,o=-1,a=t.length,s=t[0],u=[];++o<a;){i=((n=t[o])[0]-s[0])/e,r=(n[1]-s[1])/e;for(var l=0;l<e;++l)u.push([s[0]+l*i,s[1]+l*r]);s=n}return u.push(n),u}function fx(t,e,n){var i,r;function o(n,i){for(var r=i<0?-1:1,o=e[+(i<0)],a=0,s=o.length-1;a<s&&n>o[a][2][0];++a);var u=t(n-o[a][1][0],i);return u[0]+=t(o[a][1][0],r*i>r*o[a][0][1]?o[a][0][1]:i)[0],u}n?o.invert=n(o):t.invert&&(o.invert=function(n,i){for(var a=r[+(i<0)],s=e[+(i<0)],u=0,l=a.length;u<l;++u){var c=a[u];if(c[0][0]<=n&&n<c[1][0]&&c[0][1]<=i&&i<c[1][1]){var h=t.invert(n-t(s[u][1][0],0)[0],i);return h[0]+=s[u][1][0],cx(o(h[0],h[1]),[n,i])?h:null}}});var a=C_(o),s=a.stream;return a.stream=function(t){var e=a.rotate(),n=s(t),r=(a.rotate([0,0]),s(t));return a.rotate(e),n.sphere=function(){nv(i,r)},n},a.lobes=function(n){return arguments.length?(i=function(t){var e,n,i,r,o,a,s,u=[],l=t[0].length;for(s=0;s<l;++s)n=(e=t[0][s])[0][0],i=e[0][1],r=e[1][1],o=e[2][0],a=e[2][1],u.push(hx([[n+wb,i+wb],[n+wb,r-wb],[o-wb,r-wb],[o-wb,a+wb]],30));for(s=t[1].length-1;s>=0;--s)n=(e=t[1][s])[0][0],i=e[0][1],r=e[1][1],o=e[2][0],a=e[2][1],u.push(hx([[o-wb,a-wb],[o-wb,r+wb],[n+wb,r+wb],[n+wb,i-wb]],30));return{type:"Polygon",coordinates:[B(u)]}}(n),e=n.map((function(t){return t.map((function(t){return[[t[0][0]*Tb,t[0][1]*Tb],[t[1][0]*Tb,t[1][1]*Tb],[t[2][0]*Tb,t[2][1]*Tb]]}))})),r=e.map((function(e){return e.map((function(e){var n,i=t(e[0][0],e[0][1])[0],r=t(e[2][0],e[2][1])[0],o=t(e[1][0],e[0][1])[1],a=t(e[1][0],e[1][1])[1];return o>a&&(n=o,o=a,a=n),[[i,o],[r,a]]}))})),a):e.map((function(t){return t.map((function(t){return[[t[0][0]*Ob,t[0][1]*Ob],[t[1][0]*Ob,t[1][1]*Ob],[t[2][0]*Ob,t[2][1]*Ob]]}))}))},null!=e&&a.lobes(e),a}rx.invert=function(t,e){return e>-nx?Jb.invert(t,e-ix):iw.invert(t,e)},ox.invert=function(t,e){return sb(e)>nx?Jb.invert(t,e+(e>0?ix:-ix)):iw.invert(t,e)};var dx=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var gx=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var px=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var vx=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];var yx=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];var mx=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function _x(t,e){return[3/Mb*t*Db(kb*kb/3-e*e),e]}function bx(t){function e(e,n){if(sb(sb(n)-Sb)<wb)return[0,n<0?-2:2];var i=_b(n),r=vb((1+i)/(1-i),t/2),o=.5*(r+1/r)+cb(e*=t);return[2*_b(e)/o,(r-1/r)/o]}return e.invert=function(e,n){var i=sb(n);if(sb(i-2)<wb)return e?null:[0,mb(n)*Sb];if(i>2)return null;var r=(e/=2)*e,o=(n/=2)*n,a=2*n/(1+r+o);return a=vb((1+a)/(1-a),1/t),[lb(2*e,1-r-o)/t,Pb((a-1)/(a+1))]},e}_x.invert=function(t,e){return[Mb/3*t/Db(kb*kb/3-e*e),e]};var wx=kb/Ab;function xx(t,e){return[t*(1+Db(cb(e)))/2,e/(cb(e/2)*cb(t/6))]}function kx(t,e){var n=t*t,i=e*e;return[t*(.975534+i*(-.0143059*n-.119161+-.0547009*i)),e*(1.00384+n*(.0802894+-.02855*i+199025e-9*n)+i*(.0998909+-.0491032*i))]}function Sx(t,e){return[_b(t)/cb(e),bb(e)*cb(t)]}function Cx(t){var e=cb(t),n=bb(Cb+t/2);function i(i,r){var o=r-t,a=sb(o)<wb?i*e:sb(a=Cb+r/2)<wb||sb(sb(a)-Sb)<wb?0:i*o/db(bb(a)/n);return[a,o]}return i.invert=function(i,r){var o,a=r+t;return[sb(r)<wb?i/e:sb(o=Cb+a/2)<wb||sb(sb(o)-Sb)<wb?0:i*db(bb(o)/n)/r,a]},i}function Ex(t,e){return[t,1.25*db(bb(Cb+.4*e))]}function Ax(t){var e=t.length-1;function n(n,i){for(var r,o=cb(i),a=2/(1+o*cb(n)),s=a*o*_b(n),u=a*_b(i),l=e,c=t[l],h=c[0],f=c[1];--l>=0;)h=(c=t[l])[0]+s*(r=h)-u*f,f=c[1]+s*f+u*r;return[h=s*(r=h)-u*f,f=s*f+u*r]}return n.invert=function(n,i){var r=20,o=n,a=i;do{for(var s,u=e,l=t[u],c=l[0],h=l[1],f=0,d=0;--u>=0;)f=c+o*(s=f)-a*d,d=h+o*d+a*s,c=(l=t[u])[0]+o*(s=c)-a*h,h=l[1]+o*h+a*s;var g,p,v=(f=c+o*(s=f)-a*d)*f+(d=h+o*d+a*s)*d;o-=g=((c=o*(s=c)-a*h-n)*f+(h=o*h+a*s-i)*d)/v,a-=p=(h*f-c*d)/v}while(sb(g)+sb(p)>wb*wb&&--r>0);if(r){var y=Db(o*o+a*a),m=2*ub(.5*y),_=_b(m);return[lb(o*_,y*cb(m)),y?Pb(a*_/y):0]}},n}xx.invert=function(t,e){var n=sb(t),i=sb(e),r=wb,o=Sb;i<wx?o*=i/wx:r+=6*Bb(wx/i);for(var a=0;a<25;a++){var s=_b(o),u=Db(cb(o)),l=_b(o/2),c=cb(o/2),h=_b(r/6),f=cb(r/6),d=.5*r*(1+u)-n,g=o/(c*f)-i,p=u?-.25*r*s/u:0,v=.5*(1+u),y=(1+.5*o*l/c)/(c*f),m=o/c*(h/6)/(f*f),_=p*m-y*v,b=(d*m-g*v)/_,w=(g*p-d*y)/_;if(o-=b,r-=w,sb(b)<wb&&sb(w)<wb)break}return[t<0?-r:r,e<0?-o:o]},kx.invert=function(t,e){var n=mb(t)*kb,i=e/2,r=50;do{var o=n*n,a=i*i,s=n*i,u=n*(.975534+a*(-.0143059*o-.119161+-.0547009*a))-t,l=i*(1.00384+o*(.0802894+-.02855*a+199025e-9*o)+a*(.0998909+-.0491032*a))-e,c=.975534-a*(.119161+3*o*.0143059+.0547009*a),h=-s*(.238322+.2188036*a+.0286118*o),f=s*(.1605788+7961e-7*o+-.0571*a),d=1.00384+o*(.0802894+199025e-9*o)+a*(3*(.0998909-.02855*o)-.245516*a),g=h*f-d*c,p=(l*h-u*d)/g,v=(u*f-l*c)/g;n-=p,i-=v}while((sb(p)>wb||sb(v)>wb)&&--r>0);return r&&[n,i]},Sx.invert=function(t,e){var n=t*t,i=e*e+1,r=n+i,o=t?Eb*Db((r-Db(r*r-4*n))/n):1/Db(i);return[Pb(t*o),mb(e)*Bb(o)]},Ex.invert=function(t,e){return[t,2.5*ub(hb(.8*e))-.625*kb]};var Rx=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],Mx=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Ox=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],Tx=[[.9245,0],[0,0],[.01943,0]],Px=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Bx(t,e){var n=C_(Ax(t)).rotate(e).clipAngle(90),i=Ey(e),r=n.center;return delete n.rotate,n.center=function(t){return arguments.length?r(i(t)):i.invert(r())},n}var Dx=Db(6),Nx=Db(7);function zx(t,e){var n=Pb(7*_b(e)/(3*Dx));return[Dx*t*(2*cb(2*n/3)-1)/Nx,9*_b(n/3)/Nx]}function jx(t,e){for(var n,i=(1+Eb)*_b(e),r=e,o=0;o<25&&(r-=n=(_b(r/2)+_b(r)-i)/(.5*cb(r/2)+cb(r)),!(sb(n)<wb));o++);return[t*(1+2*cb(r)/cb(r/2))/(3*Ab),2*Db(3)*_b(r/2)/Db(2+Ab)]}function Fx(t,e){for(var n,i=Db(6/(4+kb)),r=(1+kb/4)*_b(e),o=e/2,a=0;a<25&&(o-=n=(o/2+_b(o)-r)/(.5+cb(o)),!(sb(n)<wb));a++);return[i*(.5+cb(o))*t/1.5,i*o]}function Lx(t,e){var n=e*e,i=n*n,r=n*i;return[t*(.84719-.13063*n+r*r*(.05494*n-.04515-.02326*i+.00331*r)),e*(1.01183+i*i*(.01926*n-.02625-.00396*i))]}function Ix(t,e){return[t*(1+cb(e))/2,2*(e-bb(e/2))]}zx.invert=function(t,e){var n=3*Pb(e*Nx/9);return[t*Nx/(Dx*(2*cb(2*n/3)-1)),Pb(3*_b(n)*Dx/7)]},jx.invert=function(t,e){var n=e*Db(2+Ab)/(2*Db(3)),i=2*Pb(n);return[3*Ab*t/(1+2*cb(i)/cb(i/2)),Pb((n+_b(i))/(1+Eb))]},Fx.invert=function(t,e){var n=Db(6/(4+kb)),i=e/n;return sb(sb(i)-Sb)<wb&&(i=i<0?-Sb:Sb),[1.5*t/(n*(.5+cb(i))),Pb((i/2+_b(i))/(1+kb/4))]},Lx.invert=function(t,e){var n,i,r,o,a=e,s=25;do{a-=n=(a*(1.01183+(r=(i=a*a)*i)*r*(.01926*i-.02625-.00396*r))-e)/(1.01183+r*r*(.21186*i-.23625+-.05148*r))}while(sb(n)>xb&&--s>0);return[t/(.84719-.13063*(i=a*a)+(o=i*(r=i*i))*o*(.05494*i-.04515-.02326*r+.00331*o)),a]},Ix.invert=function(t,e){for(var n=e/2,i=0,r=1/0;i<10&&sb(r)>wb;++i){var o=cb(e/2);e-=r=(e-bb(e/2)-n)/(1-.5/(o*o))}return[2*t/(1+cb(e)),e]};var Hx=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function Gx(t,e){var n=_b(e),i=cb(e),r=mb(t);if(0===t||sb(e)===Sb)return[0,e];if(0===e)return[t,0];if(sb(t)===Sb)return[t*i,Sb*n];var o=kb/(2*t)-2*t/kb,a=2*e/kb,s=(1-a*a)/(n-a),u=o*o,l=s*s,c=1+u/l,h=1+l/u,f=(o*n/s-o/2)/c,d=(l*n/u+s/2)/h,g=d*d-(l*n*n/u+s*n-1)/h;return[Sb*(f+Db(f*f+i*i/c)*r),Sb*(d+Db(g<0?0:g)*mb(-e*o)*r)]}Gx.invert=function(t,e){var n=(t/=Sb)*t,i=n+(e/=Sb)*e,r=kb*kb;return[t?(i-1+Db((1-i)*(1-i)+4*n))/(2*t)*Sb:0,Kb((function(t){return i*(kb*_b(t)-2*t)*kb+4*t*t*(e-_b(t))+2*kb*t-r*e}),0)]};var Vx=1.0148,Ux=.23185,Wx=-.14499,qx=.02406,Kx=Vx,Yx=5*Ux,Xx=7*Wx,Zx=9*qx,$x=1.790857183;function Jx(t,e){var n=e*e;return[t,e*(Vx+n*n*(Ux+n*(Wx+qx*n)))]}function Qx(t,e){if(sb(e)<wb)return[t,0];var n=bb(e),i=t*_b(e);return[_b(i)/n,e+(1-cb(i))/n]}function tk(t,e){var n=nk(t[1],t[0]),i=nk(e[1],e[0]),r=function(t,e){return lb(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(n,i),o=ik(n)/ik(i);return ek([1,0,t[0][0],0,1,t[0][1]],ek([o,0,0,0,o,0],ek([cb(r),_b(r),0,-_b(r),cb(r),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function ek(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function nk(t,e){return[t[0]-e[0],t[1]-e[1]]}function ik(t){return Db(t[0]*t[0]+t[1]*t[1])}function rk(t,e){function n(t,n){var i,r=e(t,n),o=r.project([t*Ob,n*Ob]);return(i=r.transform)?[i[0]*o[0]+i[1]*o[1]+i[2],-(i[3]*o[0]+i[4]*o[1]+i[5])]:(o[1]=-o[1],o)}function i(t,n){var r=t.project.invert,o=t.transform,a=n;if(o&&(o=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}(o),a=[o[0]*a[0]+o[1]*a[1]+o[2],o[3]*a[0]+o[4]*a[1]+o[5]]),r&&t===function(t){return e(t[0]*Tb,t[1]*Tb)}(s=r(a)))return s;for(var s,u=t.children,l=0,c=u&&u.length;l<c;++l)if(s=i(u[l],n))return s}!function t(e,n){if(e.edges=function(t){for(var e=t.length,n=[],i=t[e-1],r=0;r<e;++r)n.push([i,i=t[r]]);return n}(e.face),n.face){var i=e.shared=function(t,e){for(var n,i,r=t.length,o=null,a=0;a<r;++a){n=t[a];for(var s=e.length;--s>=0;)if(i=e[s],n[0]===i[0]&&n[1]===i[1]){if(o)return[o,n];o=n}}}(e.face,n.face),r=tk(i.map(n.project),i.map(e.project));e.transform=n.transform?ek(n.transform,r):r;for(var o=n.edges,a=0,s=o.length;a<s;++a)ak(i[0],o[a][1])&&ak(i[1],o[a][0])&&(o[a]=e),ak(i[0],o[a][0])&&ak(i[1],o[a][1])&&(o[a]=e);for(a=0,s=(o=e.edges).length;a<s;++a)ak(i[0],o[a][0])&&ak(i[1],o[a][1])&&(o[a]=n),ak(i[0],o[a][1])&&ak(i[1],o[a][0])&&(o[a]=n)}else e.transform=n.transform;e.children&&e.children.forEach((function(n){t(n,e)}));return e}(t,{transform:null}),sk(t)&&(n.invert=function(e,n){var r=i(t,[e,-n]);return r&&(r[0]*=Tb,r[1]*=Tb,r)});var r=C_(n),o=r.stream;return r.stream=function(e){var n=r.rotate(),i=o(e),a=(r.rotate([0,0]),o(e));return r.rotate(n),i.sphere=function(){a.polygonStart(),a.lineStart(),ok(a,t),a.lineEnd(),a.polygonEnd()},i},r.angle(-30)}function ok(t,e,n){var i,r,o=e.edges,a=o.length,s={type:"MultiPoint",coordinates:e.face},u=ay({type:"MultiPoint",coordinates:e.face.filter((function(t){return 90!==sb(t[1])}))}),l=!1,c=-1,h=u[1][0]-u[0][0],f=180===h||360===h?[(u[0][0]+u[1][0])/2,(u[0][1]+u[1][1])/2]:my(s);if(n)for(;++c<a&&o[c]!==n;);++c;for(var d=0;d<a;++d)r=o[(d+c)%a],Array.isArray(r)?(l||(t.point((i=gm(r[0],f)(wb))[0],i[1]),l=!0),t.point((i=gm(r[1],f)(wb))[0],i[1])):(l=!1,r!==n&&ok(t,r,e))}function ak(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function sk(t){return t.project.invert||t.children&&t.children.some(sk)}Jx.invert=function(t,e){e>$x?e=$x:e<-1.790857183&&(e=-1.790857183);var n,i=e;do{var r=i*i;i-=n=(i*(Vx+r*r*(Ux+r*(Wx+qx*r)))-e)/(Kx+r*r*(Yx+r*(Xx+Zx*r)))}while(sb(n)>wb);return[t,i]},Qx.invert=function(t,e){if(sb(e)<wb)return[t,0];var n,i=t*t+e*e,r=.5*e,o=10;do{var a=bb(r),s=1/cb(r),u=i-2*e*r+r*r;r-=n=(a*u+2*(r-e))/(2+u*s*s+2*(r-e)*a)}while(sb(n)>wb&&--o>0);return a=bb(r),[(sb(e)<sb(r+1/a)?Pb(t*a):mb(e)*mb(t)*(Bb(sb(t*a))+Sb))/_b(r),r]};var uk=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],lk=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return uk[t]}))}));var ck=2/Db(3);function hk(t,e){var n=dw(t,e);return[n[0]*ck,n[1]]}function fk(t,e){for(var n=0,i=t.length,r=0;n<i;++n)r+=t[n]*e[n];return r}function dk(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function gk(t){return[lb(t[1],t[0])*Ob,Pb(gb(-1,pb(1,t[2])))*Ob]}function pk(t){var e=t[0]*Tb,n=t[1]*Tb,i=cb(n);return[i*cb(e),i*_b(e),_b(n)]}hk.invert=function(t,e){return dw.invert(t/ck,e)};var vk=function(){};function yk(t,e){return{type:"FeatureCollection",features:t.features.map((function(t){return mk(t,e)}))}}function mk(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:_k(t.geometry,e)}}function _k(t,e){if(!t)return null;if("GeometryCollection"===t.type)return function(t,e){return{type:"GeometryCollection",geometries:t.geometries.map((function(t){return _k(t,e)}))}}(t,e);var n;switch(t.type){case"Point":case"MultiPoint":n=xk;break;case"LineString":case"MultiLineString":n=kk;break;case"Polygon":case"MultiPolygon":case"Sphere":n=Sk;break;default:return null}return nv(t,e(n)),n.result()}var bk=[],wk=[],xk={point:function(t,e){bk.push([t,e])},result:function(){var t=bk.length?bk.length<2?{type:"Point",coordinates:bk[0]}:{type:"MultiPoint",coordinates:bk}:null;return bk=[],t}},kk={lineStart:vk,point:function(t,e){bk.push([t,e])},lineEnd:function(){bk.length&&(wk.push(bk),bk=[])},result:function(){var t=wk.length?wk.length<2?{type:"LineString",coordinates:wk[0]}:{type:"MultiLineString",coordinates:wk}:null;return wk=[],t}},Sk={polygonStart:vk,lineStart:vk,point:function(t,e){bk.push([t,e])},lineEnd:function(){var t=bk.length;if(t){do{bk.push(bk[0].slice())}while(++t<4);wk.push(bk),bk=[]}},polygonEnd:vk,result:function(){if(!wk.length)return null;var t=[],e=[];return wk.forEach((function(n){!function(t){if((e=t.length)<4)return!1;for(var e,n=0,i=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++n<e;)i+=t[n-1][1]*t[n][0]-t[n-1][0]*t[n][1];return i<=0}(n)?e.push(n):t.push([n])})),e.forEach((function(e){var n=e[0];t.some((function(t){if(function(t,e){for(var n=e[0],i=e[1],r=!1,o=0,a=t.length,s=a-1;o<a;s=o++){var u=t[o],l=u[0],c=u[1],h=t[s],f=h[0],d=h[1];c>i^d>i&&n<(f-l)*(i-c)/(d-c)+l&&(r=!r)}return r}(t[0],n))return t.push(e),!0}))||t.push([e])})),wk=[],t.length?t.length>1?{type:"MultiPolygon",coordinates:t}:{type:"Polygon",coordinates:t[0]}:null}};function Ck(t){var e=t(Sb,0)[0]-t(-Sb,0)[0];function n(n,i){var r=sb(n)<Sb,o=t(r?n:n>0?n-kb:n+kb,i),a=(o[0]-o[1])*Eb,s=(o[0]+o[1])*Eb;if(r)return[a,s];var u=e*Eb,l=a>0^s>0?-1:1;return[l*a-mb(s)*u,l*s-mb(a)*u]}return t.invert&&(n.invert=function(n,i){var r=(n+i)*Eb,o=(i-n)*Eb,a=sb(r)<.5*e&&sb(o)<.5*e;if(!a){var s=e*Eb,u=r>0^o>0?-1:1,l=-u*n+(o>0?1:-1)*s,c=-u*i+(r>0?1:-1)*s;r=(-l-c)*Eb,o=(l-c)*Eb}var h=t.invert(r,o);return a||(h[0]+=r>0?kb:-kb),h}),C_(n).rotate([-90,-90,45]).clipAngle(179.999)}function Ek(t){var e=_b(t);function n(n,i){var r=e?bb(n*e/2)/e:n/2;if(!i)return[2*r,-t];var o=2*ub(r*_b(i)),a=1/bb(i);return[_b(o)*a,i+(1-cb(o))*a-t]}return n.invert=function(n,i){if(sb(i+=t)<wb)return[e?2*ub(e*n/2)/e:n,0];var r,o=n*n+i*i,a=0,s=10;do{var u=bb(a),l=1/cb(a),c=o-2*i*a+a*a;a-=r=(u*c+2*(a-i))/(2+c*l*l+2*(a-i)*u)}while(sb(r)>wb&&--s>0);var h=n*(u=bb(a)),f=bb(sb(i)<sb(a+1/u)?.5*Pb(h):.5*Bb(h)+kb/4)/_b(a);return[e?2*ub(e*f)/e:2*f,a]},n}var Ak=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function Rk(t,e){var n,i=pb(18,36*sb(e)/kb),r=fb(i),o=i-r,a=(n=Ak[r])[0],s=n[1],u=(n=Ak[++r])[0],l=n[1],c=(n=Ak[pb(19,++r)])[0],h=n[1];return[t*(u+o*(c-a)/2+o*o*(c-2*u+a)/2),(e>0?Sb:-Sb)*(l+o*(h-s)/2+o*o*(h-2*l+s)/2)]}function Mk(t,e){var n=function(t){function e(e,n){var i=cb(n),r=(t-1)/(t-i*cb(e));return[r*i*_b(e),r*_b(n)]}return e.invert=function(e,n){var i=e*e+n*n,r=Db(i),o=(t-Db(1-i*(t+1)/(t-1)))/((t-1)/r+r/(t-1));return[lb(e*o,r*Db(1-o*o)),r?Pb(n*o/r):0]},e}(t);if(!e)return n;var i=cb(e),r=_b(e);function o(e,o){var a=n(e,o),s=a[1],u=s*r/(t-1)+i;return[a[0]*i/u,s/u]}return o.invert=function(e,o){var a=(t-1)/(t-1-o*r);return n.invert(a*e,a*o*i)},o}Ak.forEach((function(t){t[1]*=1.0144})),Rk.invert=function(t,e){var n=e/Sb,i=90*n,r=pb(18,sb(i/5)),o=gb(0,fb(r));do{var a=Ak[o][1],s=Ak[o+1][1],u=Ak[pb(19,o+2)][1],l=u-a,c=u-2*s+a,h=2*(sb(n)-s)/l,f=c/l,d=h*(1-f*h*(1-2*f*h));if(d>=0||1===o){i=(e>=0?5:-5)*(d+r);var g,p=50;do{d=(r=pb(18,sb(i)/5))-(o=fb(r)),a=Ak[o][1],s=Ak[o+1][1],u=Ak[pb(19,o+2)][1],i-=(g=(e>=0?Sb:-Sb)*(s+d*(u-a)/2+d*d*(u-2*s+a)/2)-e)*Ob}while(sb(g)>xb&&--p>0);break}}while(--o>=0);var v=Ak[o][0],y=Ak[o+1][0],m=Ak[pb(19,o+2)][0];return[t/(y+d*(m-v)/2+d*d*(m-2*y+v)/2),i*Tb]};var Ok=1e-4,Tk=1e4,Pk=-180,Bk=Pk+Ok,Dk=180,Nk=Dk-Ok,zk=-90,jk=zk+Ok,Fk=90,Lk=Fk-Ok;function Ik(t){return t.length>0}function Hk(t){return Math.floor(t*Tk)/Tk}function Gk(t){return t===zk||t===Fk?[0,t]:[Pk,Hk(t)]}function Vk(t){var e=t[0],n=t[1],i=!1;return e<=Bk?(e=Pk,i=!0):e>=Nk&&(e=Dk,i=!0),n<=jk?(n=zk,i=!0):n>=Lk&&(n=Fk,i=!0),i?[e,n]:t}function Uk(t){return t.map(Vk)}function Wk(t,e,n){for(var i=0,r=t.length;i<r;++i){var o=t[i].slice();n.push({index:-1,polygon:e,ring:o});for(var a=0,s=o.length;a<s;++a){var u=o[a],l=u[0],c=u[1];if(l<=Bk||l>=Nk||c<=jk||c>=Lk){o[a]=Vk(u);for(var h=a+1;h<s;++h){var f=o[h],d=f[0],g=f[1];if(d>Bk&&d<Nk&&g>jk&&g<Lk)break}if(h===a+1)continue;if(a){var p={index:-1,polygon:e,ring:o.slice(0,a+1)};p.ring[p.ring.length-1]=Gk(c),n[n.length-1]=p}else n.pop();if(h>=s)break;n.push({index:-1,polygon:e,ring:o=o.slice(h-1)}),o[0]=Gk(o[0][1]),a=-1,s=o.length}}}}function qk(t){var e,n,i,r,o,a,s=t.length,u={},l={};for(e=0;e<s;++e)i=(n=t[e]).ring[0],o=n.ring[n.ring.length-1],i[0]!==o[0]||i[1]!==o[1]?(n.index=e,u[i]=l[o]=n):(n.polygon.push(n.ring),t[e]=null);for(e=0;e<s;++e)if(n=t[e]){if(i=n.ring[0],o=n.ring[n.ring.length-1],r=l[i],a=u[o],delete u[i],delete l[o],i[0]===o[0]&&i[1]===o[1]){n.polygon.push(n.ring);continue}r?(delete l[i],delete u[r.ring[0]],r.ring.pop(),t[r.index]=null,n={index:-1,polygon:r.polygon,ring:r.ring.concat(n.ring)},r===a?n.polygon.push(n.ring):(n.index=s++,t.push(u[n.ring[0]]=l[n.ring[n.ring.length-1]]=n))):a?(delete u[o],delete l[a.ring[a.ring.length-1]],n.ring.pop(),n={index:s++,polygon:a.polygon,ring:n.ring.concat(a.ring)},t[a.index]=null,t.push(u[n.ring[0]]=l[n.ring[n.ring.length-1]]=n)):(n.ring.push(n.ring[0]),n.polygon.push(n.ring))}}function Kk(t){var e={type:"Feature",geometry:Yk(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),null!=t.properties&&(e.properties=t.properties),e}function Yk(t){if(null==t)return t;var e,n,i,r;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(Yk)};break;case"Point":e={type:"Point",coordinates:Vk(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:Uk(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(Uk)};break;case"Polygon":var o=[];Wk(t.coordinates,o,n=[]),qk(n),e={type:"Polygon",coordinates:o};break;case"MultiPolygon":n=[],i=-1,r=t.coordinates.length;for(var a=new Array(r);++i<r;)Wk(t.coordinates[i],a[i]=[],n);qk(n),e={type:"MultiPolygon",coordinates:a.filter(Ik)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function Xk(t,e){var n=bb(e/2),i=_b(Cb*n);return[t*(.74482-.34588*i*i),1.70711*n]}function Zk(t,e,n){var i=gm(e,n),r=i(.5),o=Ey([-r[0],-r[1]])(e),a=i.distance/2,s=-Pb(_b(o[1]*Tb)/_b(a)),u=[-r[0],-r[1],-(o[0]>0?kb-s:s)*Ob],l=C_(t(a)).rotate(u),c=Ey(u),h=l.center;return delete l.rotate,l.center=function(t){return arguments.length?h(c(t)):c.invert(h())},l.clipAngle(90)}function $k(t){var e=cb(t);function n(t,n){var i=$_(t,n);return i[0]*=e,i}return n.invert=function(t,n){return $_.invert(t/e,n)},n}function Jk(t,e){return Zk($k,t,e)}function Qk(t){if(!(t*=2))return D_;var e=-t/2,n=-e,i=t*t,r=bb(n),o=.5/_b(n);function a(r,o){var a=Bb(cb(o)*cb(r-e)),s=Bb(cb(o)*cb(r-n));return[((a*=a)-(s*=s))/(2*t),(o<0?-1:1)*Db(4*i*s-(i-a+s)*(i-a+s))/(2*t)]}return a.invert=function(t,i){var a,s,u=i*i,l=cb(Db(u+(a=t+e)*a)),c=cb(Db(u+(a=t+n)*a));return[lb(s=l-c,a=(l+c)*r),(i<0?-1:1)*Bb(Db(a*a+s*s)*o)]},a}function tS(t,e){return Zk(Qk,t,e)}function eS(t,e){if(sb(e)<wb)return[t,0];var n=sb(e/Sb),i=Pb(n);if(sb(t)<wb||sb(sb(e)-Sb)<wb)return[0,mb(e)*kb*bb(i/2)];var r=cb(i),o=sb(kb/t-t/kb)/2,a=o*o,s=r/(n+r-1),u=s*(2/n-1),l=u*u,c=l+a,h=s-l,f=a+s;return[mb(t)*kb*(o*h+Db(a*h*h-c*(s*s-l)))/c,mb(e)*kb*(u*f-o*Db((a+1)*c-f*f))/c]}function nS(t,e){if(sb(e)<wb)return[t,0];var n=sb(e/Sb),i=Pb(n);if(sb(t)<wb||sb(sb(e)-Sb)<wb)return[0,mb(e)*kb*bb(i/2)];var r=cb(i),o=sb(kb/t-t/kb)/2,a=o*o,s=r*(Db(1+a)-o*r)/(1+a*n*n);return[mb(t)*kb*s,mb(e)*kb*Db(1-s*(2*o+s))]}function iS(t,e){if(sb(e)<wb)return[t,0];var n=e/Sb,i=Pb(n);if(sb(t)<wb||sb(sb(e)-Sb)<wb)return[0,kb*bb(i/2)];var r=(kb/t-t/kb)/2,o=n/(1+cb(i));return[kb*(mb(t)*Db(r*r+1-o*o)-r),kb*o]}function rS(t,e){if(!e)return[t,0];var n=sb(e);if(!t||n===Sb)return[0,e];var i=n/Sb,r=i*i,o=(8*i-r*(r+2)-5)/(2*r*(i-1)),a=o*o,s=i*o,u=r+a+2*s,l=i+3*o,c=t/Sb,h=c+1/c,f=mb(sb(t)-Sb)*Db(h*h-4),d=f*f,g=(f*(u+a-1)+2*Db(u*(r+a*d-1)+(1-r)*(r*(l*l+4*a)+12*s*a+4*a*a)))/(4*u+d);return[mb(t)*Sb*g,mb(e)*Sb*Db(1+f*sb(g)-g*g)]}function oS(t,e,n,i){var r=kb/3;t=gb(t,wb),e=gb(e,wb),t=pb(t,Sb),e=pb(e,kb-wb),n=gb(n,0),n=pb(n,100-wb);var o=(i=gb(i,wb))/100,a=Bb((n/100+1)*cb(r))/r,s=_b(t)/_b(a*Sb),u=e/kb,l=Db(o*_b(t/2)/_b(e/2));return function(t,e,n,i,r){function o(o,a){var s=n*_b(i*a),u=Db(1-s*s),l=Db(2/(1+u*cb(o*=r)));return[t*u*l*_b(o),e*s*l]}return o.invert=function(o,a){var s=o/t,u=a/e,l=Db(s*s+u*u),c=2*Pb(l/2);return[lb(o*bb(c),t*l)/r,l&&Pb(a*_b(c)/(e*n*l))/i]},o}(l/Db(u*s*a),1/(l*Db(u*s*a)),s,a,u)}function aS(){var t=65*Tb,e=60*Tb,n=20,i=200,r=E_(oS),o=r(t,e,n,i);return o.poleline=function(o){return arguments.length?r(t=+o*Tb,e,n,i):t*Ob},o.parallels=function(o){return arguments.length?r(t,e=+o*Tb,n,i):e*Ob},o.inflation=function(o){return arguments.length?r(t,e,n=+o,i):n},o.ratio=function(o){return arguments.length?r(t,e,n,i=+o):i},o.scale(163.775)}Xk.invert=function(t,e){var n=e/1.70711,i=_b(Cb*n);return[t/(.74482-.34588*i*i),2*ub(n)]},eS.invert=function(t,e){if(sb(e)<wb)return[t,0];if(sb(t)<wb)return[0,Sb*_b(2*ub(e/kb))];var n=(t/=kb)*t,i=(e/=kb)*e,r=n+i,o=r*r,a=-sb(e)*(1+r),s=a-2*i+n,u=-2*a+1+2*i+o,l=i/u+(2*s*s*s/(u*u*u)-9*a*s/(u*u))/27,c=(a-s*s/(3*u))/u,h=2*Db(-c/3),f=Bb(3*l/(c*h))/3;return[kb*(r-1+Db(1+2*(n-i)+o))/(2*t),mb(e)*kb*(-h*cb(f+kb/3)-s/(3*u))]},nS.invert=function(t,e){if(!t)return[0,Sb*_b(2*ub(e/kb))];var n=sb(t/kb),i=(1-n*n-(e/=kb)*e)/(2*n),r=Db(i*i+1);return[mb(t)*kb*(r-i),mb(e)*Sb*_b(2*lb(Db((1-2*i*n)*(i+r)-n),Db(r+i+n)))]},iS.invert=function(t,e){if(!e)return[t,0];var n=e/kb,i=(kb*kb*(1-n*n)-t*t)/(2*kb*t);return[t?kb*(mb(t)*Db(i*i+1)-i):0,Sb*_b(2*ub(n))]},rS.invert=function(t,e){var n;if(!t||!e)return[t,e];var i=mb(e);e=sb(e)/kb;var r=mb(t)*t/Sb,o=(r*r-1+4*e*e)/sb(r),a=o*o,s=e*(2-(e>.5?pb(e,sb(t)):0)),u=t*t+e*e,l=50;do{var c=s*s,h=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),d=h*h,g=s*h,p=s+h,v=p*p,y=s+3*h,m=-2*p*(4*g*d+(1-4*c+3*c*c)*(1+f)+d*(14*c-6-a+(8*c-8-2*a)*f)+g*(12*c-8+(10*c-10-a)*f)),_=Db(v*(c+d*a-1)+(1-c)*(c*(y*y+4*d)+d*(12*g+4*d)));s-=n=(o*(v+d-1)+2*_-r*(4*v+a))/(o*(2*h*f+2*p*(1+f))+m/_-8*p*(o*(-1+d+v)+2*_)*(1+f)/(a+4*v))}while(n*u*u>wb&&--l>0);return[mb(t)*(Db(o*o+4)+o)*kb/4,i*Sb*s]};var sS=4*kb+3*Db(3),uS=2*Db(2*kb*Db(3)/sS),lS=$b(uS*Db(3)/kb,uS,sS/6);function cS(t,e){return[t*Db(1-3*e*e/(kb*kb)),e]}function hS(t,e){var n=cb(e),i=cb(t)*n,r=1-i,o=cb(t=lb(_b(t)*n,-_b(e))),a=_b(t);return[a*(n=Db(1-i*i))-o*r,-o*n-a*r]}function fS(t,e){var n=Fb(t,e);return[(n[0]+t/Sb)/2,(n[1]+e)/2]}cS.invert=function(t,e){return[t/Db(1-3*e*e/(kb*kb)),e]},hS.invert=function(t,e){var n=(t*t+e*e)/-2,i=Db(-n*(2+n)),r=e*n+t*i,o=t*n-e*i,a=Db(o*o+r*r);return[lb(i*r,a*(1+n)),a?-Pb(i*o/a):0]},fS.invert=function(t,e){var n=t,i=e,r=25;do{var o,a=cb(i),s=_b(i),u=_b(2*i),l=s*s,c=a*a,h=_b(n),f=cb(n/2),d=_b(n/2),g=d*d,p=1-c*f*f,v=p?Bb(a*f)*Db(o=1/p):o=0,y=.5*(2*v*a*d+n/Sb)-t,m=.5*(v*s+i)-e,_=.5*o*(c*g+v*a*f*l)+.5/Sb,b=o*(h*u/4-v*s*d),w=.125*o*(u*d-v*s*c*h),x=.5*o*(l*f+v*g*a)+.5,k=b*w-x*_,S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,i-=C}while((sb(S)>wb||sb(C)>wb)&&--r>0);return[n,i]};var dS=Object.freeze({__proto__:null,geoAiry:function(){var t=Sb,e=E_(jb),n=e(t);return n.radius=function(n){return arguments.length?e(t=n*Tb):t*Ob},n.scale(179.976).clipAngle(147)},geoAiryRaw:jb,geoAitoff:function(){return C_(Fb).scale(152.63)},geoAitoffRaw:Fb,geoArmadillo:function(){var t=20*Tb,e=t>=0?1:-1,n=bb(e*t),i=E_(Lb),r=i(t),o=r.stream;return r.parallel=function(r){return arguments.length?(n=bb((e=(t=r*Tb)>=0?1:-1)*t),i(t)):t*Ob},r.stream=function(i){var a=r.rotate(),s=o(i),u=(r.rotate([0,0]),o(i)),l=r.precision();return r.rotate(a),s.sphere=function(){u.polygonStart(),u.lineStart();for(var i=-180*e;e*i<180;i+=90*e)u.point(i,90*e);if(t)for(;e*(i-=3*e*l)>=-180;)u.point(i,e*-lb(cb(i*Tb/2),n)*Ob);u.lineEnd(),u.polygonEnd()},s},r.scale(218.695).center([0,28.0974])},geoArmadilloRaw:Lb,geoAugust:function(){return C_(Ib).scale(66.1603)},geoAugustRaw:Ib,geoBaker:function(){return C_(Vb).scale(112.314)},geoBakerRaw:Vb,geoBerghaus:function(){var t=5,e=E_(Ub),n=e(t),i=n.stream,r=.01,o=-cb(r*Tb),a=_b(r*Tb);return n.lobes=function(n){return arguments.length?e(t=+n):t},n.stream=function(e){var s=n.rotate(),u=i(e),l=(n.rotate([0,0]),i(e));return n.rotate(s),u.sphere=function(){l.polygonStart(),l.lineStart();for(var e=0,n=360/t,i=2*kb/t,s=90-180/t,u=Sb;e<t;++e,s-=n,u-=i)l.point(lb(a*cb(u),o)*Ob,Pb(a*_b(u))*Ob),s<-90?(l.point(-90,-180-s-r),l.point(-90,-180-s+r)):(l.point(90,s+r),l.point(90,s-r));l.lineEnd(),l.polygonEnd()},u},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)},geoBerghausRaw:Ub,geoBertin1953:function(){return C_(Xb()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])},geoBertin1953Raw:Xb,geoBoggs:function(){return C_(ew).scale(160.857)},geoBoggsRaw:ew,geoBonne:function(){return nw(rw).scale(123.082).center([0,26.1441]).parallel(45)},geoBonneRaw:rw,geoBottomley:function(){var t=.5,e=E_(ow),n=e(t);return n.fraction=function(n){return arguments.length?e(t=+n):t},n.scale(158.837)},geoBottomleyRaw:ow,geoBromley:function(){return C_(aw).scale(152.63)},geoBromleyRaw:aw,geoChamberlin:fw,geoChamberlinRaw:cw,geoChamberlinAfrica:function(){return fw([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},geoCollignon:function(){return C_(dw).scale(95.6464).center([0,30])},geoCollignonRaw:dw,geoCraig:function(){return nw(gw).scale(249.828).clipAngle(90)},geoCraigRaw:gw,geoCraster:function(){return C_(vw).scale(156.19)},geoCrasterRaw:vw,geoCylindricalEqualArea:function(){return nw(yw).parallel(38.58).scale(195.044)},geoCylindricalEqualAreaRaw:yw,geoCylindricalStereographic:function(){return nw(mw).scale(124.75)},geoCylindricalStereographicRaw:mw,geoEckert1:function(){return C_(_w).scale(165.664)},geoEckert1Raw:_w,geoEckert2:function(){return C_(bw).scale(165.664)},geoEckert2Raw:bw,geoEckert3:function(){return C_(ww).scale(180.739)},geoEckert3Raw:ww,geoEckert4:function(){return C_(xw).scale(180.739)},geoEckert4Raw:xw,geoEckert5:function(){return C_(kw).scale(173.044)},geoEckert5Raw:kw,geoEckert6:function(){return C_(Sw).scale(173.044)},geoEckert6Raw:Sw,geoEisenlohr:function(){return C_(Ew).scale(62.5271)},geoEisenlohrRaw:Ew,geoFahey:function(){return C_(Rw).scale(137.152)},geoFaheyRaw:Rw,geoFoucaut:function(){return C_(Mw).scale(135.264)},geoFoucautRaw:Mw,geoFoucautSinusoidal:function(){var t=.5,e=E_(Ow),n=e(t);return n.alpha=function(n){return arguments.length?e(t=+n):t},n.scale(168.725)},geoFoucautSinusoidalRaw:Ow,geoGilbert:function(t){null==t&&(t=eb);var e=t(),n=G_().scale(Ob).precision(0).clipAngle(null).translate([0,0]);function i(t){return e(Tw(t))}function r(t){i[t]=function(){return arguments.length?(e[t].apply(e,arguments),i):e[t]()}}return e.invert&&(i.invert=function(t){return Pw(e.invert(t))}),i.stream=function(t){var i=e.stream(t),r=n.stream({point:function(t,e){i.point(t/2,Pb(bb(-e/2*Tb))*Ob)},lineStart:function(){i.lineStart()},lineEnd:function(){i.lineEnd()},polygonStart:function(){i.polygonStart()},polygonEnd:function(){i.polygonEnd()}});return r.sphere=i.sphere,r},i.rotate=function(t){return arguments.length?(n.rotate(t),i):n.rotate()},i.center=function(t){return arguments.length?(e.center(Tw(t)),i):Pw(e.center())},r("angle"),r("clipAngle"),r("clipExtent"),r("fitExtent"),r("fitHeight"),r("fitSize"),r("fitWidth"),r("scale"),r("translate"),r("precision"),i.scale(249.5)},geoGingery:function(){var t=6,e=30*Tb,n=cb(e),i=_b(e),r=E_(Bw),o=r(e,t),a=o.stream,s=-cb(.01*Tb),u=_b(.01*Tb);return o.radius=function(o){return arguments.length?(n=cb(e=o*Tb),i=_b(e),r(e,t)):e*Ob},o.lobes=function(n){return arguments.length?r(e,t=+n):t},o.stream=function(e){var r=o.rotate(),l=a(e),c=(o.rotate([0,0]),a(e));return o.rotate(r),l.sphere=function(){c.polygonStart(),c.lineStart();for(var e=0,r=2*kb/t,o=0;e<t;++e,o-=r)c.point(lb(u*cb(o),s)*Ob,Pb(u*_b(o))*Ob),c.point(lb(i*cb(o-r/2),n)*Ob,Pb(i*_b(o-r/2))*Ob);c.lineEnd(),c.polygonEnd()},l},o.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},geoGingeryRaw:Bw,geoGinzburg4:function(){return C_(jw).scale(149.995)},geoGinzburg4Raw:jw,geoGinzburg5:function(){return C_(Fw).scale(153.93)},geoGinzburg5Raw:Fw,geoGinzburg6:function(){return C_(Lw).scale(130.945)},geoGinzburg6Raw:Lw,geoGinzburg8:function(){return C_(Iw).scale(131.747)},geoGinzburg8Raw:Iw,geoGinzburg9:function(){return C_(Hw).scale(131.087)},geoGinzburg9Raw:Hw,geoGringorten:function(){return C_(Gw(Vw)).scale(239.75)},geoGringortenRaw:Vw,geoGuyou:function(){return C_(Gw(qw)).scale(151.496)},geoGuyouRaw:qw,geoHammer:function(){var t=2,e=E_(Wb),n=e(t);return n.coefficient=function(n){return arguments.length?e(t=+n):t},n.scale(169.529)},geoHammerRaw:Wb,geoHammerRetroazimuthal:function(){var t=0,e=E_(Kw),n=e(t),i=n.rotate,r=n.stream,o=My();return n.parallel=function(i){if(!arguments.length)return t*Ob;var r=n.rotate();return e(t=i*Tb).rotate(r)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*Ob]),o.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*Ob,e)},n.stream=function(t){return(t=r(t)).sphere=function(){t.polygonStart();var e,n=o.radius(89.99)().coordinates[0],i=n.length-1,r=-1;for(t.lineStart();++r<i;)t.point((e=n[r])[0],e[1]);for(t.lineEnd(),i=(n=o.radius(90.01)().coordinates[0]).length-1,t.lineStart();--r>=0;)t.point((e=n[r])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},geoHammerRetroazimuthalRaw:Kw,geoHealpix:function(){var t=4,e=E_($w),n=e(t),i=n.stream;return n.lobes=function(n){return arguments.length?e(t=+n):t},n.stream=function(e){var r=n.rotate(),o=i(e),a=(n.rotate([0,0]),i(e));return n.rotate(r),o.sphere=function(){nv(function(t){var e=[].concat(D(-180,180+t/2,t).map(Jw),D(180,-180-t/2,-t).map(Qw));return{type:"Polygon",coordinates:[180===t?e.map(tx):e]}}(180/t),a)},o},n.scale(239.75)},geoHealpixRaw:$w,geoHill:function(){var t=1,e=E_(ex),n=e(t);return n.ratio=function(n){return arguments.length?e(t=+n):t},n.scale(167.774).center([0,18.67])},geoHillRaw:ex,geoHomolosine:function(){return C_(ox).scale(152.63)},geoHomolosineRaw:ox,geoHufnagel:function(){var t=1,e=0,n=45*Tb,i=2,r=E_(ax),o=r(t,e,n,i);return o.a=function(o){return arguments.length?r(t=+o,e,n,i):t},o.b=function(o){return arguments.length?r(t,e=+o,n,i):e},o.psiMax=function(o){return arguments.length?r(t,e,n=+o*Tb,i):n*Ob},o.ratio=function(o){return arguments.length?r(t,e,n,i=+o):i},o.scale(180.739)},geoHufnagelRaw:ax,geoHyperelliptical:function(){var t=0,e=2.5,n=1.183136,i=E_(lx),r=i(t,e,n);return r.alpha=function(r){return arguments.length?i(t=+r,e,n):t},r.k=function(r){return arguments.length?i(t,e=+r,n):e},r.gamma=function(r){return arguments.length?i(t,e,n=+r):n},r.scale(152.63)},geoHyperellipticalRaw:lx,geoInterrupt:fx,geoInterruptedBoggs:function(){return fx(ew,dx).scale(160.857)},geoInterruptedHomolosine:function(){return fx(ox,gx).scale(152.63)},geoInterruptedMollweide:function(){return fx(Jb,px).scale(169.529)},geoInterruptedMollweideHemispheres:function(){return fx(Jb,vx).scale(169.529).rotate([20,0])},geoInterruptedSinuMollweide:function(){return fx(rx,yx,Yb).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},geoInterruptedSinusoidal:function(){return fx(iw,mx).scale(152.63).rotate([-20,0])},geoKavrayskiy7:function(){return C_(_x).scale(158.837)},geoKavrayskiy7Raw:_x,geoLagrange:function(){var t=.5,e=E_(bx),n=e(t);return n.spacing=function(n){return arguments.length?e(t=+n):t},n.scale(124.75)},geoLagrangeRaw:bx,geoLarrivee:function(){return C_(xx).scale(97.2672)},geoLarriveeRaw:xx,geoLaskowski:function(){return C_(kx).scale(139.98)},geoLaskowskiRaw:kx,geoLittrow:function(){return C_(Sx).scale(144.049).clipAngle(89.999)},geoLittrowRaw:Sx,geoLoximuthal:function(){return nw(Cx).parallel(40).scale(158.837)},geoLoximuthalRaw:Cx,geoMiller:function(){return C_(Ex).scale(108.318)},geoMillerRaw:Ex,geoModifiedStereographic:Bx,geoModifiedStereographicRaw:Ax,geoModifiedStereographicAlaska:function(){return Bx(Rx,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},geoModifiedStereographicGs48:function(){return Bx(Mx,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},geoModifiedStereographicGs50:function(){return Bx(Ox,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},geoModifiedStereographicMiller:function(){return Bx(Tx,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},geoModifiedStereographicLee:function(){return Bx(Px,[165,10]).scale(250).clipAngle(130).center([-165,-10])},geoMollweide:function(){return C_(Jb).scale(169.529)},geoMollweideRaw:Jb,geoMtFlatPolarParabolic:function(){return C_(zx).scale(164.859)},geoMtFlatPolarParabolicRaw:zx,geoMtFlatPolarQuartic:function(){return C_(jx).scale(188.209)},geoMtFlatPolarQuarticRaw:jx,geoMtFlatPolarSinusoidal:function(){return C_(Fx).scale(166.518)},geoMtFlatPolarSinusoidalRaw:Fx,geoNaturalEarth2:function(){return C_(Lx).scale(175.295)},geoNaturalEarth2Raw:Lx,geoNellHammer:function(){return C_(Ix).scale(152.63)},geoNellHammerRaw:Ix,geoInterruptedQuarticAuthalic:function(){return fx(Wb(1/0),Hx).rotate([20,0]).scale(152.63)},geoNicolosi:function(){return C_(Gx).scale(127.267)},geoNicolosiRaw:Gx,geoPatterson:function(){return C_(Jx).scale(139.319)},geoPattersonRaw:Jx,geoPolyconic:function(){return C_(Qx).scale(103.74)},geoPolyconicRaw:Qx,geoPolyhedral:rk,geoPolyhedralButterfly:function(t){t=t||function(t){var e=my({type:"MultiPoint",coordinates:t});return J_().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var e=lk.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,n){var i=e[t];i&&(i.children||(i.children=[])).push(e[n])})),rk(e[0],(function(t,n){return e[t<-kb/2?n<0?6:4:t<0?n<0?2:0:t<kb/2?n<0?3:1:n<0?7:5]})).angle(-30).scale(101.858).center([0,45])},geoPolyhedralCollignon:function(t){t=t||function(t){var e=my({type:"MultiPoint",coordinates:t});return C_(hk).translate([0,0]).scale(1).rotate(e[1]>0?[-e[0],0]:[180-e[0],180])};var e=lk.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,n){var i=e[t];i&&(i.children||(i.children=[])).push(e[n])})),rk(e[0],(function(t,n){return e[t<-kb/2?n<0?6:4:t<0?n<0?2:0:t<kb/2?n<0?3:1:n<0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])},geoPolyhedralWaterman:function(t){t=t||function(t){var e=6===t.length?my({type:"MultiPoint",coordinates:t}):t[0];return J_().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var e=lk.map((function(t){for(var e,n=t.map(pk),i=n.length,r=n[i-1],o=[],a=0;a<i;++a)e=n[a],o.push(gk([.9486832980505138*r[0]+.31622776601683794*e[0],.9486832980505138*r[1]+.31622776601683794*e[1],.9486832980505138*r[2]+.31622776601683794*e[2]]),gk([.9486832980505138*e[0]+.31622776601683794*r[0],.9486832980505138*e[1]+.31622776601683794*r[1],.9486832980505138*e[2]+.31622776601683794*r[2]])),r=e;return o})),n=[],i=[-1,0,0,1,0,1,4,5];e.forEach((function(t,r){for(var o=lk[r],a=o.length,s=n[r]=[],u=0;u<a;++u)e.push([o[u],t[(2*u+2)%(2*a)],t[(2*u+1)%(2*a)]]),i.push(r),s.push(dk(pk(t[(2*u+2)%(2*a)]),pk(t[(2*u+1)%(2*a)])))}));var r=e.map((function(e){return{project:t(e),face:e}}));return i.forEach((function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])})),rk(r[0],(function(t,e){var i=cb(e),o=[i*cb(t),i*_b(t),_b(e)],a=t<-kb/2?e<0?6:4:t<0?e<0?2:0:t<kb/2?e<0?3:1:e<0?7:5,s=n[a];return r[fk(s[0],o)<0?8+3*a:fk(s[1],o)<0?8+3*a+1:fk(s[2],o)<0?8+3*a+2:a]})).angle(-30).scale(110.625).center([0,45])},geoProject:function(t,e){var n,i=e.stream;if(!i)throw new Error("invalid projection");switch(t&&t.type){case"Feature":n=mk;break;case"FeatureCollection":n=yk;break;default:n=_k}return n(t,i)},geoGringortenQuincuncial:function(){return Ck(Vw).scale(176.423)},geoPeirceQuincuncial:function(){return Ck(qw).scale(111.48)},geoQuantize:function(t,e){if(!(0<=(e=+e)&&e<=20))throw new Error("invalid digits");function n(t){var n=t.length,i=2,r=new Array(n);for(r[0]=+t[0].toFixed(e),r[1]=+t[1].toFixed(e);i<n;)r[i]=t[i],++i;return r}function i(t){return t.map(n)}function r(t){for(var e=n(t[0]),i=[e],r=1;r<t.length;r++){var o=n(t[r]);(o.length>2||o[0]!=e[0]||o[1]!=e[1])&&(i.push(o),e=o)}return 1===i.length&&t.length>1&&i.push(n(t[t.length-1])),i}function o(t){return t.map(r)}function a(t){if(null==t)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(a)};break;case"Point":e={type:"Point",coordinates:n(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:i(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(o)};break;default:return t}return null!=t.bbox&&(e.bbox=t.bbox),e}function s(t){var e={type:"Feature",properties:t.properties,geometry:a(t.geometry)};return null!=t.id&&(e.id=t.id),null!=t.bbox&&(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case"Feature":return s(t);case"FeatureCollection":var u={type:"FeatureCollection",features:t.features.map(s)};return null!=t.bbox&&(u.bbox=t.bbox),u;default:return a(t)}return t},geoQuincuncial:Ck,geoRectangularPolyconic:function(){return nw(Ek).scale(131.215)},geoRectangularPolyconicRaw:Ek,geoRobinson:function(){return C_(Rk).scale(152.63)},geoRobinsonRaw:Rk,geoSatellite:function(){var t=2,e=0,n=E_(Mk),i=n(t,e);return i.distance=function(i){return arguments.length?n(t=+i,e):t},i.tilt=function(i){return arguments.length?n(t,e=i*Tb):e*Ob},i.scale(432.147).clipAngle(Bb(1/t)*Ob-1e-6)},geoSatelliteRaw:Mk,geoSinuMollweide:function(){return C_(rx).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},geoSinuMollweideRaw:rx,geoSinusoidal:function(){return C_(iw).scale(152.63)},geoSinusoidalRaw:iw,geoStitch:function(t){if(null==t)return t;switch(t.type){case"Feature":return Kk(t);case"FeatureCollection":var e={type:"FeatureCollection",features:t.features.map(Kk)};return null!=t.bbox&&(e.bbox=t.bbox),e;default:return Yk(t)}},geoTimes:function(){return C_(Xk).scale(146.153)},geoTimesRaw:Xk,geoTwoPointAzimuthal:Jk,geoTwoPointAzimuthalRaw:$k,geoTwoPointAzimuthalUsa:function(){return Jk([-158,21.5],[-77,39]).clipAngle(60).scale(400)},geoTwoPointEquidistant:tS,geoTwoPointEquidistantRaw:Qk,geoTwoPointEquidistantUsa:function(){return tS([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},geoVanDerGrinten:function(){return C_(eS).scale(79.4183)},geoVanDerGrintenRaw:eS,geoVanDerGrinten2:function(){return C_(nS).scale(79.4183)},geoVanDerGrinten2Raw:nS,geoVanDerGrinten3:function(){return C_(iS).scale(79.4183)},geoVanDerGrinten3Raw:iS,geoVanDerGrinten4:function(){return C_(rS).scale(127.16)},geoVanDerGrinten4Raw:rS,geoWagner:aS,geoWagner7:function(){return aS().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},geoWagnerRaw:oS,geoWagner4:function(){return C_(lS).scale(176.84)},geoWagner4Raw:lS,geoWagner6:function(){return C_(cS).scale(152.63)},geoWagner6Raw:cS,geoWiechel:function(){return C_(hS).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},geoWiechelRaw:hS,geoWinkel3:function(){return C_(fS).scale(158.837)},geoWinkel3Raw:fS}),gS=1e-6;function pS(){}var vS=1/0,yS=vS,mS=-vS,_S=mS,bS={point:function(t,e){t<vS&&(vS=t);t>mS&&(mS=t);e<yS&&(yS=e);e>_S&&(_S=e)},lineStart:pS,lineEnd:pS,polygonStart:pS,polygonEnd:pS,result:function(){var t=[[vS,yS],[mS,_S]];return mS=_S=-(yS=vS=1/0),t}};function wS(t,e,n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]),null!=o&&t.clipExtent(null),nv(n,t.stream(bS));var a=bS.result(),s=Math.min(i/(a[1][0]-a[0][0]),r/(a[1][1]-a[0][1])),u=+e[0][0]+(i-s*(a[1][0]+a[0][0]))/2,l=+e[0][1]+(r-s*(a[1][1]+a[0][1]))/2;return null!=o&&t.clipExtent(o),t.scale(150*s).translate([u,l])}function xS(t,e,n){return wS(t,[[0,0],e],n)}var kS=Object.freeze({__proto__:null,geoAlbersUsa:function(){var t,e,n,i,r,o,a=O_(),s=M_().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=M_().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,e){o=[t,e]}};function c(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?s:r>=.166&&r<.234&&i>=-.214&&i<-.115?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(.35*t),u.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.455*e,c-.238*e],[o+.455*e,c+.238*e]]).stream(l),i=s.translate([o-.307*e,c+.201*e]).clipExtent([[o-.425*e+gS,c+.12*e+gS],[o-.214*e-gS,c+.234*e-gS]]).stream(l),r=u.translate([o-.205*e,c+.212*e]).clipExtent([[o-.214*e+gS,c+.166*e+gS],[o-.115*e-gS,c+.234*e-gS]]).stream(l),h()},c.fitExtent=function(t,e){return wS(c,t,e)},c.fitSize=function(t,e){return xS(c,t,e)},c.drawCompositionBorders=function(t){var e=a([-102.91,26.3]),n=a([-104,27.5]),i=a([-108,29.1]),r=a([-110,29.1]),o=a([-110,26.7]),s=a([-112.8,27.6]),u=a([-114.3,30.6]),l=a([-119.3,30.1]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.lineTo(l[0],l[1])},c.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},c.scale(1070)},geoAlbersUsaTerritories:function(){var t,e,n,i,r,o,a,s,u,l=O_(),c=M_().rotate([154,0]).center([-2,58.5]).parallels([55,65]),h=M_().rotate([157,0]).center([-3,19.9]).parallels([8,18]),f=M_().rotate([66,0]).center([0,18]).parallels([8,18]),d=G_().rotate([173,14]),g=G_().rotate([-145,-16.8]),p={point:function(t,e){u=[t,e]}};function v(t){var e=t[0],l=t[1];return u=null,n.point(e,l),u||(i.point(e,l),u)||(r.point(e,l),u)||(o.point(e,l),u)||(a.point(e,l),u)||(s.point(e,l),u)}function y(){return t=e=null,v}return v.invert=function(t){var e=l.scale(),n=l.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.12&&r<.234&&i>=-.425&&i<-.214?c:r>=.166&&r<.234&&i>=-.214&&i<-.115?h:r>=.2064&&r<.2413&&i>=.312&&i<.385?f:r>=.09&&r<.1197&&i>=-.4243&&i<-.3232?d:r>=-.0518&&r<.0895&&i>=-.4243&&i<-.3824?g:l).invert(t)},v.stream=function(n){return t&&e===n?t:(i=[l.stream(e=n),c.stream(n),h.stream(n),f.stream(n),d.stream(n),g.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},v.precision=function(t){return arguments.length?(l.precision(t),c.precision(t),h.precision(t),f.precision(t),d.precision(t),g.precision(t),y()):l.precision()},v.scale=function(t){return arguments.length?(l.scale(t),c.scale(.35*t),h.scale(t),f.scale(t),d.scale(2*t),g.scale(t),v.translate(l.translate())):l.scale()},v.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),u=+t[0],v=+t[1];return n=l.translate(t).clipExtent([[u-.455*e,v-.238*e],[u+.455*e,v+.238*e]]).stream(p),i=c.translate([u-.307*e,v+.201*e]).clipExtent([[u-.425*e+gS,v+.12*e+gS],[u-.214*e-gS,v+.233*e-gS]]).stream(p),r=h.translate([u-.205*e,v+.212*e]).clipExtent([[u-.214*e+gS,v+.166*e+gS],[u-.115*e-gS,v+.233*e-gS]]).stream(p),o=f.translate([u+.35*e,v+.224*e]).clipExtent([[u+.312*e+gS,v+.2064*e+gS],[u+.385*e-gS,v+.233*e-gS]]).stream(p),a=d.translate([u-.492*e,v+.09*e]).clipExtent([[u-.4243*e+gS,v+.0903*e+gS],[u-.3233*e-gS,v+.1197*e-gS]]).stream(p),s=g.translate([u-.408*e,v+.018*e]).clipExtent([[u-.4244*e+gS,v-.0519*e+gS],[u-.3824*e-gS,v+.0895*e-gS]]).stream(p),y()},v.fitExtent=function(t,e){return wS(v,t,e)},v.fitSize=function(t,e){return xS(v,t,e)},v.drawCompositionBorders=function(t){var e=l([-110.4641,28.2805]),n=l([-104.0597,28.9528]),i=l([-103.7049,25.1031]),r=l([-109.8337,24.4531]),o=l([-124.4745,28.1407]),a=l([-110.931,30.8844]),s=l([-109.8337,24.4531]),u=l([-122.4628,21.8562]),c=l([-76.8579,25.1544]),h=l([-72.429,24.2097]),f=l([-72.8265,22.7056]),d=l([-77.1852,23.6392]),g=l([-125.0093,29.7791]),p=l([-118.5193,31.3262]),v=l([-118.064,29.6912]),y=l([-124.4369,28.169]),m=l([-128.1314,37.4582]),_=l([-125.2132,38.214]),b=l([-122.3616,30.5115]),w=l([-125.0315,29.8211]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(s[0],s[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(h[0],h[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(d[0],d[1]),t.closePath(),t.moveTo(g[0],g[1]),t.lineTo(p[0],p[1]),t.lineTo(v[0],v[1]),t.lineTo(v[0],v[1]),t.lineTo(y[0],y[1]),t.closePath(),t.moveTo(m[0],m[1]),t.lineTo(_[0],_[1]),t.lineTo(b[0],b[1]),t.lineTo(b[0],b[1]),t.lineTo(w[0],w[1]),t.closePath()},v.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},v.scale(1070)},geoConicConformalSpain:function(){var t,e,n,i,r,o=I_().rotate([5,-38.6]).parallels([0,60]),a=I_().rotate([5,-38.6]).parallels([0,60]),s={point:function(t,e){r=[t,e]}};function u(t){var e=t[0],o=t[1];return r=null,n.point(e,o),r||(i.point(e,o),r)}function l(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.05346&&r<.0897&&i>=-.13388&&i<-.0322?a:o).invert(t)},u.stream=function(n){return t&&e===n?t:(i=[o.stream(e=n),a.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},u.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),l()):o.precision()},u.scale=function(t){return arguments.length?(o.scale(t),a.scale(t),u.translate(o.translate())):o.scale()},u.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),r=+t[0],u=+t[1];return n=o.translate(t).clipExtent([[r-.06857*e,u-.1288*e],[r+.13249*e,u+.06*e]]).stream(s),i=a.translate([r+.1*e,u-.094*e]).clipExtent([[r-.1331*e+gS,u+.053457*e+gS],[r-.0354*e-gS,u+.08969*e-gS]]).stream(s),l()},u.fitExtent=function(t,e){return wS(u,t,e)},u.fitSize=function(t,e){return xS(u,t,e)},u.drawCompositionBorders=function(t){var e=o([-14.034675,34.965007]),n=o([-7.4208899,35.536988]),i=o([-7.3148275,33.54359]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1])},u.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},u.scale(2700)},geoConicConformalPortugal:function(){var t,e,n,i,r,o,a=I_().rotate([10,-39.3]).parallels([0,60]),s=I_().rotate([17,-32.7]).parallels([0,60]),u=I_().rotate([27.8,-38.6]).parallels([0,60]),l={point:function(t,e){o=[t,e]}};function c(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.0093&&r<.03678&&i>=-.03875&&i<-.0116?s:r>=-.0412&&r<.0091&&i>=-.07782&&i<-.01166?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(t),u.scale(.6*t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.0115*e,c-.1138*e],[o+.2105*e,c+.0673*e]]).stream(l),i=s.translate([o-.0265*e,c+.025*e]).clipExtent([[o-.0388*e+gS,c+.0093*e+gS],[o-.0116*e-gS,c+.0368*e-gS]]).stream(l),r=u.translate([o-.045*e,c+-.02*e]).clipExtent([[o-.0778*e+gS,c-.0413*e+gS],[o-.0117*e-gS,c+.0091*e-gS]]).stream(l),h()},c.fitExtent=function(t,e){return wS(c,t,e)},c.fitSize=function(t,e){return xS(c,t,e)},c.drawCompositionBorders=function(t){var e=a([-12.8351,38.7113]),n=a([-10.8482,38.7633]),i=a([-10.8181,37.2072]),r=a([-12.7345,37.1573]),o=a([-16.0753,41.4436]),s=a([-10.9168,41.6861]),u=a([-10.8557,38.7747]),l=a([-15.6728,38.5505]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(l[0],l[1]),t.closePath()},c.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},c.scale(4200)},geoMercatorEcuador:function(){var t,e,n,i,r,o=z_().rotate([80,1.5]),a=z_().rotate([90.73,1]),s={point:function(t,e){r=[t,e]}};function u(t){var e=t[0],o=t[1];return r=null,n.point(e,o),r||(i.point(e,o),r)}function l(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0676&&r<-.026&&i>=-.0857&&i<-.0263?a:o).invert(t)},u.stream=function(n){return t&&e===n?t:(i=[o.stream(e=n),a.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},u.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),l()):o.precision()},u.scale=function(t){return arguments.length?(o.scale(t),a.scale(t),u.translate(o.translate())):o.scale()},u.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),r=+t[0],u=+t[1];return n=o.translate(t).clipExtent([[r-.0262*e,u-.0734*e],[r+.1741*e,u+.079*e]]).stream(s),i=a.translate([r-.06*e,u-.04*e]).clipExtent([[r-.0857*e+gS,u-.0676*e+gS],[r-.0263*e-gS,u-.026*e-gS]]).stream(s),l()},u.fitExtent=function(t,e){return wS(u,t,e)},u.fitSize=function(t,e){return xS(u,t,e)},u.drawCompositionBorders=function(t){var e=o([-84.9032,2.3757]),n=o([-81.5047,2.3708]),i=o([-81.5063,-.01]),r=o([-84.9086,-.005]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},u.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},u.scale(3500)},geoTransverseMercatorChile:function(){var t,e,n,i,r,o,a,s=ob().rotate([72,37]),u=ib().rotate([72,0]),l=z_().rotate([80,33.5]),c=z_().rotate([110,25]),h={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],s=t[1];return a=null,n.point(e,s),a||(i.point(e,s),a)||(r.point(e,s),a)||(o.point(e,s),a)}function d(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),n=s.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.2582&&r<.32&&i>=-.1036&&i<-.087?u:r>=-.01298&&r<.0133&&i>=-.11396&&i<-.05944?l:r>=.01539&&r<.03911&&i>=-.089&&i<-.0588?c:s).invert(t)},f.stream=function(n){return t&&e===n?t:(i=[s.stream(e=n),u.stream(n),l.stream(n),c.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},f.precision=function(t){return arguments.length?(s.precision(t),u.precision(t),l.precision(t),c.precision(t),d()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),u.scale(.15*t),l.scale(1.5*t),c.scale(1.5*t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return n=s.translate(t).clipExtent([[a-.059*e,f-.3835*e],[a+.4498*e,f+.3375*e]]).stream(h),i=u.translate([a-.087*e,f+.17*e]).clipExtent([[a-.1166*e+gS,f+.2582*e+gS],[a-.06*e-gS,f+.32*e-gS]]).stream(h),r=l.translate([a-.092*e,f-0*e]).clipExtent([[a-.114*e+gS,f-.013*e+gS],[a-.0594*e-gS,f+.0133*e-gS]]).stream(h),o=c.translate([a-.089*e,f-.0265*e]).clipExtent([[a-.089*e+gS,f+.0154*e+gS],[a-.0588*e-gS,f+.0391*e-gS]]).stream(h),d()},f.fitExtent=function(t,e){return wS(f,t,e)},f.fitSize=function(t,e){return xS(f,t,e)},f.drawCompositionBorders=function(t){var e=s([-82.6999,-51.3043]),n=s([-77.5442,-51.6631]),i=s([-78.0254,-55.186]),r=s([-83.6106,-54.7785]),o=s([-80.0638,-35.984]),a=s([-76.2153,-36.1811]),u=s([-76.2994,-37.6839]),l=s([-80.2231,-37.4757]),c=s([-78.442,-37.706]),h=s([-76.263,-37.8054]),f=s([-76.344,-39.1595]),d=s([-78.5638,-39.0559]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(a[0],a[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(l[0],l[1]),t.closePath(),t.moveTo(c[0],c[1]),t.lineTo(h[0],h[1]),t.lineTo(f[0],f[1]),t.lineTo(f[0],f[1]),t.lineTo(d[0],d[1]),t.closePath()},f.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},f.scale(700)},geoConicEquidistantJapan:function(){var t,e,n,i,r,o,a=U_().rotate([-136,-22]).parallels([40,34]),s=U_().rotate([-146,-26]).parallels([40,34]),u=U_().rotate([-126,-19]).parallels([40,34]),l={point:function(t,e){o=[t,e]}};function c(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.10925&&r<-.02701&&i>=-.135&&i<-.0397?s:r>=.04713&&r<.11138&&i>=-.03986&&i<.051?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(t),u.scale(.7*t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.1352*e,c-.1091*e],[o+.117*e,c+.098*e]]).stream(l),i=s.translate([o-.0425*e,c-.005*e]).clipExtent([[o-.135*e+gS,c-.1093*e+gS],[o-.0397*e-gS,c-.027*e-gS]]).stream(l),r=u.translate(t).clipExtent([[o-.0399*e+gS,c+.0471*e+gS],[o+.051*e-gS,c+.1114*e-gS]]).stream(l),h()},c.fitExtent=function(t,e){return wS(c,t,e)},c.fitSize=function(t,e){return xS(c,t,e)},c.drawCompositionBorders=function(t){var e=a([126.01320483689143,41.621090310215585]),n=a([133.04304387025903,42.15087523707186]),i=a([133.3021766080688,37.43975444725098]),r=a([126.87889168628224,36.95488945159779]),o=a([132.9,29.8]),s=a([134,33]),u=a([139.3,33.2]),l=a([139.16,30.5]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.lineTo(l[0],l[1])},c.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},c.scale(2200)},geoConicConformalFrance:function(){var t,e,n,i,r,o,a,s,u,l,c,h,f,d,g,p=I_().rotate([-3,-46.2]).parallels([0,60]),v=z_().center([-53.2,3.9]),y=z_().center([-61.03,14.67]),m=z_().center([-61.46,16.14]),_=z_().center([-62.85,17.92]),b=z_().center([-56.23,46.93]),w=z_().center([45.16,-12.8]),x=z_().center([55.52,-21.13]),k=z_().center([165.8,-21.07]),S=z_().center([-178.1,-14.3]),C=z_().center([-150.55,-17.11]),E=z_().center([-150.55,-17.11]),A={point:function(t,e){g=[t,e]}};function R(t){var e=t[0],p=t[1];return g=null,n.point(e,p),g||(i.point(e,p),g)||(r.point(e,p),g)||(o.point(e,p),g)||(a.point(e,p),g)||(s.point(e,p),g)||(u.point(e,p),g)||(l.point(e,p),g)||(c.point(e,p),g)||(h.point(e,p),g)||(f.point(e,p),g)||(d.point(e,p),g)}function M(){return t=e=null,R}return R.invert=function(t){var e=p.scale(),n=p.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=.029&&r<.0864&&i>=-.14&&i<-.0996?v:r>=0&&r<.029&&i>=-.14&&i<-.0996?y:r>=-.032&&r<0&&i>=-.14&&i<-.0996?m:r>=-.052&&r<-.032&&i>=-.14&&i<-.0996?_:r>=-.076&&r<.052&&i>=-.14&&i<-.0996?b:r>=-.076&&r<-.052&&i>=.0967&&i<.1371?w:r>=-.052&&r<-.02&&i>=.0967&&i<.1371?x:r>=-.02&&r<.012&&i>=.0967&&i<.1371?k:r>=.012&&r<.033&&i>=.0967&&i<.1371?S:r>=.033&&r<.0864&&i>=.0967&&i<.1371?C:p).invert(t)},R.stream=function(n){return t&&e===n?t:(i=[p.stream(e=n),v.stream(n),y.stream(n),m.stream(n),_.stream(n),b.stream(n),w.stream(n),x.stream(n),k.stream(n),S.stream(n),C.stream(n),E.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},R.precision=function(t){return arguments.length?(p.precision(t),v.precision(t),y.precision(t),m.precision(t),_.precision(t),b.precision(t),w.precision(t),x.precision(t),k.precision(t),S.precision(t),C.precision(t),E.precision(t),M()):p.precision()},R.scale=function(t){return arguments.length?(p.scale(t),v.scale(.6*t),y.scale(1.6*t),m.scale(1.4*t),_.scale(5*t),b.scale(1.3*t),w.scale(1.6*t),x.scale(1.2*t),k.scale(.3*t),S.scale(2.7*t),C.scale(.5*t),E.scale(.06*t),R.translate(p.translate())):p.scale()},R.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),g=+t[0],R=+t[1];return n=p.translate(t).clipExtent([[g-.0996*e,R-.0908*e],[g+.0967*e,R+.0864*e]]).stream(A),i=v.translate([g-.12*e,R+.0575*e]).clipExtent([[g-.14*e+gS,R+.029*e+gS],[g-.0996*e-gS,R+.0864*e-gS]]).stream(A),r=y.translate([g-.12*e,R+.013*e]).clipExtent([[g-.14*e+gS,R+0*e+gS],[g-.0996*e-gS,R+.029*e-gS]]).stream(A),o=m.translate([g-.12*e,R-.014*e]).clipExtent([[g-.14*e+gS,R-.032*e+gS],[g-.0996*e-gS,R+0*e-gS]]).stream(A),a=_.translate([g-.12*e,R-.044*e]).clipExtent([[g-.14*e+gS,R-.052*e+gS],[g-.0996*e-gS,R-.032*e-gS]]).stream(A),s=b.translate([g-.12*e,R-.065*e]).clipExtent([[g-.14*e+gS,R-.076*e+gS],[g-.0996*e-gS,R-.052*e-gS]]).stream(A),u=w.translate([g+.117*e,R-.064*e]).clipExtent([[g+.0967*e+gS,R-.076*e+gS],[g+.1371*e-gS,R-.052*e-gS]]).stream(A),l=x.translate([g+.116*e,R-.0355*e]).clipExtent([[g+.0967*e+gS,R-.052*e+gS],[g+.1371*e-gS,R-.02*e-gS]]).stream(A),c=k.translate([g+.116*e,R-.0048*e]).clipExtent([[g+.0967*e+gS,R-.02*e+gS],[g+.1371*e-gS,R+.012*e-gS]]).stream(A),h=S.translate([g+.116*e,R+.022*e]).clipExtent([[g+.0967*e+gS,R+.012*e+gS],[g+.1371*e-gS,R+.033*e-gS]]).stream(A),d=E.translate([g+.11*e,R+.045*e]).clipExtent([[g+.0967*e+gS,R+.033*e+gS],[g+.1371*e-gS,R+.06*e-gS]]).stream(A),f=C.translate([g+.115*e,R+.075*e]).clipExtent([[g+.0967*e+gS,R+.06*e+gS],[g+.1371*e-gS,R+.0864*e-gS]]).stream(A),M()},R.fitExtent=function(t,e){return wS(R,t,e)},R.fitSize=function(t,e){return xS(R,t,e)},R.drawCompositionBorders=function(t){var e,n,i,r;e=p([-7.938886725111036,43.7219460918835]),n=p([-4.832080896458295,44.12930268549372]),i=p([-4.205299743793263,40.98096346967365]),r=p([-7.071796453126152,40.610037319181444]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([-8.42751373617692,45.32889452553031]),n=p([-5.18599305777107,45.7566442062976]),i=p([-4.832080905154431,44.129302726751426]),r=p([-7.938886737126192,43.72194613263854]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([-9.012656899657046,47.127733821030176]),n=p([-5.6105244772793155,47.579777861410626]),i=p([-5.185993067168585,45.756644248170346]),r=p([-8.427513749141811,45.32889456686326]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([-9.405747558985553,48.26506375557457]),n=p([-5.896175018439575,48.733352850851624]),i=p([-5.610524487556043,47.57977790393761]),r=p([-9.012656913808351,47.127733862971255]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([-9.908436061346974,49.642448789505856]),n=p([-6.262026716233124,50.131426841787174]),i=p([-5.896175029331232,48.73335289377258]),r=p([-9.40574757396393,48.26506379787767]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([11.996907706504462,50.16039028163579]),n=p([15.649907879773343,49.68279246765253]),i=p([15.156712840526632,48.30371557625831]),r=p([11.64122661754411,48.761078240546816]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([11.641226606955788,48.7610781975889]),n=p([15.156712825832164,48.30371553390465]),i=p([14.549932166241172,46.4866532486199]),r=p([11.204443787952183,46.91899233914248]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([11.204443778297161,46.918992296823646]),n=p([14.549932152815039,46.486653206856396]),i=p([13.994409796764009,44.695833444323256]),r=p([10.805306599253848,45.105133870684924]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([10.805306590412085,45.10513382903308]),n=p([13.99440978444733,44.695833403183606]),i=p([13.654633799024392,43.53552468558152]),r=p([10.561516803980956,43.930671459798624]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([10.561516795617383,43.93067141859757]),n=p([13.654633787361952,43.5355246448671]),i=p([12.867691604239901,40.640701985019405]),r=p([9.997809515987688,41.00288343254471]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([10.8,42.4]),n=p([12.8,42.13]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1])},R.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},R.scale(2700)},geoConicConformalEurope:function(){var t,e,n,i,r,o,a,s,u,l,c,h,f,d,g,p=I_().rotate([-10,-53]).parallels([0,60]),v=z_().center([-61.46,16.14]),y=z_().center([-53.2,3.9]),m=I_().rotate([27.8,-38.9]).parallels([0,60]),_=I_().rotate([25.43,-37.398]).parallels([0,60]),b=I_().rotate([31.17,-39.539]).parallels([0,60]),w=I_().rotate([17,-32.7]).parallels([0,60]),x=I_().rotate([16,-28.5]).parallels([0,60]),k=z_().center([-61.03,14.67]),S=z_().center([45.16,-12.8]),C=z_().center([55.52,-21.13]),E=I_().rotate([-14.4,-35.95]).parallels([0,60]),A={point:function(t,e){g=[t,e]}};function R(t){var e=t[0],p=t[1];return g=null,n.point(e,p),g||(r.point(e,p),g)||(c.point(e,p),g)||(i.point(e,p),g)||(l.point(e,p),g)||(u.point(e,p),g)||(h.point(e,p),g)||(f.point(e,p),g)||(d.point(e,p),g)||(o.point(e,p),g)||(a.point(e,p),g)||(s.point(e,p),g)}function M(){return t=e=null,R}return R.invert=function(t){var e=p.scale(),n=p.translate(),i=(t[0]-(n[0]+.08*e))/e,r=(t[1]-n[1])/e;return(r>=-.31&&r<-.24&&i>=.14&&i<.24?v:r>=-.24&&r<-.17&&i>=.14&&i<.24?y:r>=-.17&&r<-.12&&i>=.21&&i<.24?_:r>=-.17&&r<-.14&&i>=.14&&i<.165?b:r>=-.17&&r<-.1&&i>=.14&&i<.24?m:r>=-.1&&r<-.03&&i>=.14&&i<.24?w:r>=-.03&&r<.04&&i>=.14&&i<.24?x:r>=-.31&&r<-.24&&i>=.24&&i<.34?k:r>=-.24&&r<-.17&&i>=.24&&i<.34?S:r>=-.17&&r<-.1&&i>=.24&&i<.34?C:r>=-.1&&r<-.03&&i>=.24&&i<.34?E:p).invert(t)},R.stream=function(n){return t&&e===n?t:(i=[p.stream(e=n),y.stream(n),k.stream(n),v.stream(n),x.stream(n),w.stream(n),S.stream(n),C.stream(n),E.stream(n),m.stream(n),_.stream(n),b.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},R.precision=function(t){return arguments.length?(p.precision(t),y.precision(t),k.precision(t),v.precision(t),x.precision(t),w.precision(t),S.precision(t),C.precision(t),E.precision(t),m.precision(t),_.precision(t),b.precision(t),M()):p.precision()},R.scale=function(t){return arguments.length?(p.scale(t),v.scale(3*t),y.scale(.8*t),k.scale(3.5*t),C.scale(2.7*t),m.scale(2*t),_.scale(2*t),b.scale(2*t),w.scale(3*t),x.scale(t),S.scale(5.5*t),E.scale(6*t),R.translate(p.translate())):p.scale()},R.translate=function(t){if(!arguments.length)return p.translate();var e=p.scale(),g=+t[0],R=+t[1];return n=p.translate([g-.08*e,R]).clipExtent([[g-.51*e,R-.33*e],[g+.5*e,R+.33*e]]).stream(A),i=v.translate([g+.19*e,R-.275*e]).clipExtent([[g+.14*e+gS,R-.31*e+gS],[g+.24*e-gS,R-.24*e-gS]]).stream(A),r=y.translate([g+.19*e,R-.205*e]).clipExtent([[g+.14*e+gS,R-.24*e+gS],[g+.24*e-gS,R-.17*e-gS]]).stream(A),o=m.translate([g+.19*e,R-.135*e]).clipExtent([[g+.14*e+gS,R-.17*e+gS],[g+.24*e-gS,R-.1*e-gS]]).stream(A),a=_.translate([g+.225*e,R-.147*e]).clipExtent([[g+.21*e+gS,R-.17*e+gS],[g+.24*e-gS,R-.12*e-gS]]).stream(A),s=b.translate([g+.153*e,R-.15*e]).clipExtent([[g+.14*e+gS,R-.17*e+gS],[g+.165*e-gS,R-.14*e-gS]]).stream(A),u=w.translate([g+.19*e,R-.065*e]).clipExtent([[g+.14*e+gS,R-.1*e+gS],[g+.24*e-gS,R-.03*e-gS]]).stream(A),l=x.translate([g+.19*e,R+.005*e]).clipExtent([[g+.14*e+gS,R-.03*e+gS],[g+.24*e-gS,R+.04*e-gS]]).stream(A),c=k.translate([g+.29*e,R-.275*e]).clipExtent([[g+.24*e+gS,R-.31*e+gS],[g+.34*e-gS,R-.24*e-gS]]).stream(A),h=S.translate([g+.29*e,R-.205*e]).clipExtent([[g+.24*e+gS,R-.24*e+gS],[g+.34*e-gS,R-.17*e-gS]]).stream(A),f=C.translate([g+.29*e,R-.135*e]).clipExtent([[g+.24*e+gS,R-.17*e+gS],[g+.34*e-gS,R-.1*e-gS]]).stream(A),d=E.translate([g+.29*e,R-.065*e]).clipExtent([[g+.24*e+gS,R-.1*e+gS],[g+.34*e-gS,R-.03*e-gS]]).stream(A),M()},R.fitExtent=function(t,e){return wS(R,t,e)},R.fitSize=function(t,e){return xS(R,t,e)},R.drawCompositionBorders=function(t){var e,n,i,r;e=p([42.45755610828648,63.343658547914934]),n=p([52.65837266667029,59.35045080290929]),i=p([47.19754502247785,56.12653496548117]),r=p([37.673034273363044,59.61638268506111]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([59.41110754003403,62.35069727399336]),n=p([66.75050228640794,57.11797303636038]),i=p([60.236065725110436,54.63331433818992]),r=p([52.65837313153311,59.350450804599355]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([48.81091130080243,66.93353402634641]),n=p([59.41110730654679,62.35069740653086]),i=p([52.6583728974441,59.3504509222445]),r=p([42.45755631675751,63.34365868805821]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([31.054198418446475,52.1080673766184]),n=p([39.09869284884117,49.400700047190554]),i=p([36.0580811499175,46.02944174908498]),r=p([28.690508588835726,48.433126979386415]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([33.977877745912025,55.849945501331]),n=p([42.75328432167726,52.78455122462353]),i=p([39.09869297540224,49.400700176148625]),r=p([31.05419851807008,52.10806751810923]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([52.658372900759296,59.35045068526415]),n=p([60.23606549583304,54.63331423800264]),i=p([54.6756370953122,51.892298789399455]),r=p([47.19754524788189,56.126534861222794]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([47.19754506082455,56.126534735591456]),n=p([54.675636900123514,51.892298681337095]),i=p([49.94448648951486,48.98775484983285]),r=p([42.75328468716108,52.78455126060818]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([42.75328453416769,52.78455113209101]),n=p([49.94448632339758,48.98775473706457]),i=p([45.912339990394315,45.99361784987003]),r=p([39.09869317356607,49.40070009378711]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([37.673034114296634,59.61638254183119]),n=p([47.197544835420544,56.126534839849846]),i=p([42.75328447467064,52.78455135314068]),r=p([33.977877870363905,55.849945644671145]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([44.56748486446032,57.26489367845818]),i=p([43.9335791193588,53.746540942601726]),r=p([43,56]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=p([37.673034114296634,59.61638254183119]),n=p([40.25902691953466,58.83002044222639]),i=p([38.458270492742024,57.26232178028002]),r=p([35.97754948030156,58.00266637992386]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},R.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},R.scale(750)},geoConicConformalNetherlands:function(){var t,e,n,i,r,o,a=I_().rotate([-5.5,-52.2]).parallels([0,60]),s=z_().center([-68.25,12.2]),u=z_().center([-63.1,17.5]),l={point:function(t,e){o=[t,e]}};function c(t){var e=_slicedToArray2(t,2),a=e[0],s=e[1];return o=null,n.point(a,s),o||(i.point(a,s),o)||(r.point(a,s),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0067&&r<.0015&&i>=-.0232&&i<-.0154?s:r>=-.022&&r<-.014&&i>=-.023&&i<-.014?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(t),u.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.0245*e,c-.026*e],[o+.023*e,c+.026*e]]).stream(l),i=s.translate([o-.0186*e,c-.00325*e]).clipExtent([[o-.0232*e+gS,c-.0067*e+gS],[o-.0154*e-gS,c+.0015*e-gS]]).stream(l),r=u.translate([o-.0185*e,c-.017*e]).clipExtent([[o-.023*e+gS,c-.022*e+gS],[o-.014*e-gS,c-.014*e-gS]]).stream(l),h()},c.fitExtent=function(t,e){return wS(c,t,e)},c.fitSize=function(t,e){return xS(c,t,e)},c.drawCompositionBorders=function(t){var e=a([3.30573,52.5562]),n=a([4.043,52.572]),i=a([4.0646,52.1017]),r=a([3.3382,52.0861]),o=a([3.262,53.439]),s=a([4.1373,53.4571]),u=a([4.1574,52.9946]),l=a([3.2951,52.9768]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),t.moveTo(o[0],o[1]),t.lineTo(s[0],s[1]),t.lineTo(u[0],u[1]),t.lineTo(u[0],u[1]),t.lineTo(l[0],l[1]),t.closePath()},c.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},c.scale(4200)},geoMercatorMalaysia:function(){var t,e,n,i,r,o=z_().center([105.25,4]),a=z_().center([118.65,2.86]),s={point:function(t,e){r=[t,e]}};function u(t){var e=t[0],o=t[1];return r=null,n.point(e,o),r||(i.point(e,o),r)}function l(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.0521&&r<.0229&&i>=-.0111&&i<.1?a:o).invert(t)},u.stream=function(n){return t&&e===n?t:(i=[o.stream(e=n),a.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},u.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),l()):o.precision()},u.scale=function(t){return arguments.length?(o.scale(t),a.scale(.615*t),u.translate(o.translate())):o.scale()},u.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),r=+t[0],u=+t[1];return n=o.translate(t).clipExtent([[r-.11*e,u-.0521*e],[r-.0111*e,u+.0521*e]]).stream(s),i=a.translate([r+.09*e,u-0*e]).clipExtent([[r-.0111*e+gS,u-.0521*e+gS],[r+.1*e-gS,u+.024*e-gS]]).stream(s),l()},u.fitExtent=function(t,e){return wS(u,t,e)},u.fitSize=function(t,e){return xS(u,t,e)},u.drawCompositionBorders=function(t){var e=o([106.3214,2.0228]),n=o([105.1843,2.3761]),i=o([104.2151,3.3618]),r=o([104.215,4.5651]);t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1])},u.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},u.scale(4800)},geoMercatorEquatorialGuinea:function(){var t,e,n,i,r,o,a=z_().rotate([-9.5,-1.5]),s=z_().rotate([-8.6,-3.5]),u=z_().rotate([-5.6,1.45]),l={point:function(t,e){o=[t,e]}};function c(t){var e=t[0],a=t[1];return o=null,n.point(e,a),o||(i.point(e,a),o)||(r.point(e,a),o)}function h(){return t=e=null,c}return c.invert=function(t){var e=a.scale(),n=a.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.02&&r<0&&i>=-.038&&i<-.005?s:r>=0&&r<.02&&i>=-.038&&i<-.005?u:a).invert(t)},c.stream=function(n){return t&&e===n?t:(i=[a.stream(e=n),s.stream(n),u.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},c.precision=function(t){return arguments.length?(a.precision(t),s.precision(t),u.precision(t),h()):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),s.scale(1.5*t),u.scale(4*t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),o=+t[0],c=+t[1];return n=a.translate(t).clipExtent([[o-.005*e,c-.02*e],[o+.038*e,c+.02*e]]).stream(l),i=s.translate([o-.025*e,c-.01*e]).clipExtent([[o-.038*e+gS,c-.02*e+gS],[o-.005*e-gS,c+0*e-gS]]).stream(l),r=u.translate([o-.025*e,c+.01*e]).clipExtent([[o-.038*e+gS,c-0*e+gS],[o-.005*e-gS,c+.02*e-gS]]).stream(l),h()},c.fitExtent=function(t,e){return wS(c,t,e)},c.fitSize=function(t,e){return xS(c,t,e)},c.drawCompositionBorders=function(t){var e,n,i,r;e=a([9.21327272751682,2.645820439454123]),n=a([11.679126293239872,2.644755519268689]),i=a([11.676845389029227,.35307824637606433]),r=a([9.213572917774014,.35414205204417754]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=a([7.320873711543669,2.64475551449975]),n=a([9.213272722738658,2.645820434679803]),i=a([9.213422896480349,1.4999812505283054]),r=a([7.322014760520787,1.4989168878985566]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath(),e=a([7.3220147605302905,1.4989168783492766]),n=a([9.213422896481598,1.499981240979021]),i=a([9.213572912999604,.354142056817247]),r=a([7.323154615739809,.353078251154504]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},c.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},c.scale(12e3)},geoAlbersUk:function(){var t,e,n,i,r,o=O_().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),a=O_().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),s={point:function(t,e){r=[t,e]}};function u(t){var e=t[0],o=t[1];return r=null,n.point(e,o),r||(i.point(e,o),r)}function l(){return t=e=null,u}return u.invert=function(t){var e=o.scale(),n=o.translate(),i=(t[0]-n[0])/e,r=(t[1]-n[1])/e;return(r>=-.089&&r<.06&&i>=.029&&i<.046?a:o).invert(t)},u.stream=function(n){return t&&e===n?t:(i=[o.stream(e=n),a.stream(n)],r=i.length,t={point:function(t,e){for(var n=-1;++n<r;)i[n].point(t,e)},sphere:function(){for(var t=-1;++t<r;)i[t].sphere()},lineStart:function(){for(var t=-1;++t<r;)i[t].lineStart()},lineEnd:function(){for(var t=-1;++t<r;)i[t].lineEnd()},polygonStart:function(){for(var t=-1;++t<r;)i[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t<r;)i[t].polygonEnd()}});var i,r},u.precision=function(t){return arguments.length?(o.precision(t),a.precision(t),l()):o.precision()},u.scale=function(t){return arguments.length?(o.scale(t),a.scale(t),u.translate(o.translate())):o.scale()},u.translate=function(t){if(!arguments.length)return o.translate();var e=o.scale(),r=+t[0],u=+t[1];return n=o.translate(t).clipExtent([[r-.065*e,u-.089*e],[r+.075*e,u+.089*e]]).stream(s),i=a.translate([r+.01*e,u+.025*e]).clipExtent([[r+.029*e+gS,u-.089*e+gS],[r+.046*e-gS,u-.06*e-gS]]).stream(s),l()},u.fitExtent=function(t,e){return wS(u,t,e)},u.fitSize=function(t,e){return xS(u,t,e)},u.drawCompositionBorders=function(t){var e,n,i,r;e=o([-1.113205870242365,59.64920050773357]),n=o([.807899092399606,59.59085836472269]),i=o([.5778611961420386,57.93467822832577]),r=o([-1.25867782078448,57.99029450085142]),t.moveTo(e[0],e[1]),t.lineTo(n[0],n[1]),t.lineTo(i[0],i[1]),t.lineTo(r[0],r[1]),t.closePath()},u.getCompositionBorders=function(){var t=Ws();return this.drawCompositionBorders(t),t.toString()},u.scale(2800)}});function SS(t){return t.k}function CS(t){return[t.x,t.y]}function ES(t){return function(){return t}}function AS(t){return t}function RS(t,e){var n=e.id,i=e.bbox,r=null==e.properties?{}:e.properties,o=function(t,e){var n=function(t){if(null==t)return AS;var e,n,i=t.scale[0],r=t.scale[1],o=t.translate[0],a=t.translate[1];return function(t,s){s||(e=n=0);var u=2,l=t.length,c=new Array(l);for(c[0]=(e+=t[0])*i+o,c[1]=(n+=t[1])*r+a;u<l;)c[u]=t[u],++u;return c}}(t.transform),i=t.arcs;function r(t,e){e.length&&e.pop();for(var r=i[t<0?~t:t],o=0,a=r.length;o<a;++o)e.push(n(r[o],o));t<0&&function(t,e){for(var n,i=t.length,r=i-e;r<--i;)n=t[r],t[r++]=t[i],t[i]=n}(e,a)}function o(t){return n(t)}function a(t){for(var e=[],n=0,i=t.length;n<i;++n)r(t[n],e);return e.length<2&&e.push(e[0]),e}function s(t){for(var e=a(t);e.length<4;)e.push(e[0]);return e}function u(t){return t.map(s)}function l(t){var e,n=t.type;switch(n){case"GeometryCollection":return{type:n,geometries:t.geometries.map(l)};case"Point":e=o(t.coordinates);break;case"MultiPoint":e=t.coordinates.map(o);break;case"LineString":e=a(t.arcs);break;case"MultiLineString":e=t.arcs.map(a);break;case"Polygon":e=u(t.arcs);break;case"MultiPolygon":e=t.arcs.map(u);break;default:return null}return{type:n,coordinates:e}}return l(e)}(t,e);return null==n&&null==i?{type:"Feature",properties:r,geometry:o}:null==i?{type:"Feature",id:n,properties:r,geometry:o}:{type:"Feature",id:n,bbox:i,properties:r,geometry:o}}var MS=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";return t.reduce((function(t,n){var i=[];return Array.isArray(n)?i=n:n[e]?i=n[e]: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(e,'") the following response:'),n),t.concat(i)}),[])};function OS(t){return OS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OS(t)}var TS=function(t){return"string"==typeof t||"object"===OS(t)&&t.url&&t.headers},PS={value:function(){}};function BS(){for(var t,e=0,n=arguments.length,i={};e<n;++e){if(!(t=arguments[e]+"")||t in i||/[\s.]/.test(t))throw new Error("illegal type: "+t);i[t]=[]}return new DS(i)}function DS(t){this._=t}function NS(t,e){for(var n,i=0,r=t.length;i<r;++i)if((n=t[i]).name===e)return n.value}function zS(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=PS,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&&t.push({name:e,value:n}),t}function jS(t,e){var n,i,r,o,a=BS("beforesend","progress","load","error"),s=ts(),u=new XMLHttpRequest,l=null,c=null,h=0;function f(t){var e,i=u.status;if(!i&&function(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}(u)||i>=200&&i<300||304===i){if(r)try{e=r.call(n,u)}catch(t){return void a.call("error",n,t)}else e=u;a.call("load",n,e)}else a.call("error",n,t)}if("undefined"!=typeof XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(t)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=u.ontimeout=f:u.onreadystatechange=function(t){u.readyState>3&&f(t)},u.onprogress=function(t){a.call("progress",n,t)},n={header:function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?s.get(t):(null==e?s.remove(t):s.set(t,e+""),n)},mimeType:function(t){return arguments.length?(i=null==t?null:t+"",n):i},responseType:function(t){return arguments.length?(o=t,n):o},timeout:function(t){return arguments.length?(h=+t,n):h},user:function(t){return arguments.length<1?l:(l=null==t?null:t+"",n)},password:function(t){return arguments.length<1?c:(c=null==t?null:t+"",n)},response:function(t){return r=t,n},get:function(t,e){return n.send("GET",t,e)},post:function(t,e){return n.send("POST",t,e)},send:function(e,r,f){return u.open(e,t,!0,l,c),null==i||s.has("accept")||s.set("accept",i+",*/*"),u.setRequestHeader&&s.each((function(t,e){u.setRequestHeader(e,t)})),null!=i&&u.overrideMimeType&&u.overrideMimeType(i),null!=o&&(u.responseType=o),h>0&&(u.timeout=h),null==f&&"function"==typeof r&&(f=r,r=null),null!=f&&1===f.length&&(f=function(t){return function(e,n){t(null==e?n:null)}}(f)),null!=f&&n.on("error",f).on("load",(function(t){f(null,t)})),a.call("beforesend",n,u),u.send(null==r?null:r),n},abort:function(){return u.abort(),n},on:function(){var t=a.on.apply(a,arguments);return t===a?n:t}},null!=e){if("function"!=typeof e)throw new Error("invalid callback: "+e);return n.get(e)}return n}function FS(t,e){return function(n,i){var r=jS(n).mimeType(t).response(e);if(null!=i){if("function"!=typeof i)throw new Error("invalid callback: "+i);return r.get(i)}return r}}DS.prototype=BS.prototype={constructor:DS,on:function(t,e){var n,i,r=this._,o=(i=r,(t+"").trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!i.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<s;)if(n=(t=o[a]).type)r[n]=zS(r[n],t.name,e);else if(null==e)for(n in r)r[n]=zS(r[n],t.name,null);return this}for(;++a<s;)if((n=(t=o[a]).type)&&(n=NS(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new DS(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,i,r=new Array(n),o=0;o<n;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(i=this._[t]).length;o<n;++o)i[o].value.apply(e,r)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,o=i.length;r<o;++r)i[r].value.apply(e,n)}};var LS=FS("application/json",(function(t){return JSON.parse(t.responseText)})),IS=FS("text/plain",(function(t){return t.responseText})),HS={},GS={};function VS(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function US(t){var e=Object.create(null),n=[];return t.forEach((function(t){for(var i in t)i in e||n.push(e[i]=i)})),n}function WS(t,e){var n=t+"",i=n.length;return i<e?new Array(e-i+1).join(0)+n:n}function qS(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":function(t){return t<0?"-"+WS(-t,6):t>9999?"+"+WS(t,6):WS(t,4)}(t.getUTCFullYear())+"-"+WS(t.getUTCMonth()+1,2)+"-"+WS(t.getUTCDate(),2)+(r?"T"+WS(e,2)+":"+WS(n,2)+":"+WS(i,2)+"."+WS(r,3)+"Z":i?"T"+WS(e,2)+":"+WS(n,2)+":"+WS(i,2)+"Z":n||e?"T"+WS(e,2)+":"+WS(n,2)+"Z":"")}function KS(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var i,r=[],o=t.length,a=0,s=0,u=o<=0,l=!1;function c(){if(u)return GS;if(l)return l=!1,HS;var e,i,r=a;if(34===t.charCodeAt(r)){for(;a++<o&&34!==t.charCodeAt(a)||34===t.charCodeAt(++a););return(e=a)>=o?u=!0:10===(i=t.charCodeAt(a++))?l=!0:13===i&&(l=!0,10===t.charCodeAt(a)&&++a),t.slice(r+1,e-1).replace(/""/g,'"')}for(;a<o;){if(10===(i=t.charCodeAt(e=a++)))l=!0;else if(13===i)l=!0,10===t.charCodeAt(a)&&++a;else if(i!==n)continue;return t.slice(r,e)}return u=!0,t.slice(r,o)}for(10===t.charCodeAt(o-1)&&--o,13===t.charCodeAt(o-1)&&--o;(i=c())!==GS;){for(var h=[];i!==HS&&i!==GS;)h.push(i),i=c();e&&null==(h=e(h,s++))||r.push(h)}return r}function r(e,n){return e.map((function(e){return n.map((function(t){return a(e[t])})).join(t)}))}function o(e){return e.map(a).join(t)}function a(t){return null==t?"":t instanceof Date?qS(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,e){var n,r,o=i(t,(function(t,i){if(n)return n(t,i-1);r=t,n=e?function(t,e){var n=VS(t);return function(i,r){return e(n(i),r,t)}}(t,e):VS(t)}));return o.columns=r||[],o},parseRows:i,format:function(e,n){return null==n&&(n=US(e)),[n.map(a).join(t)].concat(r(e,n)).join("\n")},formatBody:function(t,e){return null==e&&(e=US(t)),r(t,e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}var YS=KS(",").parse,XS=KS("\t").parse;function ZS(t,e){return function(n,i,r){arguments.length<3&&(r=i,i=null);var o=jS(n).mimeType(t);return o.row=function(t){return arguments.length?o.response(function(t,e){return function(n){return t(n.responseText,e)}}(e,i=t)):i},o.row(i),r?o.get(r):o}}var $S=ZS("text/csv",YS),JS=ZS("text/tab-separated-values",XS),QS=function(t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"headers";return t[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data"].map((function(n){return t[e].reduce((function(t,e,i){return t[e]=n[i],t}),{})}))};function tC(t){return tC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tC(t)}function eC(t,e,n,i){var r,o=this,a=function(t){return t.reduce((function(t,e){return e?t+1:t}),0)};t instanceof Array||(t=[t]);var s=t.find(TS),u=new Array(t.length),l=[];s?t.forEach((function(t,e){TS(t)?l.push(t):u[e]=t})):u[0]=t;var c=a(u);if(l.forEach((function(s){var h={},f=s;"object"===tC(s)&&(f=s.url,h=s.headers),r=function(t){switch(t.slice(t.length-4)){case".csv":return $S;case".tsv":return JS;case".txt":return IS;default:return LS}}(f);var d=r(f);for(var g in h)({}).hasOwnProperty.call(h,g)&&d.header(g,h[g]);d.get((function(s,h){if((h=s?[]:h)&&!(h instanceof Array)&&h.data&&h.headers&&(h=QS(h)),h=function(t,e,n){return e!==LS&&!t&&n&&n instanceof Array&&n.forEach((function(t){for(var e in t)isNaN(t[e])?"false"===t[e].toLowerCase()?t[e]=!1:"true"===t[e].toLowerCase()?t[e]=!0:"null"===t[e].toLowerCase()?t[e]=null:"undefined"===t[e].toLowerCase()&&(t[e]=void 0):t[e]=parseFloat(t[e])})),n}(s,r,h),u[function(t,e){return e.indexOf(t)}(f,t)]=h,a(u)-c===l.length){if(h=1===a(u)?u[0]:u,o._cache&&o._lrucache.set("".concat(n,"_").concat(f),h),e){var d=e(1===a(u)?u[0]:u);"data"===n&&Ma(d)?(h=d.data||[],delete d.data,o.config(d)):h=d||[]}else"data"===n&&(h=MS(u,"data"));n&&"_".concat(n)in o&&(o["_".concat(n)]=h),i&&i(s,h)}}))})),0===l.length){u=u.map((function(t){return t&&!(t instanceof Array)&&t.data&&t.headers&&(t=QS(t)),t}));var h=1===a(u)?u[0]:u;if(e){var f=e(1===a(u)?u[0]:u);"data"===n&&Ma(f)?(h=f.data||[],delete f.data,this.config(f)):h=f||[]}else"data"===n&&(h=MS(u,"data"));n&&"_".concat(n)in this&&(this["_".concat(n)]=h),i&&i(null,h)}}function nC(t,e,n){if(t instanceof Array||(t=[t]),t.find(TS)){var i=this._queue.find((function(t){return t[3]===n})),r=[eC.bind(this),t,e,n];i?this._queue[this._queue.indexOf(i)]=r:this._queue.push(r)}else this["_".concat(n)]=t}var iC=function(t){return function(){return t}};function rC(t,e){var n=e.sourceEvent,i=e.target,r=e.selection,o=e.mode,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function oC(t){t.preventDefault(),t.stopImmediatePropagation()}var aC={name:"drag"},sC={name:"space"},uC={name:"handle"},lC={name:"center"},cC=Math.abs,hC=Math.max,fC=Math.min;function dC(t){return[+t[0],+t[1]]}function gC(t){return[dC(t[0]),dC(t[1])]}var pC={name:"x",handles:["w","e"].map(kC),input:function(t,e){return null==t?null:[[+t[0],e[0][1]],[+t[1],e[1][1]]]},output:function(t){return t&&[t[0][0],t[1][0]]}},vC={name:"y",handles:["n","s"].map(kC),input:function(t,e){return null==t?null:[[e[0][0],+t[0]],[e[1][0],+t[1]]]},output:function(t){return t&&[t[0][1],t[1][1]]}},yC={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(kC),input:function(t){return null==t?null:gC(t)},output:function(t){return t}},mC={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"},_C={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},bC={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},wC={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},xC={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function kC(t){return{type:t}}function SC(t){return!t.ctrlKey&&!t.button}function CC(){var t=this.ownerSVGElement||this;return t.hasAttribute("viewBox")?[[(t=t.viewBox.baseVal).x,t.y],[t.x+t.width,t.y+t.height]]:[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function EC(){return navigator.maxTouchPoints||"ontouchstart"in this}function AC(t){for(;!t.__brush;)if(!(t=t.parentNode))return;return t.__brush}function RC(t){var e,n=CC,i=SC,r=EC,o=!0,a=_o("start","brush","end"),s=6;function u(e){var n=e.property("__brush",p).selectAll(".overlay").data([kC("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",mC.overlay).merge(n).each((function(){var t=AC(this).extent;po(this).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1])})),e.selectAll(".selection").data([kC("selection")]).enter().append("rect").attr("class","selection").attr("cursor",mC.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var i=e.selectAll(".handle").data(t.handles,(function(t){return t.type}));i.exit().remove(),i.enter().append("rect").attr("class",(function(t){return"handle handle--"+t.type})).attr("cursor",(function(t){return mC[t.type]})),e.each(l).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",f).filter(r).on("touchstart.brush",f).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){var t=po(this),e=AC(this).selection;e?(t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]),t.selectAll(".handle").style("display",null).attr("x",(function(t){return"e"===t.type[t.type.length-1]?e[1][0]-s/2:e[0][0]-s/2})).attr("y",(function(t){return"s"===t.type[0]?e[1][1]-s/2:e[0][1]-s/2})).attr("width",(function(t){return"n"===t.type||"s"===t.type?e[1][0]-e[0][0]+s:s})).attr("height",(function(t){return"e"===t.type||"w"===t.type?e[1][1]-e[0][1]+s:s}))):t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function c(t,e,n){var i=t.__brush.emitter;return!i||n&&i.clean?new h(t,e,n):i}function h(t,e,n){this.that=t,this.args=e,this.state=t.__brush,this.active=0,this.clean=n}function f(n){if((!e||n.touches)&&i.apply(this,arguments)){var r,a,s,u,h,f,d,g,p,v,y,m=this,_=n.target.__data__.type,b="selection"===(o&&n.metaKey?_="overlay":_)?aC:o&&n.altKey?lC:uC,w=t===vC?null:wC[_],x=t===pC?null:xC[_],k=AC(m),S=k.extent,C=k.selection,E=S[0][0],A=S[0][1],R=S[1][0],M=S[1][1],O=0,T=0,P=w&&x&&o&&n.shiftKey,B=Array.from(n.touches||[n],(function(t){var e=t.identifier;return(t=vo(t,m)).point0=t.slice(),t.identifier=e,t}));if("overlay"===_){C&&(p=!0);var D=[B[0],B[1]||B[0]];k.selection=C=[[r=t===vC?E:fC(D[0][0],D[1][0]),s=t===pC?A:fC(D[0][1],D[1][1])],[h=t===vC?R:hC(D[0][0],D[1][0]),d=t===pC?M:hC(D[0][1],D[1][1])]],B.length>1&&I()}else r=C[0][0],s=C[0][1],h=C[1][0],d=C[1][1];a=r,u=s,f=h,g=d;var N=po(m).attr("pointer-events","none"),z=N.selectAll(".overlay").attr("cursor",mC[_]);ea(m);var j=c(m,arguments,!0).beforestart();if(n.touches)j.moved=L,j.ended=H;else{var F=po(n.view).on("mousemove.brush",L,!0).on("mouseup.brush",H,!0);o&&F.on("keydown.brush",(function(t){switch(t.keyCode){case 16:P=w&&x;break;case 18:b===uC&&(w&&(h=f-O*w,r=a+O*w),x&&(d=g-T*x,s=u+T*x),b=lC,I());break;case 32:b!==uC&&b!==lC||(w<0?h=f-O:w>0&&(r=a-O),x<0?d=g-T:x>0&&(s=u-T),b=sC,z.attr("cursor",mC.selection),I());break;default:return}oC(t)}),!0).on("keyup.brush",(function(t){switch(t.keyCode){case 16:P&&(v=y=P=!1,I());break;case 18:b===lC&&(w<0?h=f:w>0&&(r=a),x<0?d=g:x>0&&(s=u),b=uC,I());break;case 32:b===sC&&(t.altKey?(w&&(h=f-O*w,r=a+O*w),x&&(d=g-T*x,s=u+T*x),b=lC):(w<0?h=f:w>0&&(r=a),x<0?d=g:x>0&&(s=u),b=uC),z.attr("cursor",mC[_]),I());break;default:return}oC(t)}),!0),hp(n.view)}l.call(m),j.start(n,b.name)}function L(t){var e,n=_createForOfIteratorHelper2(t.changedTouches||[t]);try{for(n.s();!(e=n.n()).done;){var i,r=e.value,o=_createForOfIteratorHelper2(B);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.identifier===r.identifier&&(a.cur=vo(r,m))}}catch(t){o.e(t)}finally{o.f()}}}catch(t){n.e(t)}finally{n.f()}if(P&&!v&&!y&&1===B.length){var s=B[0];cC(s.cur[0]-s[0])>cC(s.cur[1]-s[1])?y=!0:v=!0}var u,l=_createForOfIteratorHelper2(B);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.cur&&(c[0]=c.cur[0],c[1]=c.cur[1])}}catch(t){l.e(t)}finally{l.f()}p=!0,oC(t),I(t)}function I(t){var e,n=B[0],i=n.point0;switch(O=n[0]-i[0],T=n[1]-i[1],b){case sC:case aC:w&&(O=hC(E-r,fC(R-h,O)),a=r+O,f=h+O),x&&(T=hC(A-s,fC(M-d,T)),u=s+T,g=d+T);break;case uC:B[1]?(w&&(a=hC(E,fC(R,B[0][0])),f=hC(E,fC(R,B[1][0])),w=1),x&&(u=hC(A,fC(M,B[0][1])),g=hC(A,fC(M,B[1][1])),x=1)):(w<0?(O=hC(E-r,fC(R-r,O)),a=r+O,f=h):w>0&&(O=hC(E-h,fC(R-h,O)),a=r,f=h+O),x<0?(T=hC(A-s,fC(M-s,T)),u=s+T,g=d):x>0&&(T=hC(A-d,fC(M-d,T)),u=s,g=d+T));break;case lC:w&&(a=hC(E,fC(R,r-O*w)),f=hC(E,fC(R,h+O*w))),x&&(u=hC(A,fC(M,s-T*x)),g=hC(A,fC(M,d+T*x)))}f<a&&(w*=-1,e=r,r=h,h=e,e=a,a=f,f=e,_ in _C&&z.attr("cursor",mC[_=_C[_]])),g<u&&(x*=-1,e=s,s=d,d=e,e=u,u=g,g=e,_ in bC&&z.attr("cursor",mC[_=bC[_]])),k.selection&&(C=k.selection),v&&(a=C[0][0],f=C[1][0]),y&&(u=C[0][1],g=C[1][1]),C[0][0]===a&&C[0][1]===u&&C[1][0]===f&&C[1][1]===g||(k.selection=[[a,u],[f,g]],l.call(m),j.brush(t,b.name))}function H(t){if(function(t){t.stopImmediatePropagation()}(t),t.touches){if(t.touches.length)return;e&&clearTimeout(e),e=setTimeout((function(){e=null}),500)}else fp(t.view,p),F.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);N.attr("pointer-events","all"),z.attr("cursor",mC.overlay),k.selection&&(C=k.selection),function(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}(C)&&(k.selection=null,l.call(m)),j.end(t,b.name)}}function d(t){c(this,arguments).moved(t)}function g(t){c(this,arguments).ended(t)}function p(){var e=this.__brush||{selection:null};return e.extent=gC(n.apply(this,arguments)),e.dim=t,e}return u.move=function(e,n){e.tween?e.on("start.brush",(function(t){c(this,arguments).beforestart().start(t)})).on("interrupt.brush end.brush",(function(t){c(this,arguments).end(t)})).tween("brush",(function(){var e=this,i=e.__brush,r=c(e,arguments),o=i.selection,a=t.input("function"==typeof n?n.apply(this,arguments):n,i.extent),s=In(o,a);function u(t){i.selection=1===t&&null===a?null:s(t),l.call(e),r.brush()}return null!==o&&null!==a?u:u(1)})):e.each((function(){var e=this,i=arguments,r=e.__brush,o=t.input("function"==typeof n?n.apply(e,i):n,r.extent),a=c(e,i).beforestart();ea(e),r.selection=null===o?null:o,l.call(e),a.start().brush().end()}))},u.clear=function(t){u.move(t,null)},h.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(t,e){return this.starting?(this.starting=!1,this.emit("start",t,e)):this.emit("brush",t),this},brush:function(t,e){return this.emit("brush",t,e),this},end:function(t,e){return 0==--this.active&&(delete this.state.emitter,this.emit("end",t,e)),this},emit:function(e,n,i){var r=po(this.that).datum();a.call(e,this.that,new rC(e,{sourceEvent:n,target:u,selection:t.output(this.state.selection),mode:i,dispatch:a}),r)}},u.extent=function(t){return arguments.length?(n="function"==typeof t?t:iC(gC(t)),u):n},u.filter=function(t){return arguments.length?(i="function"==typeof t?t:iC(!!t),u):i},u.touchable=function(t){return arguments.length?(r="function"==typeof t?t:iC(!!t),u):r},u.handleSize=function(t){return arguments.length?(s=+t,u):s},u.keyModifiers=function(t){return arguments.length?(o=!!t,u):o},u.on=function(){var t=a.on.apply(a,arguments);return t===a?u:t},u}var MC=[].slice,OC={};function TC(t){this._size=t,this._call=this._error=null,this._tasks=[],this._data=[],this._waiting=this._active=this._ended=this._start=0}function PC(t){if(!t._start)try{!function(t){for(;t._start=t._waiting&&t._active<t._size;){var e=t._ended+t._active,n=t._tasks[e],i=n.length-1,r=n[i];n[i]=BC(t,e),--t._waiting,++t._active,n=r.apply(null,n),t._tasks[e]&&(t._tasks[e]=n||OC)}}(t)}catch(e){if(t._tasks[t._ended+t._active-1])DC(t,e);else if(!t._data)throw e}}function BC(t,e){return function(n,i){t._tasks[e]&&(--t._active,++t._ended,t._tasks[e]=null,null==t._error&&(null!=n?DC(t,n):(t._data[e]=i,t._waiting?PC(t):NC(t))))}}function DC(t,e){var n,i=t._tasks.length;for(t._error=e,t._data=void 0,t._waiting=NaN;--i>=0;)if((n=t._tasks[i])&&(t._tasks[i]=null,n.abort))try{n.abort()}catch(e){}t._active=NaN,NC(t)}function NC(t){if(!t._active&&t._call){var e=t._data;t._data=void 0,t._call(t._error,e)}}function zC(t){if(null==t)t=1/0;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new TC(t)}TC.prototype=zC.prototype={constructor:TC,defer:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(null!=this._error)return this;var e=MC.call(arguments,1);return e.push(t),++this._waiting,this._tasks.push(e),PC(this),this},abort:function(){return null==this._error&&DC(this,new Error("abort")),this},await:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=function(e,n){t.apply(null,[e].concat(n))},NC(this),this},awaitAll:function(t){if("function"!=typeof t)throw new Error("invalid callback");if(this._call)throw new Error("multiple await");return this._call=t,NC(this),this}};var jC=ud((function(t){"object"===("undefined"==typeof window?"undefined":_typeof2(window))&&window,t.exports=function(){var t=void 0;function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new i(t)}var n=e.prototype;function i(t){this.capacity=t>0?+t:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,this.data=Object.create?Object.create(null):{},this.hash=Object.create?Object.create(null):{},this.linkedList=new r}function r(){this.length=0,this.head=null,this.end=null}function o(t){this.key=t,this.p=null,this.n=null}function a(t,e){e!==t.head&&(t.end?t.end===e&&(t.end=e.n):t.end=e,s(e.n,e.p),s(e,t.head),t.head=e,t.head.n=null)}function s(t,e){t!==e&&(t&&(t.p=e),e&&(e.n=t))}return n.get=function(t){var e=this._LRUCacheState,n=e.hash[t];if(n)return a(e.linkedList,n),e.data[t]},n.set=function(e,n){var i=this._LRUCacheState,r=i.hash[e];return n===t||(r||(i.hash[e]=new o(e),i.linkedList.length+=1,r=i.hash[e]),a(i.linkedList,r),i.data[e]=n,i.linkedList.length>i.capacity&&this.remove(i.linkedList.end.key)),this},n.update=function(t,e){return this.has(t)&&this.set(t,e(this.get(t))),this},n.remove=function(t){var e=this._LRUCacheState,n=e.hash[t];return n?(n===e.linkedList.head&&(e.linkedList.head=n.p),n===e.linkedList.end&&(e.linkedList.end=n.n),s(n.n,n.p),delete e.hash[t],delete e.data[t],e.linkedList.length-=1,this):this},n.removeAll=function(){return this._LRUCacheState=new i(this._LRUCacheState.capacity),this},n.info=function(){var t=this._LRUCacheState;return{capacity:t.capacity,length:t.linkedList.length}},n.keys=function(){for(var t=[],e=this._LRUCacheState.linkedList.head;e;)t.push(e.key),e=e.p;return t},n.has=function(t){return!!this._LRUCacheState.hash[t]},n.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key},n.popStale=function(){var t=this.staleKey();if(!t)return null;var e=[t,this._LRUCacheState.data[t]];return this.remove(t),e},e}()}));function FC(t,e){for(var n=[],i=0;i<t;i++){for(var r=[],o=0;o<e;o++)r.push(0);n.push(r)}return n}function LC(t,e,n,i){var r;if(t>0){var o=(n[e]-n[t-1])/(e-t+1);r=i[e]-i[t-1]-(e-t+1)*o*o}else r=i[e]-n[e]*n[e]/(e+1);return r<0?0:r}function IC(t,e,n,i,r,o,a){if(!(t>e)){var s=Math.floor((t+e)/2);i[n][s]=i[n-1][s-1],r[n][s]=s;var u=n;t>n&&(u=Math.max(u,r[n][t-1]||0)),u=Math.max(u,r[n-1][s]||0);var l=s-1;e<i.length-1&&(l=Math.min(l,r[n][e+1]||0));for(var c=l;c>=u;--c){var h=LC(c,s,o,a);if(h+i[n-1][u-1]>=i[n][s])break;var f=LC(u,s,o,a)+i[n-1][u-1];f<i[n][s]&&(i[n][s]=f,r[n][s]=u),u++;var d=h+i[n-1][c-1];d<i[n][s]&&(i[n][s]=d,r[n][s]=c)}IC(t,s-1,n,i,r,o,a),IC(s+1,e,n,i,r,o,a)}}function HC(t,e){if(e>t.length)throw new Error("Cannot generate more classes than there are data values");var n=function(t){return t.slice().sort((function(t,e){return t-e}))}(t);if(1===function(t){for(var e,n=0,i=0;i<t.length;i++)0!==i&&t[i]===e||(e=t[i],n++);return n}(n))return[n];var i=FC(e,n.length);!function(t,e,n){for(var i=e[0]?e[0].length:0,r=t[Math.floor(i/2)],o=[],a=[],s=0,u=void 0;s<i;++s)u=t[s]-r,0===s?(o.push(u),a.push(u*u)):(o.push(o[s-1]+u),a.push(a[s-1]+u*u)),e[0][s]=LC(0,s,o,a),n[0][s]=0;for(var l=1;l<e.length;++l){var c=i-1;l<e.length-1&&(c=l),IC(c,i-1,l,e,n,o,a)}}(n,FC(e,n.length),i);for(var r=i[0]?i[0].length-1:0,o=[],a=i.length-1;a>=0;a--){var s=i[a][r];o[a]=n.slice(s,r+1),a>0&&(r=s-1)}return o}function GC(t){return GC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GC(t)}function VC(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function UC(t,e){return UC=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},UC(t,e)}function WC(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=qC(t);if(e){var r=qC(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===GC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function qC(t){return qC=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},qC(t)}var KC=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&UC(t,e)}(o,t);var e,n,i,r=WC(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._titleClass=new _c,t._align="center",t._data=[],t._direction="row",t._duration=600,t._height=200,t._id=Aa("id"),t._label=Aa("id"),t._lineData=[],t._outerBounds={width:0,height:0,x:0,y:0},t._padding=5,t._shape=Za("Rect"),t._shapes=[],t._shapeConfig={fill:Aa("color"),height:Za(12),hitArea:function(e,n){var i=t._lineData[n],r=C([i.height,i.shapeHeight]);return{width:i.width+i.shapeWidth,height:r,x:-i.shapeWidth/2,y:-r/2}},labelBounds:function(e,n){var i=t._lineData[n],r=i.shapeWidth/2;"Circle"===i.shape&&(r-=i.shapeR/2);var o=C([i.shapeHeight,i.height]);return{width:i.width,height:o,x:r+5,y:-o/2}},labelConfig:{fontColor:Za(ds.dark),fontFamily:t._titleClass.fontFamily(),fontResize:!1,fontSize:Za(10),verticalAlign:"middle"},opacity:1,r:Za(6),width:Za(12),x:function(e,n){var i=t._lineData[n],r=i.y,o="left"===t._align||"right"===t._align&&"column"===t._direction?0:"center"===t._align?(t._outerBounds.width-t._rowWidth(t._lineData.filter((function(t){return r===t.y}))))/2:t._outerBounds.width-t._rowWidth(t._lineData.filter((function(t){return r===t.y}))),a=t._lineData.slice(0,n).filter((function(t){return r===t.y}));return t._rowWidth(a)+t._padding*(a.length?i.sentence?2:1:0)+t._outerBounds.x+i.shapeWidth/2+o},y:function(e,n){var i=t._lineData[n];return i.y+t._titleHeight+t._outerBounds.y+C(t._lineData.filter((function(t){return i.y===t.y})).map((function(t){return t.height})).concat(t._data.map((function(e,n){return t._fetchConfig("height",e,n)}))))/2}},t._titleConfig={fontSize:12},t._verticalAlign="middle",t._width=400,t}return e=o,n=[{key:"_fetchConfig",value:function(t,e,n){var i=void 0!==this._shapeConfig[t]?this._shapeConfig[t]:this._shapeConfig.labelConfig[t];return i||"lineHeight"!==t?"function"==typeof i?i(e,n):i:1.4*this._fetchConfig("fontSize",e,n)}},{key:"_rowHeight",value:function(t){return C(t.map((function(t){return t.height})).concat(t.map((function(t){return t.shapeHeight}))))+this._padding}},{key:"_rowWidth",value:function(t){var e=this;return N(t.map((function(n,i){var r=e._padding*(i===t.length-1?0:n.width?2:1);return n.shapeWidth+n.width+r})))}},{key:"render",value:function(t){var e=this;void 0===this._select&&this.select(po("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node()),this._group=$a("g.d3plus-Legend",{parent:this._select}),this._titleGroup=$a("g.d3plus-Legend-title",{parent:this._group}),this._shapeGroup=$a("g.d3plus-Legend-shape",{parent:this._group});var n,i=this._height;if(this._titleHeight=0,this._titleWidth=0,this._title){var r=this._titleConfig.fontFamily||this._titleClass.fontFamily()(),o=this._titleConfig.fontSize||this._titleClass.fontSize()(),a=a=this._titleConfig.lineHeight||this._titleClass.lineHeight();a=a?a():1.4*o;var s=fc().fontFamily(r).fontSize(o).lineHeight(a).width(this._width).height(this._height)(this._title);this._titleHeight=a+s.lines.length+this._padding,this._titleWidth=C(s.widths),i-=this._titleHeight}this._lineData=this._data.map((function(t,n){var r=e._label(t,n),o=e._shape(t,n),a=e._fetchConfig("r",t,n),s={data:t,i:n,id:e._id(t,n),shape:o,shapeR:a,shapeWidth:"Circle"===o?2*a:e._fetchConfig("width",t,n),shapeHeight:"Circle"===o?2*a:e._fetchConfig("height",t,n),y:0};if(!r)return s.sentence=!1,s.words=[],s.height=0,s.width=0,s;var u=e._fetchConfig("fontFamily",t,n),l=e._fetchConfig("lineHeight",t,n),c=e._fetchConfig("fontSize",t,n),h=i-(e._data.length+1)*e._padding,f=e._width;return(s=Object.assign(s,fc().fontFamily(u).fontSize(c).lineHeight(l).width(f).height(h)(r))).width=Math.ceil(C(s.lines.map((function(t){return Ul(t,{"font-family":u,"font-size":c})}))))+10,s.height=Math.ceil(s.lines.length*(l+1)),s.og={height:s.height,width:s.width},s.f=u,s.s=c,s.lh=l,s}));var u=this._width-2*this._padding;if(n=this._rowWidth(this._lineData),"column"===this._direction||n>u){var l=1,c=[],h=C(this._lineData.map((function(t){return t.words.length})));if(this._wrapLines=function(){var t=this;if(!(++l>h)){var e=1===l?this._lineData.slice():this._lineData.filter((function(e){return e.width+e.shapeWidth+t._padding*(e.width?2:1)>u&&e.words.length>=l})).sort((function(t,e){return e.sentence.length-t.sentence.length}));if(e.length&&i>e[0].height*l){for(var n=!1,r=function(t){var i=e[t],r=i.og.height*l,o=i.og.width*(1/l*1.5),a=fc().fontFamily(i.f).fontSize(i.s).lineHeight(i.lh).width(o).height(r)(i.sentence);if(a.truncated)return n=!0,"break";i.width=Math.ceil(C(a.lines.map((function(t){return Ul(t,{"font-family":i.f,"font-size":i.s})}))))+i.s,i.height=a.lines.length*(i.lh+1)},o=0;o<e.length&&"break"!==r(o);o++);n||this._wrapRows()}else c=[]}},this._wrapRows=function(){c=[];for(var t=1,e=0,n=0;n<this._lineData.length;n++){var r=this._lineData[n],o=r.width+this._padding*(r.width?2:1)+r.shapeWidth;if(N(c.map((function(t){return C(t,(function(t){return C([t.height,t.shapeHeight])}))})))>i){c=[];break}if(o>u){c=[],this._wrapLines();break}e+o<u?e+=o:"column"!==this._direction&&(e=o,t++),c[t-1]||(c[t-1]=[]),c[t-1].push(r),"column"===this._direction&&(e=0,t++)}},this._wrapRows(),!c.length||N(c,this._rowHeight.bind(this))+this._padding>i){n=N(this._lineData.map((function(t){return t.shapeWidth+e._padding})))-this._padding;for(var f=0;f<this._lineData.length;f++)this._lineData[f].width=0,this._lineData[f].height=0;this._wrapRows()}c.length&&N(c,this._rowHeight.bind(this))+this._padding<i&&(c.forEach((function(t,n){t.forEach((function(t){n&&(t.y=N(c.slice(0,n),e._rowHeight.bind(e)))}))})),n=C(c,this._rowWidth.bind(this)))}var d=C(this._lineData,(function(t,n){return C([t.height,e._fetchConfig("height",t.data,n)])+t.y}))+this._titleHeight,g=C([n,this._titleWidth]);this._outerBounds.width=g,this._outerBounds.height=d;var p=this._padding,v=this._padding;"center"===this._align?p=(this._width-g)/2:"right"===this._align&&(p=this._width-this._padding-g),"middle"===this._verticalAlign?v=(this._height-d)/2:"bottom"===this._verticalAlign&&(v=this._height-this._padding-d),this._outerBounds.x=p,this._outerBounds.y=v,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-2*this._padding).x(this._padding).y(this._outerBounds.y).config(this._titleConfig).render(),this._shapes=[];var y=Xa.bind(this)(this._shapeConfig,"legend"),m={id:function(t){return t.id},label:function(t){return t.label},lineHeight:function(t){return t.lH}},_=this._data.map((function(t,n){return{__d3plus__:!0,data:t,i:n,id:e._id(t,n),label:!!e._lineData[n].width&&e._label(t,n),lH:e._fetchConfig("lineHeight",t,n),shape:e._shape(t,n)}}));return this._shapes=[],["Circle","Rect"].forEach((function(t){e._shapes.push((new kf[t]).parent(e).data(_.filter((function(e){return e.shape===t}))).duration(e._duration).labelConfig({padding:0}).select(e._shapeGroup.node()).verticalAlign("top").config(Oa({},y,m)).render())})),t&&setTimeout(t,this._duration+100),this}},{key:"active",value:function(t){return this._shapes.forEach((function(e){return e.active(t)})),this}},{key:"align",value:function(t){return arguments.length?(this._align=t,this):this._align}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"direction",value:function(t){return arguments.length?(this._direction=t,this):this._direction}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function(t){return arguments.length?(this._height=t,this):this._height}},{key:"hover",value:function(t){return this._shapes.forEach((function(e){return e.hover(t)})),this}},{key:"id",value:function(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function(t){return arguments.length?(this._label="function"==typeof t?t:Za(t),this):this._label}},{key:"outerBounds",value:function(){return this._outerBounds}},{key:"padding",value:function(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"shape",value:function(t){return arguments.length?(this._shape="function"==typeof t?t:Za(t),this):this._shape}},{key:"shapeConfig",value:function(t){return arguments.length?(this._shapeConfig=Oa(this._shapeConfig,t),this):this._shapeConfig}},{key:"title",value:function(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function(t){return arguments.length?(this._titleConfig=Oa(this._titleConfig,t),this):this._titleConfig}},{key:"verticalAlign",value:function(t){return arguments.length?(this._verticalAlign=t,this):this._verticalAlign}},{key:"width",value:function(t){return arguments.length?(this._width=t,this):this._width}}],n&&VC(e.prototype,n),i&&VC(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa),YC=function(t){return function(){return t}};function XC(t){return 1==(t=+t)?ZC:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}(e,n,t):YC(isNaN(e)?n:e)}}function ZC(t,e){var n=e-t;return n?function(t,e){return function(n){return t+n*e}}(t,n):YC(isNaN(t)?e:t)}var $C=function t(e){var n=XC(e);function i(t,e){var i=n((t=mn(t)).r,(e=mn(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),a=ZC(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function JC(t){return JC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JC(t)}function QC(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function tE(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function eE(t,e){return eE=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},eE(t,e)}function nE(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=rE(t);if(e){var r=rE(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===JC(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return iE(t)}(this,n)}}function iE(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rE(t){return rE=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},rE(t)}var oE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eE(t,e)}(o,t);var e,n,i,r=nE(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._axisClass=new zf,t._axisConfig={gridSize:0},t._axisTest=new zf,t._align="middle",t._buckets=5,t._bucketAxis=!1,t._bucketFormat=function(e,n,i,r){var o=t._axisConfig.tickFormat?t._axisConfig.tickFormat:ks,a=i[n+1],s=!!n&&i[n-1],u=n===i.length-1;if(e===a||u){var l=u&&e<C(r)?"+":"";return"".concat(o(e)).concat(l)}var c=a?a/100:e/100,h=c>=1||c<=-1?Math.round(c).toString().length-1:-1*c.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length,f=Math.pow(10,h),d=o(s===e&&1===n?E([e+f,r.find((function(t){return t>e&&t<a}))]):e),g=o(e&&1===n?a:C([a-f,r.reverse().find((function(t){return t>e&&t<a}))]));return t._bucketJoiner(d,g)},t._bucketJoiner=function(t,e){return t!==e?"".concat(t," - ").concat(e):"".concat(t)},t._centered=!0,t._color=["#54478C","#2C699A","#0DB39E","#83E377","#EFEA5A"],t._colorMax=ds.on,t._colorMid=ds.light,t._colorMin=ds.off,t._data=[],t._duration=600,t._height=200,t._labelClass=new _c,t._labelConfig={fontColor:ds.dark,fontSize:12},t._legendClass=new KC,t._legendConfig={shapeConfig:{stroke:ds.dark,strokeWidth:1}},t._midpoint=0,t._orient="bottom",t._outerBounds={width:0,height:0,x:0,y:0},t._padding=5,t._rectClass=(new Vh).parent(iE(t)),t._rectConfig={stroke:"#999",strokeWidth:1},t._scale="linear",t._size=10,t._value=Aa("value"),t._width=400,t}return e=o,n=[{key:"render",value:function(t){var e=this;void 0===this._select&&this.select(po("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var n=["bottom","top"].includes(this._orient),i=n?"height":"width",r=n?"width":"height",o=n?"x":"y",a=n?"y":"x";this._group=$a("g.d3plus-ColorScale",{parent:this._select});var s,u,l=this._data.map(this._value).filter((function(t){return null!==t&&"number"==typeof t})).sort((function(t,e){return t-e})),f=this._domain||h(l),d=f[0]<this._midpoint,g=f[1]>this._midpoint,p=d&&g,v=E([this._buckets instanceof Array?this._buckets.length:this._buckets,p&&"jenks"!==this._scale?2*Math.floor(us(l).length/2)-1:us(l).length]),y=p?void 0:this._color;if(!y||y instanceof Array||(y=D(0,v,1).map((function(t){return ms(y,(t+1)/v)})).reverse()),"jenks"===this._scale){var m=E([y?y.length:v,v,l.length]),_=[];if(this._buckets instanceof Array)u=this._buckets;else{if(p&&this._centered){var b=Math.floor(m/2),w=m%2,x=l.filter((function(t){return t<e._midpoint})),k=c(x),S=l.concat(this._midpoint).filter((function(t){return t>=e._midpoint})),C=c(S),A=C>k?1:0,R=HC(x,E([b+w*(k>C?1:0),x.length])),O=HC(S,E([b+w*A,S.length]));_=R.concat(O)}else _=HC(l,m);u=_.map((function(t){return t[0]}))}var T=new Set(u);if(u.length!==T.size&&(s=Array.from(T)),!y)if(p){y=[this._colorMin,this._colorMid,this._colorMax];var P=u.slice(0,m).filter((function(t,n){return t<e._midpoint&&u[n+1]<=e._midpoint})),B=u.slice(0,m).filter((function(t,n){return t<=e._midpoint&&u[n+1]>e._midpoint})),N=u.slice(0,m).filter((function(t){return t>e._midpoint})),z=P.map((function(t,e){return e?ms(y[0],e/P.length):y[0]})),j=B.map((function(){return y[1]})),F=N.map((function(t,e){return e===N.length-1?y[2]:ms(y[2],1-(e+1)/N.length)}));y=z.concat(j).concat(F)}else y=D(0,v,1).map((function(t){return ms(e._colorMax,t/v)})).reverse();u.length<=m&&(y=y.slice(-u.length)),y=[y[0]].concat(y),this._colorScale=Wi().domain(u).range(y)}else{var L=this._buckets instanceof Array?this._buckets:void 0;if(p&&!y){var I=Math.floor(v/2),H=$C.gamma(2.2)(this._colorMin,this._colorMid),G=D(0,I,1).map((function(t){return H(t/I)})),V=(v%2?[0]:[]).map((function(){return e._colorMid})),U=$C.gamma(2.2)(this._colorMax,this._colorMid),W=D(0,I,1).map((function(t){return U(t/I)})).reverse();if(y=G.concat(V).concat(W),!L){var q=(y.length-1)/2;L=[f[0],this._midpoint,f[1]],L=D(f[0],this._midpoint,-(f[0]-this._midpoint)/q).concat(D(this._midpoint,f[1],(f[1]-this._midpoint)/q)).concat([f[1]])}}else if(y||("buckets"===this._scale||"quantile"===this._scale?(y=D(0,v,1).map((function(t){return ms(d?e._colorMin:e._colorMax,t/v)})),g&&(y=y.reverse())):y=d?[this._colorMin,ms(this._colorMin,.8)]:[ms(this._colorMax,.8),this._colorMax]),!L)if("quantile"===this._scale){var K=1/(y.length-1);L=D(0,1+K/2,K).map((function(t){return M(l,t)}))}else if(p&&this._color&&this._centered){var Y=(this._midpoint-f[0])/Math.floor(y.length/2),X=(f[1]-this._midpoint)/Math.floor(y.length/2),Z=D(f[0],this._midpoint,Y),$=D(this._midpoint,f[1]+X/2,X);L=Z.concat($)}else{var J=(f[1]-f[0])/(y.length-1);L=D(f[0],f[1]+J/2,J)}if("buckets"===this._scale||"quantile"===this._scale)u=L,y=[y[0]].concat(y);else if("log"===this._scale){var Q=L.filter((function(t){return t<0}));if(Q.length){var tt=Q[0],et=Q.map((function(t){return-Math.pow(Math.abs(tt),t/tt)}));Q.forEach((function(t,e){L[L.indexOf(t)]=et[e]}))}var nt=L.filter((function(t){return t>0}));if(nt.length){var it=nt[nt.length-1],rt=nt.map((function(t){return Math.pow(it,t/it)}));nt.forEach((function(t,e){L[L.indexOf(t)]=rt[e]}))}L.includes(0)&&(L[L.indexOf(0)]=1)}this._colorScale=("buckets"===this._scale||"quantile"===this._scale?Wi:Ci)().domain(L).range(y)}this._colorScale.clamp&&this._colorScale.clamp(!0);var ot=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale),at=xa().duration(this._duration),st={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:at,update:{opacity:1}},ut=$a("g.d3plus-ColorScale-labels",Object.assign({condition:ot},st)),lt=$a("g.d3plus-ColorScale-Rect",Object.assign({condition:ot},st)),ct=$a("g.d3plus-ColorScale-legend",Object.assign({condition:!ot},st));if(ot){var ht,ft={x:0,y:0},dt=f.slice();if(this._bucketAxis){var gt=dt[dt.length-1],pt=dt[dt.length-2],vt=gt?gt/10:pt/10,yt=vt>=1||vt<=-1?Math.round(vt).toString().length-1:-1*vt.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length,mt=Math.pow(10,yt);dt[dt.length-1]=gt+mt}var _t=Oa({domain:n?dt:dt.slice().reverse(),duration:this._duration,height:this._height,labels:s||u,orient:this._orient,padding:this._padding,scale:"log"===this._scale?"log":"linear",ticks:u,width:this._width},this._axisConfig),bt=Oa({height:this["_".concat(i)]/2,width:this["_".concat(r)]/2},this._labelConfig);this._labelClass.config(bt);var wt=[];if(n&&this._labelMin){var xt={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};xt["font-family"]instanceof Array&&(xt["font-family"]=xt["font-family"][0]);var kt=Ul(this._labelMin,xt);kt&&kt<this["_".concat(r)]/2&&(wt.push(this._labelMin),kt+=this._padding,n&&(ft.x+=kt),_t[r]-=kt)}if(n&&this._labelMax){var St={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};St["font-family"]instanceof Array&&(St["font-family"]=St["font-family"][0]);var Ct=Ul(this._labelMax,St);Ct&&Ct<this["_".concat(r)]/2&&(wt.push(this._labelMax),Ct+=this._padding,n||(ft.y+=Ct),_t[r]-=Ct)}this._axisTest.select($a("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(_t).duration(0).render();var Et=this._axisTest.outerBounds();this._outerBounds[r]=this["_".concat(r)]-2*this._padding,this._outerBounds[i]=Et[i]+this._size,this._outerBounds[o]=this._padding,this._outerBounds[a]=this._padding,"middle"===this._align?this._outerBounds[a]=(this["_".concat(i)]-this._outerBounds[i])/2:"end"===this._align&&(this._outerBounds[a]=this["_".concat(i)]-this._padding-this._outerBounds[i]);var At=this._outerBounds[a]+(["bottom","right"].includes(this._orient)?this._size:0)-(_t.padding||this._axisClass.padding()),Rt="translate(".concat(ft.x+(n?0:At),", ").concat(ft.y+(n?At:0),")");this._axisClass.select($a("g.d3plus-ColorScale-axis",Oa(st,{condition:!0,enter:{transform:Rt},update:{transform:Rt}})).node()).config(_t).align("start").render();var Mt=this._axisTest._getPosition.bind(this._axisTest),Ot=this._axisTest._getRange(),Tt=this._group.selectAll("defs").data([0]),Pt=Tt.enter().append("defs");Pt.append("linearGradient").attr("id","gradient-".concat(this._uuid)),(Tt=Pt.merge(Tt)).select("linearGradient").attr("".concat(o,"1"),n?"0%":"100%").attr("".concat(o,"2"),n?"100%":"0%").attr("".concat(a,"1"),"0%").attr("".concat(a,"2"),"0%");var Bt=Tt.select("linearGradient").selectAll("stop").data(y),Dt=this._colorScale.domain(),Nt=Ci().domain(Ot).range(n?[0,100]:[100,0]);Bt.enter().append("stop").merge(Bt).attr("offset",(function(t,e){return"".concat(e<=Dt.length-1?Nt(Mt(Dt[e])):100,"%")})).attr("stop-color",String);var zt=function(t,e){var n=u[e+1]||dt[dt.length-1];return Math.abs(Mt(n)-Mt(t))},jt=Oa((QC(ht={duration:this._duration,fill:u?function(t){return e._colorScale(t)}:"url(#gradient-".concat(this._uuid,")")},o,u?function(t,n){return Mt(t)+zt(t,n)/2-(["left","right"].includes(e._orient)?zt(t,n):0)}:Ot[0]+(Ot[1]-Ot[0])/2+ft[o]),QC(ht,a,this._outerBounds[a]+(["top","left"].includes(this._orient)?Et[i]:0)+this._size/2+ft[a]),QC(ht,r,u?zt:Ot[1]-Ot[0]),QC(ht,i,this._size),ht),this._rectConfig);this._rectClass.data(u||[0]).id((function(t,e){return e})).select(lt.node()).config(jt).render(),bt.height=this._outerBounds[i],bt.width=this._outerBounds[r],this._labelClass.config(bt).data(wt).select(ut.node()).x((function(t){return t===e._labelMax?jt.x+jt.width/2+e._padding:e._outerBounds.x})).y((function(t){return jt.y-e._labelClass.fontSize()(t)/2})).text((function(t){return t})).rotate(n?0:"right"===this._orient?90:-90).render()}else{$a("g.d3plus-ColorScale-axis",Object.assign({condition:ot},st));var Ft=u.reduce((function(t,n,i){var r=e._bucketFormat.bind(e)(n,i,u,l);return t.push({color:y[i+1],id:r}),t}),[]);n||(Ft=Ft.reverse());var Lt=Oa({align:n?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:n?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:Oa({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:n?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Ft).select(ct.node()).config(Lt).render(),this._outerBounds=this._legendClass.outerBounds()}return t&&setTimeout(t,this._duration+100),this}},{key:"axisConfig",value:function(t){return arguments.length?(this._axisConfig=Oa(this._axisConfig,t),this):this._axisConfig}},{key:"align",value:function(t){return arguments.length?(this._align=t,this):this._align}},{key:"buckets",value:function(t){return arguments.length?(this._buckets=t,this):this._buckets}},{key:"bucketAxis",value:function(t){return arguments.length?(this._bucketAxis=t,this):this._bucketAxis}},{key:"bucketFormat",value:function(t){return arguments.length?(this._bucketFormat=t,this):this._bucketFormat}},{key:"bucketJoiner",value:function(t){return arguments.length?(this._bucketJoiner=t,this):this._bucketJoiner}},{key:"centered",value:function(t){return arguments.length?(this._centered=t,this):this._centered}},{key:"color",value:function(t){return arguments.length?(this._color=t,this):this._color}},{key:"colorMax",value:function(t){return arguments.length?(this._colorMax=t,this):this._colorMax}},{key:"colorMid",value:function(t){return arguments.length?(this._colorMid=t,this):this._colorMid}},{key:"colorMin",value:function(t){return arguments.length?(this._colorMin=t,this):this._colorMin}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"domain",value:function(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function(t){return arguments.length?(this._height=t,this):this._height}},{key:"labelConfig",value:function(t){return arguments.length?(this._labelConfig=Oa(this._labelConfig,t),this):this._labelConfig}},{key:"labelMin",value:function(t){return arguments.length?(this._labelMin=t,this):this._labelMin}},{key:"labelMax",value:function(t){return arguments.length?(this._labelMax=t,this):this._labelMax}},{key:"legendConfig",value:function(t){return arguments.length?(this._legendConfig=Oa(this._legendConfig,t),this):this._legendConfig}},{key:"midpoint",value:function(t){return arguments.length?(this._midpoint=t,this):this._midpoint}},{key:"orient",value:function(t){return arguments.length?(this._orient=t,this):this._orient}},{key:"outerBounds",value:function(){return this._outerBounds}},{key:"padding",value:function(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"rectConfig",value:function(t){return arguments.length?(this._rectConfig=Oa(this._rectConfig,t),this):this._rectConfig}},{key:"scale",value:function(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"size",value:function(t){return arguments.length?(this._size=t,this):this._size}},{key:"value",value:function(t){return arguments.length?(this._value="function"==typeof t?t:Za(t),this):this._value}},{key:"width",value:function(t){return arguments.length?(this._width=t,this):this._width}}],n&&tE(e.prototype,n),i&&tE(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa);function aE(t){return aE="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aE(t)}function sE(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function uE(){return uE="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=hE(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},uE.apply(this,arguments)}function lE(t,e){return lE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},lE(t,e)}function cE(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=hE(t);if(e){var r=hE(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===aE(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function hE(t){return hE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},hE(t)}var fE=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lE(t,e)}(o,t);var e,n,i,r=cE(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._barConfig=Object.assign({},t._barConfig,{"stroke-width":function(){return"buttons"===t._buttonBehaviorCurrent?0:1}}),t._brushing=!0,t._brushFilter=function(t){return!t.button&&t.detail<2},t._brushMin=Za(1),t._buttonAlign="middle",t._buttonBehavior="auto",t._buttonPadding=10,t._buttonHeight=30,t._domain=[2001,2010],t._gridSize=0,t._handleConfig={fill:ds.dark},t._handleSize=6,t._height=100,t._labelOffset=!1,t._on={},t.orient("bottom"),t._scale="time",t._selectionConfig={fill:"#999","stroke-width":0},t._shape="Rect",t._shapeConfig=Object.assign({},t._shapeConfig,{labelBounds:function(e){return"buttons"===t._buttonBehaviorCurrent?{x:e.labelBounds.x,y:-5,width:e.labelBounds.width,height:t._buttonHeight}:e.labelBounds},fill:function(){return"buttons"===t._buttonBehaviorCurrent?ds.light:ds.dark},height:function(e){return"buttons"===t._buttonBehaviorCurrent?t._buttonHeight:e.tick?10:0},width:function(e){return"buttons"===t._buttonBehaviorCurrent?t._ticksWidth/t._availableTicks.length:e.tick?t._domain.map((function(t){return Sf(t).getTime()})).includes(e.id)?2:1:0},y:function(e){return"buttons"===t._buttonBehaviorCurrent?"middle"===t._align?t._height/2:"start"===t._align?t._margin.top+t._buttonHeight/2:t._height-t._buttonHeight/2-t._margin.bottom:e.y}}),t._snapping=!0,t}return e=o,n=[{key:"_brushBrush",value:function(t){if(t.sourceEvent&&t.sourceEvent.offsetX&&null!==t.selection&&(!this._brushing||this._snapping)){var e=this._updateDomain(t);this._brushGroup.call(this._brush.move,this._updateBrushLimit(e))}this._brushStyle(),this._on.brush&&this._on.brush(this._selection)}},{key:"_brushEnd",value:function(t){if(t.sourceEvent){var e=this._updateDomain(t);this._brushStyle(),!this._brushing&&this._snapping||this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(e)),this._on.end&&this._on.end(this._selection)}}},{key:"_brushStart",value:function(t){if(null!==t.sourceEvent&&(!this._brushing||this._snapping)){var e=this._updateDomain(t);this._brushGroup.call(this._brush.move,this._updateBrushLimit(e))}this._brushStyle(),this._on.start&&this._on.start(t)}},{key:"_brushStyle",value:function(){var t=this._position.height,e="Circle"===this._shape?"function"==typeof this._shapeConfig.r?2*this._shapeConfig.r({tick:!0}):this._shapeConfig.r:"Rect"===this._shape?"function"==typeof this._shapeConfig[t]?this._shapeConfig[t]({tick:!0}):this._shapeConfig[t]:this._tickSize,n=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer"),i=this._brushGroup.selectAll(".selection").call(Ta,this._selectionConfig).attr("height",e),r=this._brushGroup.selectAll(".handle").call(Ta,this._handleConfig).attr("height","buttons"===this._buttonBehaviorCurrent?this._buttonHeight:e+this._handleSize);if("buttons"===this._buttonBehaviorCurrent){var o="middle"===this._align?this._height/2-this._buttonHeight/2:"start"===this._align?this._margin.top:this._height-this._buttonHeight-this._margin.bottom;r.attr("y",o),n.attr("x",this._marginLeft).attr("width",this._ticksWidth),i.attr("y",o)}}},{key:"_updateDomain",value:function(t){var e=vo(t,this._select.node())[0],n=t.selection&&this._brushing?t.selection:[e,e];if("ticks"===this._buttonBehaviorCurrent&&(n=n.map(this._d3Scale.invert)),n=n.map(Number),"brush"===t.type&&this._brushing&&"buttons"===this._buttonBehaviorCurrent){var i=t.selection.map((function(e){return Math.abs(e-t.sourceEvent.offsetX)}));n=i[1]<=i[0]?[t.selection[0],t.sourceEvent.offsetX].sort((function(t,e){return t-e})):[t.sourceEvent.offsetX,t.selection[1]].sort((function(t,e){return t-e}))}var r="ticks"===this._buttonBehaviorCurrent?this._availableTicks.map(Number):this._d3Scale.range();if("ticks"===this._buttonBehaviorCurrent){var o=Sf(Ka(n[0],r)),a=r.indexOf(+o),s=Sf(Ka(n[1],r)),u=r.indexOf(+s),l=Math.abs(u-a),c=this._brushMin()-1;l<c&&(s=r[u=E([r.length-1,u+(c-l)])],(l=Math.abs(u-a))<c&&(o=r[a=C([0,a-(c-l)])])),n[0]=o,n[1]=s}else n[0]=Ka(n[0],r),n[1]=Ka(n[1],r);var h=+n[0]==+n[1];return"brush"!==t.type&&"end"!==t.type||(this._selection="ticks"===this._buttonBehaviorCurrent?h?n[0]:n:h?Sf(this._availableTicks[r.indexOf(n[0])]):[Sf(this._availableTicks[r.indexOf(n[0])]),Sf(this._availableTicks[r.indexOf(n[1])])]),n}},{key:"_updateBrushLimit",value:function(t){var e="ticks"===this._buttonBehaviorCurrent?t.map(Sf).map(this._d3Scale):t;if(e[0]===e[1]&&(e[0]-=.1,e[1]+=.1),"buttons"===this._buttonBehaviorCurrent){var n=.5*(this._ticksWidth/this._availableTicks.length-this._handleSize);e[0]-=n,e[1]+=n}return e}},{key:"render",value:function(t){var e=this,n=this._position,i=n.height,r=n.y;if(this._buttonBehaviorCurrent="auto"===this._buttonBehavior?this._ticksWidth<this._width?"buttons":"ticks":this._buttonBehavior,"buttons"===this._buttonBehaviorCurrent){var a=this._ticks?this._ticks.map(Sf):this._domain.map(Sf),s=Xi().domain(a).range([0,this._width]);a=this._ticks?a:s.ticks();var u=0;a.forEach((function(t,n){var i=e._shapeConfig.labelConfig.fontFamily(t,n),r=e._shapeConfig.labelConfig.fontSize(t,n),o=fc().fontFamily(i).fontSize(r).lineHeight(e._shapeConfig.lineHeight?e._shapeConfig.lineHeight(t,n):void 0)(s.tickFormat(a.length-1,e._tickSpecifier)(t)),l=o.lines.length?Math.ceil(C(o.lines.map((function(t){return Ul(t,{"font-family":i,"font-size":r})}))))+r/4:0;l%2&&l++,u<l&&(u=l+2*e._buttonPadding)})),this._ticksWidth=u*a.length,this._scale="ordinal",this._labelRotation=0,this._brushing||(this._handleSize=0),this._tickFormat||(this._tickFormat=s.tickFormat(a.length-1,this._tickSpecifier));var l=Xi().domain(this._domain.map(Sf)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(Sf):Array.from(Array(l[l.length-1]-l[0]+1),(function(t,e){return l[0]+e})).map(Sf),this._ticks=this._domain;var c=.5*this._ticksWidth/this._ticks.length;this._marginLeft="middle"===this._buttonAlign?(this._width-this._ticksWidth)/2:"end"===this._buttonAlign?this._width-this._ticksWidth:0;var h="middle"===this._buttonAlign?(this._width+this._ticksWidth)/2:"start"===this._buttonAlign?this._ticksWidth:void 0;this._range=["start"===this._buttonAlign?void 0:this._marginLeft+c,"end"===this._buttonAlign?void 0:h-c]}this._ticks&&(this._domain="ticks"===this._buttonBehaviorCurrent?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(Sf)),this._labels=this._ticks,uE(hE(o.prototype),"render",this).call(this,t);var f=this._outerBounds[r],d=this._d3Scale.range(),g=this._brush=RC(pC).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)),p="ticks"===this._buttonBehaviorCurrent?this._availableTicks:d,v=[this._brushMin()>p.length?p[0]:p[p.length-this._brushMin()],p[p.length-1]],y=void 0===this._selection?v:this._selection instanceof Array?"buttons"===this._buttonBehaviorCurrent?this._selection.map((function(t){return d[e._ticks.map(Number).indexOf(+t)]})).slice():this._selection.slice():"buttons"===this._buttonBehaviorCurrent?[d[this._ticks.map(Number).indexOf(+this._selection)],d[this._ticks.map(Number).indexOf(+this._selection)]]:[this._selection,this._selection];return this._updateBrushLimit(y),this._brushGroup=$a("g.brushGroup",{parent:this._group}),this._brushGroup.call(g).transition(this._transition).call(g.move,"ticks"===this._buttonBehaviorCurrent?this._updateBrushLimit(y):y),this._outerBounds.y-=this._handleSize/2,this._outerBounds.height+=this._handleSize/2,this}},{key:"buttonPadding",value:function(t){return arguments.length?(this._buttonPadding=t,this):this._buttonPadding}},{key:"brushing",value:function(t){return arguments.length?(this._brushing=t,this):this._brushing}},{key:"brushFilter",value:function(t){return arguments.length?(this._brushFilter=t,this):this._brushFilter}},{key:"brushMin",value:function(t){return arguments.length?(this._brushMin="function"==typeof t?t:Za(t),this):this._brushMin}},{key:"buttonAlign",value:function(t){return arguments.length?(this._buttonAlign=t,this):this._buttonAlign}},{key:"buttonBehavior",value:function(t){return arguments.length?(this._buttonBehavior=t,this):this._buttonBehavior}},{key:"buttonHeight",value:function(t){return arguments.length?(this._buttonHeight=t,this):this._buttonHeight}},{key:"handleConfig",value:function(t){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,t),this):this._handleConfig}},{key:"handleSize",value:function(t){return arguments.length?(this._handleSize=t,this):this._handleSize}},{key:"on",value:function(t,e){return 2===arguments.length?(this._on[t]=e,this):arguments.length?"string"==typeof t?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"selectionConfig",value:function(t){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,t),this):this._selectionConfig}},{key:"selection",value:function(t){return arguments.length?(this._selection=t,this):this._selection}},{key:"snapping",value:function(t){return arguments.length?(this._snapping=t,this):this._snapping}}],n&&sE(e.prototype,n),i&&sE(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(zf);function dE(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function gE(t){return t instanceof dE(t).Element||t instanceof Element}function pE(t){return t instanceof dE(t).HTMLElement||t instanceof HTMLElement}function vE(t){return"undefined"!=typeof ShadowRoot&&(t instanceof dE(t).ShadowRoot||t instanceof ShadowRoot)}var yE=Math.max,mE=Math.min,_E=Math.round;function bE(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function wE(){return!/^((?!chrome|android).)*safari/i.test(bE())}function xE(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),r=1,o=1;e&&pE(t)&&(r=t.offsetWidth>0&&_E(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&_E(i.height)/t.offsetHeight||1);var a=(gE(t)?dE(t):window).visualViewport,s=!wE()&&n,u=(i.left+(s&&a?a.offsetLeft:0))/r,l=(i.top+(s&&a?a.offsetTop:0))/o,c=i.width/r,h=i.height/o;return{width:c,height:h,top:l,right:u+c,bottom:l+h,left:u,x:u,y:l}}function kE(t){var e=dE(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function SE(t){return t?(t.nodeName||"").toLowerCase():null}function CE(t){return((gE(t)?t.ownerDocument:t.document)||window.document).documentElement}function EE(t){return xE(CE(t)).left+kE(t).scrollLeft}function AE(t){return dE(t).getComputedStyle(t)}function RE(t){var e=AE(t),n=e.overflow,i=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function ME(t,e,n){void 0===n&&(n=!1);var i,r,o=pE(e),a=pE(e)&&function(t){var e=t.getBoundingClientRect(),n=_E(e.width)/t.offsetWidth||1,i=_E(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),s=CE(e),u=xE(t,a,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==SE(e)||RE(s))&&(l=(i=e)!==dE(i)&&pE(i)?{scrollLeft:(r=i).scrollLeft,scrollTop:r.scrollTop}:kE(i)),pE(e)?((c=xE(e,!0)).x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=EE(s))),{x:u.left+l.scrollLeft-c.x,y:u.top+l.scrollTop-c.y,width:u.width,height:u.height}}function OE(t){var e=xE(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function TE(t){return"html"===SE(t)?t:t.assignedSlot||t.parentNode||(vE(t)?t.host:null)||CE(t)}function PE(t){return["html","body","#document"].indexOf(SE(t))>=0?t.ownerDocument.body:pE(t)&&RE(t)?t:PE(TE(t))}function BE(t,e){var n;void 0===e&&(e=[]);var i=PE(t),r=i===(null==(n=t.ownerDocument)?void 0:n.body),o=dE(i),a=r?[o].concat(o.visualViewport||[],RE(i)?i:[]):i,s=e.concat(a);return r?s:s.concat(BE(TE(a)))}function DE(t){return["table","td","th"].indexOf(SE(t))>=0}function NE(t){return pE(t)&&"fixed"!==AE(t).position?t.offsetParent:null}function zE(t){for(var e=dE(t),n=NE(t);n&&DE(n)&&"static"===AE(n).position;)n=NE(n);return n&&("html"===SE(n)||"body"===SE(n)&&"static"===AE(n).position)?e:n||function(t){var e=/firefox/i.test(bE());if(/Trident/i.test(bE())&&pE(t)&&"fixed"===AE(t).position)return null;var n=TE(t);for(vE(n)&&(n=n.host);pE(n)&&["html","body"].indexOf(SE(n))<0;){var i=AE(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var jE="top",FE="bottom",LE="right",IE="left",HE="auto",GE=[jE,FE,LE,IE],VE="start",UE="end",WE="clippingParents",qE="viewport",KE="popper",YE="reference",XE=GE.reduce((function(t,e){return t.concat([e+"-"+VE,e+"-"+UE])}),[]),ZE=[].concat(GE,[HE]).reduce((function(t,e){return t.concat([e,e+"-"+VE,e+"-"+UE])}),[]),$E=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function JE(t){var e=new Map,n=new Set,i=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&r(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),i}function QE(t){return t.split("-")[0]}function tA(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&vE(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function eA(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function nA(t,e,n){return e===qE?eA(function(t,e){var n=dE(t),i=CE(t),r=n.visualViewport,o=i.clientWidth,a=i.clientHeight,s=0,u=0;if(r){o=r.width,a=r.height;var l=wE();(l||!l&&"fixed"===e)&&(s=r.offsetLeft,u=r.offsetTop)}return{width:o,height:a,x:s+EE(t),y:u}}(t,n)):gE(e)?function(t,e){var n=xE(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):eA(function(t){var e,n=CE(t),i=kE(t),r=null==(e=t.ownerDocument)?void 0:e.body,o=yE(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=yE(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+EE(t),u=-i.scrollTop;return"rtl"===AE(r||n).direction&&(s+=yE(n.clientWidth,r?r.clientWidth:0)-o),{width:o,height:a,x:s,y:u}}(CE(t)))}function iA(t,e,n,i){var r="clippingParents"===e?function(t){var e=BE(TE(t)),n=["absolute","fixed"].indexOf(AE(t).position)>=0&&pE(t)?zE(t):t;return gE(n)?e.filter((function(t){return gE(t)&&tA(t,n)&&"body"!==SE(t)})):[]}(t):[].concat(e),o=[].concat(r,[n]),a=o[0],s=o.reduce((function(e,n){var r=nA(t,n,i);return e.top=yE(r.top,e.top),e.right=mE(r.right,e.right),e.bottom=mE(r.bottom,e.bottom),e.left=yE(r.left,e.left),e}),nA(t,a,i));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function rA(t){return t.split("-")[1]}function oA(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function aA(t){var e,n=t.reference,i=t.element,r=t.placement,o=r?QE(r):null,a=r?rA(r):null,s=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2;switch(o){case jE:e={x:s,y:n.y-i.height};break;case FE:e={x:s,y:n.y+n.height};break;case LE:e={x:n.x+n.width,y:u};break;case IE:e={x:n.x-i.width,y:u};break;default:e={x:n.x,y:n.y}}var l=o?oA(o):null;if(null!=l){var c="y"===l?"height":"width";switch(a){case VE:e[l]=e[l]-(n[c]/2-i[c]/2);break;case UE:e[l]=e[l]+(n[c]/2-i[c]/2)}}return e}function sA(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function uA(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function lA(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=void 0===i?t.placement:i,o=n.strategy,a=void 0===o?t.strategy:o,s=n.boundary,u=void 0===s?WE:s,l=n.rootBoundary,c=void 0===l?qE:l,h=n.elementContext,f=void 0===h?KE:h,d=n.altBoundary,g=void 0!==d&&d,p=n.padding,v=void 0===p?0:p,y=sA("number"!=typeof v?v:uA(v,GE)),m=f===KE?YE:KE,_=t.rects.popper,b=t.elements[g?m:f],w=iA(gE(b)?b:b.contextElement||CE(t.elements.popper),u,c,a),x=xE(t.elements.reference),k=aA({reference:x,element:_,strategy:"absolute",placement:r}),S=eA(Object.assign({},_,k)),C=f===KE?S:x,E={top:w.top-C.top+y.top,bottom:C.bottom-w.bottom+y.bottom,left:w.left-C.left+y.left,right:C.right-w.right+y.right},A=t.modifiersData.offset;if(f===KE&&A){var R=A[r];Object.keys(E).forEach((function(t){var e=[LE,FE].indexOf(t)>=0?1:-1,n=[jE,FE].indexOf(t)>=0?"y":"x";E[t]+=R[n]*e}))}return E}var cA={placement:"bottom",modifiers:[],strategy:"absolute"};function hA(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function fA(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,r=e.defaultOptions,o=void 0===r?cA:r;return function(t,e,n){void 0===n&&(n=o);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},cA,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},u=[],l=!1,c={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;h(),s.options=Object.assign({},o,s.options,r),s.scrollParents={reference:gE(t)?BE(t):t.contextElement?BE(t.contextElement):[],popper:BE(e)};var a,l,f=function(t){var e=JE(t);return $E.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(i,s.options.modifiers),l=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(l).map((function(t){return l[t]}))));return s.orderedModifiers=f.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,r=t.effect;if("function"==typeof r){var o=r({state:s,name:e,instance:c,options:i}),a=function(){};u.push(o||a)}})),c.update()},forceUpdate:function(){if(!l){var t=s.elements,e=t.reference,n=t.popper;if(hA(e,n)){s.rects={reference:ME(e,zE(n),"fixed"===s.options.strategy),popper:OE(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var r=s.orderedModifiers[i],o=r.fn,a=r.options,u=void 0===a?{}:a,h=r.name;"function"==typeof o&&(s=o({state:s,options:u,name:h,instance:c})||s)}else s.reset=!1,i=-1}}},update:(r=function(){return new Promise((function(t){c.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){h(),l=!0}};if(!hA(t,e))return c;function h(){u.forEach((function(t){return t()})),u=[]}return c.setOptions(n).then((function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)})),c}}var dA={passive:!0};var gA={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pA(t){var e,n=t.popper,i=t.popperRect,r=t.placement,o=t.variation,a=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,h=t.isFixed,f=a.x,d=void 0===f?0:f,g=a.y,p=void 0===g?0:g,v="function"==typeof c?c({x:d,y:p}):{x:d,y:p};d=v.x,p=v.y;var y=a.hasOwnProperty("x"),m=a.hasOwnProperty("y"),_=IE,b=jE,w=window;if(l){var x=zE(n),k="clientHeight",S="clientWidth";if(x===dE(n)&&"static"!==AE(x=CE(n)).position&&"absolute"===s&&(k="scrollHeight",S="scrollWidth"),r===jE||(r===IE||r===LE)&&o===UE)b=FE,p-=(h&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-i.height,p*=u?1:-1;if(r===IE||(r===jE||r===FE)&&o===UE)_=LE,d-=(h&&x===w&&w.visualViewport?w.visualViewport.width:x[S])-i.width,d*=u?1:-1}var C,E=Object.assign({position:s},l&&gA),A=!0===c?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:_E(e*i)/i||0,y:_E(n*i)/i||0}}({x:d,y:p}):{x:d,y:p};return d=A.x,p=A.y,u?Object.assign({},E,((C={})[b]=m?"0":"",C[_]=y?"0":"",C.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+p+"px)":"translate3d("+d+"px, "+p+"px, 0)",C)):Object.assign({},E,((e={})[b]=m?p+"px":"",e[_]=y?d+"px":"",e.transform="",e))}var vA={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},r=e.elements[t];pE(r)&&SE(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],r=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});pE(i)&&SE(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};var yA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.offset,o=void 0===r?[0,0]:r,a=ZE.reduce((function(t,n){return t[n]=function(t,e,n){var i=QE(t),r=[IE,jE].indexOf(i)>=0?-1:1,o="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*r,[IE,LE].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,o),t}),{}),s=a[e.placement],u=s.x,l=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=a}},mA={left:"right",right:"left",bottom:"top",top:"bottom"};function _A(t){return t.replace(/left|right|bottom|top/g,(function(t){return mA[t]}))}var bA={start:"end",end:"start"};function wA(t){return t.replace(/start|end/g,(function(t){return bA[t]}))}function xA(t,e){void 0===e&&(e={});var n=e,i=n.placement,r=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,l=void 0===u?ZE:u,c=rA(i),h=c?s?XE:XE.filter((function(t){return rA(t)===c})):GE,f=h.filter((function(t){return l.indexOf(t)>=0}));0===f.length&&(f=h);var d=f.reduce((function(e,n){return e[n]=lA(t,{placement:n,boundary:r,rootBoundary:o,padding:a})[QE(n)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}var kA={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0===a||a,u=n.fallbackPlacements,l=n.padding,c=n.boundary,h=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,g=void 0===d||d,p=n.allowedAutoPlacements,v=e.options.placement,y=QE(v),m=u||(y===v||!g?[_A(v)]:function(t){if(QE(t)===HE)return[];var e=_A(t);return[wA(t),e,wA(e)]}(v)),_=[v].concat(m).reduce((function(t,n){return t.concat(QE(n)===HE?xA(e,{placement:n,boundary:c,rootBoundary:h,padding:l,flipVariations:g,allowedAutoPlacements:p}):n)}),[]),b=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,S=_[0],C=0;C<_.length;C++){var E=_[C],A=QE(E),R=rA(E)===VE,M=[jE,FE].indexOf(A)>=0,O=M?"width":"height",T=lA(e,{placement:E,boundary:c,rootBoundary:h,altBoundary:f,padding:l}),P=M?R?LE:IE:R?FE:jE;b[O]>w[O]&&(P=_A(P));var B=_A(P),D=[];if(o&&D.push(T[A]<=0),s&&D.push(T[P]<=0,T[B]<=0),D.every((function(t){return t}))){S=E,k=!1;break}x.set(E,D)}if(k)for(var N=function(t){var e=_.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return S=e,"break"},z=g?3:1;z>0;z--){if("break"===N(z))break}e.placement!==S&&(e.modifiersData[i]._skip=!0,e.placement=S,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function SA(t,e,n){return yE(t,mE(e,n))}var CA={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,r=n.mainAxis,o=void 0===r||r,a=n.altAxis,s=void 0!==a&&a,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,h=n.padding,f=n.tether,d=void 0===f||f,g=n.tetherOffset,p=void 0===g?0:g,v=lA(e,{boundary:u,rootBoundary:l,padding:h,altBoundary:c}),y=QE(e.placement),m=rA(e.placement),_=!m,b=oA(y),w="x"===b?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,S=e.rects.popper,C="function"==typeof p?p(Object.assign({},e.rects,{placement:e.placement})):p,E="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,R={x:0,y:0};if(x){if(o){var M,O="y"===b?jE:IE,T="y"===b?FE:LE,P="y"===b?"height":"width",B=x[b],D=B+v[O],N=B-v[T],z=d?-S[P]/2:0,j=m===VE?k[P]:S[P],F=m===VE?-S[P]:-k[P],L=e.elements.arrow,I=d&&L?OE(L):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=H[O],V=H[T],U=SA(0,k[P],I[P]),W=_?k[P]/2-z-U-G-E.mainAxis:j-U-G-E.mainAxis,q=_?-k[P]/2+z+U+V+E.mainAxis:F+U+V+E.mainAxis,K=e.elements.arrow&&zE(e.elements.arrow),Y=K?"y"===b?K.clientTop||0:K.clientLeft||0:0,X=null!=(M=null==A?void 0:A[b])?M:0,Z=B+q-X,$=SA(d?mE(D,B+W-X-Y):D,B,d?yE(N,Z):N);x[b]=$,R[b]=$-B}if(s){var J,Q="x"===b?jE:IE,tt="x"===b?FE:LE,et=x[w],nt="y"===w?"height":"width",it=et+v[Q],rt=et-v[tt],ot=-1!==[jE,IE].indexOf(y),at=null!=(J=null==A?void 0:A[w])?J:0,st=ot?it:et-k[nt]-S[nt]-at+E.altAxis,ut=ot?et+k[nt]+S[nt]-at-E.altAxis:rt,lt=d&&ot?function(t,e,n){var i=SA(t,e,n);return i>n?n:i}(st,et,ut):SA(d?st:it,et,d?ut:rt);x[w]=lt,R[w]=lt-et}e.modifiersData[i]=R}},requiresIfExists:["offset"]};var EA={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,r=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=QE(n.placement),u=oA(s),l=[IE,LE].indexOf(s)>=0?"height":"width";if(o&&a){var c=function(t,e){return sA("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:uA(t,GE))}(r.padding,n),h=OE(o),f="y"===u?jE:IE,d="y"===u?FE:LE,g=n.rects.reference[l]+n.rects.reference[u]-a[u]-n.rects.popper[l],p=a[u]-n.rects.reference[u],v=zE(o),y=v?"y"===u?v.clientHeight||0:v.clientWidth||0:0,m=g/2-p/2,_=c[f],b=y-h[l]-c[d],w=y/2-h[l]/2+m,x=SA(_,w,b),k=u;n.modifiersData[i]=((e={})[k]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&tA(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function AA(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function RA(t){return[jE,LE,FE,IE].some((function(e){return t[e]>=0}))}var MA=fA({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,r=i.scroll,o=void 0===r||r,a=i.resize,s=void 0===a||a,u=dE(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&l.forEach((function(t){t.addEventListener("scroll",n.update,dA)})),s&&u.addEventListener("resize",n.update,dA),function(){o&&l.forEach((function(t){t.removeEventListener("scroll",n.update,dA)})),s&&u.removeEventListener("resize",n.update,dA)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=aA({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,r=void 0===i||i,o=n.adaptive,a=void 0===o||o,s=n.roundOffsets,u=void 0===s||s,l={placement:QE(e.placement),variation:rA(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,pA(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:u})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,pA(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},vA,yA,kA,CA,EA,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,r=e.rects.popper,o=e.modifiersData.preventOverflow,a=lA(e,{elementContext:"reference"}),s=lA(e,{altBoundary:!0}),u=AA(a,i),l=AA(s,r,o),c=RA(u),h=RA(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}}]});function OA(t){return OA="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OA(t)}function TA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function PA(t,e){return PA=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},PA(t,e)}function BA(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=DA(t);if(e){var r=DA(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===OA(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function DA(t){return DA=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},DA(t)}function NA(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[0,0];return function(){return{width:0,height:0,top:t[1],right:t[0],bottom:t[1],left:t[0]}}}var zA=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&PA(t,e)}(o,t);var e,n,i,r=BA(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._arrow=Aa("arrow",""),t._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"},t._background=Za(ds.light),t._body=Aa("body",""),t._bodyStyle={color:ds.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"},t._border=Za("1px solid rgba(0, 0, 0, 0.1)"),t._borderRadius=Za("2px"),t._className="d3plus-tooltip",t._data=[],t._footer=Aa("footer",""),t._footerStyle={color:ds.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","margin-top":"5px","z-index":"1"},t._height=Za("auto"),t._id=function(t,e){return"".concat(e)},t._offset=Za(5),t._padding=Za("10px"),t._pointerEvents=Za("auto"),t._popperClasses={},t._position=function(t){return[t.x,t.y]},t._prefix=hs(),t._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"},t._tbody=[],t._tbodyStyle={color:ds.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"},t._thead=[],t._theadStyle={color:ds.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"},t._title=Aa("title",""),t._titleStyle={color:ds.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"16px","font-weight":"600","margin-bottom":"5px"},t._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"},t._tdStyle={},t._width=Za("auto"),t}return e=o,n=[{key:"render",value:function(t){var e=this,n=this,i=po("body").selectAll(".".concat(this._className)).data(this._data,this._id),r=i.enter().append("div").attr("class",this._className),o=i.merge(r);function a(t){r.append("div").attr("class","d3plus-tooltip-".concat(t)).attr("id",(function(e,i){return"d3plus-tooltip-".concat(t,"-").concat(e?n._id(e,i):"")})),fs(o.select(".d3plus-tooltip-".concat(t)).html((function(e,i){return n["_".concat(t)](e,i)})).style("display",(function(e,i){var r=n["_".concat(t)](e,i);return!1!==r&&null!=r?"block":"none"})),n["_".concat(t,"Style")])}function s(t){if("function"==typeof t){var e=po(this.parentNode.parentNode).datum();return t(e,n._data.indexOf(e))}return t}function u(t){t.style("background",n._background).style("".concat(n._prefix,"border-radius"),n._borderRadius).style("pointer-events",n._pointerEvents).style("padding",n._padding).style("width",n._width).style("height",n._height).style("border",(function(t,e){var i=po(this).style("border");return"0px none rgb(0, 0, 0)"!==i?i:n._border(t,e)}))}a("title"),a("body");var l=r.append("table").attr("class","d3plus-tooltip-table");fs(o.select(".d3plus-tooltip-table"),this._tableStyle),l.append("thead").attr("class","d3plus-tooltip-thead");var c=o.select(".d3plus-tooltip-thead");fs(c,this._theadStyle);var h=c.selectAll("tr").data([0]),f=h.enter().append("tr");h.exit().remove();var d=h.merge(f);fs(d,this._trStyle);var g=d.selectAll("th").data(this._thead);g.enter().append("th").merge(g).html(s),g.exit().remove(),l.append("tbody").attr("class","d3plus-tooltip-tbody");var p=o.select(".d3plus-tooltip-tbody");fs(p,this._tbodyStyle);var v=p.selectAll("tr").data(this._tbody),y=v.enter().append("tr");v.exit().remove();var m=v.merge(y);fs(m,this._trStyle);var _=m.selectAll("td").data((function(t){return t}));return _.enter().append("td").merge(_).html(s),fs(_,this._tdStyle),a("footer"),a("arrow"),r.attr("id",(function(t,n){return"d3plus-tooltip-".concat(t?e._id(t,n):"")})).call(u).each((function(t,i){var r=n._id(t,i),o=document.getElementById("d3plus-tooltip-".concat(r)),a=document.getElementById("d3plus-tooltip-arrow-".concat(r)),s=a.offsetHeight,u=a.getBoundingClientRect().height/2;a.style.bottom="-".concat(s/2,"px");var l=n._position(t,i),c=Array.isArray(l)?{getBoundingClientRect:NA(l)}:l;e._popperClasses[r]=MA(c,o,{placement:"top",placements:["top","bottom"],modifiers:[{name:"arrow",options:{element:a}},{name:"offset",options:{offset:[0,n._offset(t,i)+u]}},{name:"preventOverflow",options:{boundary:"scrollParent",padding:5}},{name:"flip",options:{behavior:"flip",boundary:"viewport",padding:5}},{name:"update",enabled:!0,phase:"afterWrite",fn:function(t){var e=t.state,n=e.elements.arrow,i=e.styles.arrow;e.modifiersData.flip._skip?(n.style.transform="".concat(i.transform,"rotate(225deg)"),n.style.top="-".concat(s/2,"px")):(n.style.transform="".concat(i.transform,"rotate(45deg)"),n.style.bottom="-".concat(s/2,"px"))}}],removeOnDestroy:!0})})),o.each((function(t,i){var r=n._id(t,i),o=n._position(t,i),a=e._popperClasses[r];a&&(a.state.elements.reference.getBoundingClientRect=Array.isArray(o)?NA(o):o,a.update())})).call(u),i.exit().each((function(t,i){var r=n._id(t,i),o=e._popperClasses[r];o&&(o.destroy(),delete e._popperClasses[r])})).remove(),t&&setTimeout(t,100),this}},{key:"arrow",value:function(t){return arguments.length?(this._arrow="function"==typeof t?t:Za(t),this):this._arrow}},{key:"arrowStyle",value:function(t){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,t),this):this._arrowStyle}},{key:"background",value:function(t){return arguments.length?(this._background="function"==typeof t?t:Za(t),this):this._background}},{key:"body",value:function(t){return arguments.length?(this._body="function"==typeof t?t:Za(t),this):this._body}},{key:"bodyStyle",value:function(t){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,t),this):this._bodyStyle}},{key:"border",value:function(t){return arguments.length?(this._border="function"==typeof t?t:Za(t),this):this._border}},{key:"borderRadius",value:function(t){return arguments.length?(this._borderRadius="function"==typeof t?t:Za(t),this):this._borderRadius}},{key:"className",value:function(t){return arguments.length?(this._className=t,this):this._className}},{key:"data",value:function(t){return arguments.length?(this._data=t,this):this._data}},{key:"footer",value:function(t){return arguments.length?(this._footer="function"==typeof t?t:Za(t),this):this._footer}},{key:"footerStyle",value:function(t){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,t),this):this._footerStyle}},{key:"height",value:function(t){return arguments.length?(this._height="function"==typeof t?t:Za(t),this):this._height}},{key:"id",value:function(t){return arguments.length?(this._id="function"==typeof t?t:Za(t),this):this._id}},{key:"offset",value:function(t){return arguments.length?(this._offset="function"==typeof t?t:Za(t),this):this._offset}},{key:"padding",value:function(t){return arguments.length?(this._padding="function"==typeof t?t:Za(t),this):this._padding}},{key:"pointerEvents",value:function(t){return arguments.length?(this._pointerEvents="function"==typeof t?t:Za(t),this):this._pointerEvents}},{key:"position",value:function(t){return arguments.length?(this._position="string"==typeof t?Za(po(t).node()||[0,0]):"function"==typeof t?t:Za(t),this):this._position}},{key:"tableStyle",value:function(t){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,t),this):this._tableStyle}},{key:"tbody",value:function(t){return arguments.length?(this._tbody=t,this):this._tbody}},{key:"tbodyStyle",value:function(t){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,t),this):this._tbodyStyle}},{key:"thead",value:function(t){return arguments.length?(this._thead=t,this):this._thead}},{key:"theadStyle",value:function(t){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,t),this):this._theadStyle}},{key:"title",value:function(t){return arguments.length?(this._title="function"==typeof t?t:Za(t),this):this._title}},{key:"titleStyle",value:function(t){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,t),this):this._titleStyle}},{key:"trStyle",value:function(t){return arguments.length?(this._trStyle=Object.assign(this._trStyle,t),this):this._trStyle}},{key:"tdStyle",value:function(t){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,t),this):this._tdStyle}},{key:"width",value:function(t){return arguments.length?(this._width="function"==typeof t?t:Za(t),this):this._width}}],n&&TA(e.prototype,n),i&&TA(e,i),o}(qa);function jA(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var FA=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._isVisible=!1}var e,n,i;return e=t,n=[{key:"exit",value:function(t,e){t.transition().duration(e).style("opacity",0).transition().remove(),this._isVisible=!1}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.duration,n=void 0===e?600:e,i=t.callback;return this.mask.call(this.exit.bind(this),n),this.elem.call(this.exit.bind(this),n),i&&setTimeout(i,n+100),this._isVisible=!1,this}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.callback,n=t.container,i=void 0===n?"body":n,r=t.duration,o=void 0===r?600:r,a=t.html,s=void 0===a?"Please Wait":a,u=t.mask,l=void 0===u?"rgba(0, 0, 0, 0.05)":u,c=t.style,h=void 0===c?{}:c,f=po(i);return this.mask=f.selectAll("div.d3plus-Mask").data(l?[l]:[]),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),fs(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"}),this.elem=f.selectAll("div.d3plus-Message").data([s]),this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String),fs(this.elem,h),e&&setTimeout(e,100),this._isVisible=!0,this}}],n&&jA(e.prototype,n),i&&jA(e,i),Object.defineProperty(e,"prototype",{writable:!1}),t}();function LA(){var t=this._history.length,e=$a("g.d3plus-viz-back",{parent:this._select,duration:this._duration,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(t?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(e).config(this._backConfig).render(),this._margin.top+=t?this._backClass.fontSize()()+2*this._backClass.padding()():0}function IA(){var t=this,e=this._data,n=this._colorScalePosition.bind(this)(this.config());[!1,"top","bottom","left","right"].includes(n)||(n="bottom");var i=["top","bottom"].includes(n),r=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0},o=this._width-(this._margin.left+this._margin.right+r.left+r.right),a=i?E([this._colorScaleMaxSize,o]):this._width-(this._margin.left+this._margin.right),s=this._height-(this._margin.bottom+this._margin.top+r.bottom+r.top),u=i?this._height-(this._margin.bottom+this._margin.top):E([this._colorScaleMaxSize,s]),l={opacity:n?1:0,transform:"translate(".concat(i?this._margin.left+r.left+(o-a)/2:this._margin.left,", ").concat(i?this._margin.top:this._margin.top+r.top+(s-u)/2,")")},c=this._colorScale&&e&&e.length>1,h=$a("g.d3plus-viz-colorScale",{condition:c&&!this._colorScaleConfig.select,enter:l,parent:this._select,duration:this._duration,update:l}).node();if(c){var f=e.filter((function(e,n){var i=t._colorScale(e,n);return null!=i}));this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[n]||"bottom").duration(this._duration).data(f).height(u).locale(this._locale).orient(n).select(h).value(this._colorScale).width(a).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();n&&!this._colorScaleConfig.select&&d.height&&(this._margin[n]+=i?d.height+2*this._legendClass.padding():d.width+2*this._legendClass.padding())}else this._colorScaleClass.config(this._colorScaleConfig)}function HA(t,e){return this._drawLabel(t,e,this._legendDepth)}function GA(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[],i=function(e,n){var i=t._shape(e,n),r="Line"===i?"stroke":"fill",o=t._shapeConfig[i]&&t._shapeConfig[i][r]?t._shapeConfig[i][r]:t._shapeConfig[r];return"function"==typeof o?o.bind(t)(e,n):o},r=function(e,n){var i=t._shape(e,n),r=t._shapeConfig[i]&&t._shapeConfig[i].opacity?t._shapeConfig[i].opacity:t._shapeConfig.opacity;return"function"==typeof r?r.bind(t)(e,n):r},o=function(t,e){return"".concat(i(t,e),"_").concat(r(t,e))};y(this._colorScale?e.filter((function(e,n){return void 0===t._colorScale(e,n)})):e,(function(e){return n.push(ls(e,t._aggs))}),o),n.sort(this._legendSort);var a=n.map((function(e,n){return t._ids(e,n).slice(0,t._drawDepth+1)}));this._legendDepth=0;for(var s=function(e){var i=a.map((function(t){return t[e]}));if(!i.some((function(t){return t instanceof Array}))&&Array.from(new Set(i)).length===n.length)return t._legendDepth=e,"break"},u=0;u<=this._drawDepth;u++){if("break"===s(u))break}var l=function(e,n){var i=t._id(e,n);return i instanceof Array&&(i=i[0]),t._hidden.includes(i)||t._solo.length&&!t._solo.includes(i)},c=this._legendClass.outerBounds(),h=this.config(),f=this._legendPosition.bind(this)(h);[!1,"top","bottom","left","right"].includes(f)||(f="bottom");var d=["top","bottom"].includes(f),g=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0},p={transform:"translate(".concat(d?this._margin.left+g.left:this._margin.left,", ").concat(d?this._margin.top:this._margin.top+g.top,")")},v=this._legend.bind(this)(h,n),m=$a("g.d3plus-viz-legend",{condition:v&&!this._legendConfig.select,enter:p,parent:this._select,duration:this._duration,update:p}).node();this._legendClass.id(o).align(d?"center":f).direction(d?"row":"column").duration(this._duration).data(v?n:[]).height(d?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+g.bottom+g.top)).locale(this._locale).parent(this).select(m).verticalAlign(d?f:"middle").width(d?this._width-(this._margin.left+this._margin.right+g.left+g.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(Xa.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function(e,n){return l(e,n)?t._hiddenColor(e,n):i(e,n)},labelConfig:{fontOpacity:function(e,n){return l(e,n)?t._hiddenOpacity(e,n):1}},opacity:r}).config(this._legendConfig).render(),!this._legendConfig.select&&c.height&&(this._margin[f]+=d?c.height+2*this._legendClass.padding():c.width+2*this._legendClass.padding())}function VA(t){var e=this;t instanceof Array||(t=[t,t]),JSON.stringify(t)!==JSON.stringify(this._timelineSelection)&&(this._timelineSelection=t,t=t.map(Number),this.timeFilter((function(n){var i=Sf(e._time(n)).getTime();return i>=t[0]&&i<=t[1]})).render())}function UA(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=this._time&&this._timeline,i=n?us(this._data.map(this._time)).map(Sf):[];n=n&&i.length>1;var r=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0},o={transform:"translate(".concat(this._margin.left+r.left,", 0)")},a=$a("g.d3plus-viz-timeline",{condition:n,enter:o,parent:this._select,duration:this._duration,update:o}).node();if(n){var s=this._timelineClass.domain(h(i)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(a).ticks(i.sort((function(t,e){return+t-+e}))).width(this._width-(this._margin.left+this._margin.right+r.left+r.right)),u=h(e.map(this._time).map(Sf));this._timelineSelection?(this._timelineSelection[0]<u[0]&&(this._timelineSelection[0]=u[0]),this._timelineSelection[1]>u[1]&&(this._timelineSelection[1]=u[1])):this._timelineSelection=u,s.selection(this._timelineSelection);var l=this._timelineConfig;s.config(l).on("end",(function(e){VA.bind(t)(e),l.on&&l.on.end&&l.on.end(e)})).render(),this._margin.bottom+=s.outerBounds().height+2*s.padding()}}function WA(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=!!this._title&&this._title(t),n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0},i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")},r=$a("g.d3plus-viz-title",{enter:i,parent:this._select,duration:this._duration,update:i}).node();this._titleClass.data(e?[{text:e}]:[]).locale(this._locale).select(r).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render(),this._margin.top+=e?r.getBBox().height+2*this._titleConfig.padding:0}function qA(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e="function"==typeof this._total?N(t.map(this._total)):!(!0!==this._total||!this._size)&&N(t.map(this._size)),n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0},i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")},r=$a("g.d3plus-viz-total",{enter:i,parent:this._select,duration:this._duration,update:i}).node();this._totalClass.data(e?[{text:this._totalFormat(e)}]:[]).locale(this._locale).select(r).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render(),this._margin.top+=e?r.getBBox().height+2*this._totalConfig.padding:0}function KA(t,e){if(t){if(void 0===t.tagName||["BODY","HTML"].indexOf(t.tagName)>=0){var n=window["inner".concat(e.charAt(0).toUpperCase()+e.slice(1))],i=po(t);return"width"===e?(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)):(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)),n}var r=parseFloat(po(t).style(e),10);return"number"==typeof r&&r>0?r:KA(t.parentNode,e)}}function YA(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft,i=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,r=t.getBoundingClientRect(),o=r.height,a=r.left+n,s=r.top+i,u=r.width;return i+window.innerHeight>s+e&&i+e<s+o&&n+window.innerWidth>a+e&&n+e<a+u}function XA(t,e,n,i){if(i.stopPropagation(),this._drawDepth<this._groupBy.length-1){this._select.style("cursor","auto");var r=this._groupBy[this._drawDepth],o=r(t,e);this.hover(!1),this._tooltip(t,e)&&this._tooltipClass.data([]).render();var a=this._filter;this._history.push({depth:this._depth,filter:a}),this.config({depth:this._drawDepth+1,filter:function(t,e){return(!a||a(t,e))&&r(t,e)===o}}).render()}}function ZA(t,e,n,i){var r=this;this._select.style("cursor","auto"),this._tooltip(t,e)&&this._tooltipClass.data([]).render();var o=this._id(t,e);o instanceof Array||(o=[o]);var a=this._hidden.indexOf(o[0]),s=this._solo.indexOf(o[0]),u=B(this._legendClass.data().map((function(t,e){var n=r._id(t,e);return n instanceof Array||(n=[n]),n}))).length;this._legendFilterInvert.bind(this)()?i.shiftKey?a<0&&!this._solo.length?(this._hidden=this._hidden.concat(o),s>=0&&(this._solo=[]),this._hidden.length===u&&(this._hidden=[]),this.render()):s>=0&&(this._solo=[],this._hidden=[],this.render()):(s<0&&this._hidden.length<u-1?(this._solo=o,this._hidden=[]):(this._solo=[],this._hidden=[]),this.render()):i.shiftKey&&s<0?(this._solo=o,this._hidden=[],this.render()):i.shiftKey||(a>=0?this._hidden.splice(a,o.length):s>=0?(this._solo=[],this._hidden=[]):this._solo.length&&s<0?(this._solo=this._solo.concat(o),this._solo.length===u&&(this._solo=[])):(this._hidden=this._hidden.concat(o),this._hidden.length===u&&(this._hidden=[])),this.render())}var $A=function(t){return t.reduce((function(t,e){if(e instanceof Array)if(t.length){var n=t.slice();t=[],e.forEach((function(e){return t=t.concat(n.map((function(t){return"".concat(t,"_").concat(e)})))}))}else t=e.slice();else t.length?t=t.map((function(t){return"".concat(t,"_").concat(e)})):t.push(e);return t}),[])};function JA(t,e){var n=this;if(1!==this._shapeConfig.hoverOpacity){var i=$A(this._ids(t,e));this.hover((function(t,e){var r=$A(n._ids(t,e));return i.some((function(t){return r.includes(t)}))}))}}function QA(t,e){var n=this;setTimeout((function(){1!==n._shapeConfig.hoverOpacity&&n._hover&&!n._hover(t,e)||n.hover(!1);var i=n._tooltipClass.data();if(i.length&&n._tooltip(t,e)){for(var r=i[0];r.__d3plus__&&r.data;)r=r.data;n._id(r)===n._id(t)&&n._tooltipClass.data([]).render()}}),50),this._select.style("cursor","auto")}function tR(t,e,n,i){var r=this,o=i.touches?[i.touches[0].clientX,i.touches[0].clientY]:[i.clientX,i.clientY],a=B(this._legendClass.data().map((function(t,e){var n=r._id(t,e);return n instanceof Array||(n=[n]),n}))).length;if(t&&this._tooltip(t,e)){var s=this._id(t,e);s instanceof Array&&(s=s[0]);var u=this._translate,l=ZA.bind(this).toString(),c=Object.keys(this._on).some((function(t){return["click","click.legend"].includes(t)&&r._on[t]&&r._on[t].toString()!==l})),h=this._on["click.legend"]&&this._on["click.legend"].toString()===l,f=this._drawDepth<this._groupBy.length-1;this._select.style("cursor",c||h&&f?"pointer":"auto");var d=this._legendFilterInvert.bind(this)();this._tooltipClass.data([n||t]).footer(!!h&&(d?this._solo.length&&!this._solo.includes(s)||this._hidden.includes(s)?u("Click to Highlight"):1===this._solo.length&&this._solo.includes(s)||this._hidden.length===a-1?u("Click to Show All"):"".concat(u("Click to Highlight"),"<br />").concat(u("Shift+Click to Hide")):this._solo.length&&!this._solo.includes(s)||this._hidden.includes(s)?"".concat(u("Click to Show"),"<br />").concat(u("Shift+Click to Highlight")):1===this._solo.length&&this._solo.includes(s)||this._hidden.length===a-1?u("Click to Show All"):"".concat(u("Click to Hide"),"<br />").concat(u("Shift+Click to Highlight")))).title(this._legendConfig.label?this._legendClass.label():HA.bind(this)).position(o).config(Xa.bind(this)(this._tooltipConfig)).config(Xa.bind(this)(this._legendTooltip)).render()}}function eR(t,e,n,i){var r=this;if(t&&this._tooltip(t,e)){var o=XA.bind(this).toString(),a=Object.keys(this._on).some((function(t){return["click","click.shape"].includes(t)&&r._on[t]&&r._on[t].toString()!==o})),s=this._on["click.shape"]&&this._on["click.shape"].toString()===o,u=this._drawDepth<this._groupBy.length-1;this._select.style("cursor",a||s&&u?"pointer":"auto");var l=i.touches?[i.touches[0].clientX,i.touches[0].clientY]:[i.clientX,i.clientY];this._tooltipClass.data([n||t]).footer(!(!s||!u)&&this._translate("Click to Expand")).title(this._drawLabel).position(l).config(Xa.bind(this)(this._tooltipConfig)).render()}}function nR(){this._tooltipClass.data([]).render()}function iR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return rR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rR(t,e)}(t,e)||function(){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 rR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var oR=!1;function aR(){var t=this;if(this._container&&this._zoomGroup){var e=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,n=this,i=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[i,e]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[i,e]]).on("zoom",(function(e){return uR.bind(t)(e.transform)})),this._zoomToBounds=cR.bind(this);var r=po(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom?[0]:[]),o=r.enter().append("div").attr("class","d3plus-zoom-control");r.exit().remove(),r=r.merge(o).style("position","absolute").style("top","".concat(this._margin.top,"px")).style("left","".concat(this._margin.left,"px")),o.append("div").attr("class","zoom-control zoom-in"),r.select(".zoom-in").on("click",lR.bind(this,this._zoomFactor)).html("&#65291;"),o.append("div").attr("class","zoom-control zoom-out"),r.select(".zoom-out").on("click",lR.bind(this,1/this._zoomFactor)).html("&#65293;"),o.append("div").attr("class","zoom-control zoom-reset"),r.select(".zoom-reset").on("click",lR.bind(this,0)).html("&#8634"),o.append("div").attr("class","zoom-control zoom-brush"),r.select(".zoom-brush").on("click",(function(){po(this).classed("active",!oR).call(fs,oR?n._zoomControlStyle||{}:n._zoomControlStyleActive||{}),sR.bind(n)(!oR)})).html("&#164"),r.selectAll(".zoom-control").call(fs,n._zoomControlStyle).on("mouseenter",(function(){po(this).call(fs,n._zoomControlStyleHover||{})})).on("mouseleave",(function(){po(this).call(fs,po(this).classed("active")?n._zoomControlStyleActive||{}:n._zoomControlStyle||{})})),this._zoomBrush.extent([[0,0],[i,e]]).filter((function(t){return!t.button&&t.detail<2})).handleSize(this._zoomBrushHandleSize).on("start",dR.bind(this)).on("brush",hR.bind(this)).on("end",fR.bind(this));var a=this._container.selectAll("g.brush").data([0]);this._brushGroup=a.enter().append("g").attr("class","brush").merge(a).call(this._zoomBrush),sR.bind(this)(),this._renderTiles&&this._renderTiles(yp(this._container.node()),0)}}function sR(){(oR=arguments.length>0&&void 0!==arguments[0]&&arguments[0])?this._brushGroup.style("display","inline"):this._brushGroup.style("display","none"),!oR&&this._zoom?(this._container.call(this._zoomBehavior),this._zoomScroll||this._container.on("wheel.zoom",null),this._zoomPan||this._container.on("mousedown.zoom mousemove.zoom",null).on("touchstart.zoom touchmove.zoom touchend.zoom touchcancel.zoom",null)):this._container.on(".zoom",null)}function uR(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._zoomGroup&&(e?this._zoomGroup.transition().duration(e).attr("transform",t):this._zoomGroup.attr("transform",t)),this._renderTiles&&this._renderTiles(yp(this._container.node()),e)}function lR(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this._container){var e=this._zoomBehavior.extent().bind(document)()[1].map((function(t){return t/2})),n=this._zoomBehavior.scaleExtent(),i=yp(this._container.node());if(t){var r=[(e[0]-i.x)/i.k,(e[1]-i.y)/i.k];i.k=Math.min(n[1],i.k*t),i.k<=n[0]?(i.k=n[0],i.x=0,i.y=0):(i.x+=e[0]-(r[0]*i.k+i.x),i.y+=e[1]-(r[1]*i.k+i.y))}else i.k=n[0],i.x=0,i.y=0;uR.bind(this)(i,this._duration)}}function cR(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._duration,n=this._zoomBehavior.scaleExtent(),i=yp(this._container.node());if(t){var r,o,a=iR(this._zoomBehavior.translateExtent()[1],2),s=a[0],u=a[1],l=t[1][0]-t[0][0],c=t[1][1]-t[0][1],h=Math.min(n[1],1/Math.max(l/s,c/u));l/c<s/u?(r=(s-l*(h*=(u-2*this._zoomPadding)/u))/2/h,o=this._zoomPadding/h):(o=(u-c*(h*=(s-2*this._zoomPadding)/s))/2/h,r=this._zoomPadding/h),i.x=(i.x-t[0][0]+r)*(i.k*h/i.k),i.y=(i.y-t[0][1]+o)*(i.k*h/i.k),i.k*=h,i.x>0?i.x=0:i.x<s*-i.k+s&&(i.x=s*-i.k+s),i.y>0?i.y=0:i.y<u*-i.k+u&&(i.y=u*-i.k+u)}else i.k=n[0],i.x=0,i.y=0;uR.bind(this)(i,e)}function hR(){gR.bind(this)()}function fR(t){t.selection&&(this._brushGroup.call(this._zoomBrush.move,null),cR.bind(this)(t.selection))}function dR(){gR.bind(this)()}function gR(){this._brushGroup.selectAll(".selection").call(Ta,this._zoomBrushSelectionStyle||{}),this._brushGroup.selectAll(".handle").call(Ta,this._zoomBrushHandleStyle||{})}function pR(){var t=po(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]),e=t.enter().append("div").attr("class","d3plus-attribution");t.exit().remove(),t=t.merge(e).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(fs,this._attributionStyle)}function vR(t){return function(t){if(Array.isArray(t))return _R(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mR(t)||function(){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 yR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||mR(t,e)||function(){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 mR(t,e){if(t){if("string"==typeof t)return _R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_R(t,e):void 0}}function _R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function bR(t){return bR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bR(t)}function wR(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function xR(t,e){return xR=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},xR(t,e)}function kR(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=CR(t);if(e){var r=CR(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===bR(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return SR(t)}(this,n)}}function SR(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CR(t){return CR=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},CR(t)}function ER(){return"undefined"==typeof window||window.innerWidth>600}function AR(t,e,n){for(;e.__d3plus__&&e.data;)n=(e=e.data).i;return t(e,n)}var RR=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&xR(t,e)}(o,t);var e,n,i,r=kR(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._aggs={},t._ariaHidden=!0,t._attribution=!1,t._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"},t._backClass=(new _c).on("click",(function(){t._history.length?t.config(t._history.pop()).render():t.depth(t._drawDepth-1).filter(!1).render()})).on("mousemove",(function(){return t._backClass.select().style("cursor","pointer")})),t._backConfig={fontSize:10,padding:5,resize:!1},t._cache=!0,t._color=function(e,n){return t._groupBy[0](e,n)},t._colorScaleClass=new oE,t._colorScaleConfig={scale:"jenks"},t._colorScalePadding=ER,t._colorScalePosition=function(){return t._width>t._height?"right":"bottom"},t._colorScaleMaxSize=600,t._data=[],t._dataCutoff=100,t._detectResize=!0,t._detectResizeDelay=400,t._detectVisible=!0,t._detectVisibleInterval=1e3,t._downloadButton=!1,t._downloadConfig={type:"png"},t._downloadPosition="top",t._duration=600,t._hidden=[],t._hiddenColor=Za("#aaa"),t._hiddenOpacity=Za(.5),t._history=[],t._groupBy=[Aa("id")],t._legend=function(e,n){var i=C(n,(function(e,n){var i=t._groupBy[t._legendDepth].bind(SR(t))(e,n);return i instanceof Array?i.length:1}));return n.length>1&&i<=2},t._legendClass=new KC,t._legendConfig={label:HA.bind(SR(t)),shapeConfig:{ariaLabel:HA.bind(SR(t)),labelConfig:{fontColor:void 0,fontResize:!1,padding:0}}},t._legendFilterInvert=Za(!1),t._legendPadding=ER,t._legendPosition=function(){return t._width>t._height?"right":"bottom"},t._legendSort=function(e,n){return t._drawLabel(e).localeCompare(t._drawLabel(n))},t._legendTooltip={},t._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(t._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(t._translate("Powered by D3plus"),"</a></sub>\n </div>")},t._loadingMessage=!0,t._lrucache=jC(10),t._messageClass=new FA,t._messageMask="rgba(0, 0, 0, 0.05)",t._messageStyle={bottom:"0",left:"0",position:"absolute",right:"0","text-align":"center",top:"0"},t._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(t._translate("No Data Available"),"</strong>\n </div>")},t._noDataMessage=!0,t._on={"click.shape":XA.bind(SR(t)),"click.legend":ZA.bind(SR(t)),mouseenter:JA.bind(SR(t)),mouseleave:QA.bind(SR(t)),"mousemove.shape":eR.bind(SR(t)),"mousemove.legend":tR.bind(SR(t))},t._queue=[],t._resizeContainer=void 0===("undefined"==typeof window?"undefined":bR(window))?"":window,t._scrollContainer=void 0===("undefined"==typeof window?"undefined":bR(window))?"":window,t._shape=Za("Rect"),t._shapes=[],t._shapeConfig={ariaLabel:function(e,n){return t._drawLabel(e,n)},fill:function(e,n){for(;e.__d3plus__&&e.data;)n=(e=e.data).i;if(t._colorScale){var i=t._colorScale(e,n);if(null!=i){var r=t._colorScaleClass._colorScale,o=t._colorScaleClass.color();return r?r.domain().length?r(i):r.range()[r.range().length-1]:o instanceof Array?o[o.length-1]:o}}var a=t._color(e,n);return pn(a)?a:ps(a)},labelConfig:{fontColor:function(e,n){return vs("function"==typeof t._shapeConfig.fill?t._shapeConfig.fill(e,n):t._shapeConfig.fill)}},opacity:Za(1),stroke:function(e,n){return pn("function"==typeof t._shapeConfig.fill?t._shapeConfig.fill(e,n):t._shapeConfig.fill).darker(.25)},role:"presentation",strokeWidth:Za(0)},t._solo=[],t._svgDesc="",t._svgTitle="",t._timeline=!0,t._timelineClass=(new fE).align("end"),t._timelineConfig={brushing:!1,padding:5},t._timelinePadding=ER,t._threshold=Za(1e-4),t._thresholdKey=void 0,t._thresholdName=function(){return t._translate("Values")},t._titleClass=new _c,t._titleConfig={ariaHidden:!0,fontSize:12,padding:5,resize:!1,textAnchor:"middle"},t._titlePadding=ER,t._tooltip=Za(!0),t._tooltipClass=new zA,t._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}},t._totalClass=new _c,t._totalConfig={fontSize:10,padding:5,resize:!1,textAnchor:"middle"},t._totalFormat=function(e){return"".concat(t._translate("Total"),": ").concat(ks(e,t._locale))},t._totalPadding=ER,t._zoom=!1,t._zoomBehavior=function(){var t,e,n,i=bp,r=wp,o=Cp,a=kp,s=Sp,u=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],c=250,h=Zn,f=_o("start","zoom","end"),d=500,g=150,p=0,v=10;function y(t){t.property("__zoom",xp).on("wheel.zoom",S).on("mousedown.zoom",C).on("dblclick.zoom",E).filter(s).on("touchstart.zoom",A).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",M).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(t,e){return(e=Math.max(u[0],Math.min(u[1],e)))===t.k?t:new pp(e,t.x,t.y)}function _(t,e,n){var i=e[0]-n[0]*t.k,r=e[1]-n[1]*t.k;return i===t.x&&r===t.y?t:new pp(t.k,i,r)}function b(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function w(t,e,n,i){t.on("start.zoom",(function(){x(this,arguments).event(i).start()})).on("interrupt.zoom end.zoom",(function(){x(this,arguments).event(i).end()})).tween("zoom",(function(){var t=this,o=arguments,a=x(t,o).event(i),s=r.apply(t,o),u=null==n?b(s):"function"==typeof n?n.apply(t,o):n,l=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=t.__zoom,f="function"==typeof e?e.apply(t,o):e,d=h(c.invert(u).concat(l/c.k),f.invert(u).concat(l/f.k));return function(t){if(1===t)t=f;else{var e=d(t),n=l/e[2];t=new pp(n,u[0]-e[0]*n,u[1]-e[1]*n)}a.zoom(null,t)}}))}function x(t,e,n){return!n&&t.__zooming||new k(t,e)}function k(t,e){this.that=t,this.args=e,this.active=0,this.sourceEvent=null,this.extent=r.apply(t,e),this.taps=0}function S(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(i.apply(this,arguments)){var s=x(this,n).event(t),c=this.__zoom,h=Math.max(u[0],Math.min(u[1],c.k*Math.pow(2,a.apply(this,arguments)))),f=vo(t);if(s.wheel)s.mouse[0][0]===f[0]&&s.mouse[0][1]===f[1]||(s.mouse[1]=c.invert(s.mouse[0]=f)),clearTimeout(s.wheel);else{if(c.k===h)return;s.mouse=[f,c.invert(f)],ea(this),s.start()}_p(t),s.wheel=setTimeout((function(){s.wheel=null,s.end()}),g),s.zoom("mouse",o(_(m(c,h),s.mouse[0],s.mouse[1]),s.extent,l))}}function C(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),a=1;a<e;a++)r[a-1]=arguments[a];if(!n&&i.apply(this,arguments)){var s=x(this,r,!0).event(t),u=po(t.view).on("mousemove.zoom",(function(t){if(_p(t),!s.moved){var e=t.clientX-f,n=t.clientY-d;s.moved=e*e+n*n>p}s.event(t).zoom("mouse",o(_(s.that.__zoom,s.mouse[0]=vo(t,h),s.mouse[1]),s.extent,l))}),!0).on("mouseup.zoom",(function(t){u.on("mousemove.zoom mouseup.zoom",null),fp(t.view,s.moved),_p(t),s.event(t).end()}),!0),c=vo(t,h),h=t.currentTarget,f=t.clientX,d=t.clientY;hp(t.view),mp(t),s.mouse=[c,this.__zoom.invert(c)],ea(this),s.start()}}function E(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),a=1;a<e;a++)n[a-1]=arguments[a];if(i.apply(this,arguments)){var s=this.__zoom,u=vo(t.changedTouches?t.changedTouches[0]:t,this),h=s.invert(u),f=s.k*(t.shiftKey?.5:2),d=o(_(m(s,f),u,h),r.apply(this,n),l);_p(t),c>0?po(this).transition().duration(c).call(w,d,u,t):po(this).call(y.transform,d,u,t)}}function A(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if(i.apply(this,arguments)){var s,u,l,c,h=n.touches,f=h.length,g=x(this,o,n.changedTouches.length===f).event(n);for(mp(n),u=0;u<f;++u)c=[c=vo(l=h[u],this),this.__zoom.invert(c),l.identifier],g.touch0?g.touch1||g.touch0[2]===c[2]||(g.touch1=c,g.taps=0):(g.touch0=c,s=!0,g.taps=1+!!t);t&&(t=clearTimeout(t)),s&&(g.taps<2&&(e=c[0],t=setTimeout((function(){t=null}),d)),ea(this),g.start())}}function R(t){if(this.__zooming){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var r,a,s,u,c=x(this,n).event(t),h=t.changedTouches,f=h.length;for(_p(t),r=0;r<f;++r)s=vo(a=h[r],this),c.touch0&&c.touch0[2]===a.identifier?c.touch0[0]=s:c.touch1&&c.touch1[2]===a.identifier&&(c.touch1[0]=s);if(a=c.that.__zoom,c.touch1){var d=c.touch0[0],g=c.touch0[1],p=c.touch1[0],v=c.touch1[1],y=(y=p[0]-d[0])*y+(y=p[1]-d[1])*y,b=(b=v[0]-g[0])*b+(b=v[1]-g[1])*b;a=m(a,Math.sqrt(y/b)),s=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(g[0]+v[0])/2,(g[1]+v[1])/2]}else{if(!c.touch0)return;s=c.touch0[0],u=c.touch0[1]}c.zoom("touch",o(_(a,s,u),c.extent,l))}}function M(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(this.__zooming){var a,s,u=x(this,r).event(t),l=t.changedTouches,c=l.length;for(mp(t),n&&clearTimeout(n),n=setTimeout((function(){n=null}),d),a=0;a<c;++a)s=l[a],u.touch0&&u.touch0[2]===s.identifier?delete u.touch0:u.touch1&&u.touch1[2]===s.identifier&&delete u.touch1;if(u.touch1&&!u.touch0&&(u.touch0=u.touch1,delete u.touch1),u.touch0)u.touch0[1]=this.__zoom.invert(u.touch0[0]);else if(u.end(),2===u.taps&&(s=vo(s,this),Math.hypot(e[0]-s[0],e[1]-s[1])<v)){var h=po(this).on("dblclick.zoom");h&&h.apply(this,arguments)}}}return y.transform=function(t,e,n,i){var r=t.selection?t.selection():t;r.property("__zoom",xp),t!==r?w(t,e,n,i):r.interrupt().each((function(){x(this,arguments).event(i).start().zoom(null,"function"==typeof e?e.apply(this,arguments):e).end()}))},y.scaleBy=function(t,e,n,i){y.scaleTo(t,(function(){return this.__zoom.k*("function"==typeof e?e.apply(this,arguments):e)}),n,i)},y.scaleTo=function(t,e,n,i){y.transform(t,(function(){var t=r.apply(this,arguments),i=this.__zoom,a=null==n?b(t):"function"==typeof n?n.apply(this,arguments):n,s=i.invert(a),u="function"==typeof e?e.apply(this,arguments):e;return o(_(m(i,u),a,s),t,l)}),n,i)},y.translateBy=function(t,e,n,i){y.transform(t,(function(){return o(this.__zoom.translate("function"==typeof e?e.apply(this,arguments):e,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),l)}),null,i)},y.translateTo=function(t,e,n,i,a){y.transform(t,(function(){var t=r.apply(this,arguments),a=this.__zoom,s=null==i?b(t):"function"==typeof i?i.apply(this,arguments):i;return o(vp.translate(s[0],s[1]).scale(a.k).translate("function"==typeof e?-e.apply(this,arguments):-e,"function"==typeof n?-n.apply(this,arguments):-n),t,l)}),i,a)},k.prototype={event:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return t&&(this.sourceEvent=t),this})),start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(t,e){return this.mouse&&"mouse"!==t&&(this.mouse[1]=e.invert(this.mouse[0])),this.touch0&&"touch"!==t&&(this.touch0[1]=e.invert(this.touch0[0])),this.touch1&&"touch"!==t&&(this.touch1[1]=e.invert(this.touch1[0])),this.that.__zoom=e,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){var e=po(this.that).datum();f.call(t,this.that,new gp(t,{sourceEvent:this.sourceEvent,target:y,type:t,transform:this.that.__zoom,dispatch:f}),e)}},y.wheelDelta=function(t){return arguments.length?(a="function"==typeof t?t:dp(+t),y):a},y.filter=function(t){return arguments.length?(i="function"==typeof t?t:dp(!!t),y):i},y.touchable=function(t){return arguments.length?(s="function"==typeof t?t:dp(!!t),y):s},y.extent=function(t){return arguments.length?(r="function"==typeof t?t:dp([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),y):r},y.scaleExtent=function(t){return arguments.length?(u[0]=+t[0],u[1]=+t[1],y):[u[0],u[1]]},y.translateExtent=function(t){return arguments.length?(l[0][0]=+t[0][0],l[1][0]=+t[1][0],l[0][1]=+t[0][1],l[1][1]=+t[1][1],y):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},y.constrain=function(t){return arguments.length?(o=t,y):o},y.duration=function(t){return arguments.length?(c=+t,y):c},y.interpolate=function(t){return arguments.length?(h=t,y):h},y.on=function(){var t=f.on.apply(f,arguments);return t===f?y:t},y.clickDistance=function(t){return arguments.length?(p=(t=+t)*t,y):Math.sqrt(p)},y.tapDistance=function(t){return arguments.length?(v=+t,y):v},y}(),t._zoomBrush=RC(yC),t._zoomBrushHandleSize=1,t._zoomBrushHandleStyle={fill:"#444"},t._zoomBrushSelectionStyle={fill:"#777","stroke-width":0},t._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"},t._zoomControlStyleActive={background:"rgba(0, 0, 0, 0.75)",color:"rgba(255, 255, 255, 0.75)",opacity:1},t._zoomControlStyleHover={cursor:"pointer",opacity:1},t._zoomFactor=2,t._zoomMax=16,t._zoomPadding=20,t._zoomPan=!0,t._zoomScroll=!0,t}return e=o,n=[{key:"_preDraw",value:function(){var t=this,e=this;if(this._drawDepth=void 0!==this._depth?E([this._depth>=0?this._depth:0,this._groupBy.length-1]):this._groupBy.length-1,this._id=function(e,n){var i=AR(t._groupBy[t._drawDepth],e,n);return"number"==typeof i?"".concat(i):i},this._ids=function(e,n){return t._groupBy.map((function(t){return"".concat(AR(t,e,n))})).filter(Boolean)},this._drawLabel=function(n,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t._drawDepth;if(!n)return"";for(;n.__d3plus__&&n.data;)i=(n=n.data).i;if(n._isAggregation)return"".concat(t._thresholdName(n,i)," < ").concat(ks(100*n._threshold,t._locale),"%");if(t._label)return"".concat(t._label(n,i));var o=e._ids(n,i).slice(0,r+1),a=o.reverse().find((function(t){return!(t instanceof Array)}))||o[o.length-1];return a instanceof Array?function(t){return t.reduce((function(e,n,i){return i?i===t.length-1&&1===i?e+=" and ".concat(n):i===t.length-1?e+=", and ".concat(n):e+=", ".concat(n):e+=n,e}),"")}(a):"".concat(a)},this._time&&!this._timeFilter&&this._data.length){var n=this._data.map(this._time).map(Sf),i=this._data[0];if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](i,0)===this._time(i,0))this._timeFilter=function(){return!0};else{var r=+C(n);this._timeFilter=function(e,n){return+Sf(t._time(e,n))===r}}}this._filteredData=[],this._legendData=[];var o=[];if(this._data.length){o=this._timeFilter?this._data.filter(this._timeFilter):this._data,this._filter&&(o=o.filter(this._filter));for(var a=[],s=0;s<=this._drawDepth;s++)a.push(this._groupBy[s]);this._discrete&&"_".concat(this._discrete)in this&&a.push(this["_".concat(this._discrete)]),this._discrete&&"_".concat(this._discrete,"2")in this&&a.push(this["_".concat(this._discrete,"2")]);var u=y.apply(void 0,[o,function(e){var n=t._data.indexOf(e[0]),i=t._shape(e[0],n),r=t._id(e[0],n),o=ls(e,t._aggs);t._hidden.includes(r)||t._solo.length&&!t._solo.includes(r)||(t._discrete||"Line"!==i?t._filteredData.push(o):t._filteredData=t._filteredData.concat(e)),t._legendData.push(o)}].concat(a));this._filteredData=this._thresholdFunction(this._filteredData,u)}var l=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return m(t,v,v,n)}(this._filteredData,this._id).size;l>this._dataCutoff?(void 0===this._userHover&&(this._userHover=this._shapeConfig.hoverOpacity||.5),void 0===this._userDuration&&(this._userDuration=this._shapeConfig.duration||600),this._shapeConfig.hoverOpacity=1,this._shapeConfig.duration=0):void 0!==this._userHover&&(this._shapeConfig.hoverOpacity=this._userHover,this._shapeConfig.duration=this._userDuration),this._noDataMessage&&!this._filteredData.length&&(this._messageClass.render({container:this._select.node().parentNode,html:this._noDataHTML(this),mask:!1,style:this._messageStyle}),this._select.transition().duration(this._duration).attr("opacity",0))}},{key:"_draw",value:function(){var t=this._legendPosition.bind(this)(this.config());[!1,"top","bottom","left","right"].includes(t)||(t="bottom");var e=this._colorScalePosition.bind(this)(this.config());[!1,"top","bottom","left","right"].includes(e)||(e="bottom"),"left"!==t&&"right"!==t||GA.bind(this)(this._legendData),"left"!==e&&"right"!==e&&!1!==e||IA.bind(this)(this._filteredData),LA.bind(this)(),WA.bind(this)(this._filteredData),qA.bind(this)(this._filteredData),UA.bind(this)(this._filteredData),"top"!==t&&"bottom"!==t||GA.bind(this)(this._legendData),"top"!==e&&"bottom"!==e||IA.bind(this)(this._filteredData),this._shapes=[]}},{key:"_thresholdFunction",value:function(t){return t}},{key:"render",value:function(t){var e=this;if(this._margin={bottom:0,left:0,right:0,top:0},this._padding={bottom:0,left:0,right:0,top:0},void 0===this._select||"svg"!==this._select.node().tagName.toLowerCase()){var n=(void 0===this._select?po("body").append("div"):this._select).append("svg");this.select(n.node())}function i(){var t=this._select.style("display");this._select.style("display","none");var e=function(t){return[KA(t,"width"),KA(t,"height")]}(this._select.node().parentNode),n=yR(e,2),i=n[0],r=n[1];i-=parseFloat(this._select.style("border-left-width"),10),i-=parseFloat(this._select.style("border-right-width"),10),r-=parseFloat(this._select.style("border-top-width"),10),r-=parseFloat(this._select.style("border-bottom-width"),10),this._select.style("display",t),this._autoWidth&&(this.width(i),this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))),this._autoHeight&&(this.height(r),this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px")))}this._width&&this._height||this._detectVisible&&!YA(this._select.node())||(this._autoWidth=void 0===this._width,this._autoHeight=void 0===this._height,i.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().duration(this._duration).style("width",void 0!==this._width?"".concat(this._width,"px"):void 0).style("height",void 0!==this._height?"".concat(this._height,"px"):void 0).attr("width",void 0!==this._width?"".concat(this._width,"px"):void 0).attr("height",void 0!==this._height?"".concat(this._height,"px"):void 0);var r=po(this._select.node().parentNode);"static"===r.style("position")&&r.style("position","relative"),null===this._select.attr("opacity")&&this._select.attr("opacity",1);var o=this._select.selectAll("title").data([0]),a=o.enter().append("title").attr("id","".concat(this._uuid,"-title"));o.merge(a).text(this._svgTitle);var s=this._select.selectAll("desc").data([0]),u=s.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));if(s.merge(u).text(this._svgDesc),this._visiblePoll=clearInterval(this._visiblePoll),this._resizePoll=clearTimeout(this._resizePoll),this._scrollPoll=clearTimeout(this._scrollPoll),po(this._scrollContainer).on("scroll.".concat(this._uuid),null),po(this._resizeContainer).on("resize.".concat(this._uuid),null),this._detectVisible&&"hidden"===this._select.style("visibility"))this._visiblePoll=setInterval((function(){"hidden"!==e._select.style("visibility")&&(e._visiblePoll=clearInterval(e._visiblePoll),e.render(t))}),this._detectVisibleInterval);else if(this._detectVisible&&"none"===this._select.style("display"))this._visiblePoll=setInterval((function(){"none"!==e._select.style("display")&&(e._visiblePoll=clearInterval(e._visiblePoll),e.render(t))}),this._detectVisibleInterval);else if(this._detectVisible&&!YA(this._select.node()))po(this._scrollContainer).on("scroll.".concat(this._uuid),(function(){e._scrollPoll||(e._scrollPoll=setTimeout((function(){YA(e._select.node())&&(po(e._scrollContainer).on("scroll.".concat(e._uuid),null),e.render(t)),e._scrollPoll=clearTimeout(e._scrollPoll)}),e._detectVisibleInterval))}));else{var l=zC();this._queue.forEach((function(t){var n=e._cache?e._lrucache.get("".concat(t[3],"_").concat(t[1])):void 0;n?e["_".concat(t[3])]=t[2]?t[2](n):n:l.defer.apply(l,vR(t))})),this._queue=[],this._loadingMessage&&l._tasks.length&&this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:!!this._filteredData&&this._messageMask,style:this._messageStyle}),l.awaitAll((function(){var n=e._data instanceof Array&&e._data.length>0?Object.keys(e._data[0]):[],r=e._select.selectAll("g.data-table").data(!e._ariaHidden&&e._data instanceof Array&&e._data.length?[0]:[]),o=r.enter().append("g").attr("class","data-table").attr("role","table");r.exit().remove();var a=r.merge(o).selectAll("text").data(e._data instanceof Array?D(0,e._data.length+1):[]);a.exit().remove();var s=a.merge(a.enter().append("text").attr("role","row")).selectAll("tspan").data((function(t,i){return n.map((function(t){return{role:i?"cell":"columnheader",text:i?e._data[i-1][t]:t}}))}));s.exit().remove(),s.merge(s.enter().append("tspan")).attr("role",(function(t){return t.role})).attr("dy","-1000px").html((function(t){return t.text})),e._preDraw(),e._draw(t),aR.bind(e)(),pR.bind(e)(),!e._messageClass._isVisible||e._noDataMessage&&!e._filteredData.length||(e._messageClass.hide(),"0"===e._select.attr("opacity")&&e._select.transition().duration(e._duration).attr("opacity",1)),e._detectResize&&(e._autoWidth||e._autoHeight)&&po(e._resizeContainer).on("resize.".concat(e._uuid),(function(){e._resizePoll=clearTimeout(e._resizePoll),e._resizePoll=setTimeout((function(){e._resizePoll=clearTimeout(e._resizePoll),i.bind(e)(),e.render(t)}),e._detectResizeDelay)})),t&&setTimeout(t,e._duration+100)}))}return po("body").on("touchstart.".concat(this._uuid),nR.bind(this)),this}},{key:"active",value:function(t){return this._active=t,1!==this._shapeConfig.activeOpacity&&(this._shapes.forEach((function(e){return e.active(t)})),this._legend&&this._legendClass.active(t)),this}},{key:"aggs",value:function(t){return arguments.length?(this._aggs=Oa(this._aggs,t),this):this._aggs}},{key:"ariaHidden",value:function(t){return arguments.length?(this._ariaHidden=t,this):this._ariaHidden}},{key:"attribution",value:function(t){return arguments.length?(this._attribution=t,this):this._attribution}},{key:"attributionStyle",value:function(t){return arguments.length?(this._attributionStyle=Oa(this._attributionStyle,t),this):this._attributionStyle}},{key:"backConfig",value:function(t){return arguments.length?(this._backConfig=Oa(this._backConfig,t),this):this._backConfig}},{key:"cache",value:function(t){return arguments.length?(this._cache=t,this):this._cache}},{key:"color",value:function(t){return arguments.length?(this._color=t&&"function"!=typeof t?Aa(t):t,this):this._color}},{key:"colorScale",value:function(t){return arguments.length?(this._colorScale=t&&"function"!=typeof t?Aa(t):t,this):this._colorScale}},{key:"colorScaleConfig",value:function(t){return arguments.length?(this._colorScaleConfig=Oa(this._colorScaleConfig,t),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function(t){return arguments.length?(this._colorScalePadding="function"==typeof t?t:Za(t),this):this._colorScalePadding}},{key:"colorScalePosition",value:function(t){return arguments.length?(this._colorScalePosition="function"==typeof t?t:Za(t),this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function(t){return arguments.length?(this._colorScaleMaxSize=t,this):this._colorScaleMaxSize}},{key:"data",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"data"),this._hidden=[],this._solo=[],this):this._data}},{key:"dataCutoff",value:function(t){return arguments.length?(this._dataCutoff=t,this):this._dataCutoff}},{key:"depth",value:function(t){return arguments.length?(this._depth=t,this):this._depth}},{key:"detectResize",value:function(t){return arguments.length?(this._detectResize=t,this):this._detectResize}},{key:"detectResizeDelay",value:function(t){return arguments.length?(this._detectResizeDelay=t,this):this._detectResizeDelay}},{key:"detectVisible",value:function(t){return arguments.length?(this._detectVisible=t,this):this._detectVisible}},{key:"detectVisibleInterval",value:function(t){return arguments.length?(this._detectVisibleInterval=t,this):this._detectVisibleInterval}},{key:"discrete",value:function(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"downloadButton",value:function(t){return arguments.length?(this._downloadButton=t,this):this._downloadButton}},{key:"downloadConfig",value:function(t){return arguments.length?(this._downloadConfig=Oa(this._downloadConfig,t),this):this._downloadConfig}},{key:"downloadPosition",value:function(t){return arguments.length?(this._downloadPosition=t,this):this._downloadPosition}},{key:"duration",value:function(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"filter",value:function(t){return arguments.length?(this._filter=t,this):this._filter}},{key:"groupBy",value:function(t){var e=this;return arguments.length?(this._groupByRaw=t,t instanceof Array||(t=[t]),this._groupBy=t.map((function(t){return"function"==typeof t?t:(e._aggs[t]||(e._aggs[t]=function(t,e){var n=us(t.map(e).map(String));return 1===n.length?n[0]:n}),Aa(t))})),this):this._groupBy}},{key:"height",value:function(t){return arguments.length?(this._height=t,this):this._height}},{key:"hiddenColor",value:function(t){return arguments.length?(this._hiddenColor="function"==typeof t?t:Za(t),this):this._hiddenColor}},{key:"hiddenOpacity",value:function(t){return arguments.length?(this._hiddenOpacity="function"==typeof t?t:Za(t),this):this._hiddenOpacity}},{key:"hover",value:function(t){var e=this,n=this._hover=t;if(1!==this._shapeConfig.hoverOpacity){if("function"==typeof t){var i=B(this._shapes.map((function(t){return t.data()})));i=i.concat(this._legendClass.data());var r=t?i.filter(t):[],o=[];r.map(this._ids).forEach((function(t){for(var e=1;e<=t.length;e++)o.push(JSON.stringify(t.slice(0,e)))})),o=o.filter((function(t,e){return o.indexOf(t)===e})),o.length&&(n=function(t,n){return o.includes(JSON.stringify(e._ids(t,n)))})}this._shapes.forEach((function(t){return t.hover(n)})),this._legend&&this._legendClass.hover(n)}return this}},{key:"label",value:function(t){return arguments.length?(this._label="function"==typeof t?t:Za(t),this):this._label}},{key:"legend",value:function(t){return arguments.length?(this._legend="function"==typeof t?t:Za(t),this):this._legend}},{key:"legendConfig",value:function(t){return arguments.length?(this._legendConfig=Oa(this._legendConfig,t),this):this._legendConfig}},{key:"legendFilterInvert",value:function(t){return arguments.length?(this._legendFilterInvert="function"==typeof t?t:Za(t),this):this._legendFilterInvert}},{key:"legendPadding",value:function(t){return arguments.length?(this._legendPadding="function"==typeof t?t:Za(t),this):this._legendPadding}},{key:"legendPosition",value:function(t){return arguments.length?(this._legendPosition="function"==typeof t?t:Za(t),this):this._legendPosition}},{key:"legendSort",value:function(t){return arguments.length?(this._legendSort=t,this):this._legendSort}},{key:"legendTooltip",value:function(t){return arguments.length?(this._legendTooltip=Oa(this._legendTooltip,t),this):this._legendTooltip}},{key:"loadingHTML",value:function(t){return arguments.length?(this._loadingHTML="function"==typeof t?t:Za(t),this):this._loadingHTML}},{key:"loadingMessage",value:function(t){return arguments.length?(this._loadingMessage=t,this):this._loadingMessage}},{key:"messageMask",value:function(t){return arguments.length?(this._messageMask=t,this):this._messageMask}},{key:"messageStyle",value:function(t){return arguments.length?(this._messageStyle=Oa(this._messageStyle,t),this):this._messageStyle}},{key:"noDataHTML",value:function(t){return arguments.length?(this._noDataHTML="function"==typeof t?t:Za(t),this):this._noDataHTML}},{key:"noDataMessage",value:function(t){return arguments.length?(this._noDataMessage=t,this):this._noDataMessage}},{key:"resizeContainer",value:function(t){return arguments.length?(this._resizeContainer=t,this):this._resizeContainer}},{key:"scrollContainer",value:function(t){return arguments.length?(this._scrollContainer=t,this):this._scrollContainer}},{key:"select",value:function(t){return arguments.length?(this._select=po(t),this):this._select}},{key:"shape",value:function(t){return arguments.length?(this._shape="function"==typeof t?t:Za(t),this):this._shape}},{key:"shapeConfig",value:function(t){return arguments.length?(this._shapeConfig=Oa(this._shapeConfig,t),this):this._shapeConfig}},{key:"svgDesc",value:function(t){return arguments.length?(this._svgDesc=t,this):this._svgDesc}},{key:"svgTitle",value:function(t){return arguments.length?(this._svgTitle=t,this):this._svgTitle}},{key:"threshold",value:function(t){return arguments.length?("function"==typeof t?this._threshold=t:isFinite(t)&&!isNaN(t)&&(this._threshold=Za(1*t)),this):this._threshold}},{key:"thresholdKey",value:function(t){return arguments.length?(this._thresholdKey="function"==typeof t?t:Aa(t),this):this._thresholdKey}},{key:"thresholdName",value:function(t){return arguments.length?(this._thresholdName="function"==typeof t?t:Za(t),this):this._thresholdName}},{key:"time",value:function(t){return arguments.length?("function"==typeof t?this._time=t:(this._time=Aa(t),this._aggs[t]||(this._aggs[t]=function(t,e){var n=us(t.map(e));return 1===n.length?n[0]:n})),this._data.length&&this._timeFilter&&!this._data.find(this._timeFilter)&&(this._timeFilter=!1,this._timelineSelection=!1),this):this._time}},{key:"timeFilter",value:function(t){return arguments.length?(this._timeFilter=t,this):this._timeFilter}},{key:"timeline",value:function(t){return arguments.length?(this._timeline=t,this):this._timeline}},{key:"timelineConfig",value:function(t){return arguments.length?(this._timelineConfig=Oa(this._timelineConfig,t),this):this._timelineConfig}},{key:"timelinePadding",value:function(t){return arguments.length?(this._timelinePadding="function"==typeof t?t:Za(t),this):this._timelinePadding}},{key:"title",value:function(t){return arguments.length?(this._title="function"==typeof t?t:Za(t),this):this._title}},{key:"titleConfig",value:function(t){return arguments.length?(this._titleConfig=Oa(this._titleConfig,t),this):this._titleConfig}},{key:"titlePadding",value:function(t){return arguments.length?(this._titlePadding="function"==typeof t?t:Za(t),this):this._titlePadding}},{key:"tooltip",value:function(t){return arguments.length?(this._tooltip="function"==typeof t?t:Za(t),this):this._tooltip}},{key:"tooltipConfig",value:function(t){return arguments.length?(this._tooltipConfig=Oa(this._tooltipConfig,t),this):this._tooltipConfig}},{key:"total",value:function(t){return arguments.length?(this._total="function"==typeof t?t:!!t&&Aa(t),this):this._total}},{key:"totalConfig",value:function(t){return arguments.length?(this._totalConfig=Oa(this._totalConfig,t),this):this._totalConfig}},{key:"totalFormat",value:function(t){return arguments.length?(this._totalFormat=t,this):this._totalFormat}},{key:"totalPadding",value:function(t){return arguments.length?(this._totalPadding="function"==typeof t?t:Za(t),this):this._totalPadding}},{key:"width",value:function(t){return arguments.length?(this._width=t,this):this._width}},{key:"zoom",value:function(t){return arguments.length?(this._zoom=t,this):this._zoom}},{key:"zoomBrushHandleSize",value:function(t){return arguments.length?(this._zoomBrushHandleSize=t,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function(t){return arguments.length?(this._zoomBrushHandleStyle=t,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function(t){return arguments.length?(this._zoomBrushSelectionStyle=t,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function(t){return arguments.length?(this._zoomControlStyle=t,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function(t){return arguments.length?(this._zoomControlStyleActive=t,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function(t){return arguments.length?(this._zoomControlStyleHover=t,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function(t){return arguments.length?(this._zoomFactor=t,this):this._zoomFactor}},{key:"zoomMax",value:function(t){return arguments.length?(this._zoomMax=t,this):this._zoomMax}},{key:"zoomPan",value:function(t){return arguments.length?(this._zoomPan=t,this):this._zoomPan}},{key:"zoomPadding",value:function(t){return arguments.length?(this._zoomPadding=t,this):this._zoomPadding}},{key:"zoomScroll",value:function(t){return arguments.length?(this._zoomScroll=t,this):this._zoomScroll}}],n&&wR(e.prototype,n),i&&wR(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(qa),MR=[{matches:["cartodb","cartocdn"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors, © <a href='https://carto.com/attribution' target='_blank'>CARTO</a>"},{matches:["opentopomap.org"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors"},{matches:["arcgisonline.com"],text:"Powered by <a href='https://developers.arcgis.com/terms/attribution/' target='_blank'>Esri</a>"},{matches:["/watercolor/"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://www.openstreetmap.org/copyright' target='_blank'>ODbL</a>."},{matches:["stamen-tiles","stamen.com"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0' target='_blank'>CC BY SA</a>."}];function OR(t){return OR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OR(t)}function TR(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return PR(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PR(t,e)}(t,e)||function(){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 PR(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function BR(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function DR(t,e,n){return DR="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=FR(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},DR(t,e,n||t)}function NR(t,e){return NR=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},NR(t,e)}function zR(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=FR(t);if(e){var r=FR(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===OR(e)||"function"==typeof e))return e;return jR(t)}(this,n)}}function jR(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FR(t){return FR=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},FR(t)}var LR=Object.assign({},ab,dS,kS);function IR(t){var e=MR.find((function(e){return e.matches.some((function(e){return t.includes(e)}))}));return!!e&&e.text}function HR(t,e){var n,i,r=e&&t.objects[e]?e:Object.keys(t.objects)[0];return n=t,"string"==typeof(i=r)&&(i=n.objects[i]),"GeometryCollection"===i.type?{type:"FeatureCollection",features:i.geometries.map((function(t){return RS(n,t)}))}:RS(n,i)}var GR=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&NR(t,e)}(o,t);var e,n,i,r=zR(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._fitObject=!1,t._noDataMessage=!1,t._ocean="#d4dadc",t._point=Aa("point"),t._pointSize=Za(1),t._pointSizeMax=10,t._pointSizeMin=5,t._pointSizeScale="linear",t._projection=LR.geoMercator(),t._projectionPadding=cs(20),t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{ariaLabel:function(e,n){return"".concat(t._drawLabel(e,n),", ").concat(t._pointSize(e,n))},hoverOpacity:1,Path:{ariaLabel:function(e,n){var i=t._colorScale?", ".concat(t._colorScale(e,n)):"";return"".concat(t._drawLabel(e,n)).concat(i,".")},fill:function(e,n){if(t._colorScale&&!t._coordData.features.includes(e)){var i=t._colorScale(e);if(null!=i){if(t._colorScaleClass._colorScale)return t._colorScaleClass._colorScale(i);var r=t._colorScaleClass.color();return r instanceof Array&&(r=r[r.length-1]),r}}return t._topojsonFill(e,n)},on:{mouseenter:function(e,n,i,r){return t._coordData.features.includes(e)?null:t._on.mouseenter.bind(jR(t))(e,n,i,r)},"mousemove.shape":function(e,n,i,r){return t._coordData.features.includes(e)?null:t._on["mousemove.shape"].bind(jR(t))(e,n,i,r)},mouseleave:function(e,n,i,r){return t._coordData.features.includes(e)?null:t._on.mouseleave.bind(jR(t))(e,n,i,r)}},stroke:function(e,n){return pn("function"==typeof t._shapeConfig.Path.fill?t._shapeConfig.Path.fill(e,n):t._shapeConfig.Path.fill).darker()},strokeWidth:1}}),t._tiles=!0,t._tileGen=function(){var t=0,e=0,n=960,i=500,r=!0,o=!0,a=256,s=SS,u=CS,l=0;function c(){for(var c=+s.apply(this,arguments),h=u.apply(this,arguments),f=Math.log2(c/a),d=Math.round(Math.max(f+l,0)),g=Math.pow(2,f-d)*a,p=+h[0]-c/2,v=+h[1]-c/2,y=Math.max(r?0:-1/0,Math.floor((t-p)/g)),m=Math.min(r?1<<d:1/0,Math.ceil((n-p)/g)),_=Math.max(o?0:-1/0,Math.floor((e-v)/g)),b=Math.min(o?1<<d:1/0,Math.ceil((i-v)/g)),w=[],x=_;x<b;++x)for(var k=y;k<m;++k)w.push([k,x,d]);return w.translate=[p/g,v/g],w.scale=g,w}return c.size=function(r){return arguments.length?(t=e=0,n=+r[0],i=+r[1],c):[n-t,i-e]},c.extent=function(r){return arguments.length?(t=+r[0][0],e=+r[0][1],n=+r[1][0],i=+r[1][1],c):[[t,e],[n,i]]},c.scale=function(t){return arguments.length?(s="function"==typeof t?t:ES(+t),c):s},c.translate=function(t){return arguments.length?(u="function"==typeof t?t:ES([+t[0],+t[1]]),c):u},c.zoomDelta=function(t){return arguments.length?(l=+t,c):l},c.tileSize=function(t){return arguments.length?(a=+t,c):a},c.clamp=function(t){return arguments.length?(r=o=!!t,c):r&&o},c.clampX=function(t){return arguments.length?(r=!!t,c):r},c.clampY=function(t){return arguments.length?(o=!!t,c):o},c}(),t.tileUrl("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png"),t._topojson=!1,t._topojsonFill=Za("#f5f5f3"),t._topojsonFilter=function(t){return!["010"].includes(t.id)},t._topojsonId=Aa("id"),t._zoom=!0,t._zoomSet=!1,t}return e=o,n=[{key:"_renderTiles",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:yp(this._container.node()),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=[];this._tiles&&(i=this._tileGen.extent(this._zoomBehavior.translateExtent()).scale(this._projection.scale()*(2*Math.PI)*e.k).translate(e.apply(this._projection.translate()))(),this._tileGroup.transition().duration(n).attr("transform",e));var r=this._tileGroup.selectAll("image.d3plus-geomap-tile").data(i,(function(t){var e=TR(t,3),n=e[0],i=e[1],r=e[2];return"".concat(n,"-").concat(i,"-").concat(r)}));r.exit().transition().duration(n).attr("opacity",0).remove();var o=i.scale/e.k,a=r.enter().append("image").attr("class","d3plus-geomap-tile");a.attr("opacity",0).transition().duration(n).attr("opacity",1),r.merge(a).attr("width",o).attr("height",o).attr("xlink:href",(function(e){var n=TR(e,3),i=n[0],r=n[1],o=n[2];return t._tileUrl.replace("{s}",["a","b","c"][3*Math.random()|0]).replace("{z}",o).replace("{x}",i).replace("{y}",r)})).attr("x",(function(t){return TR(t,1)[0]*o+i.translate[0]*o-e.x/e.k})).attr("y",(function(t){return TR(t,2)[1]*o+i.translate[1]*o-e.y/e.k}))}},{key:"_draw",value:function(t){var e=this;DR(FR(o.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;this._container=this._select.selectAll("svg.d3plus-geomap").data([0]),this._container=this._container.enter().append("svg").attr("class","d3plus-geomap").attr("opacity",0).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color",this._ocean||"transparent").merge(this._container),this._container.transition(this._transition).attr("opacity",1).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var r=this._container.selectAll("rect.d3plus-geomap-ocean").data([0]);r.enter().append("rect").attr("class","d3plus-geomap-ocean").merge(r).attr("width",i).attr("height",n).attr("fill",this._ocean||"transparent"),this._tileGroup=this._container.selectAll("g.d3plus-geomap-tileGroup").data([0]),this._tileGroup=this._tileGroup.enter().append("g").attr("class","d3plus-geomap-tileGroup").merge(this._tileGroup),this._zoomGroup=this._container.selectAll("g.d3plus-geomap-zoomGroup").data([0]),this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-geomap-zoomGroup").merge(this._zoomGroup);var a=this._zoomGroup.selectAll("g.d3plus-geomap-paths").data([0]);a=a.enter().append("g").attr("class","d3plus-geomap-paths").merge(a);var s=this._coordData=this._topojson?HR(this._topojson,this._topojsonKey):{type:"FeatureCollection",features:[]};this._topojsonFilter&&(s.features=s.features.filter(this._topojsonFilter));var u=this._path=LR.geoPath().projection(this._projection),l=this._filteredData.filter((function(t,n){return e._point(t,n)instanceof Array})),c=this._filteredData.filter((function(t,n){return!(e._point(t,n)instanceof Array)})).reduce((function(t,n){return t[e._id(n)]=n,t}),{}),f=s.features.reduce((function(t,n){var i=e._topojsonId(n);return t.push({__d3plus__:!0,data:c[i],feature:n,id:i}),t}),[]),d=er["scale".concat(this._pointSizeScale.charAt(0).toUpperCase()).concat(this._pointSizeScale.slice(1))]().domain(h(l,(function(t,n){return e._pointSize(t,n)}))).range([this._pointSizeMin,this._pointSizeMax]);if(!this._zoomSet){var g=this._fitObject?HR(this._fitObject,this._fitKey):s;if(this._extentBounds={type:"FeatureCollection",features:this._fitFilter?g.features.filter(this._fitFilter):g.features.slice()},this._extentBounds.features=this._extentBounds.features.reduce((function(t,e){if(e.geometry){var n={type:e.type,id:e.id,geometry:{coordinates:e.geometry.coordinates,type:e.geometry.type}};if("MultiPolygon"===e.geometry.type&&e.geometry.coordinates.length>1){var i=[],r=[];e.geometry.coordinates.forEach((function(t){n.geometry.coordinates=[t],i.push(u.area(n))})),n.geometry.coordinates=[e.geometry.coordinates[i.indexOf(C(i))]];var o=u.centroid(n);e.geometry.coordinates.forEach((function(t){n.geometry.coordinates=[t],r.push(kc(u.centroid(n),o))}));var a=M(i.reduce((function(t,e,n){return e&&t.push(i[n]/e),t}),[]),.9);n.geometry.coordinates=e.geometry.coordinates.filter((function(t,e){var n=r[e];return 0===n||i[e]/n>=a}))}t.push(n)}return t}),[]),!this._extentBounds.features.length&&l.length){var p=[[void 0,void 0],[void 0,void 0]];l.forEach((function(t,n){var i=e._projection(e._point(t,n));(void 0===p[0][0]||i[0]<p[0][0])&&(p[0][0]=i[0]),(void 0===p[1][0]||i[0]>p[1][0])&&(p[1][0]=i[0]),(void 0===p[0][1]||i[1]<p[0][1])&&(p[0][1]=i[1]),(void 0===p[1][1]||i[1]>p[1][1])&&(p[1][1]=i[1])})),this._extentBounds={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPoint",coordinates:p.map((function(t){return e._projection.invert(t)}))}}]};var v=C(l,(function(t,n){return d(e._pointSize(t,n))}));this._projectionPadding.top+=v,this._projectionPadding.right+=v,this._projectionPadding.bottom+=v,this._projectionPadding.left+=v}this._zoomBehavior.extent([[0,0],[i,n]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[i,n]]),this._zoomSet=!0}this._projection=this._projection.fitExtent(this._extentBounds.features.length?[[this._projectionPadding.left,this._projectionPadding.top],[i-this._projectionPadding.right,n-this._projectionPadding.bottom]]:[[0,0],[i,n]],this._extentBounds.features.length?this._extentBounds:{type:"Sphere"}),this._shapes.push((new xf).data(f).d((function(t){return u(t.feature)})).select(a.node()).x(0).y(0).config(Xa.bind(this)(this._shapeConfig,"shape","Path")).render());var y=this._zoomGroup.selectAll("g.d3plus-geomap-pins").data([0]);y=y.enter().append("g").attr("class","d3plus-geomap-pins").merge(y);for(var m=(new zh).config(Xa.bind(this)(this._shapeConfig,"shape","Circle")).data(l).r((function(t,n){return d(e._pointSize(t,n))})).select(y.node()).sort((function(t,n){return e._pointSize(n)-e._pointSize(t)})).x((function(t,n){return e._projection(e._point(t,n))[0]})).y((function(t,n){return e._projection(e._point(t,n))[1]})),_=Object.keys(this._on),b=_.filter((function(t){return t.includes(".Circle")})),w=_.filter((function(t){return!t.includes(".")})),x=_.filter((function(t){return t.includes(".shape")})),k=0;k<w.length;k++)m.on(w[k],this._on[w[k]]);for(var S=0;S<x.length;S++)m.on(x[S],this._on[x[S]]);for(var E=0;E<b.length;E++)m.on(b[E],this._on[b[E]]);return this._shapes.push(m.render()),this}},{key:"fitFilter",value:function(t){return arguments.length?(this._zoomSet=!1,"function"==typeof t?(this._fitFilter=t,this):(t instanceof Array||(t=[t]),this._fitFilter=function(e){return t.includes(e.id)},this)):this._fitFilter}},{key:"fitKey",value:function(t){return arguments.length?(this._fitKey=t,this._zoomSet=!1,this):this._fitKey}},{key:"fitObject",value:function(t,e){if(arguments.length){if("string"==typeof t){var n=this._queue.find((function(t){return"fitObject"===t[3]})),i=[eC.bind(this),t,e,"fitObject"];n?this._queue[this._queue.indexOf(n)]=i:this._queue.push(i)}else this._fitObject=t;return this._zoomSet=!1,this}return this._fitObject}},{key:"ocean",value:function(t){return arguments.length?(this._ocean=t,this):this._ocean}},{key:"point",value:function(t){return arguments.length?(this._point="function"==typeof t?t:Za(t),this):this._point}},{key:"pointSize",value:function(t){return arguments.length?(this._pointSize="function"==typeof t?t:Za(t),this):this._pointSize}},{key:"pointSizeMax",value:function(t){return arguments.length?(this._pointSizeMax=t,this):this._pointSizeMax}},{key:"pointSizeMin",value:function(t){return arguments.length?(this._pointSizeMin=t,this):this._pointSizeMin}},{key:"projection",value:function(t){return arguments.length&&"geoMercator"!==t&&this.tiles(!1),arguments.length?(this._projection="string"==typeof t?LR[t]?LR[t]():LR.geoMercator():t,this):this._projection}},{key:"projectionPadding",value:function(t){return arguments.length?(this._projectionPadding=cs(t),this):this._projectionPadding}},{key:"projectionRotate",value:function(t){return arguments.length?(this._projection.rotate(t),this.tiles(!1),this._zoomSet=!1,this):this._projectionRotate}},{key:"tiles",value:function(t){if(arguments.length){this._tiles=t;var e=IR(this._tileUrl);return t&&""===this._attribution?this._attribution=e:t||this._attribution!==e||(this._attribution=""),this}return this._tiles}},{key:"tileUrl",value:function(t){return arguments.length?(this._tileUrl=t,this._tiles&&(this._attribution=IR(t)),this._tileGroup&&this._renderTiles.bind(this)(),this):this._tileUrl}},{key:"topojson",value:function(t,e){if(arguments.length){if("string"==typeof t){var n=this._queue.find((function(t){return"topojson"===t[3]})),i=[eC.bind(this),t,e,"topojson"];n?this._queue[this._queue.indexOf(n)]=i:this._queue.push(i)}else this._topojson=t;return this._zoomSet=!1,this}return this._topojson}},{key:"topojsonFill",value:function(t){return arguments.length?(this._topojsonFill="function"==typeof t?t:Za(t),this):this._topojsonFill}},{key:"topojsonFilter",value:function(t){return arguments.length?(this._zoomSet=!1,"function"==typeof t?(this._topojsonFilter=t,this):(t instanceof Array||(t=[t]),this._topojsonFilter=function(e){return t.includes(e.id)},this)):this._topojsonFilter}},{key:"topojsonKey",value:function(t){return arguments.length?(this._topojsonKey=t,this._zoomSet=!1,this):this._topojsonKey}},{key:"topojsonId",value:function(t){return arguments.length?(this._topojsonId="function"==typeof t?t:Aa(t),this):this._topojsonId}}],n&&BR(e.prototype,n),i&&BR(e,i),o}(RR);function VR(t){return VR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VR(t)}function UR(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function WR(t,e,n){return WR="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=XR(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},WR(t,e,n||t)}function qR(t,e){return qR=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},qR(t,e)}function KR(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=XR(t);if(e){var r=XR(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===VR(e)||"function"==typeof e))return e;return YR(t)}(this,n)}}function YR(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function XR(t){return XR=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},XR(t)}var ZR=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qR(t,e)}(o,t);var e,n,i,r=KR(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o);var e=(t=r.call(this))._legend;return t._legend=function(n,i){return i.length!==t._filteredData.length&&e.bind(YR(t))(n,i)},t._legendSort=function(e,n){return t._value(n)-t._value(e)},t._shapeConfig=Oa(t._shapeConfig,{ariaLabel:function(e,n){return t._pieData?"".concat(++t._pieData[n].index,". ").concat(t._drawLabel(e,n),", ").concat(t._value(e,n),"."):""},Path:{labelConfig:{fontResize:!0}}}),t._innerRadius=0,t._legendSort=function(e,n){return t._value(n)-t._value(e)},t._padPixel=0,t._pie=xu(),t._sort=function(e,n){return t._value(n)-t._value(e)},t._value=Aa("value"),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;WR(XR(o.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,r=E([i,n])/2,a=this._pieData=this._pie.padAngle(this._padAngle||this._padPixel/r).sort(this._sort).value(this._value)(this._filteredData);a.forEach((function(t,e){t.__d3plus__=!0,t.i=e}));var s=hu().innerRadius(this._innerRadius).outerRadius(r),u="translate(".concat(i/2+this._margin.left,", ").concat(n/2+this._margin.top,")");return this._shapes.push((new xf).data(a).d(s).select($a("g.d3plus-Pie",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).config({id:function(t){return e._ids(t).join("-")},x:0,y:0}).label(this._drawLabel).config(Xa.bind(this)(this._shapeConfig,"shape","Path")).render()),this}},{key:"innerRadius",value:function(t){return arguments.length?(this._innerRadius=t,this):this._innerRadius}},{key:"padAngle",value:function(t){return arguments.length?(this._padAngle=t,this):this._padAngle}},{key:"padPixel",value:function(t){return arguments.length?(this._padPixel=t,this):this._padPixel}},{key:"sort",value:function(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"value",value:function(t){return arguments.length?(this._value="function"==typeof t?t:Aa(t),this):this._value}}],n&&UR(e.prototype,n),i&&UR(e,i),o}(RR);function $R(t){return $R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$R(t)}function JR(t,e){return JR=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},JR(t,e)}function QR(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=tM(t);if(e){var r=tM(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===$R(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function tM(t){return tM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},tM(t)}var eM=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&JR(t,e)}(n,t);var e=QR(n);function n(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(t=e.call(this))._innerRadius=function(){return E([t._width-t._margin.left-t._margin.right,t._height-t._margin.top-t._margin.bottom])/4},t._padPixel=2,t}return n}(ZR);function nM(t){var e=0,n=t.children,i=n&&n.length;if(i)for(;--i>=0;)e+=n[i].value;else e=1;t.value=e}function iM(){var t,e,n,i,o,a;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){r.next=8;break}return r.next=5,t;case 5:if(i=t.children)for(o=0,a=i.length;o<a;++o)n.push(i[o]);r.next=2;break;case 8:if(n.length){r.next=1;break}case 9:case"end":return r.stop()}}),r,this)}function rM(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=aM)):void 0===e&&(e=oM);for(var n,i,r,o,a,s=new lM(t),u=[s];n=u.pop();)if((r=e(n.data))&&(a=(r=Array.from(r)).length))for(n.children=r,o=a-1;o>=0;--o)u.push(i=r[o]=new lM(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(uM)}function oM(t){return t.children}function aM(t){return Array.isArray(t)?t[1]:null}function sM(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function uM(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function lM(t){this.data=t,this.depth=this.height=0,this.parent=null}function cM(t){for(var e,n,i=0,r=(t=function(t){for(var e,n,i=t.length;i;)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}(Array.from(t))).length,o=[];i<r;)e=t[i],n&&dM(n,e)?++i:(n=pM(o=hM(o,e)),i=0);return n}function hM(t,e){var n,i;if(gM(e,t))return[e];for(n=0;n<t.length;++n)if(fM(e,t[n])&&gM(vM(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(i=n+1;i<t.length;++i)if(fM(vM(t[n],t[i]),e)&&fM(vM(t[n],e),t[i])&&fM(vM(t[i],e),t[n])&&gM(yM(t[n],t[i],e),t))return[t[n],t[i],e];throw new Error}function fM(t,e){var n=t.r-e.r,i=e.x-t.x,r=e.y-t.y;return n<0||n*n<i*i+r*r}function dM(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function gM(t,e){for(var n=0;n<e.length;++n)if(!dM(t,e[n]))return!1;return!0}function pM(t){switch(t.length){case 1:return function(t){return{x:t.x,y:t.y,r:t.r}}(t[0]);case 2:return vM(t[0],t[1]);case 3:return yM(t[0],t[1],t[2])}}function vM(t,e){var n=t.x,i=t.y,r=t.r,o=e.x,a=e.y,s=e.r,u=o-n,l=a-i,c=s-r,h=Math.sqrt(u*u+l*l);return{x:(n+o+u/h*c)/2,y:(i+a+l/h*c)/2,r:(h+r+s)/2}}function yM(t,e,n){var i=t.x,r=t.y,o=t.r,a=e.x,s=e.y,u=e.r,l=n.x,c=n.y,h=n.r,f=i-a,d=i-l,g=r-s,p=r-c,v=u-o,y=h-o,m=i*i+r*r-o*o,_=m-a*a-s*s+u*u,b=m-l*l-c*c+h*h,w=d*g-f*p,x=(g*b-p*_)/(2*w)-i,k=(p*v-g*y)/w,S=(d*_-f*b)/(2*w)-r,C=(f*y-d*v)/w,E=k*k+C*C-1,A=2*(o+x*k+S*C),R=x*x+S*S-o*o,M=-(E?(A+Math.sqrt(A*A-4*E*R))/(2*E):R/A);return{x:i+x+k*M,y:r+S+C*M,r:M}}function mM(t,e,n){var i,r,o,a,s=t.x-e.x,u=t.y-e.y,l=s*s+u*u;l?(r=e.r+n.r,r*=r,a=t.r+n.r,r>(a*=a)?(i=(l+a-r)/(2*l),o=Math.sqrt(Math.max(0,a/l-i*i)),n.x=t.x-i*s-o*u,n.y=t.y-i*u+o*s):(i=(l+r-a)/(2*l),o=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*s-o*u,n.y=e.y+i*u+o*s)):(n.x=e.x+n.r,n.y=e.y)}function _M(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function bM(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function wM(t){this._=t,this.next=null,this.previous=null}function xM(t){if(!(r=(t=function(t){return"object"===_typeof2(t)&&"length"in t?t:Array.from(t)}(t)).length))return 0;var e,n,i,r,o,a,s,u,l,c,h;if((e=t[0]).x=0,e.y=0,!(r>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(r>2))return e.r+n.r;mM(n,e,i=t[2]),e=new wM(e),n=new wM(n),i=new wM(i),e.next=i.previous=n,n.next=e.previous=i,i.next=n.previous=e;t:for(s=3;s<r;++s){mM(e._,n._,i=t[s]),i=new wM(i),u=n.next,l=e.previous,c=n._.r,h=e._.r;do{if(c<=h){if(_M(u._,i._)){n=u,e.next=n,n.previous=e,--s;continue t}c+=u._.r,u=u.next}else{if(_M(l._,i._)){(e=l).next=n,n.previous=e,--s;continue t}h+=l._.r,l=l.previous}}while(u!==l.next);for(i.previous=e,i.next=n,e.next=n.previous=n=i,o=bM(e);(i=i.next)!==n;)(a=bM(i))<o&&(e=i,o=a);n=e.next}for(e=[n._],i=n;(i=i.next)!==n;)e.push(i._);for(i=cM(e),s=0;s<r;++s)(e=t[s]).x-=i.x,e.y-=i.y;return i.r}function kM(t){if("function"!=typeof t)throw new Error;return t}function SM(){return 0}function CM(t){return function(){return t}}function EM(t){return Math.sqrt(t.value)}function AM(){var t=null,e=1,n=1,i=SM;function r(r){return r.x=e/2,r.y=n/2,t?r.eachBefore(RM(t)).eachAfter(MM(i,.5)).eachBefore(OM(1)):r.eachBefore(RM(EM)).eachAfter(MM(SM,1)).eachAfter(MM(i,r.r/Math.min(e,n))).eachBefore(OM(Math.min(e,n)/(2*r.r))),r}return r.radius=function(e){return arguments.length?(t=null==(n=e)?null:kM(n),r):t;var n},r.size=function(t){return arguments.length?(e=+t[0],n=+t[1],r):[e,n]},r.padding=function(t){return arguments.length?(i="function"==typeof t?t:CM(+t),r):i},r}function RM(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function MM(t,e){return function(n){if(i=n.children){var i,r,o,a=i.length,s=t(n)*e||0;if(s)for(r=0;r<a;++r)i[r].r+=s;if(o=xM(i),s)for(r=0;r<a;++r)i[r].r-=s;n.r=o+s}}}function OM(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}function TM(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function PM(t,e,n,i,r){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(i-e)/t.value;++s<u;)(o=a[s]).y0=n,o.y1=r,o.x0=e,o.x1=e+=o.value*l}function BM(t,e){return t.parent===e.parent?1:2}function DM(t){var e=t.children;return e?e[0]:t.t}function NM(t){var e=t.children;return e?e[e.length-1]:t.t}function zM(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function jM(t,e,n){return t.a.parent===e.parent?t.a:n}function FM(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function LM(){var t=BM,e=1,n=1,i=null;function r(r){var u=function(t){for(var e,n,i,r,o,a=new FM(t,0),s=[a];e=s.pop();)if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new FM(i[r],r)),n.parent=e;return(a.parent=new FM(null,0)).children=[a],a}(r);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),i)r.eachBefore(s);else{var l=r,c=r,h=r;r.eachBefore((function(t){t.x<l.x&&(l=t),t.x>c.x&&(c=t),t.depth>h.depth&&(h=t)}));var f=l===c?1:t(l,c)/2,d=f-l.x,g=e/(c.x+f+d),p=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*g,t.y=t.depth*p}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){!function(t){for(var e,n=0,i=0,r=t.children,o=r.length;--o>=0;)(e=r[o]).z+=n,e.m+=n,n+=e.s+(i+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=function(e,n,i){if(n){for(var r,o=e,a=e,s=n,u=o.parent.children[0],l=o.m,c=a.m,h=s.m,f=u.m;s=NM(s),o=DM(o),s&&o;)u=DM(u),(a=NM(a)).a=e,(r=s.z+h-o.z-l+t(s._,o._))>0&&(zM(jM(s,e,i),e,r),l+=r,c+=r),h+=s.m,l+=o.m,f+=u.m,c+=a.m;s&&!NM(a)&&(a.t=s,a.m+=h-c),o&&!DM(u)&&(u.t=o,u.m+=l-f,i=e)}return i}(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r}function IM(t,e,n,i,r){for(var o,a=t.children,s=-1,u=a.length,l=t.value&&(r-n)/t.value;++s<u;)(o=a[s]).x0=e,o.x1=i,o.y0=n,o.y1=n+=o.value*l}lM.prototype=rM.prototype=_defineProperty2({constructor:lM,count:function(){return this.eachAfter(nM)},each:function(t,e){var n,i=-1,r=_createForOfIteratorHelper2(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;t.call(e,o,++i,this)}}catch(t){r.e(t)}finally{r.f()}return this},eachAfter:function(t,e){for(var n,i,r,o=this,a=[o],s=[],u=-1;o=a.pop();)if(s.push(o),n=o.children)for(i=0,r=n.length;i<r;++i)a.push(n[i]);for(;o=s.pop();)t.call(e,o,++u,this);return this},eachBefore:function(t,e){for(var n,i,r=this,o=[r],a=-1;r=o.pop();)if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},find:function(t,e){var n,i=-1,r=_createForOfIteratorHelper2(this);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(t.call(e,o,++i,this))return o}}catch(t){r.e(t)}finally{r.f()}},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,i=e.children,r=i&&i.length;--r>=0;)n+=i[r].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();for(;t===e;)r=t,t=n.pop(),e=i.pop();return r}(e,t),i=[e];e!==n;)e=e.parent,i.push(e);for(var r=i.length;t!==n;)i.splice(r,0,t),t=t.parent;return i},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return rM(this).eachBefore(sM)}},Symbol.iterator,iM),FM.prototype=Object.create(lM.prototype);var HM=(1+Math.sqrt(5))/2;function GM(t,e,n,i,r,o){for(var a,s,u,l,c,h,f,d,g,p,v,y=[],m=e.children,_=0,b=0,w=m.length,x=e.value;_<w;){u=r-n,l=o-i;do{c=m[b++].value}while(!c&&b<w);for(h=f=c,v=c*c*(p=Math.max(l/u,u/l)/(x*t)),g=Math.max(f/v,v/h);b<w;++b){if(c+=s=m[b].value,s<h&&(h=s),s>f&&(f=s),v=c*c*p,(d=Math.max(f/v,v/h))>g){c-=s;break}g=d}y.push(a={value:c,dice:u<l,children:m.slice(_,b)}),a.dice?PM(a,n,i,r,x?i+=l*c/x:o):IM(a,n,i,x?n+=u*c/x:r,o),x-=c,_=b}return y}var VM=function t(e){function n(t,n,i,r,o){GM(e,t,n,i,r,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(HM);var UM=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e)for(var a,s,u,l,c,h=-1,f=a.length,d=t.value;++h<f;){for(u=(s=a[h]).children,l=s.value=0,c=u.length;l<c;++l)s.value+=u[l].value;s.dice?PM(s,n,i,r,d?i+=(o-i)*s.value/d:o):IM(s,n,i,d?n+=(r-n)*s.value/d:r,o),d-=s.value}else t._squarify=a=GM(e,t,n,i,r,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(HM);function WM(t){return WM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WM(t)}function qM(t){return function(t){if(Array.isArray(t))return KM(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return KM(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return KM(t,e)}(t)||function(){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 KM(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function YM(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function XM(t,e,n){return XM="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=QM(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},XM(t,e,n||t)}function ZM(t,e){return ZM=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},ZM(t,e)}function $M(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=QM(t);if(e){var r=QM(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===WM(e)||"function"==typeof e))return e;return JM(t)}(this,n)}}function JM(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function QM(t){return QM=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},QM(t)}var tO=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.values?e.values.forEach((function(e){n.push(e),t(e,n)})):n.push(e),n},eO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ZM(t,e)}(o,t);var e,n,i,r=$M(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._layoutPadding=1;var e=t._legend;t._legend=function(n,i){return i.length!==t._filteredData.length&&e.bind(JM(t))(n,i)},t._on.mouseenter=function(){};var n=t._on["mousemove.legend"];t._on["mousemove.legend"]=function(e,i,r,o){n(e,i,r,o);var a=t._ids(e,i),s=tO(e);t.hover((function(t){return Object.keys(t).filter((function(t){return"value"!==t})).every((function(n){return e[n]&&e[n].includes(t[n])}))?s.push(t):a.includes(t.key)&&s.push.apply(s,qM(tO(t,[t]))),s.includes(t)}))};var i=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(e,n,r,o){e.__d3plusTooltip__&&i(e,n,r,o),t.hover((function(t){return tO(e,[e]).includes(t)}))},t._pack=AM(),t._packOpacity=Za(.25),t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{Circle:{label:function(t){return!(!t.parent||t.children)&&t.id},labelConfig:{fontResize:!0},opacity:function(t){return t.__d3plusOpacity__}}}),t._sort=function(t,e){return e.value-t.value},t._sum=Aa("value"),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;XM(QM(o.prototype),"_draw",this).call(this,t);for(var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right,r=Math.min(n,i),a="translate(".concat((i-r)/2,", ").concat((n-r)/2,")"),s=es(),u=0;u<=this._drawDepth;u++)s.key(this._groupBy[u]);s=s.entries(this._filteredData);var l=this._pack.padding(this._layoutPadding).size([r,r])(rM({key:s.key,values:s},(function(t){return t.values})).sum(this._sum).sort(this._sort)).descendants();return l.forEach((function(t,n){t.__d3plus__=!0,t.i=n,t.id=t.parent?t.parent.data.key:null,t.data.__d3plusOpacity__=t.height?e._packOpacity(t.data,n):1,t.data.__d3plusTooltip__=!t.height})),this._shapes.push((new zh).data(l).select($a("g.d3plus-Pack",{parent:this._select,enter:{transform:a},update:{transform:a}}).node()).config(Xa.bind(this)(this._shapeConfig,"shape","Circle")).render()),this}},{key:"hover",value:function(t){return this._hover=t,this._shapes.forEach((function(e){return e.hover(t)})),this._legend&&this._legendClass.hover(t),this}},{key:"layoutPadding",value:function(t){return arguments.length?(this._layoutPadding=t,this):this._layoutPadding}},{key:"packOpacity",value:function(t){return arguments.length?(this._packOpacity="function"==typeof t?t:Za(t),this):this._packOpacity}},{key:"sort",value:function(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"sum",value:function(t){return arguments.length?(this._sum="function"==typeof t?t:Aa(t),this):this._sum}}],n&&YM(e.prototype,n),i&&YM(e,i),o}(RR);function nO(t,e){e instanceof Array||(e=[e]);for(var n=es(),i=0;i<e.length;i++)n.key(e[i]);return iO(n.entries(t))}function iO(t){return t.map((function(t){if(t.key&&t.values){if("undefined"===t.values[0].key)return t.values[0].values[0];t.values=iO(t.values)}return t}))}function rO(t){return rO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rO(t)}function oO(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function aO(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function sO(t,e,n){return sO="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=cO(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},sO(t,e,n||t)}function uO(t,e){return uO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},uO(t,e)}function lO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=cO(t);if(e){var r=cO(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===rO(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function cO(t){return cO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},cO(t)}var hO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uO(t,e)}(o,t);var e,n,i,r=lO(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._orient="vertical",t._separation=function(t,e){return t.parent===e.parent?1:2},t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{ariaLabel:function(e,n){return t._treeData?"".concat(t._treeData[n].depth,". ").concat(t._drawLabel(e,n),"."):""},labelConfig:{fontColor:"#444"},Path:{fill:"none",stroke:"#ccc",strokeWidth:1},r:Za(5),width:Za(10),height:Za(10)}),t._tree=LM(),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;sO(cO(o.prototype),"_draw",this).call(this,t);var n="vertical"===this._orient?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right,i="vertical"===this._orient?"left":"top",r=this,a="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),s="horizontal"===this._orient?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right,u=this._treeData=this._tree.separation(this._separation).size([s,n])(rM({key:"root",values:nO(this._filteredData,this._groupBy.slice(0,this._drawDepth+1))},(function(t){return t.key&&t.values?t.values:null})).sort(this._sort)).descendants().filter((function(t){return t.depth<=e._groupBy.length&&t.parent}));function l(t){return ls(t.values.map((function(t){return t.key&&t.values?l(t):t})),r._aggs)}u.forEach((function(t,e){t.data.key&&t.data.values&&(t.data=l(t.data)),t.__d3plus__=!0,t.i=e}));var c=this._shapeConfig.r;"function"!=typeof c&&(c=Za(c));var f=C(u,(function(t){return 1===t.depth?c(t.data,t.i):0})),d=C(u,(function(t){return t.children?0:c(t.data,t.i)})),g=h(u,(function(t){return t.y}));this._labelHeight=E(["vertical"===this._orient?50:100,(g[1]-f-d)/(this._groupBy.length+1)]),this._labelWidths=nO(u,(function(t){return t.depth})).map((function(t){return t.values.reduce((function(n,r,o){var a=o<t.values.length-1?t.values[o+1].x:s+e._margin[i],u=o?t.values[o-1].x:e._margin[i];return E([n,a-r.x,r.x-u])}),s)}));var p=Ci().domain(g).range([f+this._labelHeight,n-d-this._labelHeight]);u.forEach((function(t){var n=p(t.y);"horizontal"===e._orient?(t.y=t.x,t.x=n):t.y=n}));var v={parent:this._select,enter:{transform:a},update:{transform:a}};return this._shapes.push((new xf).data(u.filter((function(t){return t.depth>1}))).select($a("g.d3plus-Tree-Links",v).node()).config(Xa.bind(this)(this._shapeConfig,"shape","Path")).config({d:function(t){var n=e._shapeConfig.r;"function"==typeof n&&(n=n(t.data,t.i));var i=t.parent.x-t.x+("vertical"===e._orient?0:n),r=t.parent.y-t.y+("vertical"===e._orient?n:0),o="vertical"===e._orient?0:-n,a="vertical"===e._orient?-n:0;return"vertical"===e._orient?"M".concat(o,",").concat(a,"C").concat(o,",").concat((a+r)/2," ").concat(i,",").concat((a+r)/2," ").concat(i,",").concat(r):"M".concat(o,",").concat(a,"C").concat((o+i)/2,",").concat(a," ").concat((o+i)/2,",").concat(r," ").concat(i,",").concat(r)},id:function(t,n){return e._ids(t,n).join("-")}}).render()),this._shapes.push((new zh).data(u).select($a("g.d3plus-Tree-Shapes",v).node()).config(Xa.bind(this)(this._shapeConfig,"shape","Circle")).config({id:function(t,n){return e._ids(t,n).join("-")},label:function(t,n){if(e._label)return e._label(t.data,n);var i=e._ids(t,n).slice(0,t.depth);return i[i.length-1]},labelConfig:{textAnchor:function(t){return"vertical"===e._orient?"middle":t.data.children&&t.data.depth!==e._groupBy.length?"end":"start"},verticalAlign:function(t){return"vertical"===e._orient?1===t.data.depth?"bottom":"top":"middle"}},hitArea:function(t,n,i){var r=e._labelHeight,o=e._labelWidths[t.depth-1];return{width:"vertical"===e._orient?o:2*i.r+o,height:"horizontal"===e._orient?r:2*i.r+r,x:"vertical"===e._orient?-o/2:t.children&&t.depth!==e._groupBy.length?-(i.r+o):-i.r,y:"horizontal"===e._orient?-r/2:t.children&&t.depth!==e._groupBy.length?-(i.r+e._labelHeight):-i.r}},labelBounds:function(t,n,i){var r,o=e._labelHeight,a="vertical"===e._orient?"height":"width",s=e._labelWidths[t.depth-1],u="vertical"===e._orient?"width":"height",l="vertical"===e._orient?"x":"y",c="vertical"===e._orient?"y":"x";return oO(r={},u,s),oO(r,a,o),oO(r,l,-s/2),oO(r,c,t.children&&t.depth!==e._groupBy.length?-(i.r+o):i.r),r}}).render()),this}},{key:"orient",value:function(t){return arguments.length?(this._orient=t,this):this._orient}},{key:"separation",value:function(t){return arguments.length?(this._separation=t,this):this._separation}}],n&&aO(e.prototype,n),i&&aO(e,i),o}(RR);function fO(t){return fO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fO(t)}function dO(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function gO(t,e,n){return gO="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=mO(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},gO(t,e,n||t)}function pO(t,e){return pO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},pO(t,e)}function vO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=mO(t);if(e){var r=mO(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===fO(e)||"function"==typeof e))return e;return yO(t)}(this,n)}}function yO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function mO(t){return mO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},mO(t)}var _O={treemapBinary:function(t,e,n,i,r){var o,a,s=t.children,u=s.length,l=new Array(u+1);for(l[0]=a=o=0;o<u;++o)l[o+1]=a+=s[o].value;!function t(e,n,i,r,o,a,u){if(e>=n-1){var c=s[e];return c.x0=r,c.y0=o,c.x1=a,void(c.y1=u)}var h=l[e],f=i/2+h,d=e+1,g=n-1;for(;d<g;){var p=d+g>>>1;l[p]<f?d=p+1:g=p}f-l[d-1]<l[d]-f&&e+1<d&&--d;var v=l[d]-h,y=i-v;if(a-r>u-o){var m=i?(r*y+a*v)/i:a;t(e,d,v,r,o,m,u),t(d,n,y,m,o,a,u)}else{var _=i?(o*y+u*v)/i:u;t(e,d,v,r,o,a,_),t(d,n,y,r,_,a,u)}}(0,u,t.value,e,n,i,r)},treemapDice:PM,treemapSlice:IM,treemapSliceDice:function(t,e,n,i,r){(1&t.depth?IM:PM)(t,e,n,i,r)},treemapSquarify:VM,treemapResquarify:UM},bO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pO(t,e)}(o,t);var e,n,i,r=vO(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._layoutPadding=1;var e=t._legend;t._legend=function(n,i){return i.length!==t._filteredData.length&&e.bind(yO(t))(n,i)},t._legendSort=function(e,n){return t._sum(n)-t._sum(e)},t._legendTooltip=Oa({},t._legendTooltip,{tbody:[]}),t._shapeConfig=Oa({},t._shapeConfig,{ariaLabel:function(e,n){var i=t._rankData?"".concat(t._rankData.indexOf(e)+1,". "):"";return"".concat(i).concat(t._drawLabel(e,n),", ").concat(t._sum(e,n),".")},labelConfig:{fontMax:40,fontMin:8,fontResize:!0,padding:5}}),t._sort=function(t,e){var i=n(t),r=n(e);return i&&!r?1:!i&&r?-1:e.value-t.value},t._sum=Aa("value"),t._thresholdKey=t._sum,t._tile=VM,t._tooltipConfig=Oa({},t._tooltipConfig,{tbody:[[function(){return t._translate("Share")},function(e,n,i){return"".concat(ks(100*i.share,t._locale),"%")}]]}),t._treemap=function(){var t=VM,e=!1,n=1,i=1,r=[0],o=SM,a=SM,s=SM,u=SM,l=SM;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=i,t.eachBefore(h),r=[0],e&&t.eachBefore(TM),t}function h(e){var n=r[e.depth],i=e.x0+n,c=e.y0+n,h=e.x1-n,f=e.y1-n;h<i&&(i=h=(i+h)/2),f<c&&(c=f=(c+f)/2),e.x0=i,e.y0=c,e.x1=h,e.y1=f,e.children&&(n=r[e.depth+1]=o(e)/2,i+=l(e)-n,c+=a(e)-n,(h-=s(e)-n)<i&&(i=h=(i+h)/2),(f-=u(e)-n)<c&&(c=f=(c+f)/2),t(e,i,c,h,f))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],i=+t[1],c):[n,i]},c.tile=function(e){return arguments.length?(t=kM(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:CM(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:CM(+t),c):a},c.paddingRight=function(t){return arguments.length?(s="function"==typeof t?t:CM(+t),c):s},c.paddingBottom=function(t){return arguments.length?(u="function"==typeof t?t:CM(+t),c):u},c.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:CM(+t),c):l},c}().round(!0);var n=function(t){return t.children&&1===t.children.length&&t.children[0].data._isAggregation};return t}return e=o,n=[{key:"_draw",value:function(t){var e=this;gO(mO(o.prototype),"_draw",this).call(this,t);for(var n=es(),i=0;i<=this._drawDepth;i++)n.key(this._groupBy[i]);n=n.entries(this._filteredData);var r=this._treemap.padding(this._layoutPadding).size([this._width-this._margin.left-this._margin.right,this._height-this._margin.top-this._margin.bottom]).tile(this._tile)(rM({values:n},(function(t){return t.values})).sum(this._sum).sort(this._sort)),a=[],s=this;r.children&&function t(e){for(var n=0;n<e.length;n++){var i=e[n];if(i.depth<=s._drawDepth)t(i.children);else{var r=1===i.data.values.length?s._filteredData.indexOf(i.data.values[0]):void 0;i.__d3plus__=!0,i.id=i.data.key,i.i=r>-1?r:void 0,i.data=ls(i.data.values,s._aggs),i.x=i.x0+(i.x1-i.x0)/2,i.y=i.y0+(i.y1-i.y0)/2,a.push(i)}}}(r.children),this._rankData=a.sort(this._sort).map((function(t){return t.data}));var u=r.value;a.forEach((function(t){t.share=e._sum(t.data,t.i)/u}));var l="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),c=Xa.bind(this)(this._shapeConfig,"shape","Rect"),h=c.labelConfig.fontMax,f=c.labelConfig.fontMin,d=c.labelConfig.padding;return this._shapes.push((new Vh).data(a).label((function(t){return[e._drawLabel(t.data,t.i),"".concat(ks(100*t.share,e._locale),"%")]})).select($a("g.d3plus-Treemap",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).config({height:function(t){return t.y1-t.y0},labelBounds:function(t,e,n){var i=n.height,r=Math.min(h,.5*(i-2*d));return r<f&&(r=0),[{width:n.width,height:i-r,x:-n.width/2,y:-i/2},{width:n.width,height:r+2*d,x:-n.width/2,y:i/2-r-2*d}]},labelConfig:{textAnchor:function(t,e,n){for(var i,r=n;void 0===i&&r;)void 0!==r.l&&(i=r.l),r=r.__d3plusParent__;return i?"middle":"start"},verticalAlign:function(t,e,n){for(var i,r=n;void 0===i&&r;)void 0!==r.l&&(i=r.l),r=r.__d3plusParent__;return i?"bottom":"top"}},width:function(t){return t.x1-t.x0}}).config(c).render()),this}},{key:"_thresholdFunction",value:function(t){var e=this._aggs,n=this._drawDepth,i=this._groupBy,r=this._threshold,o=this._thresholdKey,a=N(t,o);return r&&o?function t(s,u){if(u<n)return es().key(i[u]).entries(s).reduce((function(e,n){var i=t(n.values,u+1);return e.concat(i)}),[]);if(u===n){var l=Math.min(1,Math.max(0,r(s)));if(!isFinite(l)||isNaN(l))return null;for(var c=[],h=s.slice(),f=l*a,d=h.length;d--;){var g=h[d];if(o(g)<f){var p=h.indexOf(g);h.splice(p,1),c.push(g)}}if(c.length>0){var v=ls(c,e);v._isAggregation=!0,v._threshold=l,h.push(v)}return h}throw new Error("Depth is higher than the amount of grouping levels.")}(t,0):t}},{key:"layoutPadding",value:function(t){return arguments.length?(this._layoutPadding="function"==typeof t?t:Za(t),this):this._layoutPadding}},{key:"sort",value:function(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"sum",value:function(t){return arguments.length?(this._sum="function"==typeof t?t:Aa(t),this._thresholdKey=this._sum,this):this._sum}},{key:"tile",value:function(t){return arguments.length?(this._tile="string"==typeof t?_O["treemap".concat(t.charAt(0).toUpperCase()).concat(t.slice(1))]||VM:t,this):this._tile}}],n&&dO(e.prototype,n),i&&dO(e,i),o}(RR);function wO(t,e,n){return e[t]||this["_".concat(t)](e,n)}function xO(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||SO(t,e)||function(){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 kO(t){return function(t){if(Array.isArray(t))return CO(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||SO(t)||function(){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 SO(t,e){if(t){if("string"==typeof t)return CO(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?CO(t,e):void 0}}function CO(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function EO(){var t=this,e=this._filteredData,n=(this._rowList||us(e.map(this._row))).sort(this._rowSort),i=(this._columnList||us(e.map(this._column))).sort(this._columnSort);if(!n.length||!i.length)return this;var r=function(t,e){var n;return(n=[]).concat.apply(n,kO(t.map((function(t){return e.map((function(e){return[].concat(t,e)}))}))))}(n,i).map((function(n){var i=xO(n,2),r=i[0],o=i[1],a={__d3plusTooltip__:!0,__d3plus__:!0,column:o,row:r},s=e.findIndex((function(e,n){return t._row(e,n)===r&&t._column(e,n)===o}));return s>=0?(a.i=s,a.data=e[s]):a.data={row:r,column:o},a}));return{rowValues:n,columnValues:i,shapeData:r}}function AO(t){return AO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},AO(t)}function RO(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function MO(){return MO="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=BO(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},MO.apply(this,arguments)}function OO(t,e){return OO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},OO(t,e)}function TO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=BO(t);if(e){var r=BO(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===AO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return PO(t)}(this,n)}}function PO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function BO(t){return BO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},BO(t)}var DO={align:"start",barConfig:{stroke:0},gridSize:0,padding:5,paddingInner:0,paddingOuter:0,scale:"band",tickSize:0},NO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&OO(t,e)}(o,t);var e,n,i,r=TO(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._cellPadding=2,t._column=Aa("column"),t._columnAxis=new zf,t._columnConfig=Oa({orient:"top"},DO),t._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))},t._label=function(e,n){return"".concat(wO.bind(PO(t))("row",e,n)," / ").concat(wO.bind(PO(t))("column",e,n))};var e=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(n,i,r,o){e(n,i,r,o);var a=wO.bind(PO(t))("row",n,i),s=wO.bind(PO(t))("column",n,i);t.hover((function(e,n){return wO.bind(PO(t))("row",e,n)===a||wO.bind(PO(t))("column",e,n)===s}))},t._row=Aa("row"),t._rowAxis=new zf,t._rowConfig=Oa({orient:"left"},DO),t._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))},t}return e=o,n=[{key:"_draw",value:function(t){var e=EO.bind(this)(this._filteredData),n=e.rowValues,i=e.columnValues,r=e.shapeData;if(!n.length||!i.length)return this;var a=this._height-this._margin.top-this._margin.bottom,s=this._select,u=this._transition,l=this._width-this._margin.left-this._margin.right,c={opacity:0},h={opacity:1},f=l/i.length<120,d=function(t,e){return $a("g.d3plus-Matrix-".concat(t),Object.assign({parent:s,transition:u},e)).node()};this._rowAxis.select(d("row",{enter:c,update:c})).domain(n).height(a-this._margin.top-this._margin.bottom-this._padding.bottom-this._padding.top).maxSize(l/4).width(l).config(this._rowConfig).render();var g=this._rowAxis.outerBounds().width;this._padding.left+=g;var p="translate(0, ".concat(this._margin.top,")"),v=Object.assign({transform:p},c);this._columnAxis.select(d("column",{enter:v,update:v})).domain(i).range([this._margin.left+this._padding.left,l-this._margin.right+this._padding.right]).height(a).maxSize(a/4).width(l).labelRotation(f).config(this._columnConfig).render();var y=this._columnAxis.outerBounds().height;this._padding.top+=y,MO(BO(o.prototype),"_draw",this).call(this,t);var m="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");p="translate(0, ".concat(this._margin.top,")");var _=Object.assign({transform:p},h);this._rowAxis.select(d("row",{update:Object.assign({transform:m},h)})).height(a-this._margin.top-this._margin.bottom-this._padding.bottom).maxSize(g).range([y+this._columnAxis.padding(),void 0]).render(),this._columnAxis.select(d("column",{update:_})).range([this._margin.left+this._padding.left+this._rowAxis.padding(),l-this._margin.right+this._padding.right]).maxSize(y).render();var b=this._rowAxis._getPosition.bind(this._rowAxis),w=this._columnAxis._getPosition.bind(this._columnAxis),x=n.length>1?b(n[1])-b(n[0]):this._rowAxis.height(),k=i.length>1?w(i[1])-w(i[0]):this._columnAxis.width(),S="translate(0, ".concat(this._margin.top,")"),C=Xa.bind(this)(this._shapeConfig,"shape","Rect");return this._shapes.push((new Vh).data(r).select($a("g.d3plus-Matrix-cells",{parent:this._select,enter:{transform:S},update:{transform:S}}).node()).config({height:x-this._cellPadding,width:k-this._cellPadding,x:function(t){return w(t.column)+k/2},y:function(t){return b(t.row)+x/2}}).config(C).render()),this}},{key:"cellPadding",value:function(t){return arguments.length?(this._cellPadding=t,this):this._cellPadding}},{key:"column",value:function(t){return arguments.length?(this._column="function"==typeof t?t:Aa(t),this):this._column}},{key:"columnConfig",value:function(t){return arguments.length?(this._columnConfig=Oa(this._columnConfig,t),this):this._columnConfig}},{key:"columnList",value:function(t){return arguments.length?(this._columnList=t,this):this._columnList}},{key:"columnSort",value:function(t){return arguments.length?(this._columnSort=t,this):this._columnSort}},{key:"row",value:function(t){return arguments.length?(this._row="function"==typeof t?t:Aa(t),this):this._row}},{key:"rowConfig",value:function(t){return arguments.length?(this._rowConfig=Oa(this._rowConfig,t),this):this._rowConfig}},{key:"rowList",value:function(t){return arguments.length?(this._rowList=t,this):this._rowList}},{key:"rowSort",value:function(t){return arguments.length?(this._rowSort=t,this):this._rowSort}}],n&&RO(e.prototype,n),i&&RO(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(RR);function zO(t){return zO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zO(t)}function jO(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function FO(){return FO="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=GO(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},FO.apply(this,arguments)}function LO(t,e){return LO=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},LO(t,e)}function IO(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=GO(t);if(e){var r=GO(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===zO(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return HO(t)}(this,n)}}function HO(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function GO(t){return GO=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},GO(t)}var VO=2*Math.PI,UO=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&LO(t,e)}(o,t);var e,n,i,r=IO(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._cellPadding=2,t._column=Aa("column"),t._columnConfig={shapeConfig:{labelConfig:{fontColor:"#000",padding:5,textAnchor:function(t){return[0,180].includes(t.angle)?"middle":[2,3].includes(t.quadrant)?"end":"start"},verticalAlign:function(t){return[90,270].includes(t.angle)?"middle":[2,1].includes(t.quadrant)?"bottom":"top"}}}},t._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))},t._innerRadius=function(t){return t/5},t._label=function(e,n){return"".concat(wO.bind(HO(t))("row",e,n)," / ").concat(wO.bind(HO(t))("column",e,n))};var e=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(n,i,r,o){e(n,i,r,o);var a=wO.bind(HO(t))("row",n,i),s=wO.bind(HO(t))("column",n,i);t.hover((function(e,n){return wO.bind(HO(t))("row",e,n)===a||wO.bind(HO(t))("column",e,n)===s}))},t._row=Aa("row"),t._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))},t._columnLabels=new _c,t}return e=o,n=[{key:"_draw",value:function(t){var e=this,n=EO.bind(this)(this._filteredData),i=n.rowValues,r=n.columnValues,a=n.shapeData;if(!i.length||!r.length)return this;FO(GO(o.prototype),"_draw",this).call(this,t);var s=this._height-this._margin.top-this._margin.bottom,u=this._select,l=this._transition,c=this._width-this._margin.left-this._margin.right,h=100,f=E([s-100,c-200])/2,d="translate(".concat(c/2+this._margin.left,", ").concat(s/2+this._margin.top,")"),g=r.slice().reverse();g.unshift(g.pop());var p=g.length,v=g.map((function(t,e){var n=e/p*VO,i=Math.round(180*n/Math.PI),r=Math.floor((i+90)/90%4+1),o=[0,180].includes(i)?-50:[2,3].includes(r)?-100:0,a=[90,270].includes(i)?-25:[2,1].includes(r)?-50:0;return{key:t,angle:i,quadrant:r,radians:n,x:f*Math.sin(n+Math.PI)+o,y:f*Math.cos(n+Math.PI)+a}})),y=this._columnConfig.labels instanceof Array?v.filter((function(t){return e._columnConfig.labels.includes(t.key)})):v;this._columnLabels.data(y).x((function(t){return t.x})).y((function(t){return t.y})).text((function(t){return t.key})).width(h).height(50).config(this._columnConfig.shapeConfig.labelConfig).select($a("g.d3plus-RadialMatrix-columns",{parent:u,transition:l,enter:{transform:d},update:{transform:d}}).node()).render();var m=this._innerRadius(f),_=(f-m)/i.length,b=v.length>1?v[1].radians-v[0].radians:VO,w=i.slice().reverse(),x=hu().padAngle(this._cellPadding/f).innerRadius((function(t){return m+w.indexOf(t.row)*_+e._cellPadding/2})).outerRadius((function(t){return m+(w.indexOf(t.row)+1)*_-e._cellPadding/2})).startAngle((function(t){return v[r.indexOf(t.column)].radians-b/2})).endAngle((function(t){return v[r.indexOf(t.column)].radians+b/2}));return this._shapes.push((new xf).data(a).d(x).select($a("g.d3plus-RadialMatrix-arcs",{parent:u,transition:l,enter:{transform:d},update:{transform:d}}).node()).config({id:function(t){return e._ids(t).join("-")},x:0,y:0}).config(Xa.bind(this)(this._shapeConfig,"shape","Path")).render()),this}},{key:"cellPadding",value:function(t){return arguments.length?(this._cellPadding=t,this):this._cellPadding}},{key:"column",value:function(t){return arguments.length?(this._column="function"==typeof t?t:Aa(t),this):this._column}},{key:"columnConfig",value:function(t){return arguments.length?(this._columnConfig=Oa(this._columnConfig,t),this):this._columnConfig}},{key:"columnList",value:function(t){return arguments.length?(this._columnList=t,this):this._columnList}},{key:"columnSort",value:function(t){return arguments.length?(this._columnSort=t,this):this._columnSort}},{key:"innerRadius",value:function(t){return arguments.length?(this._innerRadius="function"==typeof t?t:Za(t),this):this._innerRadius}},{key:"row",value:function(t){return arguments.length?(this._row="function"==typeof t?t:Aa(t),this):this._row}},{key:"rowList",value:function(t){return arguments.length?(this._rowList=t,this):this._rowList}},{key:"rowSort",value:function(t){return arguments.length?(this._rowSort=t,this):this._rowSort}}],n&&jO(e.prototype,n),i&&jO(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(RR);function WO(t,e,n,i){if(isNaN(e)||isNaN(n))return t;var r,o,a,s,u,l,c,h,f,d=t._root,g={data:i},p=t._x0,v=t._y0,y=t._x1,m=t._y1;if(!d)return t._root=g,t;for(;d.length;)if((l=e>=(o=(p+y)/2))?p=o:y=o,(c=n>=(a=(v+m)/2))?v=a:m=a,r=d,!(d=d[h=c<<1|l]))return r[h]=g,t;if(s=+t._x.call(null,d.data),u=+t._y.call(null,d.data),e===s&&n===u)return g.next=d,r?r[h]=g:t._root=g,t;do{r=r?r[h]=new Array(4):t._root=new Array(4),(l=e>=(o=(p+y)/2))?p=o:y=o,(c=n>=(a=(v+m)/2))?v=a:m=a}while((h=c<<1|l)==(f=(u>=a)<<1|s>=o));return r[f]=d,r[h]=g,t}function qO(t,e,n,i,r){this.node=t,this.x0=e,this.y0=n,this.x1=i,this.y1=r}function KO(t){return t[0]}function YO(t){return t[1]}function XO(t,e,n){var i=new ZO(null==e?KO:e,null==n?YO:n,NaN,NaN,NaN,NaN);return null==t?i:i.addAll(t)}function ZO(t,e,n,i,r,o){this._x=t,this._y=e,this._x0=n,this._y0=i,this._x1=r,this._y1=o,this._root=void 0}function $O(t){for(var e={data:t.data},n=e;t=t.next;)n=n.next={data:t.data};return e}var JO=XO.prototype=ZO.prototype;function QO(t){return function(){return t}}function tT(t){return 1e-6*(t()-.5)}function eT(t){return t.index}function nT(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}JO.copy=function(){var t,e,n=new ZO(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=$O(i),n;for(t=[{source:i,target:n._root=new Array(4)}];i=t.pop();)for(var r=0;r<4;++r)(e=i.source[r])&&(e.length?t.push({source:e,target:i.target[r]=new Array(4)}):i.target[r]=$O(e));return n},JO.add=function(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return WO(this.cover(e,n),e,n,t)},JO.addAll=function(t){var e,n,i,r,o=t.length,a=new Array(o),s=new Array(o),u=1/0,l=1/0,c=-1/0,h=-1/0;for(n=0;n<o;++n)isNaN(i=+this._x.call(null,e=t[n]))||isNaN(r=+this._y.call(null,e))||(a[n]=i,s[n]=r,i<u&&(u=i),i>c&&(c=i),r<l&&(l=r),r>h&&(h=r));if(u>c||l>h)return this;for(this.cover(u,l).cover(c,h),n=0;n<o;++n)WO(this,a[n],s[n],t[n]);return this},JO.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,i=this._y0,r=this._x1,o=this._y1;if(isNaN(n))r=(n=Math.floor(t))+1,o=(i=Math.floor(e))+1;else{for(var a,s,u=r-n||1,l=this._root;n>t||t>=r||i>e||e>=o;)switch(s=(e<i)<<1|t<n,(a=new Array(4))[s]=l,l=a,u*=2,s){case 0:r=n+u,o=i+u;break;case 1:n=r-u,o=i+u;break;case 2:r=n+u,i=o-u;break;case 3:n=r-u,i=o-u}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=r,this._y1=o,this},JO.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},JO.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},JO.find=function(t,e,n){var i,r,o,a,s,u,l,c=this._x0,h=this._y0,f=this._x1,d=this._y1,g=[],p=this._root;for(p&&g.push(new qO(p,c,h,f,d)),null==n?n=1/0:(c=t-n,h=e-n,f=t+n,d=e+n,n*=n);u=g.pop();)if(!(!(p=u.node)||(r=u.x0)>f||(o=u.y0)>d||(a=u.x1)<c||(s=u.y1)<h))if(p.length){var v=(r+a)/2,y=(o+s)/2;g.push(new qO(p[3],v,y,a,s),new qO(p[2],r,y,v,s),new qO(p[1],v,o,a,y),new qO(p[0],r,o,v,y)),(l=(e>=y)<<1|t>=v)&&(u=g[g.length-1],g[g.length-1]=g[g.length-1-l],g[g.length-1-l]=u)}else{var m=t-+this._x.call(null,p.data),_=e-+this._y.call(null,p.data),b=m*m+_*_;if(b<n){var w=Math.sqrt(n=b);c=t-w,h=e-w,f=t+w,d=e+w,i=p.data}}return i},JO.remove=function(t){if(isNaN(o=+this._x.call(null,t))||isNaN(a=+this._y.call(null,t)))return this;var e,n,i,r,o,a,s,u,l,c,h,f,d=this._root,g=this._x0,p=this._y0,v=this._x1,y=this._y1;if(!d)return this;if(d.length)for(;;){if((l=o>=(s=(g+v)/2))?g=s:v=s,(c=a>=(u=(p+y)/2))?p=u:y=u,e=d,!(d=d[h=c<<1|l]))return this;if(!d.length)break;(e[h+1&3]||e[h+2&3]||e[h+3&3])&&(n=e,f=h)}for(;d.data!==t;)if(i=d,!(d=d.next))return this;return(r=d.next)&&delete d.next,i?(r?i.next=r:delete i.next,this):e?(r?e[h]=r:delete e[h],(d=e[0]||e[1]||e[2]||e[3])&&d===(e[3]||e[2]||e[1]||e[0])&&!d.length&&(n?n[f]=d:this._root=d),this):(this._root=r,this)},JO.removeAll=function(t){for(var e=0,n=t.length;e<n;++e)this.remove(t[e]);return this},JO.root=function(){return this._root},JO.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},JO.visit=function(t){var e,n,i,r,o,a,s=[],u=this._root;for(u&&s.push(new qO(u,this._x0,this._y0,this._x1,this._y1));e=s.pop();)if(!t(u=e.node,i=e.x0,r=e.y0,o=e.x1,a=e.y1)&&u.length){var l=(i+o)/2,c=(r+a)/2;(n=u[3])&&s.push(new qO(n,l,c,o,a)),(n=u[2])&&s.push(new qO(n,i,c,l,a)),(n=u[1])&&s.push(new qO(n,l,r,o,c)),(n=u[0])&&s.push(new qO(n,i,r,l,c))}return this},JO.visitAfter=function(t){var e,n=[],i=[];for(this._root&&n.push(new qO(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var r=e.node;if(r.length){var o,a=e.x0,s=e.y0,u=e.x1,l=e.y1,c=(a+u)/2,h=(s+l)/2;(o=r[0])&&n.push(new qO(o,a,s,c,h)),(o=r[1])&&n.push(new qO(o,c,s,u,h)),(o=r[2])&&n.push(new qO(o,a,h,c,l)),(o=r[3])&&n.push(new qO(o,c,h,u,l))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},JO.x=function(t){return arguments.length?(this._x=t,this):this._x},JO.y=function(t){return arguments.length?(this._y=t,this):this._y};var iT=1664525,rT=1013904223,oT=4294967296;function aT(t){return t.x}function sT(t){return t.y}var uT=Math.PI*(3-Math.sqrt(5));function lT(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,a=.6,s=new Map,u=jo(h),l=_o("tick","end"),c=function(){var t=1;return function(){return(t=(iT*t+rT)%oT)/oT}}();function h(){f(),l.call("tick",e),n<i&&(u.stop(),l.call("end",e))}function f(i){var u,l,c=t.length;void 0===i&&(i=1);for(var h=0;h<i;++h)for(n+=(o-n)*r,s.forEach((function(t){t(n)})),u=0;u<c;++u)null==(l=t[u]).fx?l.x+=l.vx*=a:(l.x=l.fx,l.vx=0),null==l.fy?l.y+=l.vy*=a:(l.y=l.fy,l.vy=0);return e}function d(){for(var e,n=0,i=t.length;n<i;++n){if((e=t[n]).index=n,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var r=10*Math.sqrt(.5+n),o=n*uT;e.x=r*Math.cos(o),e.y=r*Math.sin(o)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function g(e){return e.initialize&&e.initialize(t,c),e}return null==t&&(t=[]),d(),e={tick:f,restart:function(){return u.restart(h),e},stop:function(){return u.stop(),e},nodes:function(n){return arguments.length?(t=n,d(),s.forEach(g),e):t},alpha:function(t){return arguments.length?(n=+t,e):n},alphaMin:function(t){return arguments.length?(i=+t,e):i},alphaDecay:function(t){return arguments.length?(r=+t,e):+r},alphaTarget:function(t){return arguments.length?(o=+t,e):o},velocityDecay:function(t){return arguments.length?(a=1-t,e):1-a},randomSource:function(t){return arguments.length?(c=t,s.forEach(g),e):c},force:function(t,n){return arguments.length>1?(null==n?s.delete(t):s.set(t,g(n)),e):s.get(t)},find:function(e,n,i){var r,o,a,s,u,l=0,c=t.length;for(null==i?i=1/0:i*=i,l=0;l<c;++l)(a=(r=e-(s=t[l]).x)*r+(o=n-s.y)*o)<i&&(u=s,i=a);return u},on:function(t,n){return arguments.length>1?(l.on(t,n),e):l.on(t)}}}function cT(t){return cT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cT(t)}function hT(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fT(t,e,n){return fT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=vT(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},fT(t,e,n||t)}function dT(t,e){return dT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},dT(t,e)}function gT(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=vT(t);if(e){var r=vT(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===cT(e)||"function"==typeof e))return e;return pT(t)}(this,n)}}function pT(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function vT(t){return vT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},vT(t)}function yT(t,e){return"".concat(this._id(t,e)||this._nodeGroupBy[E([this._drawDepth,this._nodeGroupBy.length-1])](t,e))}var mT=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dT(t,e)}(o,t);var e,n,i,r=gT(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._links=[],t._linkSize=Za(1),t._linkSizeMin=1,t._linkSizeScale="sqrt",t._noDataMessage=!1,t._nodeGroupBy=[Aa("id")],t._nodes=[],t._on["click.shape"]=function(e,n,i,r){if(t._tooltipClass.data([]).render(),t._hover&&t._drawDepth>=t._groupBy.length-1){var o=yT.bind(pT(t))(e,n);if(t._focus&&t._focus===o)t.active(!1),t._on.mouseenter.bind(pT(t))(e,n,i,r),t._focus=void 0,t._zoomToBounds(null);else{t.hover(!1);var a=t._linkLookup[o],s=t._nodeLookup[o],u=[o],l=[s.x-s.r,s.x+s.r],c=[s.y-s.r,s.y+s.r];a.forEach((function(t){u.push(t.id),t.x-t.r<l[0]&&(l[0]=t.x-t.r),t.x+t.r>l[1]&&(l[1]=t.x+t.r),t.y-t.r<c[0]&&(c[0]=t.y-t.r),t.y+t.r>c[1]&&(c[1]=t.y+t.r)})),t.active((function(e,n){return e.source&&e.target?e.source.id===o||e.target.id===o:u.includes(yT.bind(pT(t))(e,n))})),t._focus=o;var h=yp(t._container.node());l=l.map((function(t){return t*h.k+h.x})),c=c.map((function(t){return t*h.k+h.y})),t._zoomToBounds([[l[0],c[0]],[l[1],c[1]]])}}},t._on["click.legend"]=function(e,n,i,r){var o=t._id(e),a=t._ids(e);if(a=a[a.length-1],t._hover&&t._drawDepth>=t._groupBy.length-1){if(t._focus&&t._focus===o)t.active(!1),t._focus=void 0,t._zoomToBounds(null);else{t.hover(!1);var s=o.map((function(e){return t._nodeLookup[e]})),u=["".concat(a)],l=[s[0].x-s[0].r,s[0].x+s[0].r],c=[s[0].y-s[0].r,s[0].y+s[0].r];s.forEach((function(t){u.push(t.id),t.x-t.r<l[0]&&(l[0]=t.x-t.r),t.x+t.r>l[1]&&(l[1]=t.x+t.r),t.y-t.r<c[0]&&(c[0]=t.y-t.r),t.y+t.r>c[1]&&(c[1]=t.y+t.r)})),t.active((function(e,n){if(e.source&&e.target)return u.includes(e.source.id)&&u.includes(e.target.id);var i=t._ids(e,n);return u.includes("".concat(i[i.length-1]))})),t._focus=o;var h=yp(t._container.node());l=l.map((function(t){return t*h.k+h.x})),c=c.map((function(t){return t*h.k+h.y})),t._zoomToBounds([[l[0],c[0]],[l[1],c[1]]])}t._on.mouseenter.bind(pT(t))(e,n,i,r),t._on["mousemove.legend"].bind(pT(t))(e,n,i,r)}},t._on.mouseenter=function(){},t._on["mouseleave.shape"]=function(){t.hover(!1)};var e=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(n,i,r,o){e(n,i,r,o);var a=yT.bind(pT(t))(n,i),s=t._linkLookup[a]||[],u=t._nodeLookup[a],l=[a],c=[u.x-u.r,u.x+u.r],h=[u.y-u.r,u.y+u.r];s.forEach((function(t){l.push(t.id),t.x-t.r<c[0]&&(c[0]=t.x-t.r),t.x+t.r>c[1]&&(c[1]=t.x+t.r),t.y-t.r<h[0]&&(h[0]=t.y-t.r),t.y+t.r>h[1]&&(h[1]=t.y+t.r)})),t.hover((function(e,n){return e.source&&e.target?e.source.id===a||e.target.id===a:l.includes("".concat(t._ids(e,n)[t._drawDepth]))}))},t._sizeMin=5,t._sizeScale="sqrt",t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{ariaLabel:function(e,n){var i=t._size?", ".concat(t._size(e,n)):"";return"".concat(t._drawLabel(e,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:!0,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:!1,stroke:"#eee"}}),t._x=Aa("x"),t._y=Aa("y"),t._zoom=!0,t}return e=o,n=[{key:"_draw",value:function(t){var e=this;fT(vT(o.prototype),"_draw",this).call(this,t);var n=this._duration,i=this._height-this._margin.top-this._margin.bottom,r="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),a=this._width-this._margin.left-this._margin.right,s=this._filteredData.reduce((function(t,n,i){return t[e._id(n,i)]=n,t}),{}),u=this._nodes.reduce((function(t,n,i){return t[yT.bind(e)(n,i)]=n,t}),{});u=Array.from(new Set(Object.keys(s).concat(Object.keys(u)))).map((function(t,n){var i=s[t],r=u[t];return void 0!==r&&{__d3plus__:!0,data:i||r,i:n,id:t,fx:void 0===i||isNaN(e._x(i))?e._x(r):e._x(i),fy:void 0===i||isNaN(e._y(i))?e._y(r):e._y(i),node:r,r:e._size?void 0!==i&&void 0!==e._size(i)?e._size(i):e._size(r):e._sizeMin,shape:void 0!==i&&void 0!==e._shape(i)?e._shape(i):e._shape(r)}})).filter((function(t){return t}));var l=this._nodeLookup=u.reduce((function(t,e){return t[e.id]=e,t}),{}),c=u.map((function(t){return t.node})),f=this._links.map((function(t){var n=cT(t.source);return{size:e._linkSize(t),source:"number"===n?u[c.indexOf(e._nodes[t.source])]:"string"===n?l[t.source]:l[t.source.id],target:"number"===n?u[c.indexOf(e._nodes[t.target])]:"string"===n?l[t.target]:l[t.target.id]}}));if(this._linkLookup=f.reduce((function(t,e){return t[e.source.id]||(t[e.source.id]=[]),t[e.source.id].push(e.target),t[e.target.id]||(t[e.target.id]=[]),t[e.target.id].push(e.source),t}),{}),u.some((function(t){return void 0===t.fx||void 0===t.fy}))){var d=Ci().domain(h(f,(function(t){return t.size}))).range([.1,.5]),g=lT().force("link",function(t){var e,n,i,r,o,a,s=eT,u=function(t){return 1/Math.min(r[t.source.index],r[t.target.index])},l=QO(30),c=1;function h(i){for(var r=0,s=t.length;r<c;++r)for(var u,l,h,f,d,g,p,v=0;v<s;++v)l=(u=t[v]).source,f=(h=u.target).x+h.vx-l.x-l.vx||tT(a),d=h.y+h.vy-l.y-l.vy||tT(a),f*=g=((g=Math.sqrt(f*f+d*d))-n[v])/g*i*e[v],d*=g,h.vx-=f*(p=o[v]),h.vy-=d*p,l.vx+=f*(p=1-p),l.vy+=d*p}function f(){if(i){var a,u,l=i.length,c=t.length,h=new Map(i.map((function(t,e){return[s(t,e,i),t]})));for(a=0,r=new Array(l);a<c;++a)(u=t[a]).index=a,"object"!==_typeof2(u.source)&&(u.source=nT(h,u.source)),"object"!==_typeof2(u.target)&&(u.target=nT(h,u.target)),r[u.source.index]=(r[u.source.index]||0)+1,r[u.target.index]=(r[u.target.index]||0)+1;for(a=0,o=new Array(c);a<c;++a)u=t[a],o[a]=r[u.source.index]/(r[u.source.index]+r[u.target.index]);e=new Array(c),d(),n=new Array(c),g()}}function d(){if(i)for(var n=0,r=t.length;n<r;++n)e[n]=+u(t[n],n,t)}function g(){if(i)for(var e=0,r=t.length;e<r;++e)n[e]=+l(t[e],e,t)}return null==t&&(t=[]),h.initialize=function(t,e){i=t,a=e,f()},h.links=function(e){return arguments.length?(t=e,f(),h):t},h.id=function(t){return arguments.length?(s=t,h):s},h.iterations=function(t){return arguments.length?(c=+t,h):c},h.strength=function(t){return arguments.length?(u="function"==typeof t?t:QO(+t),d(),h):u},h.distance=function(t){return arguments.length?(l="function"==typeof t?t:QO(+t),g(),h):l},h}(f).id((function(t){return t.id})).distance(1).strength((function(t){return d(t.size)})).iterations(4)).force("charge",function(){var t,e,n,i,r,o=QO(-30),a=1,s=1/0,u=.81;function l(n){var r,o=t.length,a=XO(t,aT,sT).visitAfter(h);for(i=n,r=0;r<o;++r)e=t[r],a.visit(f)}function c(){if(t){var e,n,i=t.length;for(r=new Array(i),e=0;e<i;++e)n=t[e],r[n.index]=+o(n,e,t)}}function h(t){var e,n,i,o,a,s=0,u=0;if(t.length){for(i=o=a=0;a<4;++a)(e=t[a])&&(n=Math.abs(e.value))&&(s+=e.value,u+=n,i+=n*e.x,o+=n*e.y);t.x=i/u,t.y=o/u}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=r[e.data.index]}while(e=e.next)}t.value=s}function f(t,o,l,c){if(!t.value)return!0;var h=t.x-e.x,f=t.y-e.y,d=c-o,g=h*h+f*f;if(d*d/u<g)return g<s&&(0===h&&(g+=(h=tT(n))*h),0===f&&(g+=(f=tT(n))*f),g<a&&(g=Math.sqrt(a*g)),e.vx+=h*t.value*i/g,e.vy+=f*t.value*i/g),!0;if(!(t.length||g>=s)){(t.data!==e||t.next)&&(0===h&&(g+=(h=tT(n))*h),0===f&&(g+=(f=tT(n))*f),g<a&&(g=Math.sqrt(a*g)));do{t.data!==e&&(d=r[t.data.index]*i/g,e.vx+=h*d,e.vy+=f*d)}while(t=t.next)}}return l.initialize=function(e,i){t=e,n=i,c()},l.strength=function(t){return arguments.length?(o="function"==typeof t?t:QO(+t),c(),l):o},l.distanceMin=function(t){return arguments.length?(a=t*t,l):Math.sqrt(a)},l.distanceMax=function(t){return arguments.length?(s=t*t,l):Math.sqrt(s)},l.theta=function(t){return arguments.length?(u=t*t,l):Math.sqrt(u)},l}().strength(-1)).stop(),p=1-Math.pow(.001,.01);g.velocityDecay(0),g.alphaMin(.001),g.alphaDecay(p),g.alphaDecay(0),g.nodes(u),g.tick(100).stop();var v=u.map((function(t){return[t.vx,t.vy]})),y=0,m=0,_=0;if(2===v.length)y=100;else if(v.length>2){var b=function(t){if((n=t.length)<3)return null;var e,n,i=new Array(n),r=new Array(n);for(e=0;e<n;++e)i[e]=[+t[e][0],+t[e][1],e];for(i.sort(Yc),e=0;e<n;++e)r[e]=[i[e][0],-i[e][1]];var o=Xc(i),a=Xc(r),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],l=[];for(e=o.length-1;e>=0;--e)l.push(t[i[o[e]][2]]);for(e=+s;e<a.length-u;++e)l.push(t[i[a[e]][2]]);return l}(v),w=ph(b,{verbose:!0});y=w.angle,m=w.cx,_=w.cy}u.forEach((function(t){var e=ah([t.vx,t.vy],Math.PI/180*y*-1,[m,_]);t.fx=e[0],t.fy=e[1]}))}var x=h(u.map((function(t){return t.fx}))),k=h(u.map((function(t){return t.fy}))),S=Ci().domain(x).range([0,a]),A=Ci().domain(k).range([0,i]),R=(x[1]-x[0])/(k[1]-k[0])||1,M=a/i;if(R>M){var O=i*M/R;A.range([(i-O)/2,i-(i-O)/2])}else{var T=a*R/M;S.range([(a-T)/2,a-(a-T)/2])}u.forEach((function(t){t.x=S(t.fx),t.y=A(t.fy)}));var P=h(u.map((function(t){return t.r}))),D=this._sizeMax||C([1,E(B(u.map((function(t){return u.map((function(e){return t===e?null:kc([t.x,t.y],[e.x,e.y])}))}))))/2]),N=er["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(P).range([P[0]===P[1]?D:E([D/2,this._sizeMin]),D]),z=S.domain(),j=A.domain(),F=z[1]-z[0],L=j[1]-j[0];u.forEach((function(t){var e=N(t.r);z[0]>S.invert(t.x-e)&&(z[0]=S.invert(t.x-e)),z[1]<S.invert(t.x+e)&&(z[1]=S.invert(t.x+e)),j[0]>A.invert(t.y-e)&&(j[0]=A.invert(t.y-e)),j[1]<A.invert(t.y+e)&&(j[1]=A.invert(t.y+e))})),D*=E([F/(z[1]-z[0]),L/(j[1]-j[0])]),N.range([P[0]===P[1]?D:E([D/2,this._sizeMin]),D]),S.domain(z),A.domain(j);var I=(R>M?a:i)/2;u.forEach((function(t){t.x=S(t.fx),t.fx=t.x,t.y=A(t.fy),t.fy=t.y,t.r=N(t.r)||I,t.width=2*t.r,t.height=2*t.r})),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",a).attr("height",i).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color","transparent").merge(this._container),this._container.transition().duration(n).attr("opacity",1).attr("width",a).attr("height",i).attr("x",this._margin.left).attr("y",this._margin.top);var H=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);H.enter().append("rect").attr("class","d3plus-network-hitArea").merge(H).attr("width",a).attr("height",i).attr("fill","transparent").on("click",(function(){e._focus&&(e.active(!1),e._focus=void 0,e._zoomToBounds(null))})),this._zoomGroup=this._container.selectAll("g.d3plus-network-zoomGroup").data([0]);var G=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup),V=h(f,(function(t){return t.size}));if(V[0]!==V[1]){var U=er["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(V).range([this._linkSizeMin,N.range()[0]]);f.forEach((function(t){t.size=U(t.size)}))}var W=Xa.bind(this)(this._shapeConfig,"edge","Path");delete W.on,this._shapes.push((new xf).config(W).strokeWidth((function(t){return t.size})).activeStyle({"stroke-width":function(t){return t.size}}).d((function(t){return"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)})).data(f).select($a("g.d3plus-network-links",{parent:G,duration:n,enter:{transform:r},update:{transform:r}}).node()).render());var q={label:function(t){return!!(u.length<=e._dataCutoff||e._hover&&e._hover(t)||e._active&&e._active(t))&&e._drawLabel(t.data||t.node,t.i)},select:$a("g.d3plus-network-nodes",{parent:G,duration:n,enter:{transform:r},update:{transform:r}}).node()};return es().key((function(t){return t.shape})).entries(u).forEach((function(t){e._shapes.push((new kf[t.key]).config(Xa.bind(e)(e._shapeConfig,"shape",t.key)).config(q).config(q[t.key]||{}).data(t.values).render())})),this}},{key:"hover",value:function(t){return this._hover=t,this._nodes.length<this._dataCutoff&&(this._shapes.forEach((function(e){return e.hover(t)})),this._legend&&this._legendClass.hover(t)),this}},{key:"links",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"links"),this):this._links}},{key:"linkSize",value:function(t){return arguments.length?(this._linkSize="function"==typeof t?t:Za(t),this):this._linkSize}},{key:"linkSizeMin",value:function(t){return arguments.length?(this._linkSizeMin=t,this):this._linkSizeMin}},{key:"linkSizeScale",value:function(t){return arguments.length?(this._linkSizeScale=t,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function(t){var e=this;return arguments.length?(t instanceof Array||(t=[t]),this._nodeGroupBy=t.map((function(t){return"function"==typeof t?t:(e._aggs[t]||(e._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return 1===n.length?n[0]:n}),Aa(t))})),this):this._nodeGroupBy}},{key:"nodes",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"nodes"),this):this._nodes}},{key:"size",value:function(t){return arguments.length?(this._size="function"!=typeof t&&t?Aa(t):t,this):this._size}},{key:"sizeMax",value:function(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}},{key:"x",value:function(t){return arguments.length?("function"==typeof t?this._x=t:(this._x=Aa(t),this._aggs[t]||(this._aggs[t]=T)),this):this._x}},{key:"y",value:function(t){return arguments.length?("function"==typeof t?this._y=t:(this._y=Aa(t),this._aggs[t]||(this._aggs[t]=T)),this):this._y}}],n&&hT(e.prototype,n),i&&hT(e,i),o}(RR);function _T(t){return _T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_T(t)}function bT(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function wT(t,e,n){return wT="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=CT(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},wT(t,e,n||t)}function xT(t,e){return xT=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},xT(t,e)}function kT(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=CT(t);if(e){var r=CT(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===_T(e)||"function"==typeof e))return e;return ST(t)}(this,n)}}function ST(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function CT(t){return CT=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},CT(t)}var ET=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xT(t,e)}(o,t);var e,n,i,r=kT(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._links=[],t._linkSize=Za(1),t._linkSizeMin=1,t._linkSizeScale="sqrt",t._noDataMessage=!1,t._nodes=[],t._on.mouseenter=function(){},t._on["mouseleave.shape"]=function(){t.hover(!1)};var e=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(n,i,r,o){if(e(n,i,r,o),t._focus&&t._focus===n.id)t.hover(!1),t._on.mouseenter.bind(ST(t))(n,i,r,o),t._focus=void 0;else{var a=t._nodeGroupBy&&t._nodeGroupBy[t._drawDepth](n,i)?t._nodeGroupBy[t._drawDepth](n,i):t._id(n,i),s=t._linkLookup[a],u=t._nodeLookup[a],l=[u.id],c=[u.x-u.r,u.x+u.r],h=[u.y-u.r,u.y+u.r];s.forEach((function(t){l.push(t.id),t.x-t.r<c[0]&&(c[0]=t.x-t.r),t.x+t.r>c[1]&&(c[1]=t.x+t.r),t.y-t.r<h[0]&&(h[0]=t.y-t.r),t.y+t.r>h[1]&&(h[1]=t.y+t.r)})),t.hover((function(e,n){return e.source&&e.target?e.source.id===u.id||e.target.id===u.id:l.includes(t._ids(e,n)[t._drawDepth])}))}},t._on["click.shape"]=function(e){t._center=e.id,t._margin={bottom:0,left:0,right:0,top:0},t._padding={bottom:0,left:0,right:0,top:0},t._draw()},t._sizeMin=5,t._sizeScale="sqrt",t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{ariaLabel:function(e,n){var i=t._size?", ".concat(t._size(e,n)):"";return"".concat(t._drawLabel(e,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:!0,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:!1,stroke:"#eee",strokeWidth:1}}),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;wT(CT(o.prototype),"_draw",this).call(this,t);var n=this._filteredData.reduce((function(t,n,i){return t[e._id(n,i)]=n,t}),{}),i=this._nodes;if(!this._nodes.length&&this._links.length){var r=Array.from(new Set(this._links.reduce((function(t,e){return t.concat([e.source,e.target])}),[])));i=r.map((function(t){return"object"===_T(t)?t:{id:t}}))}i=i.reduce((function(t,n,i){return t[e._nodeGroupBy?e._nodeGroupBy[e._drawDepth](n,i):e._id(n,i)]=n,t}),{}),i=Array.from(new Set(Object.keys(n).concat(Object.keys(i)))).map((function(t,r){var o=n[t],a=i[t];return void 0!==a&&{__d3plus__:!0,data:o||a,i:r,id:t,node:a,shape:void 0!==o&&void 0!==e._shape(o)?e._shape(o):e._shape(a)}})).filter((function(t){return t}));var a=this._nodeLookup=i.reduce((function(t,e){return t[e.id]=e,t}),{}),s=this._links.map((function(t){var n=["source","target"].reduce((function(e,n){return e[n]="number"==typeof t[n]?i[t[n]]:a[t[n].id||t[n]],e}),{});return n.size=e._linkSize(t),n})),u=s.reduce((function(t,e){return t[e.source.id]||(t[e.source.id]=[]),t[e.source.id].push(e),t[e.target.id]||(t[e.target.id]=[]),t[e.target.id].push(e),t}),{}),l=this._duration,c=this._height-this._margin.top-this._margin.bottom,f="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),d=this._width-this._margin.left-this._margin.right,g=[],p=E([c,d])/2/3,v=p,y=2*p,m=a[this._center];m.x=d/2,m.y=c/2,m.r=this._sizeMin?C([this._sizeMin,.65*v]):this._sizeMax?E([this._sizeMax,.65*v]):.65*v;var _=[m],b=[];u[this._center].forEach((function(t){var n=t.source.id===e._center?t.target:t.source;n.edges=u[n.id].filter((function(t){return t.source.id!==e._center||t.target.id!==e._center})),n.edge=t,_.push(n),b.push(n)})),b.sort((function(t,e){return t.edges.length-e.edges.length}));var w=[],x=0;b.forEach((function(t){var e=t.id;t.edges=t.edges.filter((function(t){return!_.includes(t.source)&&t.target.id===e||!_.includes(t.target)&&t.source.id===e})),x+=t.edges.length||1,t.edges.forEach((function(t){var n=t.source,i=t.target,r=i.id===e?n:i;_.push(r)}))}));var k=2*Math.PI,S=0;b.forEach((function(t,e){var n=t.edges.length||1,i=k/x*n;0===e&&(S-=i/2);var r=S+i/2-k/4;t.radians=r,t.x=d/2+v*Math.cos(r),t.y=c/2+v*Math.sin(r),S+=i,t.edges.forEach((function(e,i){var o=e.source.id===t.id?e.target:e.source,a=k/x,s=r-a*n/2+a/2+a*i;o.radians=s,o.x=d/2+y*Math.cos(s),o.y=c/2+y*Math.sin(s),w.push(o)}))}));var A=p/2,R=p/4,M=A/2-4;A/2-4<8&&(M=E([A/2,8]));var O,T=R/2-4;if(R/2-4<4&&(T=E([R/2,4])),T>p/10&&(T=p/10),T>M&&T>10&&(T=.75*M),M>1.5*T&&(M=1.5*T),M=Math.floor(M),T=Math.floor(T),this._size){var P=h(n,(function(t){return t.size}));P[0]===P[1]&&(P[0]=0),O=Ci().domain(P).rangeRound([3,E([M,T])]);var B=m.size;m.r=O(B)}else O=Ci().domain([1,2]).rangeRound([M,T]);w.forEach((function(t){t.ring=2;var n=e._size?t.size:2;t.r=e._sizeMin?C([e._sizeMin,O(n)]):e._sizeMax?E([e._sizeMax,O(n)]):O(n)})),b.forEach((function(t){t.ring=1;var n=e._size?t.size:1;t.r=e._sizeMin?C([e._sizeMin,O(n)]):e._sizeMax?E([e._sizeMax,O(n)]):O(n)})),i=[m].concat(b).concat(w),b.forEach((function(t){var e=t.edge;["source","target"].forEach((function(t){e[t]=i.find((function(n){return n.id===e[t].id}))})),g.push(e),u[t.id].forEach((function(e){var n=e.source.id===t.id?e.target:e.source;if(n.id!==m.id){var r=w.find((function(t){return t.id===n.id}));if(r||(r=b.find((function(t){return t.id===n.id}))),r){e.spline=!0;var o=d/2,a=c/2,s=v+.5*(y-v);["source","target"].forEach((function(n,u){e["".concat(n,"X")]=e[n].x+Math.cos(2===e[n].ring?e[n].radians+Math.PI:e[n].radians)*e[n].r,e["".concat(n,"Y")]=e[n].y+Math.sin(2===e[n].ring?e[n].radians+Math.PI:e[n].radians)*e[n].r,e["".concat(n,"BisectX")]=o+s*Math.cos(e[n].radians),e["".concat(n,"BisectY")]=a+s*Math.sin(e[n].radians),e[n]=i.find((function(t){return t.id===e[n].id})),void 0===e[n].edges&&(e[n].edges={});var l=0===u?e.target.id:e.source.id;e[n].id===t.id?e[n].edges[l]={angle:t.radians+Math.PI,radius:p/2}:e[n].edges[l]={angle:r.radians,radius:p/2}})),g.push(e)}}}))})),i.forEach((function(t){if(t.id!==e._center){var n=1.4*(e._shapeConfig.labelConfig.fontSize&&e._shapeConfig.labelConfig.fontSize(t)||11),i=2*n,r=p-t.r,o=t.radians*(180/Math.PI),a=t.r+5,s="start";(o<-90||o>90)&&(a=-t.r-r-5,s="end",o+=180),t.labelBounds={x:a,y:-n/2,width:r,height:i},t.rotate=o,t.textAnchor=s}else t.labelBounds={x:-v/2,y:-v/2,width:v,height:v}})),this._linkLookup=s.reduce((function(t,e){return t[e.source.id]||(t[e.source.id]=[]),t[e.source.id].push(e.target),t[e.target.id]||(t[e.target.id]=[]),t[e.target.id].push(e.source),t}),{});var D=h(s,(function(t){return t.size}));if(D[0]!==D[1]){var N=E(i,(function(t){return t.r})),z=er["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(D).range([this._linkSizeMin,N]);s.forEach((function(t){t.size=z(t.size)}))}var j=Xa.bind(this)(this._shapeConfig,"edge","Path");delete j.on,this._shapes.push((new xf).config(j).strokeWidth((function(t){return t.size})).id((function(t){return"".concat(t.source.id,"_").concat(t.target.id)})).d((function(t){return t.spline?"M".concat(t.sourceX,",").concat(t.sourceY,"C").concat(t.sourceBisectX,",").concat(t.sourceBisectY," ").concat(t.targetBisectX,",").concat(t.targetBisectY," ").concat(t.targetX,",").concat(t.targetY):"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)})).data(g).select($a("g.d3plus-rings-links",{parent:this._select,duration:l,enter:{transform:f},update:{transform:f}}).node()).render());var F=this,L={label:function(t){return!!(i.length<=e._dataCutoff||e._hover&&e._hover(t)||e._active&&e._active(t))&&e._drawLabel(t.data||t.node,t.i)},labelBounds:function(t){return t.labelBounds},labelConfig:{fontColor:function(t){return t.id===e._center?Xa.bind(F)(F._shapeConfig,"shape",t.key).labelConfig.fontColor(t):ys(Xa.bind(F)(F._shapeConfig,"shape",t.key).fill(t))},fontResize:function(t){return t.id===e._center},padding:0,textAnchor:function(t){return a[t.id].textAnchor||Xa.bind(F)(F._shapeConfig,"shape",t.key).labelConfig.textAnchor},verticalAlign:function(t){return t.id===e._center?"middle":"top"}},rotate:function(t){return a[t.id].rotate||0},select:$a("g.d3plus-rings-nodes",{parent:this._select,duration:l,enter:{transform:f},update:{transform:f}}).node()};return es().key((function(t){return t.shape})).entries(i).forEach((function(t){e._shapes.push((new kf[t.key]).config(Xa.bind(e)(e._shapeConfig,"shape",t.key)).config(L).data(t.values).render())})),this}},{key:"center",value:function(t){return arguments.length?(this._center=t,this):this._center}},{key:"hover",value:function(t){return this._hover=t,this._shapes.forEach((function(e){return e.hover(t)})),this._legend&&this._legendClass.hover(t),this}},{key:"links",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"links"),this):this._links}},{key:"linkSize",value:function(t){return arguments.length?(this._linkSize="function"==typeof t?t:Za(t),this):this._linkSize}},{key:"linkSizeMin",value:function(t){return arguments.length?(this._linkSizeMin=t,this):this._linkSizeMin}},{key:"linkSizeScale",value:function(t){return arguments.length?(this._linkSizeScale=t,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function(t){var e=this;return arguments.length?(t instanceof Array||(t=[t]),this._nodeGroupBy=t.map((function(t){return"function"==typeof t?t:(e._aggs[t]||(e._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return 1===n.length?n[0]:n}),Aa(t))})),this):this._nodeGroupBy}},{key:"nodes",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"nodes"),this):this._nodes}},{key:"size",value:function(t){return arguments.length?(this._size="function"!=typeof t&&t?Aa(t):t,this):this._size}},{key:"sizeMax",value:function(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}}],n&&bT(e.prototype,n),i&&bT(e,i),o}(RR);function AT(t){return t.target.depth}function RT(t,e){return t.sourceLinks.length?t.depth:e-1}function MT(t){return function(){return t}}function OT(t,e){return PT(t.source,e.source)||t.index-e.index}function TT(t,e){return PT(t.target,e.target)||t.index-e.index}function PT(t,e){return t.y0-e.y0}function BT(t){return t.value}function DT(t){return t.index}function NT(t){return t.nodes}function zT(t){return t.links}function jT(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function FT(t){var e,n=_createForOfIteratorHelper2(t.nodes);try{for(n.s();!(e=n.n()).done;){var i,r=e.value,o=r.y0,a=o,s=_createForOfIteratorHelper2(r.sourceLinks);try{for(s.s();!(i=s.n()).done;){var u=i.value;u.y0=o+u.width/2,o+=u.width}}catch(t){s.e(t)}finally{s.f()}var l,c=_createForOfIteratorHelper2(r.targetLinks);try{for(c.s();!(l=c.n()).done;){var h=l.value;h.y1=a+h.width/2,a+=h.width}}catch(t){c.e(t)}finally{c.f()}}}catch(t){n.e(t)}finally{n.f()}}function LT(){var t,e,n,i=0,r=0,o=1,a=1,s=24,u=8,l=DT,c=RT,h=NT,f=zT,d=6;function g(){var g={nodes:h.apply(null,arguments),links:f.apply(null,arguments)};return function(t){var e,i=t.nodes,r=t.links,o=_createForOfIteratorHelper2(i.entries());try{for(o.s();!(e=o.n()).done;){var a=_slicedToArray2(e.value,2),s=a[0],u=a[1];u.index=s,u.sourceLinks=[],u.targetLinks=[]}}catch(t){o.e(t)}finally{o.f()}var c,h=new Map(i.map((function(t,e){return[l(t,e,i),t]}))),f=_createForOfIteratorHelper2(r.entries());try{for(f.s();!(c=f.n()).done;){var d=_slicedToArray2(c.value,2),g=d[0],p=d[1];p.index=g;var v=p.source,y=p.target;"object"!==_typeof2(v)&&(v=p.source=jT(h,v)),"object"!==_typeof2(y)&&(y=p.target=jT(h,y)),v.sourceLinks.push(p),y.targetLinks.push(p)}}catch(t){f.e(t)}finally{f.f()}if(null!=n){var m,_=_createForOfIteratorHelper2(i);try{for(_.s();!(m=_.n()).done;){var b=m.value,w=b.sourceLinks,x=b.targetLinks;w.sort(n),x.sort(n)}}catch(t){_.e(t)}finally{_.f()}}}(g),function(t){var e,n=t.nodes,i=_createForOfIteratorHelper2(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.value=void 0===r.fixedValue?Math.max(N(r.sourceLinks,BT),N(r.targetLinks,BT)):r.fixedValue}}catch(t){i.e(t)}finally{i.f()}}(g),function(t){var e=t.nodes,n=e.length,i=new Set(e),r=new Set,o=0;for(;i.size;){var a,s=_createForOfIteratorHelper2(i);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.depth=o;var l,c=_createForOfIteratorHelper2(u.sourceLinks);try{for(c.s();!(l=c.n()).done;){var h=l.value.target;r.add(h)}}catch(t){c.e(t)}finally{c.f()}}}catch(t){s.e(t)}finally{s.f()}if(++o>n)throw new Error("circular link");i=r,r=new Set}}(g),function(t){var e=t.nodes,n=e.length,i=new Set(e),r=new Set,o=0;for(;i.size;){var a,s=_createForOfIteratorHelper2(i);try{for(s.s();!(a=s.n()).done;){var u=a.value;u.height=o;var l,c=_createForOfIteratorHelper2(u.targetLinks);try{for(c.s();!(l=c.n()).done;){var h=l.value.source;r.add(h)}}catch(t){c.e(t)}finally{c.f()}}}catch(t){s.e(t)}finally{s.f()}if(++o>n)throw new Error("circular link");i=r,r=new Set}}(g),function(n){var l=function(t){var n,r=t.nodes,a=C(r,(function(t){return t.depth}))+1,u=(o-i-s)/(a-1),l=new Array(a),h=_createForOfIteratorHelper2(r);try{for(h.s();!(n=h.n()).done;){var f=n.value,d=Math.max(0,Math.min(a-1,Math.floor(c.call(null,f,a))));f.layer=d,f.x0=i+d*u,f.x1=f.x0+s,l[d]?l[d].push(f):l[d]=[f]}}catch(t){h.e(t)}finally{h.f()}if(e){var g,p=_createForOfIteratorHelper2(l);try{for(p.s();!(g=p.n()).done;){g.value.sort(e)}}catch(t){p.e(t)}finally{p.f()}}return l}(n);t=Math.min(u,(a-r)/(C(l,(function(t){return t.length}))-1)),function(e){var n,i=E(e,(function(e){return(a-r-(e.length-1)*t)/N(e,BT)})),o=_createForOfIteratorHelper2(e);try{for(o.s();!(n=o.n()).done;){var s,u=n.value,l=r,c=_createForOfIteratorHelper2(u);try{for(c.s();!(s=c.n()).done;){var h=s.value;h.y0=l,h.y1=l+h.value*i,l=h.y1+t;var f,d=_createForOfIteratorHelper2(h.sourceLinks);try{for(d.s();!(f=d.n()).done;){var g=f.value;g.width=g.value*i}}catch(t){d.e(t)}finally{d.f()}}}catch(t){c.e(t)}finally{c.f()}l=(a-l+t)/(u.length+1);for(var p=0;p<u.length;++p){var v=u[p];v.y0+=l*(p+1),v.y1+=l*(p+1)}w(u)}}catch(t){o.e(t)}finally{o.f()}}(l);for(var h=0;h<d;++h){var f=Math.pow(.99,h),g=Math.max(1-f,(h+1)/d);v(l,f,g),p(l,f,g)}}(g),FT(g),g}function p(t,n,i){for(var r=1,o=t.length;r<o;++r){var a,s=t[r],u=_createForOfIteratorHelper2(s);try{for(u.s();!(a=u.n()).done;){var l,c=a.value,h=0,f=0,d=_createForOfIteratorHelper2(c.targetLinks);try{for(d.s();!(l=d.n()).done;){var g=l.value,p=g.source,v=g.value*(c.layer-p.layer);h+=x(p,c)*v,f+=v}}catch(t){d.e(t)}finally{d.f()}if(f>0){var m=(h/f-c.y0)*n;c.y0+=m,c.y1+=m,b(c)}}}catch(t){u.e(t)}finally{u.f()}void 0===e&&s.sort(PT),y(s,i)}}function v(t,n,i){for(var r=t.length-2;r>=0;--r){var o,a=t[r],s=_createForOfIteratorHelper2(a);try{for(s.s();!(o=s.n()).done;){var u,l=o.value,c=0,h=0,f=_createForOfIteratorHelper2(l.sourceLinks);try{for(f.s();!(u=f.n()).done;){var d=u.value,g=d.target,p=d.value*(g.layer-l.layer);c+=k(l,g)*p,h+=p}}catch(t){f.e(t)}finally{f.f()}if(h>0){var v=(c/h-l.y0)*n;l.y0+=v,l.y1+=v,b(l)}}}catch(t){s.e(t)}finally{s.f()}void 0===e&&a.sort(PT),y(a,i)}}function y(e,n){var i=e.length>>1,o=e[i];_(e,o.y0-t,i-1,n),m(e,o.y1+t,i+1,n),_(e,a,e.length-1,n),m(e,r,0,n)}function m(e,n,i,r){for(;i<e.length;++i){var o=e[i],a=(n-o.y0)*r;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function _(e,n,i,r){for(;i>=0;--i){var o=e[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function b(t){var e=t.sourceLinks,i=t.targetLinks;if(void 0===n){var r,o=_createForOfIteratorHelper2(i);try{for(o.s();!(r=o.n()).done;){r.value.source.sourceLinks.sort(TT)}}catch(t){o.e(t)}finally{o.f()}var a,s=_createForOfIteratorHelper2(e);try{for(s.s();!(a=s.n()).done;){a.value.target.targetLinks.sort(OT)}}catch(t){s.e(t)}finally{s.f()}}}function w(t){if(void 0===n){var e,i=_createForOfIteratorHelper2(t);try{for(i.s();!(e=i.n()).done;){var r=e.value,o=r.sourceLinks,a=r.targetLinks;o.sort(TT),a.sort(OT)}}catch(t){i.e(t)}finally{i.f()}}}function x(e,n){var i,r=e.y0-(e.sourceLinks.length-1)*t/2,o=_createForOfIteratorHelper2(e.sourceLinks);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.target,u=a.width;if(s===n)break;r+=u+t}}catch(t){o.e(t)}finally{o.f()}var l,c=_createForOfIteratorHelper2(n.targetLinks);try{for(c.s();!(l=c.n()).done;){var h=l.value,f=h.source,d=h.width;if(f===e)break;r-=d}}catch(t){c.e(t)}finally{c.f()}return r}function k(e,n){var i,r=n.y0-(n.targetLinks.length-1)*t/2,o=_createForOfIteratorHelper2(n.targetLinks);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.source,u=a.width;if(s===e)break;r+=u+t}}catch(t){o.e(t)}finally{o.f()}var l,c=_createForOfIteratorHelper2(e.sourceLinks);try{for(c.s();!(l=c.n()).done;){var h=l.value,f=h.target,d=h.width;if(f===n)break;r-=d}}catch(t){c.e(t)}finally{c.f()}return r}return g.update=function(t){return FT(t),t},g.nodeId=function(t){return arguments.length?(l="function"==typeof t?t:MT(t),g):l},g.nodeAlign=function(t){return arguments.length?(c="function"==typeof t?t:MT(t),g):c},g.nodeSort=function(t){return arguments.length?(e=t,g):e},g.nodeWidth=function(t){return arguments.length?(s=+t,g):s},g.nodePadding=function(e){return arguments.length?(u=t=+e,g):u},g.nodes=function(t){return arguments.length?(h="function"==typeof t?t:MT(t),g):h},g.links=function(t){return arguments.length?(f="function"==typeof t?t:MT(t),g):f},g.linkSort=function(t){return arguments.length?(n=t,g):n},g.size=function(t){return arguments.length?(i=r=0,o=+t[0],a=+t[1],g):[o-i,a-r]},g.extent=function(t){return arguments.length?(i=+t[0][0],o=+t[1][0],r=+t[0][1],a=+t[1][1],g):[[i,r],[o,a]]},g.iterations=function(t){return arguments.length?(d=+t,g):d},g}var IT=Math.PI,HT=2*IT,GT=1e-6,VT=HT-GT;function UT(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function WT(){return new UT}function qT(t){return function(){return t}}function KT(t){return t[0]}function YT(t){return t[1]}UT.prototype=WT.prototype={constructor:UT,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,i){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(t,e,n,i,r,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +i+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function(t,e,n,i,r){t=+t,e=+e,n=+n,i=+i,r=+r;var o=this._x1,a=this._y1,s=n-t,u=i-e,l=o-t,c=a-e,h=l*l+c*c;if(r<0)throw new Error("negative radius: "+r);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>GT)if(Math.abs(c*s-u*l)>GT&&r){var f=n-o,d=i-a,g=s*s+u*u,p=f*f+d*d,v=Math.sqrt(g),y=Math.sqrt(h),m=r*Math.tan((IT-Math.acos((g+h-p)/(2*v*y)))/2),_=m/y,b=m/v;Math.abs(_-1)>GT&&(this._+="L"+(t+_*l)+","+(e+_*c)),this._+="A"+r+","+r+",0,0,"+ +(c*f>l*d)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,i,r,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(i),s=n*Math.sin(i),u=t+a,l=e+s,c=1^o,h=o?i-r:r-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>GT||Math.abs(this._y1-l)>GT)&&(this._+="L"+u+","+l),n&&(h<0&&(h=h%HT+HT),h>VT?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):h>GT&&(this._+="A"+n+","+n+",0,"+ +(h>=IT)+","+c+","+(this._x1=t+n*Math.cos(r))+","+(this._y1=e+n*Math.sin(r))))},rect:function(t,e,n,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var XT=Array.prototype.slice;function ZT(t){return t.source}function $T(t){return t.target}function JT(t,e,n,i,r){t.moveTo(e,n),t.bezierCurveTo(e=(e+i)/2,n,e,r,i,r)}function QT(){return function(t){var e=ZT,n=$T,i=KT,r=YT,o=null;function a(){var a,s=XT.call(arguments),u=e.apply(this,s),l=n.apply(this,s);if(o||(o=a=WT()),t(o,+i.apply(this,(s[0]=u,s)),+r.apply(this,s),+i.apply(this,(s[0]=l,s)),+r.apply(this,s)),a)return o=null,a+""||null}return a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(t){return arguments.length?(n=t,a):n},a.x=function(t){return arguments.length?(i="function"==typeof t?t:qT(+t),a):i},a.y=function(t){return arguments.length?(r="function"==typeof t?t:qT(+t),a):r},a.context=function(t){return arguments.length?(o=null==t?null:t,a):o},a}(JT)}function tP(t){return[t.source.x1,t.y0]}function eP(t){return[t.target.x0,t.y1]}function nP(t){return nP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nP(t)}function iP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function rP(t,e,n){return rP="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=uP(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},rP(t,e,n||t)}function oP(t,e){return oP=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},oP(t,e)}function aP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=uP(t);if(e){var r=uP(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===nP(e)||"function"==typeof e))return e;return sP(t)}(this,n)}}function sP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function uP(t){return uP=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uP(t)}var lP={center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?E(t.sourceLinks,AT)-1:0},justify:RT,left:function(t){return t.depth},right:function(t,e){return e-1-t.height}},cP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&oP(t,e)}(o,t);var e,n,i,r=aP(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._nodeId=Aa("id"),t._links=Aa("links"),t._linksSource="source",t._linksTarget="target",t._noDataMessage=!1,t._nodes=Aa("nodes"),t._nodeAlign=lP.justify,t._nodePadding=8,t._nodeWidth=30,t._on.mouseenter=function(){},t._on["mouseleave.shape"]=function(){t.hover(!1)};var e=t._on["mousemove.shape"];return t._on["mousemove.shape"]=function(n,i,r,o){if(e(n,i,r,o),t._focus&&t._focus===n.id)t.hover(!1),t._on.mouseenter.bind(sP(t))(n,i,r,o),t._focus=void 0;else{var a=t._nodeId(n,i),s=t._nodeLookup[a],u=Object.keys(t._nodeLookup).reduce((function(e,n){return e[t._nodeLookup[n]]=isNaN(n)?n:parseInt(n,10),e}),{}),l=t._linkLookup[s],c=[a];l.forEach((function(t){c.push(u[t])})),t.hover((function(e,n){return e.source&&e.target?e.source.id===a||e.target.id===a:c.includes(t._nodeId(e,n))}))}},t._path=QT().source(tP).target(eP),t._sankey=LT(),t._shape=Za("Rect"),t._shapeConfig=Oa(t._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},label:!1,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},Rect:{}}),t._value=Za(1),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;rP(uP(o.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,r=Array.isArray(this._nodes)?this._nodes:this._links.reduce((function(t,n){return t.includes(n[e._linksSource])||t.push(n[e._linksSource]),t.includes(n[e._linksTarget])||t.push(n[e._linksTarget]),t}),[]).map((function(t){return{id:t}})),a=r.map((function(t,n){return{__d3plus__:!0,data:t,i:n,id:e._nodeId(t,n),node:t,shape:"Rect"}})),s=this._nodeLookup=a.reduce((function(t,e,n){return t[e.id]=n,t}),{}),u=this._links.map((function(t,n){var i=[e._linksSource,e._linksTarget].reduce((function(e,n){return e[n]=s[t[n]],e}),{});return{source:i[e._linksSource],target:i[e._linksTarget],value:e._value(t,n)}}));this._linkLookup=u.reduce((function(t,e){return t[e.source]||(t[e.source]=[]),t[e.source].push(e.target),t[e.target]||(t[e.target]=[]),t[e.target].push(e.source),t}),{});var l="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");return this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(a).links(u).size([i,n])(),this._shapes.push((new xf).config(this._shapeConfig.Path).data(u).d(this._path).select($a("g.d3plus-Links",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).render()),es().key((function(t){return t.shape})).entries(a).forEach((function(t){e._shapes.push((new kf[t.key]).data(t.values).height((function(t){return t.y1-t.y0})).width((function(t){return t.x1-t.x0})).x((function(t){return(t.x1+t.x0)/2})).y((function(t){return(t.y1+t.y0)/2})).select($a("g.d3plus-sankey-nodes",{parent:e._select,enter:{transform:l},update:{transform:l}}).node()).config(Xa.bind(e)(e._shapeConfig,"shape",t.key)).render())})),this}},{key:"hover",value:function(t){return this._hover=t,this._shapes.forEach((function(e){return e.hover(t)})),this._legend&&this._legendClass.hover(t),this}},{key:"links",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"links"),this):this._links}},{key:"linksSource",value:function(t){return arguments.length?(this._linksSource=t,this):this._linksSource}},{key:"linksTarget",value:function(t){return arguments.length?(this._linksTarget=t,this):this._linksTarget}},{key:"nodeAlign",value:function(t){return arguments.length?(this._nodeAlign="function"==typeof t?t:lP[t],this):this._nodeAlign}},{key:"nodeId",value:function(t){return arguments.length?(this._nodeId="function"==typeof t?t:Aa(t),this):this._nodeId}},{key:"nodes",value:function(t,e){return arguments.length?(nC.bind(this)(t,e,"nodes"),this):this._nodes}},{key:"nodePadding",value:function(t){return arguments.length?(this._nodePadding=t,this):this._nodePadding}},{key:"nodeWidth",value:function(t){return arguments.length?(this._nodeWidth=t,this):this._nodeWidth}},{key:"value",value:function(t){return arguments.length?(this._value="function"==typeof t?t:Aa(t),this):this._value}}],n&&iP(e.prototype,n),i&&iP(e,i),o}(RR),hP=function(t,e,n){if(t.padding)t.padding(.5);else{var i=e.map((function(t){return t[n]})).reduce((function(t,e,n,i){if(!n)return t;var r=i[n-1];return!t||e-r<t?e-r:t}),0),r=t.domain().slice();"y"===n&&r.reverse(),r[0]=new Date(+r[0]-i/2),r[1]=new Date(+r[1]+i/2),"y"===n&&r.reverse(),t.domain(r)}};function fP(t){var e,n,i=this,r=t.data,o=t.x,a=t.y,s=t.x2,u=t.y2,l=t.buffer,c=void 0===l?10:l,h=s?"x2":"x",f=u?"y2":"y",d="x"===this._discrete?a:o,g=d.domain().slice(),p="x"===this._discrete;if(p&&g.reverse(),this._stacked){var v=es().key((function(t){return"".concat(t[i._discrete],"_").concat(t.group)})).entries(r).map((function(t){return t.values.map((function(t){return t[p?f:h]}))}));n=v.map((function(t){return N(t.filter((function(t){return t>0})))})),e=v.map((function(t){return N(t.filter((function(t){return t<0})))}))}else e=n=r.map((function(t){return t[p?f:h]}));var y=d(C(n));(p?y<d(0):y>d(0))&&(y+=p?-c:c),y=d.invert(y);var m=d(E(e));return(p?m>d(0):m<d(0))&&(m+=p?c:-c),m=d.invert(m),y>g[1]&&(g[1]=y),m<g[0]&&(g[0]=m),p&&g.reverse(),d.domain(g),hP(p?o:a,r,this._discrete),[o,a]}function dP(t){var e,n,i=this,r=t.data,o=t.x,a=t.y,s=t.x2,u=t.y2,l=t.buffer,c=void 0===l?10:l,h=s?"x2":"x",f=u?"y2":"y",d="x"===this._discrete?a:o,g=d.domain().slice(),p="x"===this._discrete;if(p&&g.reverse(),this._stacked){var v=es().key((function(t){return t[i._discrete]})).entries(r).map((function(t){return t.values.map((function(t){return t[p?f:h]}))}));n=v.map((function(t){return N(t.filter((function(t){return t>0})))})),e=v.map((function(t){return N(t.filter((function(t){return t<0})))}))}else e=n=r.map((function(t){return t[p?f:h]}));var y=d(C(n));y+=p?-c:c,y=d.invert(y);var m=d(E(e));return m+=p?c:-c,m=d.invert(m),y>g[1]&&(g[1]=y),m<g[0]&&(g[0]=m),p&&g.reverse(),d.domain(g),hP(p?o:a,r,this._discrete),[o,a]}var gP=function(t){return Math.pow(10,Math.floor(Math.log10(Math.abs(t))))*Math.pow(-1,t<0)},pP=function(t){return Math.pow(10,Math.ceil(Math.log10(Math.abs(t))))*Math.pow(-1,t<0)};function vP(t,e,n,i,r,o,a,s){if(isNaN(o[0])||isNaN(o[1]))return o;if(s&&(o=o.slice().reverse(),r=r.slice().reverse()),o[0]===o[1]){if(o=o.slice(),"log"===e)(o=[gP(o[0]),pP(o[0])])[1]<o[0]&&o.reverse();else{var u=Math.abs(parseFloat(o[0].toPrecision(1).replace(/[0-9]{1}$/,"1")));o[0]-=u,o[1]+=u}return t.domain(s?o.slice().reverse():o),s?o.reverse():o}var l=o[0]===o[1]?10:Math.abs(Math.log(o[1]-o[0])/10),c=function(){var r=t.copy(),o=!1;if("log"===e){var u=t.domain().slice(),l=t.range().slice();if(s&&(u=u.reverse(),l=l.reverse()),o=u[0]*u[1]<0){var c=Di().domain([1e-6,Math.abs(u[a])]).range([0,1])(Math.abs(u[a?0:1])),h=c/(c+1)*(l[1]-l[0]);u=(0===a?[u[0],1e-6]:[1e-6,u[1]]).map(Math.abs),l=0===a?[l[0],l[0]+h]:[l[0]+h,l[1]]}r=Di().domain(u).range(l)}var f,d=!1,g=r.range();return f=r("log"===e&&o?Math.abs(n):n),s?0===a?d=f+i>g[a]:1===a&&(d=f-i<g[a]):0===a?d=f-i<g[a]:1===a&&(d=f+i>g[a]),d};if(t.invert&&c()){if("log"===e)for(var h=0;h<10&&c();){var f=(0===a?-1:1)*(o[a]<0?-1:1);o[a]+=o[a]*l*f,t.domain(s?o.slice().reverse():o),h++}else if(0===a){var d=t.invert(t(n)+(i+10)*(s?1:-1));d<o[a]&&(o[a]=d,t.domain(s?o.slice().reverse():o))}else if(1===a){var g=t.invert(t(n)+(i+10)*(s?-1:1));g>o[a]&&(o[a]=g,t.domain(s?o.slice().reverse():o))}}return s?o.reverse():o}function yP(t){var e=t.data,n=t.x,i=t.y,r=t.x2,o=t.y2,a=t.yScale,s=t.xScale,u=t.config,l=t.buffer;n=n.copy(),i=i.copy();var c=r?"x2":"x",h=o?"y2":"y",f=n.domain().slice(),d=i.domain().slice(),g=n.range(),p=i.range();return!n.invert&&n.padding&&hP(n,e,this._discrete),!i.invert&&i.padding&&hP(i,e,this._discrete),(n.invert||i.invert)&&e.forEach((function(t){var e=l||2*u.r(t.data,t.i);n.invert&&(f=vP(n,s,t[c],e,g,f,0,!1),f=vP(n,s,t[c],e,g,f,1,!1)),i.invert&&(d=vP(i,a,t[h],e,p,d,0,!0),d=vP(i,a,t[h],e,p,d,1,!0))})),[n,i]}function mP(t){var e=this,n=t.data,i=t.x,r=t.y,o=t.x2,a=t.y2,s=o?"x2":"x",u=a?"y2":"y",l="x"===this._discrete?r:i,c=l.domain().slice();"x"===this._discrete&&c.reverse();var h=n.map((function(t){return t["x"===e._discrete?u:s]})),f=l.invert(l(C(h))+("x"===this._discrete?-10:10));return f>c[1]&&(c[1]=f),"x"===this._discrete&&c.reverse(),l.domain(c),[i,r]}function _P(t){var e=t.data,n=t.x,i=t.y,r=t.x2,o=t.y2,a=t.yScale,s=t.xScale,u=t.config;n=n.copy(),i=i.copy();var l=r?"x2":"x",c=o?"y2":"y",h=n.domain().slice(),f=i.domain().slice(),d=n.range(),g=i.range();return!n.invert&&n.padding&&hP(n,e,this._discrete),!i.invert&&i.padding&&hP(i,e,this._discrete),(n.invert||i.invert)&&e.forEach((function(t){if(n.invert){var e=u.width(t.data,t.i);h=vP(n,s,t[l],e,d,h,0,!1),h=vP(n,s,t[l],e,d,h,1,!1)}if(i.invert){var r=u.height(t.data,t.i);f=vP(i,a,t[c],r,g,f,0,!0),f=vP(i,a,t[c],r,g,f,1,!0)}})),[n,i]}function bP(t){return bP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bP(t)}function wP(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(t){s=!0,r=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return xP(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xP(t,e)}(t,e)||function(){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 xP(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function kP(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function SP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function CP(){return CP="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=MP(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},CP.apply(this,arguments)}function EP(t,e){return EP=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},EP(t,e)}function AP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=MP(t);if(e){var r=MP(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===bP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return RP(t)}(this,n)}}function RP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function MP(t){return MP=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},MP(t)}var OP=new Zh,TP=new _c;function PP(t){return this._sizeScaleD3(this._size?this._size(t):null)}function BP(t){var e=t.map(NP),n=t.map((function(t){return t.key.split("_")[0]}));return Dl(t).sort((function(t,i){return n[i].localeCompare(n[t])||e[t]-e[i]}))}function DP(t){return BP(t).reverse()}function NP(t){for(var e,n=-1,i=0,r=t.length;++n<r;)(e=+t[n][1])&&(i+=e);return i}function zP(t,e){var n;if((n=t.length)>0)for(var i,r,o,a,s,u=t[e[0]].length,l=0;l<u;++l)for(s=a=0,o=0;o<n;++o)(r=(i=t[e[o]][l])[1]-i[0])>=0?(i[0]=s,i[1]=s+=r):r<0?(i[1]=a,i[0]=a+=r):i[0]=s}function jP(t,e){if(this._stacked)return!1;var n="x"===this._discrete.charAt(0)?"y":"x",i=this._discrete.replace(this._discrete.charAt(0),n),r=this["_".concat(i,"Axis")]._d3Scale.range(),o=this["_".concat(i)](t,e),a=o<0,s=this["_".concat(i,"Axis")]._getPosition(0),u="y"===i?a?r[1]-s:s-r[0]:a?s-r[0]:r[1]-s,l=this["_".concat(i,"Axis")]._getPosition(o);return Math.abs(l-s)<u/2}var FP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&EP(t,e)}(o,t);var e,n,i,r=AP(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._annotations=[],t._backgroundConfig={duration:0,fill:"transparent"},t._barPadding=0,t._buffer={Bar:fP,Box:dP,Circle:yP,Line:mP,Rect:_P},t._confidenceConfig={fill:function(e,n){return"function"==typeof t._shapeConfig.Line.stroke?t._shapeConfig.Line.stroke(e,n):t._shapeConfig.Line.stroke},fillOpacity:Za(.5)},t._discreteCutoff=100,t._groupPadding=5,t._lineMarkerConfig={fill:function(e,n){return ps(t._id(e,n))},r:Za(3)},t._lineMarkers=!1,t._previousAnnotations=[],t._previousShapes=[],t._shape=Za("Circle"),t._shapeConfig=Oa(t._shapeConfig,{Area:{label:function(e,n){return!!t._stacked&&t._drawLabel(e,n)},labelBounds:function(t,e,n){var i=ph(n.points,{angle:D(-20,20,5)});if((!i||i.height<20||i.width<50)&&(i=ph(n.points,{angle:D(-80,80,5)})),!i)return null;var r=E(n.points,(function(t){return t[0]})),o=C(n.points.filter((function(t){return t[0]===r})),(function(t){return t[1]}));return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-r,y:i.cy-i.height/2-o}},labelConfig:{fontMin:6,fontResize:!0,padding:10}},ariaLabel:function(e,n){var i="";return e.nested?i="".concat(t._drawLabel(e.data,e.i)):(i="".concat(t._drawLabel(e,n)),void 0!==t._x(e,n)&&(i+=", x: ".concat(t._x(e,n))),void 0!==t._y(e,n)&&(i+=", y: ".concat(t._y(e,n))),void 0!==t._x2(e,n)&&(i+=", x2: ".concat(t._x2(e,n))),void 0!==t._y2(e,n)&&(i+=", y2: ".concat(t._y2(e,n)))),"".concat(i,".")},Bar:{labelBounds:function(t,e,n){var i,r,o="y"===this._discrete?"width":"height",a="y"===this._discrete?"height":"width",s="x"===this._discrete.charAt(0)?"y":"x",u="y"===s,l=this._discrete.replace(this._discrete.charAt(0),s),c=this["_".concat(l,"Axis")]._d3Scale.range(),h=Math.abs(c[1]-c[0]),f=this["_".concat(l)](t,e)<0;return jP.bind(this)(t,e)?(kP(r={},o,h-n[o]),kP(r,a,n[a]),kP(r,"x",u?-n.width/2:f?-h:n.width+1),kP(r,"y",u?f?n.height+1:-h:-n.height/2+1),r):(kP(i={},o,n[o]),kP(i,a,n[a]),kP(i,"x",u?-n.width/2:f?this._stacked?1:1-n.width:-1),kP(i,"y",u?f?this._stacked?1-n.height:1:1-n.height:-n.height/2+1),i)},labelConfig:{fontMax:16,fontMin:6,fontResize:!0,fontColor:function(t,e){return jP.bind(this)(t,e)?"transparent"===this._backgroundConfig.fill?ds.dark:vs(this._backgroundConfig.fill):vs("function"==typeof this._shapeConfig.fill?this._shapeConfig.fill(t,e):this._shapeConfig.fill)},fontStroke:function(t,e){return jP.bind(this)(t,e)?"transparent"===this._backgroundConfig.fill?ds.dark:vs(this._backgroundConfig.fill):"transparent"},fontStrokeWidth:function(t,e){return jP.bind(this)(t,e)?.1:0},padding:3,textAnchor:function(t,e){var n="x"===this._discrete.charAt(0)?"y":"x",i="y"===n,r=this._discrete.replace(this._discrete.charAt(0),n),o=this["_".concat(r)](t,e)<0;return i?"middle":jP.bind(this)(t,e)?o?"end":"start":o?"start":"end"},verticalAlign:function(t,e){var n="x"===this._discrete.charAt(0)?"y":"x",i="y"===n,r=this._discrete.replace(this._discrete.charAt(0),n),o=this["_".concat(r)](t,e)<0;return i?jP.bind(this)(t,e)?o?"top":"bottom":o?"bottom":"top":"middle"}}},Circle:{r:PP.bind(RP(t))},Line:{curve:function(){return t._discrete?"monotone".concat(t._discrete.charAt(0).toUpperCase()):"linear"},fill:Za("none"),labelConfig:{fontColor:function(e,n){return ys("function"==typeof t._shapeConfig.Line.stroke?t._shapeConfig.Line.stroke(e,n):t._shapeConfig.Line.stroke)},fontResize:!1,padding:5,textAnchor:"start",verticalAlign:"middle"},strokeWidth:Za(2)},Rect:{height:function(e){return 2*PP.bind(RP(t))(e)},width:function(e){return 2*PP.bind(RP(t))(e)}}}),t._shapeOrder=["Area","Path","Bar","Box","Line","Rect","Circle"],t._shapeSort=function(e,n){return t._shapeOrder.indexOf(e)-t._shapeOrder.indexOf(n)},t._sizeMax=20,t._sizeMin=5,t._sizeScale="sqrt",t._stackOffset=zP,t._stackOrder=DP,t._timelineConfig=Oa(t._timelineConfig,{brushing:!0,brushMin:function(){return t._xTime||t._yTime||t._x2Time||t._y2Time?2:1}}),t._x=Aa("x"),t._xAxis=(new Gf).align("end"),t._xTest=(new Gf).align("end").gridSize(0),t._xConfig={gridConfig:{stroke:function(e){return t._discrete&&"x"===t._discrete.charAt(0)||t._xAxis.range()[0]===t._xAxis._getPosition.bind(t._xAxis)(e.id)?"transparent":"#eee"}}},t._xCutoff=150,t._x2=Aa("x2"),t._x2Axis=(new ad).align("start"),t._x2Test=(new ad).align("start").gridSize(0),t._x2Config={padding:0},t._y=Aa("y"),t._yAxis=(new Yf).align("start"),t._yTest=(new Yf).align("start").gridSize(0),t._yConfig={gridConfig:{stroke:function(e){if(t._discrete&&"y"===t._discrete.charAt(0))return"transparent";var n=t._yAxis.range();return n[n.length-1]===t._yAxis._getPosition.bind(t._yAxis)(e.id)?"transparent":"#eee"}}},t._yCutoff=150,t._y2=Aa("y2"),t._y2Axis=(new td).align("end"),t._y2Test=(new Yf).align("end").gridSize(0),t._y2Config={},t}return e=o,n=[{key:"_preDraw",value:function(){var t=this;["x","y","x2","y2"].forEach((function(e){if(t["_".concat(e,"Key")]){var n=t["_".concat(e,"Key")];t._aggs[n]||t._discrete!==e||(t._aggs[n]=function(t,e){var n=Array.from(new Set(t.map(e)));return 1===n.length?n[0]:n}),n!==e&&t["_".concat(e,"Title")]===t["_".concat(e,"Config")].title&&t._discrete!==e&&(t["_".concat(e,"Title")]=n,t["_".concat(e,"Config")].title=n)}})),CP(MP(o.prototype),"_preDraw",this).call(this)}},{key:"_draw",value:function(t){var e=this;if(!this._filteredData.length)return this;var n=function(t,n){return e._stacked?"".concat(e._groupBy.length>1?e._ids(t,n).slice(0,-1).join("_"):"group"):"".concat(e._ids(t,n).join("_"))},i=this._filteredData.map((function(t,i){return{__d3plus__:!0,data:t,group:n(t,i),i:i,hci:e._confidence&&e._confidence[1]&&e._confidence[1](t,i),id:e._ids(t,i).slice(0,e._drawDepth+1).join("_"),lci:e._confidence&&e._confidence[0]&&e._confidence[0](t,i),shape:e._shape(t,i),x:e._x(t,i),x2:e._x2(t,i),y:e._y(t,i),y2:e._y2(t,i)}}));if(this._formattedData=i,this._size){var r=h(i,(function(t){return e._size(t.data)}));this._sizeScaleD3=function(){return e._sizeMin},this._sizeScaleD3=er["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(r).range([r[0]===r[1]?this._sizeMax:E([this._sizeMax/2,this._sizeMin]),this._sizeMax])}else this._sizeScaleD3=function(){return e._sizeMin};for(var a=i.some((function(t){return void 0!==t.x2})),s=i.some((function(t){return void 0!==t.y2})),u=this._height-this._margin.top-this._margin.bottom,l=this._discrete?"x"===this._discrete?"y":"x":void 0,f=this._discrete?"x"===this._discrete?"y2":"x2":void 0,d=[l,f].filter((function(t){return t})),g=this._select,p=this._transition,v=this._width-this._margin.left-this._margin.right,y=this._x2Time=this._time&&i[0].x2===this._time(i[0].data,i[0].i),m=this._xTime=this._time&&i[0].x===this._time(i[0].data,i[0].i),_=this._y2Time=this._time&&i[0].y2===this._time(i[0].data,i[0].i),b=this._yTime=this._time&&i[0].y===this._time(i[0].data,i[0].i),w=0;w<i.length;w++){var x=i[w];m&&(x.x=Sf(x.x)),y&&(x.x2=Sf(x.x2)),b&&(x.y=Sf(x.y)),_&&(x.y2=Sf(x.y2)),x.discrete="Bar"===x.shape?"".concat(x[this._discrete],"_").concat(x.group):"".concat(x[this._discrete])}function k(t){var e=this,n=i.filter((function(e){return e[t]})).sort((function(n,i){return e["_".concat(t,"Sort")]?e["_".concat(t,"Sort")](n.data,i.data):n[t]-i[t]})).map((function(e){return e[t]}));return this._discrete!==t.charAt(0)&&this._confidence&&(this._confidence[0]&&(n=n.concat(i.map((function(t){return t.lci})))),this._confidence[1]&&(n=n.concat(i.map((function(t){return t.hci}))))),us(n,(function(t){return"".concat(t)}))}var S,A,R,M,O=k.bind(this)("x"),P=k.bind(this)("x2"),z=k.bind(this)("y"),j=k.bind(this)("y2"),F=i.some((function(t){return"Bar"===t.shape}));if(this._stacked){var L,I=es().key((function(t){return t.group})).entries(i).reduce((function(t,e){return t[e.key]||(t[e.key]=0),t[e.key]+=N(e.values,(function(t){return t[l]})),t}),{});i=i.sort((function(t,n){if(e["_".concat(e._discrete,"Sort")])return e["_".concat(e._discrete,"Sort")](t.data,n.data);var i=t[e._discrete],r=n[e._discrete];return i-r!=0?i-r:t.group!==n.group?I[n.group]-I[t.group]:n[l]-t[l]})),S=Array.from(new Set(i.map((function(t){return t.discrete})))),M=Array.from(new Set(i.map((function(t){return t.id})))),R=es().key((function(t){return t.discrete})).entries(i).map((function(t){return t.values})),R.forEach((function(t){var r=Array.from(new Set(t.map((function(t){return t.id}))));r.length<M.length&&M.forEach((function(o){if(!r.includes(o)){var a=i.filter((function(t){return t.id===o}))[0];if("Area"===a.shape){var s,u=n(a.data,a.i),c=(kP(s={__d3plus__:!0,data:a.data,discrete:"Bar"===a.shape?"".concat(t[0][e._discrete],"_").concat(u):"".concat(t[0][e._discrete]),group:u,id:o,shape:a.shape},e._discrete,t[0][e._discrete]),kP(s,l,0),s);i.push(c)}}}))})),this["_".concat(this._discrete,"Sort")]?i.sort((function(t,n){return e["_".concat(e._discrete,"Sort")](t.data,n.data)})):i.sort((function(t,n){return t[e._discrete]-n[e._discrete]}));var H=this._stackOrder;H instanceof Array?M.sort((function(t,e){return H.indexOf(t)-H.indexOf(e)})):H===Dl&&M.sort((function(t,e){return t.localeCompare(e)})),R=jl().keys(M).offset(this._stackOffset).order(H instanceof Array?Dl:H).value((function(t,e){var n=t.filter((function(t){return t.id===e}));return n.length?n[0][l]:0}))(R);var G="x"===this._discrete?O:z;kP(L={},this._discrete,!F&&this["_".concat(this._discrete,"Time")]?h(G):G),kP(L,l,[E(R.map((function(t){return E(t.map((function(t){return t[0]})))}))),C(R.map((function(t){return C(t.map((function(t){return t[1]})))})))]),A=L}else{var V=this._discrete||"x";this["_".concat(this._discrete,"Sort")]?i.sort((function(t,n){return e["_".concat(e._discrete,"Sort")](t.data,n.data)})):i.sort((function(t,e){return t[V]-e[V]})),A={x:(F||!m)&&"x"===this._discrete||this._xSort?O:h(O),x2:(F||!y)&&"x"===this._discrete||this._x2Sort?P:h(P),y:(F||!b)&&"y"===this._discrete||this._ySort?z:h(z),y2:(F||!_)&&"y"===this._discrete||this._y2Sort?j:h(j)}}function U(t){var e=!F&&this["_".concat(t,"Time")]?"Time":this._discrete===t||this["_".concat(t,"Sort")]?"Point":"Linear",n=this["_".concat(t,"Domain")]?this["_".concat(t,"Domain")].slice():A[t],i=this["_".concat(t,"2Domain")]?this["_".concat(t,"2Domain")].slice():A["".concat(t,"2")];return"Point"!==e&&(n&&void 0===n[0]&&(n[0]=A[t][0]),n&&void 0===n[1]&&(n[1]=A[t][1]),i&&void 0===i[0]&&(i[0]=A["".concat(t,"2")][0]),i&&void 0===i[1]&&(i[1]=A["".concat(t,"2")][1])),[n,e,i,e]}var W=wP(U.bind(this)("x"),4),q=W[0],K=W[1],Y=W[2],X=W[3],Z=wP(U.bind(this)("y"),4),$=Z[0],J=Z[1],Q=Z[2],tt=Z[3],et=function(t,n){var r=e["_".concat(t,"Config")].scale;if("auto"===r){if(e._discrete===t)return n;var o=i.map((function(e){return e[t]}));return c(o)/T(o)>3?"log":"linear"}return r||n},nt=this._yConfigScale=et("y",J).toLowerCase(),it=this._y2ConfigScale=et("y2",tt).toLowerCase(),rt=this._xConfigScale=et("x",K).toLowerCase(),ot=this._x2ConfigScale=et("x2",X).toLowerCase();A={x:q,x2:Y||q,y:$,y2:Q||$},Object.keys(A).forEach((function(t){"log"===e["_".concat(t,"ConfigScale")]&&A[t].includes(0)&&(E(A[t])<0?A[t][1]=C(i.map((function(e){return e[t]})).filter(Boolean)):A[t][0]=E(i.map((function(e){return e[t]})).filter(Boolean)))})),d.forEach((function(t){if(e["_".concat(t,"Config")].domain){var n=e["_".concat(t,"Config")].domain;"x"===e._discrete&&n.reverse(),A[t]=n}else if(t&&void 0!==e._baseline){var i=e._baseline;A[t]&&A[t][0]>i?A[t][0]=i:A[t]&&A[t][1]<i&&(A[t][1]=i)}}));var at=er["scale".concat(K)]().domain(A.x).range(D(0,v+1,v/(A.x.length-1))),st=er["scale".concat(X)]().domain(A.x2).range(D(0,v+1,v/(A.x2.length-1))),ut=er["scale".concat(J)]().domain(A.y.reverse()).range(D(0,u+1,u/(A.y.length-1))),lt=er["scale".concat(tt)]().domain(A.y2.reverse()).range(D(0,u+1,u/(A.y2.length-1))),ct=es().key((function(t){return t.shape})).entries(i).sort((function(t,n){return e._shapeSort(t.key,n.key)}));"Point"!==("x"===this._discrete?J:K)&&ct.forEach((function(t){if(e._buffer[t.key]){var n=e._buffer[t.key].bind(e)({data:t.values,x:at,y:ut,yScale:nt,xScale:rt,config:e._shapeConfig[t.key]});at=n[0],ut=n[1];var i=e._buffer[t.key].bind(e)({data:t.values,x:st,y:lt,yScale:it,xScale:ot,x2:!0,y2:!0,config:e._shapeConfig[t.key]});st=i[0],lt=i[1]}}));var ht=at.domain(),ft=st.domain(),dt=ut.domain(),gt=lt.domain(),pt={barConfig:{"stroke-width":0},gridSize:0,labels:[],title:!1,tickSize:0},vt=a?{data:P}:pt,yt=s?{data:j}:pt,mt="x"===this._discrete&&this._width>this._discreteCutoff||this._width>this._xCutoff,_t="y"===this._discrete&&this._height>this._discreteCutoff||this._height>this._yCutoff,bt={data:z,locale:this._locale,scalePadding:ut.padding?ut.padding():0};mt||(bt.barConfig={stroke:"transparent"},bt.tickSize=0,bt.shapeConfig={labelBounds:function(t,n){var i=t.labelBounds,r=i.width,o=i.y,a=e._height/2;return{x:n?-a:0,y:o,width:r,height:a}},labelConfig:{padding:0,rotate:0,verticalAlign:function(t){return t.id===Ct[0]?"top":"bottom"}},labelRotation:!1});var wt=$a("g.d3plus-plot-test",{enter:{opacity:0},parent:this._select}),xt="x"===this._discrete?A.x2:void 0,kt=_t?"x"===this._discrete?A.x:void 0:h(A.x),St="y"===this._discrete?A.y2:void 0,Ct=mt?"y"===this._discrete?A.y:void 0:h(A.y),Et=Xa.bind(this)(this._shapeConfig,"shape","Bar"),At=void 0!==Et.label?"function"==typeof Et.label?Et.label:Za(Et.label):this._drawLabel,Rt=this._filteredData.map((function(t,e){return At(t,e)})).filter((function(t){return"number"==typeof t||t})).map(String);"Point"===X&&xt instanceof Array&&xt.every((function(t){return Rt.includes("".concat(t))}))&&(xt=[]),"Point"===K&&kt instanceof Array&&kt.every((function(t){return Rt.includes("".concat(t))}))&&(kt=[]),"Point"===tt&&St instanceof Array&&St.every((function(t){return Rt.includes("".concat(t))}))&&(St=[]),"Point"===J&&Ct instanceof Array&&Ct.every((function(t){return Rt.includes("".concat(t))}))&&(Ct=[]),_t&&this._yTest.domain(dt).height(u).maxSize(v/2).range([void 0,void 0]).select(wt.node()).ticks(Ct).width(v).config(bt).config(this._yConfig).scale(nt).render();var Mt=this._yTest.outerBounds(),Ot=Mt.width?Mt.width+this._yTest.padding():void 0;s&&this._y2Test.domain(gt).height(u).range([void 0,void 0]).select(wt.node()).ticks(St).width(v).config(bt).config(yt).config(this._y2Config).scale(it).render();var Tt=this._y2Test.outerBounds(),Pt=Tt.width?Tt.width+this._y2Test.padding():void 0,Bt={data:O,locale:this._locale,scalePadding:at.padding?at.padding():0};_t||(Bt.barConfig={stroke:"transparent"},Bt.tickSize=0,Bt.shapeConfig={labelBounds:function(t,n){var i=t.labelBounds,r=i.height,o=i.y,a=e._width/2;return{x:n?-a:0,y:o,width:a,height:r}},labelConfig:{padding:0,rotate:0,textAnchor:function(t){return t.id===kt[0]?"start":"end"}},labelRotation:!1});var Dt,Nt=void 0;if(mt&&this._xTest.domain(ht).height(u).maxSize(u/2).range([void 0,Nt]).select(wt.node()).ticks(kt).width(v).config(Bt).config(this._xConfig).scale(rt).render(),this._lineLabels){var zt=es().key((function(t){return t.id})).entries(i.filter((function(t){return"Line"===t.shape})));if(zt.length){var jt=Xa.bind(this)(this._shapeConfig,"shape","Line");OP.config(jt);var Ft=OP.labelConfig(),Lt=void 0!==Ft.fontSize?Ft.fontSize:TP.fontSize(),It=void 0!==Ft.fontWeight?Ft.fontWeight:TP.fontWeight(),Ht=void 0!==Ft.fontFamily?Ft.fontFamily:TP.fontFamily(),Gt=void 0!==Ft.padding?Ft.padding:TP.padding(),Vt=jt.label||this._drawLabel,Ut=function(t){return"log"===rt&&0===t&&(t=ht[0]<0?e._xTest._d3Scale.domain()[1]:e._xTest._d3Scale.domain()[0]),e._xTest._getPosition.bind(e._xTest)(t)},Wt=C(zt.map((function(t){return C(t.values.map((function(t){return Ut(t.x)})))}))),qt=zt.map((function(t){for(var e,n=t.values[t.values.length-1];n.__d3plus__&&n.data;)e=(n=n.data).i;var i="function"==typeof Vt?Vt(n,e):Vt,r="function"==typeof Lt?Lt(n,e):Lt,o="function"==typeof It?It(n,e):It,a="function"==typeof Ht?Ht(n,e):Ht;a instanceof Array&&(a=a.map((function(t){return"'".concat(t,"'")})).join(", "));var s="function"==typeof Gt?Gt(n,e):Gt,u=Ul(i,{"font-size":r,"font-family":a,"font-weight":o}),l=C(t.values.map((function(t){return Ut(t.x)})));return{labelWidth:u+2*s,spaceNeeded:l-Wt+u+2*s}}));Dt=C(qt.map((function(t){return t.labelWidth})));var Kt=C(qt.map((function(t){return t.spaceNeeded}))),Yt=E([Kt,v/4]);Nt=v-Yt-this._margin.right}}mt&&Nt&&this._xTest.domain(ht).height(u).maxSize(u/2).range([void 0,Nt]).select(wt.node()).ticks(kt).width(v).config(Bt).config(this._xConfig).scale(rt).render(),a&&this._x2Test.domain(ft).height(u).range([void 0,Nt]).select(wt.node()).ticks(xt).width(v).config(Bt).tickSize(0).config(vt).config(this._x2Config).scale(ot).render();var Xt=this._xTest._getRange(),Zt=this._x2Test._getRange(),$t=this._x2Test.outerBounds(),Jt=a?$t.height+this._x2Test.padding():0,Qt=C([Ot,Xt[0],Zt[0]]);mt&&this._xTest.range([Qt,void 0]).render();var te=_t?this._yTest.shapeConfig().labelConfig.fontSize()/2:0,ee=C([Pt,v-Xt[1],v-Zt[1]]),ne=this._xTest.outerBounds().height+(_t?this._xTest.padding():0);this._padding.left+=Qt,this._padding.right+=ee,this._padding.bottom+=ne,this._padding.top+=Jt+te,CP(MP(o.prototype),"_draw",this).call(this,t);var ie=this._margin.left+this._margin.right,re=this._margin.top+this._margin.bottom,oe=[Jt,u-(ne+te+re)];_t&&this._yTest.domain(dt).height(u).maxSize(v/2).range(oe).select(wt.node()).ticks(Ct).width(v).config(bt).config(this._yConfig).scale(nt).render(),Qt=C([Ot=(Mt=this._yTest.outerBounds()).width?Mt.width+this._yTest.padding():void 0,Xt[0],Zt[0]]),s&&this._y2Test.config(bt).domain(gt).gridSize(0).height(u).range(oe).select(wt.node()).width(v-C([0,ee-Pt])).title(!1).config(this._y2Config).config(yt).scale(it).render(),ee=C([0,Pt=(Tt=this._y2Test.outerBounds()).width?Tt.width+this._y2Test.padding():void 0,v-Xt[1],v-Zt[1]]);var ae=[Qt,v-(ee+ie)],se=$a("g.d3plus-plot-background",{parent:g,transition:p}),ue="translate(".concat(this._margin.left,", ").concat(this._margin.top+Jt+te,")"),le="translate(".concat(this._margin.left,", ").concat(this._margin.top+te,")"),ce=mt&&$a("g.d3plus-plot-x-axis",{parent:g,transition:p,enter:{transform:ue},update:{transform:ue}}),he=a&&$a("g.d3plus-plot-x2-axis",{parent:g,transition:p,enter:{transform:le},update:{transform:le}}),fe=Qt>Ot?Qt-Ot:0,de="translate(".concat(this._margin.left+fe,", ").concat(this._margin.top+te,")"),ge=_t&&$a("g.d3plus-plot-y-axis",{parent:g,transition:p,enter:{transform:de},update:{transform:de}}),pe="translate(-".concat(this._margin.right,", ").concat(this._margin.top+te,")"),ve=s&&$a("g.d3plus-plot-y2-axis",{parent:g,transition:p,enter:{transform:pe},update:{transform:pe}});this._xAxis.domain(ht).height(u-(Jt+te+re)).maxSize(u/2).range(ae).select(mt?ce.node():void 0).ticks(kt).width(v).config(Bt).config(this._xConfig).scale(rt).render(),a&&this._x2Axis.domain(ft).height(u-(ne+te+re)).range(ae).select(he.node()).ticks(xt).width(v).config(Bt).config(vt).config(this._x2Config).scale(ot).render(),this._xFunc=at=function(t,n){return"x2"===n?("log"===ot&&0===t&&(t=ft[0]<0?e._x2Axis._d3Scale.domain()[1]:e._x2Axis._d3Scale.domain()[0]),e._x2Axis._getPosition.bind(e._x2Axis)(t)):("log"===rt&&0===t&&(t=ht[0]<0?e._xAxis._d3Scale.domain()[1]:e._xAxis._d3Scale.domain()[0]),e._xAxis._getPosition.bind(e._xAxis)(t))},oe=[this._xAxis.outerBounds().y+Jt,u-(ne+te+re)],this._yAxis.domain(dt).height(u).maxSize(v/2).range(oe).select(_t?ge.node():void 0).ticks(Ct).width(ae[ae.length-1]).config(bt).config(this._yConfig).scale(nt).render(),s&&this._y2Axis.config(bt).domain(s?gt:dt).gridSize(0).height(u).range(oe).select(ve.node()).width(v-C([0,ee-Pt])).title(!1).config(this._y2Config).config(yt).scale(it).render(),this._yFunc=ut=function(t,n){return"y2"===n?("log"===it&&0===t&&(t=gt[1]<0?e._y2Axis._d3ScaleNegative.domain()[0]:e._y2Axis._d3Scale.domain()[1]),e._y2Axis._getPosition.bind(e._y2Axis)(t)-Jt):("log"===nt&&0===t&&(t=dt[1]<0?e._yAxis._d3ScaleNegative.domain()[0]:e._yAxis._d3Scale.domain()[1]),e._yAxis._getPosition.bind(e._yAxis)(t)-Jt)},(new Vh).data([{}]).select(se.node()).x(ae[0]+(ae[1]-ae[0])/2).width(ae[1]-ae[0]).y(this._margin.top+te+oe[0]+(oe[1]-oe[0])/2).height(oe[1]-oe[0]).config(this._backgroundConfig).render();var ye=$a("g.d3plus-plot-annotations",{parent:g,transition:p,enter:{transform:ue},update:{transform:ue}}).node(),me=this._annotations.map((function(t){return t.shape}));this._annotations.forEach((function(t){(new kf[t.shape]).config(t).config({x:function(t){return t.x2?at(t.x2,"x2"):at(t.x)},x0:"x"===e._discrete?function(t){return t.x2?at(t.x2,"x2"):at(t.x)}:at(A.x[0]),x1:"x"===e._discrete?null:function(t){return t.x2?at(t.x2,"x2"):at(t.x)},y:function(t){return t.y2?ut(t.y2,"y2"):ut(t.y)},y0:"y"===e._discrete?function(t){return t.y2?ut(t.y2,"y2"):ut(t.y)}:ut(A.y[1])-be,y1:"y"===e._discrete?null:function(t){return t.y2?ut(t.y2,"y2"):ut(t.y)-be}}).select(ye).render()}));var _e=this._previousAnnotations.filter((function(t){return!me.includes(t)}));_e.forEach((function(t){(new kf[t]).data([]).select(ye).render()})),this._previousAnnotations=me;var be=this._xAxis.barConfig()["stroke-width"];be&&(be/=2);var we=this._discrete||"x",xe={discrete:this._discrete,duration:this._duration,label:function(t){return e._drawLabel(t.data,t.i)},select:$a("g.d3plus-plot-shapes",{parent:g,transition:p,enter:{transform:ue},update:{transform:ue}}).node(),x:function(t){return void 0!==t.x2?at(t.x2,"x2"):at(t.x)},x0:"x"===we?function(t){return t.x2?at(t.x2,"x2"):at(t.x)}:at("number"==typeof this._baseline?this._baseline:A.x[0]),x1:"x"===we?null:function(t){return t.x2?at(t.x2,"x2"):at(t.x)},y:function(t){return void 0!==t.y2?ut(t.y2,"y2"):ut(t.y)},y0:"y"===we?function(t){return t.y2?ut(t.y2,"y2"):ut(t.y)}:ut("number"==typeof this._baseline?this._baseline:A.y[1])-be,y1:"y"===we?null:function(t){return t.y2?ut(t.y2,"y2"):ut(t.y)-be}};if(this._stacked){var ke="x"===l?at:ut;xe["".concat(l)]=xe["".concat(l,"0")]=function(t){var e=M.indexOf(t.id),n=S.indexOf(t.discrete);return ke(e>=0?R[e][n][0]:A[l]["x"===l?0:1])},xe["".concat(l,"1")]=function(t){var e=M.indexOf(t.id),n=S.indexOf(t.discrete);return ke(e>=0?R[e][n][1]:A[l]["x"===l?0:1])}}var Se=Object.keys(this._on);ct.forEach((function(t){var n=(new kf[t.key]).config(xe).data(t.values);if("Bar"===t.key){var i,r="x"===e._discrete?at:ut,o="x"===e._discrete?K:J,a="x"===e._discrete?ht:dt,s="x"===e._discrete?ae:oe;i="Point"!==o&&2===a.length?2*(r(t.values["x"===e._discrete?0:t.values.length-1][e._discrete])-r(a[0])):a.length>1?r(a[1])-r(a[0]):s[s.length-1]-s[0],e._groupPadding<i&&(i-=e._groupPadding);var u=i||1,l=es().key((function(t){return t[e._discrete]})).key((function(t){return t.group})).entries(t.values),c=B(l.map((function(t){return t.values.map((function(t){return t.key}))}))),h=Array.from(new Set(c));if(1===C(l.map((function(t){return t.values.length}))))n[e._discrete]((function(t,n){return xe[e._discrete](t,n)}));else{var f=i/2-(u=(u-e._barPadding*h.length-1)/h.length)/2,d=Ci().domain([0,h.length-1]).range([-f,f]);n[e._discrete]((function(t,n){return xe[e._discrete](t,n)+d(h.indexOf(t.group))}))}n.width(u),n.height(u)}else if("Line"===t.key){if(n.duration(1.5*v),e._confidence){var g=Object.assign({},xe),p=e._discrete||"x",y="x"===p?"y":"x",m="x"===p?ut:at;g["".concat(y,"0")]=function(t){return m(e._confidence[0]?t.lci:t[y])},g["".concat(y,"1")]=function(t){return m(e._confidence[1]?t.hci:t[y])};var _=(new xh).config(g).data(t.values),b=Object.assign(e._shapeConfig,e._confidenceConfig);_.config(Oa(Xa.bind(e)(b,"shape","Line"),Xa.bind(e)(b,"shape","Area"))).render(),e._shapes.push(_)}n.config({discrete:xe.discrete||"x",label:!!e._lineLabels&&e._drawLabel,labelBounds:!!e._lineLabels&&function(t,n,i){var r=wP(i.points[0],2),o=r[0],a=r[1],s=wP(i.points[i.points.length-1],2),u=s[0],l=s[1],c=e._height/4;return{x:u-o,y:l-a-c/2,width:Dt,height:c}}})}for(var w=Se.filter((function(e){return e.includes(".".concat(t.key))})),x=Se.filter((function(t){return!t.includes(".")})),k=Se.filter((function(t){return t.includes(".shape")})),S=function(t){n.on(x[t],(function(n,i,r,o){return e._on[x[t]](n.data,n.i,r,o)}))},E=0;E<x.length;E++)S(E);for(var A=function(t){n.on(k[t],(function(n,i,r,o){return e._on[k[t]](n.data,n.i,r,o)}))},R=0;R<k.length;R++)A(R);for(var M=function(t){n.on(w[t],(function(n,i,r,o){return e._on[w[t]](n.data,n.i,r,o)}))},O=0;O<w.length;O++)M(O);var T=Xa.bind(e)(e._shapeConfig,"shape",t.key);if(void 0===e._shapeConfig.duration&&delete T.duration,n.config(T).render(),e._shapes.push(n),"Line"===t.key){for(var P=(new zh).data(e._lineMarkers?t.values:[]).config(xe).config(e._lineMarkerConfig).id((function(t){return"".concat(t.id,"_").concat(t.discrete)})),D=function(t){P.on(x[t],(function(n,i,r,o){return e._on[x[t]](n.data,n.i,r,o)}))},N=0;N<x.length;N++)D(N);for(var z=function(t){P.on(k[t],(function(n,i,r,o){return e._on[k[t]](n.data,n.i,r,o)}))},j=0;j<k.length;j++)z(j);for(var F=function(t){P.on(w[t],(function(n,i,r,o){return e._on[w[t]](n.data,n.i,r,o)}))},L=0;L<w.length;L++)F(L);P.render(),e._shapes.push(P)}}));var Ce=ct.map((function(t){return t.key}));Ce.includes("Line")&&(this._confidence&&Ce.push("Area"),this._lineMarkers&&Ce.push("Circle"));var Ee=this._previousShapes.filter((function(t){return!Ce.includes(t)}));return Ee.forEach((function(t){(new kf[t]).config(xe).data([]).render()})),this._previousShapes=Ce,this}},{key:"annotations",value:function(t){return arguments.length?(this._annotations=t instanceof Array?t:[t],this):this._annotations}},{key:"backgroundConfig",value:function(t){return arguments.length?(this._backgroundConfig=Oa(this._backgroundConfig,t),this):this._backgroundConfig}},{key:"barPadding",value:function(t){return arguments.length?(this._barPadding=t,this):this._barPadding}},{key:"baseline",value:function(t){return arguments.length?(this._baseline=t,this):this._baseline}},{key:"confidence",value:function(t){if(arguments.length&&t instanceof Array){this._confidence=[];var e=t[0];this._confidence[0]="function"!=typeof e&&e?Aa(e):e;var n=t[1];return this._confidence[1]="function"!=typeof n&&n?Aa(n):n,this}return this._confidence}},{key:"confidenceConfig",value:function(t){return arguments.length?(this._confidenceConfig=Oa(this._confidenceConfig,t),this):this._confidenceConfig}},{key:"discrete",value:function(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"discreteCutoff",value:function(t){return arguments.length?(this._discreteCutoff=t,this):this._discreteCutoff}},{key:"groupPadding",value:function(t){return arguments.length?(this._groupPadding=t,this):this._groupPadding}},{key:"lineLabels",value:function(t){return arguments.length?(this._lineLabels=t,this):this._lineLabels}},{key:"lineMarkerConfig",value:function(t){return arguments.length?(this._lineMarkerConfig=Oa(this._lineMarkerConfig,t),this):this._lineMarkerConfig}},{key:"lineMarkers",value:function(t){return arguments.length?(this._lineMarkers=t,this):this._lineMarkers}},{key:"shapeSort",value:function(t){return arguments.length?(this._shapeSort=t,this):this._shapeSort}},{key:"size",value:function(t){return arguments.length?(this._size="function"!=typeof t&&t?Aa(t):t,this):this._size}},{key:"sizeMax",value:function(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}},{key:"stacked",value:function(t){return arguments.length?(this._stacked=t,this):this._stacked}},{key:"stackOffset",value:function(t){return arguments.length?(this._stackOffset="function"==typeof t?t:Gl["stackOffset".concat(t.charAt(0).toUpperCase()+t.slice(1))],this):this._stackOffset}},{key:"stackOrder",value:function(t){return arguments.length?(this._stackOrder="string"==typeof t?"ascending"===t?BP:"descending"===t?DP:Gl["stackOrder".concat(t.charAt(0).toUpperCase()+t.slice(1))]:t,this):this._stackOrder}},{key:"x",value:function(t){return arguments.length?("function"==typeof t?this._x=t:(this._x=Aa(t),this._xKey=t),this):this._x}},{key:"x2",value:function(t){return arguments.length?("function"==typeof t?this._x2=t:(this._x2=Aa(t),this._x2Key=t),this):this._x2}},{key:"xConfig",value:function(t){return arguments.length?(this._xConfig=Oa(this._xConfig,t),this):this._xConfig}},{key:"xCutoff",value:function(t){return arguments.length?(this._xCutoff=t,this):this._xCutoff}},{key:"x2Config",value:function(t){return arguments.length?(this._x2Config=Oa(this._x2Config,t),this):this._x2Config}},{key:"xDomain",value:function(t){return arguments.length?(this._xDomain=t,this):this._xDomain}},{key:"x2Domain",value:function(t){return arguments.length?(this._x2Domain=t,this):this._x2Domain}},{key:"xSort",value:function(t){return arguments.length?(this._xSort=t,this):this._xSort}},{key:"x2Sort",value:function(t){return arguments.length?(this._x2Sort=t,this):this._x2Sort}},{key:"y",value:function(t){return arguments.length?("function"==typeof t?this._y=t:(this._y=Aa(t),this._yKey=t),this):this._y}},{key:"y2",value:function(t){return arguments.length?("function"==typeof t?this._y2=t:(this._y2=Aa(t),this._y2Key=t),this):this._y2}},{key:"yConfig",value:function(t){return arguments.length?(t.domain&&(t.domain=t.domain.slice().reverse()),this._yConfig=Oa(this._yConfig,t),this):this._yConfig}},{key:"yCutoff",value:function(t){return arguments.length?(this._yCutoff=t,this):this._yCutoff}},{key:"y2Config",value:function(t){return arguments.length?(t.domain&&(t.domain=t.domain.slice().reverse()),this._y2Config=Oa(this._y2Config,t),this):this._y2Config}},{key:"yDomain",value:function(t){return arguments.length?(this._yDomain=t,this):this._yDomain}},{key:"y2Domain",value:function(t){return arguments.length?(this._y2Domain=t,this):this._y2Domain}},{key:"ySort",value:function(t){return arguments.length?(this._ySort=t,this):this._ySort}},{key:"y2Sort",value:function(t){return arguments.length?(this._y2Sort=t,this):this._y2Sort}}],n&&SP(e.prototype,n),i&&SP(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(RR);function LP(t){return LP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LP(t)}function IP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function HP(t,e){return HP=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},HP(t,e)}function GP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=VP(t);if(e){var r=VP(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===LP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function VP(t){return VP=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},VP(t)}var UP=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&HP(t,e)}(o,t);var e,n,i,r=GP(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._baseline=0,t._discrete="x",t._shape=Za("Area"),t.x("x"),t}return e=o,n&&IP(e.prototype,n),i&&IP(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(FP);function WP(t){return WP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WP(t)}function qP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function KP(t,e){return KP=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},KP(t,e)}function YP(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=ZP(t);if(e){var r=ZP(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===WP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return XP(t)}(this,n)}}function XP(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ZP(t){return ZP=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ZP(t)}var $P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&KP(t,e)}(o,t);var e,n,i,r=YP(o);function o(){var t;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._baseline=0,t._discrete="x";var e=t._legend;return t._legend=function(n,i){return i.map(t._groupBy[t._legendDepth].bind(XP(t))).sort().join()!==t._filteredData.map(t._groupBy[t._legendDepth].bind(XP(t))).sort().join()&&e.bind(XP(t))(n,i)},t._shape=Za("Bar"),t.x("x"),t}return e=o,n&&qP(e.prototype,n),i&&qP(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(FP);function JP(t){return JP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JP(t)}function QP(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function tB(t,e){return tB=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},tB(t,e)}function eB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=nB(t);if(e){var r=nB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===JP(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function nB(t){return nB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},nB(t)}var iB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&tB(t,e)}(o,t);var e,n,i,r=eB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._discrete="x",t._shape=Za("Box"),t.x("x"),t._tooltipConfig=Oa(t._tooltipConfig,{title:function(e,n){if(!e)return"";for(;e.__d3plus__&&e.data;)n=(e=e.data).i;if(t._label)return t._label(e,n);var i=t._ids(e,n).slice(0,t._drawDepth);return i[i.length-1]}}),t}return e=o,n&&QP(e.prototype,n),i&&QP(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(FP);function rB(t){return rB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rB(t)}function oB(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function aB(t,e){return aB=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},aB(t,e)}function sB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=uB(t);if(e){var r=uB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===rB(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function uB(t){return uB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},uB(t)}var lB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&aB(t,e)}(o,t);var e,n,i,r=sB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._discrete="x",t._shape=Za("Line"),t.x("x"),t.y2((function(e){return t._y(e)})),t.yConfig({tickFormat:function(e){var n=t._formattedData,i=n[0].x instanceof Date?n[0].x.getTime():n[0].x,r=n.filter((function(t){return(t.x instanceof Date?t.x.getTime():t.x)===i})),o=r.find((function(t){return t.y===e}));return o?t._drawLabel(o,o.i):""}}),t.y2Config({tickFormat:function(e){var n=t._formattedData,i=n[n.length-1].x instanceof Date?n[n.length-1].x.getTime():n[n.length-1].x,r=n.filter((function(t){return(t.x instanceof Date?t.x.getTime():t.x)===i})),o=r.find((function(t){return t.y===e}));return o?t._drawLabel(o,o.i):""}}),t.ySort((function(e,n){return t._y(n)-t._y(e)})),t.y2Sort((function(e,n){return t._y(n)-t._y(e)})),t}return e=o,n&&oB(e.prototype,n),i&&oB(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(FP);function cB(t){return cB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cB(t)}function hB(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function fB(t,e){return fB=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},fB(t,e)}function dB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=gB(t);if(e){var r=gB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===cB(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function gB(t){return gB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},gB(t)}var pB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fB(t,e)}(o,t);var e,n,i,r=dB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._discrete="x",t._shape=Za("Line"),t.x("x"),t}return e=o,n&&hB(e.prototype,n),i&&hB(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(FP);function vB(t){return vB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vB(t)}function yB(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function mB(){return mB="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=wB(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:n):r.value}},mB.apply(this,arguments)}function _B(t,e){return _B=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_B(t,e)}function bB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=wB(t);if(e){var r=wB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===vB(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function wB(t){return wB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},wB(t)}var xB=2*Math.PI,kB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_B(t,e)}(o,t);var e,n,i,r=bB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._axisConfig={shapeConfig:{fill:Za("none"),labelConfig:{fontColor:"#999",padding:0,textAnchor:function(t,e,n){return n.textAnchor},verticalAlign:"middle"},stroke:"#eee",strokeWidth:Za(1)}},t._discrete="metric",t._levels=6,t._metric=Aa("metric"),t._outerPadding=100,t._shape=Za("Path"),t._value=Aa("value"),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;mB(wB(o.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,r=E([n,i])/2-this._outerPadding,a="translate(".concat(i/2,", ").concat(n/2,")"),s=es().key(this._metric).entries(this._filteredData),u=es().key(this._id).key(this._metric).entries(this._filteredData),l=C(u.map((function(t){return t.values.map((function(t){return N(t.values,(function(t,n){return e._value(t,n)}))}))})).flat()),c=Array.from(Array(this._levels).keys()).map((function(t){return{id:t,r:r*((t+1)/e._levels)}})),h=Xa.bind(this)(this._axisConfig.shapeConfig,"shape","Circle");delete h.label,(new zh).data(c).select($a("g.d3plus-Radar-radial-circles",{parent:this._select,enter:{transform:a},update:{transform:a}}).node()).config(h).render();var f=s.length,d=s.map((function(t,n){var i=e._outerPadding,o=1.4*(e._shapeConfig.labelConfig.fontSize&&e._shapeConfig.labelConfig.fontSize(t,n)||11)*2,a=parseInt(360-360/f*n/90,10)%4+1,s=xB/f*n,u=360/f*n,l="start",c=10;2!==a&&3!==a||(c=-i-10,l="end",u+=180);var h={x:c,y:-o/2,width:i,height:o};return{__d3plus__:!0,data:ls(t.values,e._aggs),i:n,id:t.key,angle:u,textAnchor:l,labelBounds:h,rotateAnchor:[-c,o/2],x:r*Math.cos(s),y:r*Math.sin(s)}})).sort((function(t,e){return t.key-e.key}));(new Vh).data(d).rotate((function(t){return t.angle||0})).width(0).height(0).x((function(t){return t.x})).y((function(t){return t.y})).label((function(t){return t.id})).labelBounds((function(t){return t.labelBounds})).labelConfig(this._axisConfig.shapeConfig.labelConfig).select($a("g.d3plus-Radar-text",{parent:this._select,enter:{transform:a},update:{transform:a}}).node()).render(),(new xf).data(d).d((function(t){return"M".concat(0,",",0," ",-t.x,",").concat(-t.y)})).select($a("g.d3plus-Radar-axis",{parent:this._select,enter:{transform:a},update:{transform:a}}).node()).config(Xa.bind(this)(this._axisConfig.shapeConfig,"shape","Path")).render();var g=u.map((function(t){var n=t.values.map((function(t,n){var i=N(t.values,(function(t,n){return e._value(t,n)})),o=i/l*r,a=xB/f*n;return{x:o*Math.cos(a),y:o*Math.sin(a)}})),i="M ".concat(n[0].x," ").concat(n[0].y," ").concat(n.map((function(t){return"L ".concat(t.x," ").concat(t.y)})).join(" ")," L ").concat(n[0].x," ").concat(n[0].y);return{arr:t.values.map((function(t){return ls(t.values,e._aggs)})),id:t.key,points:n,d:i,__d3plus__:!0,data:ls(t.values.map((function(t){return ls(t.values,e._aggs)})),e._aggs)}})),p=Xa.bind(this)(this._shapeConfig,"shape","Path"),v=Object.keys(p.on);p.on={};for(var y=function(t){var r=v[t];p.on[r]=function(t,o,a,s){var u=t.points.map((function(t){return t.x+i/2})),l=t.points.map((function(t){return t.y+n/2})),c=vo(s,e._select.node()),h=u.map((function(t){return Math.abs(t-c[0])})),f=l.map((function(t){return Math.abs(t-c[1])})),d=h.map((function(t,e){return t+f[e]}));e._on[r].bind(e)(t.arr[d.indexOf(E(d))],o,a,s)}},m=0;m<v.length;m++)y(m);return this._shapes.push((new xf).data(g).d((function(t){return t.d})).select($a("g.d3plus-Radar-items",{parent:this._select,enter:{transform:a},update:{transform:a}}).node()).config(p).render()),this}},{key:"axisConfig",value:function(t){return arguments.length?(this._axisConfig=Oa(this._axisConfig,t),this):this._axisConfig}},{key:"metric",value:function(t){return arguments.length?(this._metric="function"==typeof t?t:Aa(t),this):this._metric}},{key:"outerPadding",value:function(t){return arguments.length?(this._outerPadding=t,this):this._outerPadding}},{key:"value",value:function(t){return arguments.length?(this._value="function"==typeof t?t:Aa(t),this):this._value}}],n&&yB(e.prototype,n),i&&yB(e,i),Object.defineProperty(e,"prototype",{writable:!1}),o}(RR);function SB(t){return SB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},SB(t)}function CB(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function EB(t,e){return EB=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},EB(t,e)}function AB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=RB(t);if(e){var r=RB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===SB(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function RB(t){return RB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},RB(t)}var MB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&EB(t,e)}(o,t);var e,n,i,r=AB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._stacked=!0,t}return e=o,n&&CB(e.prototype,n),i&&CB(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}(UP);function OB(t){return OB="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OB(t)}function TB(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function PB(t,e,n){return PB="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=NB(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(n):r.value}},PB(t,e,n||t)}function BB(t,e){return BB=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},BB(t,e)}function DB(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=NB(t);if(e){var r=NB(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(t,e){if(e&&("object"===OB(e)||"function"==typeof e))return e;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function NB(t){return NB=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},NB(t)}var zB=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&BB(t,e)}(o,t);var e,n,i,r=DB(o);function o(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this))._axis=(new zf).align("end").orient("bottom"),t._axisConfig={scale:"time"},t._axisTest=(new zf).align("end").gridSize(0).orient("bottom"),t.end("end"),t._paddingInner=.05,t._paddingOuter=.05,t._shapeConfig=Oa({},t._shapeConfig,{ariaLabel:function(e,n){return"".concat(t._drawLabel(e,n),", ").concat(t._start(e,n)," - ").concat(t._end(e,n),".")}}),t.start("start"),t}return e=o,n=[{key:"_draw",value:function(t){var e=this;if(PB(NB(o.prototype),"_draw",this).call(this,t),!this._filteredData)return this;var n,i=this._filteredData.map((function(t,n){return{__d3plus__:!0,data:t,end:"time"===e._axisConfig.scale?Sf(e._end(t,n)):e._end(t,n),i:n,id:e._id(t,n),start:"time"===e._axisConfig.scale?Sf(e._start(t,n)):e._start(t,n)}})).filter((function(t){return t.end-t.start>0})).sort((function(t,e){return t.start-e.start}));if(this._groupBy.length>1&&this._drawDepth>0){for(var r=es(),a=function(t){r.key((function(n){return e._groupBy[t](n.data,n.i)}))},s=0;s<this._drawDepth;s++)a(s);n=r.entries(i)}else n=[{values:i}];var u=0;n.forEach((function(t){var e=[];t.values.forEach((function(t){var n=(e=e.map((function(e){return!(e<=t.start)&&e}))).indexOf(!1);n<0?(t.lane=u+e.length,e.push(t.end)):(e[n]=t.end,t.lane=u+n)})),u+=e.length}));var l={domain:[E(i,(function(t){return t.start}))||0,C(i,(function(t){return t.end}))||0],height:this._height-this._margin.top-this._margin.bottom,width:this._width-this._margin.left-this._margin.right},c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._axisTest.config(l).config(this._axisConfig).select($a("g.d3plus-priestley-axis-test",{parent:this._select,enter:{opacity:0}}).node()).render(),this._axis.config(l).config(this._axisConfig).select($a("g.d3plus-priestley-axis",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).render();var h=this._axisTest._padding,f=this._axis._d3Scale,d=Ye().domain(D(0,u,1)).paddingInner(this._paddingInner).paddingOuter(this._paddingOuter).rangeRound([this._height-this._margin.bottom-this._axisTest.outerBounds().height-h,this._margin.top+h]),g=d.bandwidth();return this._shapes.push((new Vh).data(i).duration(this._duration).height(g).label((function(t,n){return e._drawLabel(t.data,n)})).select($a("g.d3plus-priestley-shapes",{parent:this._select}).node()).width((function(t){var e=Math.abs(f(t.end)-f(t.start));return e>2?e-2:e})).x((function(t){return f(t.start)+(f(t.end)-f(t.start))/2})).y((function(t){return d(t.lane)+g/2})).config(Xa.bind(this)(this._shapeConfig,"shape","Rect")).render()),this}},{key:"axisConfig",value:function(t){return arguments.length?(this._axisConfig=Oa(this._axisConfig,t),this):this._axisConfig}},{key:"end",value:function(t){return arguments.length?("function"==typeof t?this._end=t:(this._end=Aa(t),this._aggs[t]||(this._aggs[t]=C)),this):this._end}},{key:"paddingInner",value:function(t){return arguments.length?(this._paddingInner=t,this):this._paddingInner}},{key:"paddingOuter",value:function(t){return arguments.length?(this._paddingOuter=t,this):this._paddingOuter}},{key:"start",value:function(t){return arguments.length?("function"==typeof t?this._start=t:(this._start=Aa(t),this._aggs[t]||(this._aggs[t]=E)),this):this._start}}],n&&TB(e.prototype,n),i&&TB(e,i),o}(RR);t.Area=xh,t.AreaPlot=UP,t.Axis=zf,t.AxisBottom=Gf,t.AxisLeft=Yf,t.AxisRight=td,t.AxisTop=ad,t.Bar=Mh,t.BarChart=$P,t.BaseClass=qa,t.Box=hf,t.BoxWhisker=iB,t.BumpChart=lB,t.Circle=zh,t.ColorScale=oE,t.Donut=eM,t.Geomap=GR,t.Image=Ls,t.Legend=KC,t.Line=Zh,t.LinePlot=pB,t.Matrix=NO,t.Network=mT,t.Pack=eO,t.Path=xf,t.Pie=ZR,t.Plot=FP,t.Priestley=zB,t.RESET=Ha,t.Radar=kB,t.RadialMatrix=UO,t.Rect=Vh,t.Rings=ET,t.Sankey=cP,t.Shape=Mc,t.StackedArea=MB,t.TextBox=_c,t.Timeline=fE,t.Tooltip=zA,t.Tree=hO,t.Treemap=bO,t.Viz=RR,t.Whisker=rf,t.accessor=Aa,t.addToQueue=nC,t.assign=Oa,t.attrize=Ta,t.ckmeans=HC,t.closest=Ka,t.colorAdd=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t=Cn(t),e=Cn(e);var r=Math.abs(e.h*i-t.h*n);r>180&&(r-=360);var o=(Math.min(t.h,e.h)+r/2)%360,a=t.l+(e.l*i-t.l*n)/2,s=t.s+(e.s*i-t.s*n)/2;return o<0&&(o+=360),Cn("hsl(".concat(o,",").concat(100*s,"%,").concat(100*a,"%)")).toString()},t.colorAssign=ps,t.colorContrast=vs,t.colorDefaults=ds,t.colorLegible=ys,t.colorLighter=ms,t.colorSubtract=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;t=Cn(t);var r=(e=Cn(e)).h*i-t.h*n;Math.abs(r)>180&&(r-=360);var o=(t.h-r)%360,a=t.l-(e.l*i-t.l*n)/2,s=t.s-(e.s*i-t.s*n)/2;return o<0&&(o+=360),Cn("hsl(".concat(o,",").concat(100*s,"%,").concat(100*a,"%)")).toString()},t.configPrep=Xa,t.constant=Za,t.dataConcat=MS,t.dataFold=QS,t.dataLoad=eC,t.date=Sf,t.dom2canvas=sp,t.elem=$a,t.findLocale=Fa,t.fontExists=Ql,t.format=Ss,t.formatAbbreviate=ks,t.formatDate=zs,t.formatDefaultLocale=function(t){var e=xi(t);return e.format=Ss,e},t.formatLocale=_s,t.isData=TS,t.isObject=Ma,t.largestRect=ph,t.lineIntersection=$c,t.merge=ls,t.parseSides=cs,t.path2polygon=pf,t.pointDistance=kc,t.pointDistanceSquared=xc,t.pointRotate=ah,t.polygonInside=nh,t.polygonRayCast=oh,t.polygonRotate=sh,t.prefix=hs,t.rtl=tc,t.saveElement=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){e=Object.assign({},lp,e);var i=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(t instanceof Array||"svg"!==e.type)sp(t,Object.assign({},n,{callback:function(t){["jpg","png"].includes(e.type)&&t.toBlob((function(t){return up.saveAs(t,"".concat(e.filename,".").concat(e.type))})),e.callback&&e.callback()}}));else{var r=t.cloneNode(!0);po(r).call(Kg),po(r).selectAll("*").each((function(){po(this).call(Kg)}));var o=i?(new XMLSerializer).serializeToString(r):r.outerHTML;up.saveAs(new Blob([o],{type:"application/svg+xml"}),"".concat(e.filename,".svg")),e.callback&&e.callback()}}},t.segmentBoxContains=th,t.segmentsIntersect=eh,t.shapeEdgePoint=df,t.simplify=hh,t.stringify=ec,t.strip=ic,t.stylize=fs,t.textSplit=hc,t.textWidth=Ul,t.textWrap=fc,t.titleCase=function(t){if(void 0===t)return"";var e=bc.map((function(t){return t.toLowerCase()})),n=wc.slice();n=n.concat(n.map((function(t){return"".concat(t,"s")})));var i=n.map((function(t){return t.toLowerCase()})),r=hc(t);return r.map((function(t,o){if(t){var a=t.toLowerCase(),s=ac.includes(a.charAt(a.length-1))?a.slice(0,-1):a,u=i.indexOf(s);return u>=0?n[u]:e.includes(s)&&0!==o&&o!==r.length-1?a:t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}return""})).reduce((function(e,n,i){return i&&" "===t.charAt(e.length)&&(e+=" "),e+=n}),"")},t.trim=Wl,t.trimLeft=function(t){return t.toString().replace(/^\s+/,"")},t.trimRight=ql,t.unique=us,t.uuid=Ia,t.version="2.0.3",Object.defineProperty(t,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/455551354e268e5a5388cecc757b5d0f33868d2af68a08fba124a4ec849b9d1d.map