@alicloud/cloud-charts
Version:

1 lines • 1.98 MB
JavaScript
!function t(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],n):"object"==typeof exports?exports.CloudCharts=n(require("react"),require("react-dom")):e.CloudCharts=n(e.React,e.ReactDOM)}(window,(function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function e(){return t.default}:function e(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./build/",n(n.s=191)}([function(t,e,n){"use strict";n.r(e),n.d(e,"contains",(function(){return a})),n.d(e,"includes",(function(){return a})),n.d(e,"difference",(function(){return s})),n.d(e,"find",(function(){return k})),n.d(e,"findIndex",(function(){return T})),n.d(e,"firstValue",(function(){return L})),n.d(e,"flatten",(function(){return N})),n.d(e,"flattenDeep",(function(){return D})),n.d(e,"getRange",(function(){return G})),n.d(e,"pull",(function(){return q})),n.d(e,"pullAt",(function(){return $})),n.d(e,"reduce",(function(){return Q})),n.d(e,"remove",(function(){return tt})),n.d(e,"sortBy",(function(){return rt})),n.d(e,"union",(function(){return at})),n.d(e,"uniq",(function(){return it})),n.d(e,"valuesOfKey",(function(){return lt})),n.d(e,"head",(function(){return ct})),n.d(e,"last",(function(){return ut})),n.d(e,"startsWith",(function(){return ft})),n.d(e,"endsWith",(function(){return pt})),n.d(e,"filter",(function(){return c})),n.d(e,"every",(function(){return gt})),n.d(e,"some",(function(){return yt})),n.d(e,"group",(function(){return Ot})),n.d(e,"groupBy",(function(){return xt})),n.d(e,"groupToMap",(function(){return wt})),n.d(e,"getWrapBehavior",(function(){return _t})),n.d(e,"wrapBehavior",(function(){return Mt})),n.d(e,"number2color",(function(){return Et})),n.d(e,"parseRadius",(function(){return Pt})),n.d(e,"clamp",(function(){return Bt})),n.d(e,"fixedBase",(function(){return It})),n.d(e,"isDecimal",(function(){return Rt})),n.d(e,"isEven",(function(){return Ht})),n.d(e,"isInteger",(function(){return Vt})),n.d(e,"isNegative",(function(){return Wt})),n.d(e,"isNumberEqual",(function(){return qt})),n.d(e,"isOdd",(function(){return Zt})),n.d(e,"isPositive",(function(){return Kt})),n.d(e,"max",(function(){return R})),n.d(e,"maxBy",(function(){return Qt})),n.d(e,"min",(function(){return z})),n.d(e,"minBy",(function(){return Jt})),n.d(e,"mod",(function(){return ee})),n.d(e,"toDegree",(function(){return ie})),n.d(e,"toInteger",(function(){return oe})),n.d(e,"toRadian",(function(){return ce})),n.d(e,"forIn",(function(){return ue})),n.d(e,"has",(function(){return se})),n.d(e,"hasKey",(function(){return fe})),n.d(e,"hasValue",(function(){return de})),n.d(e,"keys",(function(){return O})),n.d(e,"isMatch",(function(){return _})),n.d(e,"values",(function(){return pe})),n.d(e,"lowerCase",(function(){return ye})),n.d(e,"lowerFirst",(function(){return be})),n.d(e,"substitute",(function(){return we})),n.d(e,"upperCase",(function(){return je})),n.d(e,"upperFirst",(function(){return Se})),n.d(e,"getType",(function(){return Ae})),n.d(e,"isArguments",(function(){return ke})),n.d(e,"isArray",(function(){return y})),n.d(e,"isArrayLike",(function(){return i})),n.d(e,"isBoolean",(function(){return Te})),n.d(e,"isDate",(function(){return Le})),n.d(e,"isError",(function(){return Ne})),n.d(e,"isFunction",(function(){return d})),n.d(e,"isFinite",(function(){return Fe})),n.d(e,"isNil",(function(){return v})),n.d(e,"isNull",(function(){return Re})),n.d(e,"isNumber",(function(){return Ft})),n.d(e,"isObject",(function(){return m})),n.d(e,"isObjectLike",(function(){return M})),n.d(e,"isPlainObject",(function(){return A})),n.d(e,"isPrototype",(function(){return Ge})),n.d(e,"isRegExp",(function(){return Ye})),n.d(e,"isString",(function(){return et})),n.d(e,"isType",(function(){return p})),n.d(e,"isUndefined",(function(){return Xe})),n.d(e,"isElement",(function(){return Ue})),n.d(e,"requestAnimationFrame",(function(){return Ze})),n.d(e,"clearAnimationFrame",(function(){return $e})),n.d(e,"augment",(function(){return tn})),n.d(e,"clone",(function(){return nn})),n.d(e,"debounce",(function(){return on})),n.d(e,"memoize",(function(){return an})),n.d(e,"deepMix",(function(){return sn})),n.d(e,"each",(function(){return x})),n.d(e,"extend",(function(){return hn})),n.d(e,"indexOf",(function(){return dn})),n.d(e,"isEmpty",(function(){return yn})),n.d(e,"isEqual",(function(){return bn})),n.d(e,"isEqualWith",(function(){return xn})),n.d(e,"map",(function(){return On})),n.d(e,"mapValues",(function(){return _n})),n.d(e,"mix",(function(){return Qe})),n.d(e,"assign",(function(){return Qe})),n.d(e,"get",(function(){return Sn})),n.d(e,"set",(function(){return Mn})),n.d(e,"pick",(function(){return An})),n.d(e,"omit",(function(){return En})),n.d(e,"throttle",(function(){return kn})),n.d(e,"toArray",(function(){return Pn})),n.d(e,"toString",(function(){return ge})),n.d(e,"uniqueId",(function(){return Bn})),n.d(e,"noop",(function(){return Ln})),n.d(e,"identity",(function(){return In})),n.d(e,"size",(function(){return Nn})),n.d(e,"measureTextWidth",(function(){return Rn})),n.d(e,"getEllipsisText",(function(){return zn})),n.d(e,"Cache",(function(){return Gn}));var r,i=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},o,a=function(t,e){return!!i(t)&&t.indexOf(e)>-1},l,c=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];e(o,r)&&n.push(o)}return n},u,s=function(t,e){return void 0===e&&(e=[]),c(t,(function(t){return!a(e,t)}))},f={}.toString,h,p=function(t,e){return f.call(t)==="[object "+e+"]"},d=function(t){return p(t,"Function")},g,v=function(t){return null==t},y=function(t){return Array.isArray?Array.isArray(t):p(t,"Array")},m=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(y(t))for(var r=0,i=t.length;r<i&&!1!==(n=e(t[r],r));r++);else if(m(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===(n=e(t[o],o)))break}var x=b,w,O=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(r)})),e};function j(t,e){var n=O(e),r=n.length;if(v(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0}var _=j,S,M=function(t){return"object"==typeof t&&null!==t},C,A=function(t){if(!M(t)||!p(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e};function E(t,e){if(!y(t))return null;var n;if(d(e)&&(n=e),A(e)&&(n=function(t){return _(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}var k=E;function P(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}var T=P,B,L=function(t,e){for(var n=null,r=0;r<t.length;r++){var i,o=t[r][e];if(!v(o)){n=y(o)?o[0]:o;break}}return n},I,N=function(t){if(!y(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},F=function(t,e){if(void 0===e&&(e=[]),y(t))for(var n=0;n<t.length;n+=1)F(t[n],e);else e.push(t);return e},D=F,R=function(t){if(y(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},z=function(t){if(y(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},H,G=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(y(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=R(e),o;return{min:z(e),max:i}},V=Array.prototype,Y=V.splice,W=V.indexOf,X,q=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var i=e[r],o=-1;(o=W.call(t,i))>-1;)Y.call(t,o,1);return t},U=Array.prototype.splice,Z,$=function t(e,n){if(!i(e))return[];for(var r=e?n.length:0,o=r-1;r--;){var a=void 0,l=n[r];r!==o&&l===a||(a=l,U.call(e,l,1))}return e},K,Q=function(t,e,n){if(!y(t)&&!A(t))return t;var r=n;return x(t,(function(t,n){r=e(r,t,n)})),r},J,tt=function(t,e){var n=[];if(!i(t))return n;for(var r=-1,o=[],a=t.length;++r<a;){var l=t[r];e(l,r,t)&&(n.push(l),o.push(r))}return $(t,o),n},et=function(t){return p(t,"String")};function nt(t,e){var n;if(d(e))n=function(t,n){return e(t)-e(n)};else{var r=[];et(e)?r.push(e):y(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}var rt=nt;function it(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var ot,at=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return it([].concat.apply([],t))},lt=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o,a=t[i][e];if(!v(a)){y(a)||(a=[a]);for(var l=0;l<a.length;l++){var c=a[l];r[c]||(n.push(c),r[c]=!0)}}}return n};function ct(t){if(i(t))return t[0]}function ut(t){if(i(t)){var e=t;return t[t.length-1]}}function st(t,e){return!(!y(t)&&!et(t))&&t[0]===e}var ft=st;function ht(t,e){return!(!y(t)&&!et(t))&&t[t.length-1]===e}var pt=ht,dt,gt=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},vt,yt=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},mt=Object.prototype.hasOwnProperty;function bt(t,e){if(!e||!y(t))return{};for(var n={},r=d(e)?e:function(t){return t[e]},i,o=0;o<t.length;o++){var a=t[o];i=r(a),mt.call(n,i)?n[i].push(a):n[i]=[a]}return n}var xt=bt;function wt(t,e){if(!e)return{0:t};if(!d(e)){var n=y(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return xt(t,e)}var Ot=function(t,e){if(!e)return[t];var n=wt(t,e),r=[];for(var i in n)r.push(n[i]);return r};function jt(t,e){return t["_wrap_"+e]}var _t=jt;function St(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}var Mt=St,Ct={};function At(t){var e=Ct[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,Ct[t]=e}return e}var Et=At;function kt(t){var e=0,n=0,r=0,i=0;return y(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}var Pt=kt,Tt,Bt=function(t,e,n){return t<e?e:t>n?n:t},Lt,It=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))},Nt,Ft=function(t){return p(t,"Number")},Dt,Rt=function(t){return Ft(t)&&t%1!=0},zt,Ht=function(t){return Ft(t)&&t%2==0},Gt,Vt=Number.isInteger?Number.isInteger:function(t){return Ft(t)&&t%1==0},Yt,Wt=function(t){return Ft(t)&&t<0},Xt=1e-5;function qt(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var Ut,Zt=function(t){return Ft(t)&&t%2!=0},$t,Kt=function(t){return Ft(t)&&t>0},Qt=function(t,e){if(y(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},Jt=function(t,e){if(y(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=d(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},te,ee=function(t,e){return(t%e+e)%e},ne=180/Math.PI,re,ie=function(t){return ne*t},oe=parseInt,ae=Math.PI/180,le,ce=function(t){return ae*t},ue=x,se=function(t,e){return t.hasOwnProperty(e)},fe=se,he,pe=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,r){d(t)&&"prototype"===r||e.push(n)})),e},de=function(t,e){return a(pe(t),e)},ge=function(t){return v(t)?"":t.toString()},ve,ye=function(t){return ge(t).toLowerCase()},me,be=function(t){var e=ge(t);return e.charAt(0).toLowerCase()+e.substring(1)};function xe(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var we=xe,Oe,je=function(t){return ge(t).toUpperCase()},_e,Se=function(t){var e=ge(t);return e.charAt(0).toUpperCase()+e.substring(1)},Me={}.toString,Ce,Ae=function(t){return Me.call(t).replace(/^\[object /,"").replace(/]$/,"")},Ee,ke=function(t){return p(t,"Arguments")},Pe,Te=function(t){return p(t,"Boolean")},Be,Le=function(t){return p(t,"Date")},Ie,Ne=function(t){return p(t,"Error")},Fe=function(t){return Ft(t)&&isFinite(t)},De,Re=function(t){return null===t},ze=Object.prototype,He,Ge=function(t){var e=t&&t.constructor,n;return t===("function"==typeof e&&e.prototype||ze)},Ve,Ye=function(t){return p(t,"RegExp")},We,Xe=function(t){return void 0===t},qe,Ue=function(t){return t instanceof Element||t instanceof HTMLDocument};function Ze(t){var e;return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function $e(t){var e;(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function Ke(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Qe(t,e,n,r){return e&&Ke(t,e),n&&Ke(t,n),r&&Ke(t,r),t}var Je,tn=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var i=t[r];d(i)&&(i=i.prototype),Qe(n.prototype,i)}},en=function(t){if("object"!=typeof t||null===t)return t;var e;if(y(t)){e=[];for(var n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=en(t[n]):e[n]=t[n]}else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=en(t[i]):e[i]=t[i];return e},nn=en;function rn(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},l=n&&!r;clearTimeout(r),r=setTimeout(a,e),l&&t.apply(i,o)}}var on=rn,an=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var l=t.apply(this,r);return a.set(o,l),l};return n.cache=new Map,n},ln=5;function cn(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&A(o)?(A(t[i])||(t[i]={}),n<r?cn(t[i],o,n+1,r):t[i]=e[i]):y(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var un,sn=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)cn(t,e[r]);return t},fn,hn=function(t,e,n,r){d(e)||(n=e,e=t,t=function(){});var i=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},o=i(e.prototype,t);return t.prototype=Qe(o,t.prototype),t.superclass=i(e.prototype,e),Qe(o,n),Qe(t,r),t},pn,dn=function(t,e){if(!i(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,o=0;o<t.length;o++)if(t[o]===e){r=o;break}return r},gn=Object.prototype.hasOwnProperty;function vn(t){if(v(t))return!0;if(i(t))return!t.length;var e=Ae(t);if("Map"===e||"Set"===e)return!t.size;if(Ge(t))return!Object.keys(t).length;for(var n in t)if(gn.call(t,n))return!1;return!0}var yn=vn,mn=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(et(t)||et(e))return!1;if(i(t)||i(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=mn(t[r],e[r]));r++);return n}if(M(t)||M(e)){var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var n=!0,r=0;r<o.length&&(n=mn(t[o[r]],e[o[r]]));r++);return n}return!1},bn=mn,xn=function(t,e,n){return d(n)?!!n(t,e):bn(t,e)},wn,On=function(t,e){if(!i(t))return t;for(var n=[],r=0;r<t.length;r++){var o=t[r];n.push(e(o,r))}return n},jn=function(t){return t},_n=function(t,e){void 0===e&&(e=jn);var n={};return m(t)&&!v(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},Sn=function(t,e,n){for(var r=0,i=et(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},Mn=function(t,e,n){var r=t,i=et(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(m(r[t])||(r[t]=Ft(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},Cn=Object.prototype.hasOwnProperty,An=function(t,e){if(null===t||!A(t))return{};var n={};return x(e,(function(e){Cn.call(t,e)&&(n[e]=t[e])})),n},En=function(t,e){return Q(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},kn=function(t,e,n){var r,i,o,a,l=0;n||(n={});var c=function(){l=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},u=function(){var u=Date.now();l||!1!==n.leading||(l=u);var s=e-(u-l);return i=this,o=arguments,s<=0||s>e?(r&&(clearTimeout(r),r=null),l=u,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(c,s)),a};return u.cancel=function(){clearTimeout(r),l=0,r=i=o=null},u},Pn=function(t){return i(t)?Array.prototype.slice.call(t):[]},Tn={},Bn=function(t){return Tn[t=t||"g"]?Tn[t]+=1:Tn[t]=1,t+Tn[t]},Ln=function(){},In=function(t){return t};function Nn(t){return v(t)?0:i(t)?t.length:Object.keys(t).length}var Fn=n(1),Dn,Rn=an((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return Dn||(Dn=document.createElement("canvas").getContext("2d")),Dn.font=[o,a,i,n+"px",r].join(" "),Dn.measureText(et(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(Fn.__spreadArrays)([t],pe(e)).join("")})),zn=function(t,e,n,r){void 0===r&&(r="...");var i=16,o=Rn(r,n),a=et(t)?t:ge(t),l=e,c=[],u,s;if(Rn(t,n)<=e)return t;for(;u=a.substr(0,16),!((s=Rn(u,n))+o>l&&s>l);)if(c.push(u),l-=s,!(a=a.substr(16)))return c.join("");for(;u=a.substr(0,1),!((s=Rn(u,n))+o>l);)if(c.push(u),l-=s,!(a=a.substr(1)))return c.join("");return""+c.join("")+r},Hn,Gn=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return l})),n.d(e,"__param",(function(){return c})),n.d(e,"__esDecorate",(function(){return u})),n.d(e,"__runInitializers",(function(){return s})),n.d(e,"__propKey",(function(){return f})),n.d(e,"__setFunctionName",(function(){return h})),n.d(e,"__metadata",(function(){return p})),n.d(e,"__awaiter",(function(){return d})),n.d(e,"__generator",(function(){return g})),n.d(e,"__createBinding",(function(){return v})),n.d(e,"__exportStar",(function(){return y})),n.d(e,"__values",(function(){return m})),n.d(e,"__read",(function(){return b})),n.d(e,"__spread",(function(){return x})),n.d(e,"__spreadArrays",(function(){return w})),n.d(e,"__spreadArray",(function(){return O})),n.d(e,"__await",(function(){return j})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return S})),n.d(e,"__asyncValues",(function(){return M})),n.d(e,"__makeTemplateObject",(function(){return C})),n.d(e,"__importStar",(function(){return E})),n.d(e,"__importDefault",(function(){return k})),n.d(e,"__classPrivateFieldGet",(function(){return P})),n.d(e,"__classPrivateFieldSet",(function(){return T})),n.d(e,"__classPrivateFieldIn",(function(){return B})),n.d(e,"__addDisposableResource",(function(){return L})),n.d(e,"__disposeResources",(function(){return N}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function t(e){for(var n,r=1,i=arguments.length;r<i;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o]);return e}).apply(this,arguments)};function a(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function l(t,e,n,r){var i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function c(t,e){return function(n,r){e(n,r,t)}}function u(t,e,n,r,i,o){function a(t){if(void 0!==t&&"function"!=typeof t)throw new TypeError("Function expected");return t}for(var l=r.kind,c="getter"===l?"get":"setter"===l?"set":"value",u=!e&&t?r.static?t:t.prototype:null,s=e||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,h=!1,p=n.length-1;p>=0;p--){var d={};for(var g in r)d[g]="access"===g?{}:r[g];for(var g in r.access)d.access[g]=r.access[g];d.addInitializer=function(t){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(t||null))};var v=(0,n[p])("accessor"===l?{get:s.get,set:s.set}:s[c],d);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(f=a(v.get))&&(s.get=f),(f=a(v.set))&&(s.set=f),(f=a(v.init))&&i.unshift(f)}else(f=a(v))&&("field"===l?i.unshift(f):s[c]=f)}u&&Object.defineProperty(u,r.name,s),h=!0}function s(t,e,n){for(var r=arguments.length>2,i=0;i<e.length;i++)n=r?e[i].call(t,n):e[i].call(t);return r?n:void 0}function f(t){return"symbol"==typeof t?t:"".concat(t)}function h(t,e,n){return"symbol"==typeof e&&(e=e.description?"[".concat(e.description,"]"):""),Object.defineProperty(t,"name",{configurable:!0,value:n?"".concat(n," ",e):e})}function p(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function d(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function l(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,l)}c((r=r.apply(t,e||[])).next())}))}function g(t,e){var n={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(t){return function(e){return c([t,e])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(r=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,i=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!(o=n.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){n=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){n.label=l[1];break}if(6===l[0]&&n.label<o[1]){n.label=o[1],o=l;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(l);break}o[2]&&n.ops.pop(),n.trys.pop();continue}l=e.call(t,n)}catch(t){l=[6,t],i=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}var v=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]};function y(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||v(e,t,n)}function m(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,o=[],a;try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(t){a={error:t}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(a)throw a.error}}return o}function x(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(b(arguments[e]));return t}function w(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,l=o.length;a<l;a++,i++)r[i]=o[a];return r}function O(t,e,n){if(n||2===arguments.length)for(var r=0,i=e.length,o;r<i;r++)!o&&r in e||(o||(o=Array.prototype.slice.call(e,0,r)),o[r]=e[r]);return t.concat(o||Array.prototype.slice.call(e))}function j(t){return this instanceof j?(this.v=t,this):new j(t)}function _(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){r[t]&&(i[t]=function(e){return new Promise((function(n,r){o.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{c(r[t](e))}catch(t){f(o[0][3],t)}}function c(t){t.value instanceof j?Promise.resolve(t.value.v).then(u,s):f(o[0][2],t)}function u(t){l("next",t)}function s(t){l("throw",t)}function f(t,e){t(e),o.shift(),o.length&&l(o[0][0],o[0][1])}}function S(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:j(t[r](e)),done:!1}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=m(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){i(r,o,(n=t[e](n)).done,n.value)}))}}function i(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}}function C(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var A=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function E(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&v(e,t,n);return A(e,t),e}function k(t){return t&&t.__esModule?t:{default:t}}function P(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function T(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function B(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}function L(t,e,n){if(null!=e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=e[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=e[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");t.stack.push({value:e,dispose:r,async:n})}else n&&t.stack.push({async:!0});return e}var I="function"==typeof SuppressedError?SuppressedError:function(t,e,n){var r=new Error(n);return r.name="SuppressedError",r.error=t,r.suppressed=e,r};function N(t){function e(e){t.error=t.hasError?new I(e,t.error,"An error was suppressed during disposal."):e,t.hasError=!0}function n(){for(;t.stack.length;){var r=t.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(t){return e(t),n()}))}catch(t){e(t)}}if(t.hasError)throw t.error}return n()}e.default={__extends:i,__assign:o,__rest:a,__decorate:l,__param:c,__metadata:p,__awaiter:d,__generator:g,__createBinding:v,__exportStar:y,__values:m,__read:b,__spread:x,__spreadArrays:w,__spreadArray:O,__await:j,__asyncGenerator:_,__asyncDelegator:S,__asyncValues:M,__makeTemplateObject:C,__importStar:E,__importDefault:k,__classPrivateFieldGet:P,__classPrivateFieldSet:T,__classPrivateFieldIn:B,__addDisposableResource:L,__disposeResources:N}},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"geoArea",(function(){return $})),n.d(e,"geoBounds",(function(){return Mt})),n.d(e,"geoCentroid",(function(){return te})),n.d(e,"geoCircle",(function(){return fe})),n.d(e,"geoClipExtent",(function(){return Oe})),n.d(e,"geoContains",(function(){return Xe})),n.d(e,"geoDistance",(function(){return Fe})),n.d(e,"geoGraticule",(function(){return Ze})),n.d(e,"geoGraticule10",(function(){return $e})),n.d(e,"geoInterpolate",(function(){return Ke})),n.d(e,"geoLength",(function(){return Le})),n.d(e,"geoPath",(function(){return nr})),n.d(e,"geoAlbers",(function(){return Ar})),n.d(e,"geoAlbersUsa",(function(){return kr})),n.d(e,"geoAzimuthalEqualArea",(function(){return Lr})),n.d(e,"geoAzimuthalEqualAreaRaw",(function(){return Br})),n.d(e,"geoAzimuthalEquidistant",(function(){return Nr})),n.d(e,"geoAzimuthalEquidistantRaw",(function(){return Ir})),n.d(e,"geoConicConformal",(function(){return Gr})),n.d(e,"geoConicConformalRaw",(function(){return Hr})),n.d(e,"geoConicEqualArea",(function(){return Cr})),n.d(e,"geoConicEqualAreaRaw",(function(){return Mr})),n.d(e,"geoConicEquidistant",(function(){return Xr})),n.d(e,"geoConicEquidistantRaw",(function(){return Wr})),n.d(e,"geoEquirectangular",(function(){return Yr})),n.d(e,"geoEquirectangularRaw",(function(){return Vr})),n.d(e,"geoGnomonic",(function(){return Ur})),n.d(e,"geoGnomonicRaw",(function(){return qr})),n.d(e,"geoIdentity",(function(){return $r})),n.d(e,"geoProjection",(function(){return Or})),n.d(e,"geoProjectionMutator",(function(){return jr})),n.d(e,"geoMercator",(function(){return Dr})),n.d(e,"geoMercatorRaw",(function(){return Fr})),n.d(e,"geoOrthographic",(function(){return Qr})),n.d(e,"geoOrthographicRaw",(function(){return Kr})),n.d(e,"geoStereographic",(function(){return ti})),n.d(e,"geoStereographicRaw",(function(){return Jr})),n.d(e,"geoTransverseMercator",(function(){return ni})),n.d(e,"geoTransverseMercatorRaw",(function(){return ei})),n.d(e,"geoRotation",(function(){return ce})),n.d(e,"geoStream",(function(){return F})),n.d(e,"geoTransform",(function(){return fr}));var r=function(){return new i};function i(){this.reset()}i.prototype={constructor:i,reset:function(){this.s=this.t=0},add:function(t){a(o,t,this.t),a(this,o.s,this.s),this.s?this.t+=o.t:this.s=o.t},valueOf:function(){return this.s}};var o=new i;function a(t,e,n){var r=t.s=e+n,i=r-e,o=r-i;t.t=e-o+(n-i)}var l=1e-6,c=1e-12,u=Math.PI,s=u/2,f=u/4,h=2*u,p=180/u,d=u/180,g=Math.abs,v=Math.atan,y=Math.atan2,m=Math.cos,b=Math.ceil,x=Math.exp,w=Math.floor,O=Math.log,j=Math.pow,_=Math.sin,S=Math.sign||function(t){return t>0?1:t<0?-1:0},M=Math.sqrt,C=Math.tan;function A(t){return t>1?0:t<-1?u:Math.acos(t)}function E(t){return t>1?s:t<-1?-s:Math.asin(t)}function k(t){return(t=_(t/2))*t}function P(){}function T(t,e){t&&L.hasOwnProperty(t.type)&&L[t.type](t,e)}var B={Feature:function(t,e){T(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)T(n[r].geometry,e)}},L={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,r=-1,i=n.length;++r<i;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)I(n[r],e,0)},Polygon:function(t,e){N(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)N(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)T(n[r],e)}};function I(t,e,n){var r=-1,i=t.length-n,o;for(e.lineStart();++r<i;)o=t[r],e.point(o[0],o[1],o[2]);e.lineEnd()}function N(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)I(t[n],e,1);e.polygonEnd()}var F=function(t,e){t&&B.hasOwnProperty(t.type)?B[t.type](t,e):T(t,e)},D=r(),R=r(),z,H,G,V,Y,W={point:P,lineStart:P,lineEnd:P,polygonStart:function(){D.reset(),W.lineStart=X,W.lineEnd=q},polygonEnd:function(){var t=+D;R.add(t<0?h+t:t),this.lineStart=this.lineEnd=this.point=P},sphere:function(){R.add(h)}};function X(){W.point=U}function q(){Z(z,H)}function U(t,e){W.point=Z,z=t,H=e,G=t*=d,V=m(e=(e*=d)/2+f),Y=_(e)}function Z(t,e){var n=(t*=d)-G,r=n>=0?1:-1,i=r*n,o=m(e=(e*=d)/2+f),a=_(e),l=Y*a,c=V*o+l*m(i),u=l*r*_(i);D.add(y(u,c)),G=t,V=o,Y=a}var $=function(t){return R.reset(),F(t,W),2*R};function K(t){return[y(t[1],t[0]),E(t[2])]}function Q(t){var e=t[0],n=t[1],r=m(n);return[r*m(e),r*_(e),_(n)]}function J(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function tt(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 et(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function nt(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function rt(t){var e=M(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var it,ot,at,lt,ct,ut,st,ft,ht=r(),pt,dt,gt={point:vt,lineStart:mt,lineEnd:bt,polygonStart:function(){gt.point=xt,gt.lineStart=wt,gt.lineEnd=Ot,ht.reset(),W.polygonStart()},polygonEnd:function(){W.polygonEnd(),gt.point=vt,gt.lineStart=mt,gt.lineEnd=bt,D<0?(it=-(at=180),ot=-(lt=90)):ht>l?lt=90:ht<-l&&(ot=-90),dt[0]=it,dt[1]=at}};function vt(t,e){pt.push(dt=[it=t,at=t]),e<ot&&(ot=e),e>lt&&(lt=e)}function yt(t,e){var n=Q([t*d,e*d]);if(ft){var r=tt(ft,n),i,o=tt([r[1],-r[0],0],r);rt(o),o=K(o);var a=t-ct,l=a>0?1:-1,c=o[0]*p*l,u,s=g(a)>180;s^(l*ct<c&&c<l*t)?(u=o[1]*p)>lt&&(lt=u):s^(l*ct<(c=(c+360)%360-180)&&c<l*t)?(u=-o[1]*p)<ot&&(ot=u):(e<ot&&(ot=e),e>lt&&(lt=e)),s?t<ct?jt(it,t)>jt(it,at)&&(at=t):jt(t,at)>jt(it,at)&&(it=t):at>=it?(t<it&&(it=t),t>at&&(at=t)):t>ct?jt(it,t)>jt(it,at)&&(at=t):jt(t,at)>jt(it,at)&&(it=t)}else pt.push(dt=[it=t,at=t]);e<ot&&(ot=e),e>lt&&(lt=e),ft=n,ct=t}function mt(){gt.point=yt}function bt(){dt[0]=it,dt[1]=at,gt.point=vt,ft=null}function xt(t,e){if(ft){var n=t-ct;ht.add(g(n)>180?n+(n>0?360:-360):n)}else ut=t,st=e;W.point(t,e),yt(t,e)}function wt(){W.lineStart()}function Ot(){xt(ut,st),W.lineEnd(),g(ht)>l&&(it=-(at=180)),dt[0]=it,dt[1]=at,ft=null}function jt(t,e){return(e-=t)<0?e+360:e}function _t(t,e){return t[0]-e[0]}function St(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}var Mt=function(t){var e,n,r,i,o,a,l;if(lt=at=-(it=ot=1/0),pt=[],F(t,gt),n=pt.length){for(pt.sort(_t),e=1,o=[r=pt[0]];e<n;++e)St(r,(i=pt[e])[0])||St(r,i[1])?(jt(r[0],i[1])>jt(r[0],r[1])&&(r[1]=i[1]),jt(i[0],r[1])>jt(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,e=0,r=o[n=o.length-1];e<=n;r=i,++e)i=o[e],(l=jt(r[1],i[0]))>a&&(a=l,it=i[0],at=r[1])}return pt=dt=null,it===1/0||ot===1/0?[[NaN,NaN],[NaN,NaN]]:[[it,ot],[at,lt]]},Ct,At,Et,kt,Pt,Tt,Bt,Lt,It,Nt,Ft,Dt,Rt,zt,Ht,Gt,Vt={sphere:P,point:Yt,lineStart:Xt,lineEnd:Zt,polygonStart:function(){Vt.lineStart=$t,Vt.lineEnd=Kt},polygonEnd:function(){Vt.lineStart=Xt,Vt.lineEnd=Zt}};function Yt(t,e){t*=d;var n=m(e*=d);Wt(n*m(t),n*_(t),_(e))}function Wt(t,e,n){++Ct,Et+=(t-Et)/Ct,kt+=(e-kt)/Ct,Pt+=(n-Pt)/Ct}function Xt(){Vt.point=qt}function qt(t,e){t*=d;var n=m(e*=d);zt=n*m(t),Ht=n*_(t),Gt=_(e),Vt.point=Ut,Wt(zt,Ht,Gt)}function Ut(t,e){t*=d;var n=m(e*=d),r=n*m(t),i=n*_(t),o=_(e),a=y(M((a=Ht*o-Gt*i)*a+(a=Gt*r-zt*o)*a+(a=zt*i-Ht*r)*a),zt*r+Ht*i+Gt*o);At+=a,Tt+=a*(zt+(zt=r)),Bt+=a*(Ht+(Ht=i)),Lt+=a*(Gt+(Gt=o)),Wt(zt,Ht,Gt)}function Zt(){Vt.point=Yt}function $t(){Vt.point=Qt}function Kt(){Jt(Dt,Rt),Vt.point=Yt}function Qt(t,e){Dt=t,Rt=e,t*=d,e*=d,Vt.point=Jt;var n=m(e);zt=n*m(t),Ht=n*_(t),Gt=_(e),Wt(zt,Ht,Gt)}function Jt(t,e){t*=d;var n=m(e*=d),r=n*m(t),i=n*_(t),o=_(e),a=Ht*o-Gt*i,l=Gt*r-zt*o,c=zt*i-Ht*r,u=M(a*a+l*l+c*c),s=E(u),f=u&&-s/u;It+=f*a,Nt+=f*l,Ft+=f*c,At+=s,Tt+=s*(zt+(zt=r)),Bt+=s*(Ht+(Ht=i)),Lt+=s*(Gt+(Gt=o)),Wt(zt,Ht,Gt)}var te=function(t){Ct=At=Et=kt=Pt=Tt=Bt=Lt=It=Nt=Ft=0,F(t,Vt);var e=It,n=Nt,r=Ft,i=e*e+n*n+r*r;return i<1e-12&&(e=Tt,n=Bt,r=Lt,At<l&&(e=Et,n=kt,r=Pt),(i=e*e+n*n+r*r)<1e-12)?[NaN,NaN]:[y(n,e)*p,E(r/M(i))*p]},ee=function(t){return function(){return t}},ne=function(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return(n=e.invert(n,r))&&t.invert(n[0],n[1])}),n};function re(t,e){return[t>u?t-h:t<-u?t+h:t,e]}function ie(t,e,n){return(t%=h)?e||n?ne(ae(t),le(e,n)):ae(t):e||n?le(e,n):re}function oe(t){return function(e,n){return[(e+=t)>u?e-h:e<-u?e+h:e,n]}}function ae(t){var e=oe(t);return e.invert=oe(-t),e}function le(t,e){var n=m(t),r=_(t),i=m(e),o=_(e);function a(t,e){var a=m(e),l=m(t)*a,c=_(t)*a,u=_(e),s=u*n+l*r;return[y(c*i-s*o,l*n-u*r),E(s*i+c*o)]}return a.invert=function(t,e){var a=m(e),l=m(t)*a,c=_(t)*a,u=_(e),s=u*i-c*o;return[y(c*i+u*o,l*n+s*r),E(s*n-l*r)]},a}re.invert=re;var ce=function(t){function e(e){return(e=t(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e}return t=ie(t[0]*d,t[1]*d,t.length>2?t[2]*d:0),e.invert=function(e){return(e=t.invert(e[0]*d,e[1]*d))[0]*=p,e[1]*=p,e},e};function ue(t,e,n,r,i,o){if(n){var a=m(e),l=_(e),c=r*n;null==i?(i=e+r*h,o=e-c/2):(i=se(a,i),o=se(a,o),(r>0?i<o:i>o)&&(i+=r*h));for(var u,s=i;r>0?s>o:s<o;s-=c)u=K([a,-l*m(s),-l*_(s)]),t.point(u[0],u[1])}}function se(t,e){(e=Q(e))[0]-=t,rt(e);var n=A(-e[1]);return((-e[2]<0?-n:n)+h-l)%h}var fe=function(){var t=ee([0,0]),e=ee(90),n=ee(6),r,i,o={point:a};function a(t,e){r.push(t=i(t,e)),t[0]*=p,t[1]*=p}function l(){var a=t.apply(this,arguments),l=e.apply(this,arguments)*d,c=n.apply(this,arguments)*d;return r=[],i=ie(-a[0]*d,-a[1]*d,0).invert,ue(o,l,c,1),a={type:"Polygon",coordinates:[r]},r=i=null,a}return l.center=function(e){return arguments.length?(t="function"==typeof e?e:ee([+e[0],+e[1]]),l):t},l.radius=function(t){return arguments.length?(e="function"==typeof t?t:ee(+t),l):e},l.precision=function(t){return arguments.length?(n="function"==typeof t?t:ee(+t),l):n},l},he=function(){var t=[],e;return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:P,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},pe=function(t,e,n,r,i,o){var a=t[0],l=t[1],c,u,s=0,f=1,h=e[0]-a,p=e[1]-l,d;if(d=n-a,h||!(d>0)){if(d/=h,h<0){if(d<s)return;d<f&&(f=d)}else if(h>0){if(d>f)return;d>s&&(s=d)}if(d=i-a,h||!(d<0)){if(d/=h,h<0){if(d>f)return;d>s&&(s=d)}else if(h>0){if(d<s)return;d<f&&(f=d)}if(d=r-l,p||!(d>0)){if(d/=p,p<0){if(d<s)return;d<f&&(f=d)}else if(p>0){if(d>f)return;d>s&&(s=d)}if(d=o-l,p||!(d<0)){if(d/=p,p<0){if(d>f)return;d>s&&(s=d)}else if(p>0){if(d<s)return;d<f&&(f=d)}return s>0&&(t[0]=a+s*h,t[1]=l+s*p),f<1&&(e[0]=a+f*h,e[1]=l+f*p),!0}}}}},de=function(t,e){return g(t[0]-e[0])<l&&g(t[1]-e[1])<l};function ge(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var ve=function(t,e,n,r,i){var o=[],a=[],l,c;if(t.forEach((function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e],c;if(de(n,r)){for(i.lineStart(),l=0;l<e;++l)i.point((n=t[l])[0],n[1]);i.lineEnd()}else o.push(c=new ge(n,t,null,!0)),a.push(c.o=new ge(n,null,c,!1)),o.push(c=new ge(r,t,null,!1)),a.push(c.o=new ge(r,null,c,!0))}})),o.length){for(a.sort(e),ye(o),ye(a),l=0,c=a.length;l<c;++l)a[l].e=n=!n;for(var u=o[0],s,f;;){for(var h=u,p=!0;h.v;)if((h=h.n)===u)return;s=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(l=0,c=s.length;l<c;++l)i.point((f=s[l])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(s=h.p.z,l=s.length-1;l>=0;--l)i.point((f=s[l])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}s=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}};function ye(t){if(e=t.length){for(var e,n=0,r=t[0],i;++n<e;)r.n=i=t[n],i.p=r,r=i;r.n=i=t[0],i.p=r}}var me=n(21),be=1e9,xe=-be;function we(t,e,n,r){function i(i,o){return t<=i&&i<=n&&e<=o&&o<=r}function o(i,o,l,c){var s=0,f=0;if(null==i||(s=a(i,l))!==(f=a(o,l))||u(i,o)<0^l>0)do{c.point(0===s||3===s?t:n,s>1?r:e)}while((s=(s+l+4)%4)!==f);else c.point(o[0],o[1])}function a(r,i){return g(r[0]-t)<l?i>0?0:3:g(r[0]-n)<l?i>0?2:1:g(r[1]-e)<l?i>0?1:0:i>0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var n=a(t,1),r=a(e,1);return n!==r?n-r: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 l=a,u=he(),s,f,h,p,d,g,v,y,m,b,x,w={point:O,lineStart:M,lineEnd:C,polygonStart:_,polygonEnd:S};function O(t,e){i(t,e)&&l.point(t,e)}function j(){for(var e=0,n=0,i=f.length;n<i;++n)for(var o=f[n],a=1,l=o.length,c=o[0],u,s,h=c[0],p=c[1];a<l;++a)u=h,s=p,h=(c=o[a])[0],p=c[1],s<=r?p>r&&(h-u)*(r-s)>(p-s)*(t-u)&&++e:p<=r&&(h-u)*(r-s)<(p-s)*(t-u)&&--e;return e}function _(){l=u,s=[],f=[],x=!0}function S(){var t=j(),e=x&&t,n=(s=Object(me.b)(s)).length;(e||n)&&(a.polygonStart(),e&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),n&&ve(s,c,t,o,a),a.polygonEnd()),l=a,s=f=h=null}function M(){w.point=A,f&&f.push(h=[]),b=!0,m=!1,v=y=NaN}function C(){s&&(A(p,d),g&&m&&u.rejoin(),s.push(u.result())),w.point=O,m&&l.lineEnd()}function A(o,a){var c=i(o,a);if(f&&h.push([o,a]),b)p=o,d=a,g=c,b=!1,c&&(l.lineStart(),l.point(o,a));else if(c&&m)l.point(o,a);else{var u=[v=Math.max(xe,Math.min(be,v)),y=Math.max(xe,Math.min(be,y))],s=[o=Math.max(xe,Math.min(be,o)),a=Math.max(xe,Math.min(be,a))];pe(u,s,t,e,n,r)?(m||(l.lineStart(),l.point(u[0],u[1])),l.point(s[0],s[1]),c||l.lineEnd(),x=!1):c&&(l.lineStart(),l.point(o,a),x=!1)}v=o,y=a,m=c}return w}}var Oe=function(){var t=0,e=0,n=960,r=500,i,o,a;return a={stream:function(a){return i&&o===a?i:i=we(t,e,n,r)(o=a)},extent:function(l){return arguments.length?(t=+l[0][0],e=+l[0][1],n=+l[1][0],r=+l[1][1],i=o=null,a):[[t,e],[n,r]]}}},je=r(),_e=function(t,e){var n=e[0],r=e[1],i=[_(n),-m(n),0],o=0,a=0;je.reset();for(var c=0,s=t.length;c<s;++c)if(d=(p=t[c]).length)for(var p,d,g=p[d-1],v=g[0],b=g[1]/2+f,x=_(b),w=m(b),O=0;O<d;++O,v=S,x=C,w=A,g=j){var j=p[O],S=j[0],M=j[1]/2+f,C=_(M),A=m(M),k=S-v,P=k>=0?1:-1,T=P*k,B=T>u,L=x*C;if(je.add(y(L*P*_(T),w*A+L*m(T))),o+=B?k+P*h:k,B^v>=n^S>=n){var I=tt(Q(g),Q(j));rt(I);var N=tt(i,I);rt(N);var F=(B^k>=0?-1:1)*E(N[2]);(r>F||r===F&&(I[0]||I[1]))&&(a+=B^k>=0?1:-1)}}return(o<-l||o<l&&je<-l)^1&a},Se=r(),Me,Ce,Ae,Ee={sphere:P,point:P,lineStart:ke,lineEnd:P,polygonStart:P,polygonEnd:P};function ke(){Ee.point=Te,Ee.lineEnd=Pe}function Pe(){Ee.point=Ee.lineEnd=P}function Te(t,e){Me=t*=d,Ce=_(e*=d),Ae=m(e),Ee.point=Be}function Be(t,e){t*=d;var n=_(e*=d),r=m(e),i=g(t-Me),o=m(i),a,l=r*_(i),c=Ae*n-Ce*r*o,u=Ce*n+Ae*r*o;Se.add(y(M(l*l+c*c),u)),Me=t,Ce=n,Ae=r}var Le=function(t){return Se.reset(),F(t,Ee),+Se},Ie=[null,null],Ne={type:"LineString",coordinates:Ie},Fe=function(t,e){return Ie[0]=t,Ie[1]=e,Le(Ne)},De={Feature:function(t,e){return ze(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,i=n.length;++r<i;)if(ze(n[r].geometry,e))return!0;return!1}},Re={Sphere:function(){return!0},Point:function(t,e){return He(t.coordinates,e)},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(He(n[r],e))return!0;return!1},LineString:function(t,e){return Ge(t.coordinates,e)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ge(n[r],e))return!0;return!1},Polygon:function(t,e){return Ve(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,i=n.length;++r<i;)if(Ve(n[r],e))return!0;return!1},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,i=n.length;++r<i;)if(ze(n[r],e))return!0;return!1}};function ze(t,e){return!(!t||!Re.hasOwnProperty(t.type))&&Re[t.type](t,e)}function He(t,e){return 0===Fe(t,e)}function Ge(t,e){var n=Fe(t[0],t[1]),r,i;return Fe(t[0],e)+Fe(e,t[1])<=n+l}function Ve(t,e){return!!_e(t.map(Ye),We(e))}function Ye(t){return(t=t.map(We)).pop(),t}function We(t){return[t[0]*d,t[1]*d]}var Xe=function(t,e){return(t&&De.hasOwnProperty(t.type)?De[t.type]:ze)(t,e)};function qe(t,e,n){var r=Object(me.d)(t,e-l,n).concat(e);return function(t){return r.map((function(e){return[t,e]}))}}function Ue(t,e,n){var r=Object(me.d)(t,e-l,n).concat(e);return function(t){return r.map((function(e){return[e,t]}))}}function Ze(){var t,e,n,r,i,o,a,c,u=10,s=u,f=90,h=360,p,d,v,y,m=2.5;function x(){return{type:"MultiLineString",coordinates:w()}}function w(){return Object(me.d)(b(r/f)*f,n,f).map(v).concat(Object(me.d)(b(c/h)*h,a,h).map(y)).concat(Object(me.d)(b(e/u)*u,t,u).filter((function(t){return g(t%f)>l})).map(p)).concat(Object(me.d)(b(o/s)*s,i,s).filter((function(t){return g(t%h)>l})).map(d))}return x.lines=function(){return w().map((function(t){return{type:"LineString",coordinates:t}}))},x.outline=function(){return{type:"Polygon",coordinates:[v(r).concat(y(a).slice(1),v(n).reverse().slice(1),y(c).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.extentMajor(t).extentMinor(t):x.extentMinor()},x.extentMajor=function(t){return arguments.length?(r=+t[0][0],n=+t[1][0],c=+t[0][1],a=+t[1][1],r>n&&(t=r,r=n,n=t),c>a&&(t=c,c=a,a=t),x.precision(m)):[[r,c],[n,a]]},x.extentMinor=function(n){return arguments.length?(e=+n[0][0],t=+n[1][0],o=+n[0][1],i=+n[1][1],e>t&&(n=e,e=t,t=n),o>i&&(n=o,o=i,i=n),x.precision(m)):[[e,o],[t,i]]},x.step=function(t){return arguments.length?x.stepMajor(t).stepMinor(t):x.stepMinor()},x.stepMajor=function(t){return arguments.length?(f=+t[0],h=+t[1],x):[f,h]},x.stepMinor=function(t){return arguments.length?(u=+t[0],s=+t[1],x):[u,s]},x.precision=function(l){return arguments.length?(m=+l,p=qe(o,i,90),d=Ue(e,t,m),v=qe(c,a,90),y=Ue(r,n,m),x):m},x.extentMajor([[-180,-90+l],[180,90-l]]).extentMinor([[-180,-80-l],[180,80+l]])}function $e(){return Ze()()}var Ke=function(t,e){var n=t[0]*d,r=t[1]*d,i=e[0]*d,o=e[1]*d,a=m(r),l=_(r),c=m(o),u=_(o),s=a*m(n),f=a*_(n),h=c*m(i),g=c*_(i),v=2*E(M(k(o-r)+a*c*k(i-n))),b=_(v),x=v?function(t){var e=_(t*=v)/b,n=_(v-t)/b,r=n*s+e*h,i=n*f+e*g,o=n*l+e*u;return[y(i,r)*p,y(o,M(r*r+i*i))*p]}:function(){return[n*p,r*p]};return x.distance=v,x},Qe=function(t){return t},Je=r(),tn=r(),en,nn,rn,on,an={point:P,lineStart:P,lineEnd:P,polygonStart:function(){an.lineStart=ln,an.lineEnd=sn},polygonEnd:function(){an.lineStart=an.lineEnd=an.point=P,Je.add(g(tn)),tn.reset()},result:function(){var t=Je/2;return Je.reset(),t}};function ln(){an.point=cn}function cn(t,e){an.point=un,en=rn=t,nn=on=e}function un(t,e){tn.add(on*t-rn*e),rn=t,on=e}function sn(){un(en,nn)}var fn=an,hn=1/0,pn=hn,dn=-hn,gn=dn,vn;function yn(t,e){t<hn&&(hn=t),t>dn&&(dn=t),e<pn&&(pn=e),e>gn&&(gn=e)}var mn={point:yn,lineStart:P,lineEnd:P,polygonStart:P,polygonEnd:P,result:function(){var t=[[hn,pn],[dn,gn]];return dn=gn=-(pn=hn=1/0),t}},bn=0,xn=0,wn=0,On=0,jn=0,_n=0,Sn=0,Mn=0,Cn=0,An,En,kn,Pn,Tn={point:Bn,lineStart:Ln,lineEnd:Fn,polygonStart:function(){Tn.lineStart=Dn,Tn.lineEnd=Rn},polygonEnd:function(){Tn.point=Bn,Tn.lineStart=Ln,Tn.lineEnd=Fn},result:function(){var t=Cn?[Sn/Cn,Mn/Cn]:_n?[On/_n,jn/_n]:wn?[bn/wn,xn/wn]:[NaN,NaN];return bn=xn=wn=On=jn=_n=Sn=Mn=Cn=0,t}};function Bn(t,e){bn+=t,xn+=e,++wn}function Ln(){Tn.point=In}function In(t,e){Tn.point=Nn,Bn(kn=t,Pn=e)}function Nn(t,e){var n=t-kn,r=e-Pn,i=M(n*n+r*r);On+=i*(kn+t)/2,jn+=i*(Pn+e)/2,_n+=i,Bn(kn=t,Pn=e)}function Fn(){Tn.point=Bn}function Dn(){Tn.point=zn}function Rn(){Hn(An,En)}function zn(t,e){Tn.point=Hn,Bn(An=kn=t,En=Pn=e)}function Hn(t,e){var n=t-kn,r=e-Pn,i=M(n*n+r*r);On+=i*(kn+t)/2,jn+=i*(Pn+e)/2,_n+=i,Sn+=(i=Pn*t-kn*e)*(kn+t),Mn+=i*(Pn+e),Cn+=3*i,Bn(kn=t,Pn=e)}var Gn=Tn;function Vn(t){this._context=t}Vn.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,h)}},result:P};var Yn=r(),Wn,Xn,qn,Un,Zn,$n={point:P,lineStart:function(){$n.point=Kn},lineEnd:function(){Wn&&Qn(Xn,qn),$n.point=P},polygonStart:function(){Wn=!0},polygonEnd:function(){Wn=null},result:function(){var t=+Yn;return Yn.reset(),t}};function Kn(t,e){$n.point=Qn,Xn=Un=t,qn=Zn=e}function Qn(t,e){Un-=t,Zn-=e,Yn.add(M(Un*Un+Zn*Zn)),Un=t,Zn=e}var Jn=$n;function tr(){this._string=[]}function er(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}tr.prototype={_radius:4.5,_circle:er(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=er(this._radius)),this._string.push