react-d3-speedometer
Version:
React library for showing speedometer like gauge using d3.
6 lines • 88.3 kB
JavaScript
var t,e;t=this,e=function(t,e,n){var r,i,o,a,s,u,l,c,f,h,p,d,y,g,m,v,b=Object.defineProperty,_=(t,e,n)=>((t,e,n)=>e in t?b(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n)(t,'symbol'!=typeof e?e+'':e,n),w={exports:{}},x={exports:{}},S={},$={};function M(){return o||(o=1,'production'===process.env.NODE_ENV?x.exports=(()=>{if(r)return S;r=1;var t='function'==typeof Symbol&&Symbol.for,e=t?Symbol.for('react.element'):60103,n=t?Symbol.for('react.portal'):60106,i=t?Symbol.for('react.fragment'):60107,o=t?Symbol.for('react.strict_mode'):60108,a=t?Symbol.for('react.profiler'):60114,s=t?Symbol.for('react.provider'):60109,u=t?Symbol.for('react.context'):60110,l=t?Symbol.for('react.async_mode'):60111,c=t?Symbol.for('react.concurrent_mode'):60111,f=t?Symbol.for('react.forward_ref'):60112,h=t?Symbol.for('react.suspense'):60113,p=t?Symbol.for('react.suspense_list'):60120,d=t?Symbol.for('react.memo'):60115,y=t?Symbol.for('react.lazy'):60116,g=t?Symbol.for('react.block'):60121,m=t?Symbol.for('react.fundamental'):60117,v=t?Symbol.for('react.responder'):60118,b=t?Symbol.for('react.scope'):60119;function _(t){if('object'==typeof t&&null!==t){var r=t.$$typeof;switch(r){case e:switch(t=t.type){case l:case c:case i:case a:case o:case h:return t;default:switch(t=t&&t.$$typeof){case u:case f:case y:case d:case s:return t;default:return r}}case n:return r}}}function w(t){return _(t)===c}return S.AsyncMode=l,S.ConcurrentMode=c,S.ContextConsumer=u,S.ContextProvider=s,S.Element=e,S.ForwardRef=f,S.Fragment=i,S.Lazy=y,S.Memo=d,S.Portal=n,S.Profiler=a,S.StrictMode=o,S.Suspense=h,S.isAsyncMode=t=>w(t)||_(t)===l,S.isConcurrentMode=w,S.isContextConsumer=t=>_(t)===u,S.isContextProvider=t=>_(t)===s,S.isElement=t=>'object'==typeof t&&null!==t&&t.$$typeof===e,S.isForwardRef=t=>_(t)===f,S.isFragment=t=>_(t)===i,S.isLazy=t=>_(t)===y,S.isMemo=t=>_(t)===d,S.isPortal=t=>_(t)===n,S.isProfiler=t=>_(t)===a,S.isStrictMode=t=>_(t)===o,S.isSuspense=t=>_(t)===h,S.isValidElementType=t=>'string'==typeof t||'function'==typeof t||t===i||t===c||t===a||t===o||t===h||t===p||'object'==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===d||t.$$typeof===s||t.$$typeof===u||t.$$typeof===f||t.$$typeof===m||t.$$typeof===v||t.$$typeof===b||t.$$typeof===g),S.typeOf=_,S})():x.exports=(i||(i=1,'production'!==process.env.NODE_ENV&&(()=>{var t='function'==typeof Symbol&&Symbol.for,e=t?Symbol.for('react.element'):60103,n=t?Symbol.for('react.portal'):60106,r=t?Symbol.for('react.fragment'):60107,i=t?Symbol.for('react.strict_mode'):60108,o=t?Symbol.for('react.profiler'):60114,a=t?Symbol.for('react.provider'):60109,s=t?Symbol.for('react.context'):60110,u=t?Symbol.for('react.async_mode'):60111,l=t?Symbol.for('react.concurrent_mode'):60111,c=t?Symbol.for('react.forward_ref'):60112,f=t?Symbol.for('react.suspense'):60113,h=t?Symbol.for('react.suspense_list'):60120,p=t?Symbol.for('react.memo'):60115,d=t?Symbol.for('react.lazy'):60116,y=t?Symbol.for('react.block'):60121,g=t?Symbol.for('react.fundamental'):60117,m=t?Symbol.for('react.responder'):60118,v=t?Symbol.for('react.scope'):60119;function b(t){if('object'==typeof t&&null!==t){var h=t.$$typeof;switch(h){case e:var y=t.type;switch(y){case u:case l:case r:case o:case i:case f:return y;default:var g=y&&y.$$typeof;switch(g){case s:case c:case d:case p:case a:return g;default:return h}}case n:return h}}}var _=u,w=l,x=s,S=a,M=e,O=c,A=r,E=d,j=p,N=n,T=o,k=i,I=f,C=!1;function P(t){return b(t)===l}$.AsyncMode=_,$.ConcurrentMode=w,$.ContextConsumer=x,$.ContextProvider=S,$.Element=M,$.ForwardRef=O,$.Fragment=A,$.Lazy=E,$.Memo=j,$.Portal=N,$.Profiler=T,$.StrictMode=k,$.Suspense=I,$.isAsyncMode=t=>(C||(C=!0),P(t)||b(t)===u),$.isConcurrentMode=P,$.isContextConsumer=t=>b(t)===s,$.isContextProvider=t=>b(t)===a,$.isElement=t=>'object'==typeof t&&null!==t&&t.$$typeof===e,$.isForwardRef=t=>b(t)===c,$.isFragment=t=>b(t)===r,$.isLazy=t=>b(t)===d,$.isMemo=t=>b(t)===p,$.isPortal=t=>b(t)===n,$.isProfiler=t=>b(t)===o,$.isStrictMode=t=>b(t)===i,$.isSuspense=t=>b(t)===f,$.isValidElementType=t=>'string'==typeof t||'function'==typeof t||t===r||t===l||t===o||t===i||t===f||t===h||'object'==typeof t&&null!==t&&(t.$$typeof===d||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===c||t.$$typeof===g||t.$$typeof===m||t.$$typeof===v||t.$$typeof===y),$.typeOf=b})()),$)),x.exports}
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function O(){if(s)return a;s=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return a=(()=>{try{if(!Object.assign)return!1;var t=new String('abc');if(t[5]='de','5'===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e['_'+String.fromCharCode(n)]=n;if('0123456789'!==Object.getOwnPropertyNames(e).map((t=>e[t])).join(''))return!1;var r={};return'abcdefghijklmnopqrst'.split('').forEach((t=>{r[t]=t})),'abcdefghijklmnopqrst'===Object.keys(Object.assign({},r)).join('')}catch{return!1}})()?Object.assign:function(r,i){for(var o,a,s=(t=>{if(null==t)throw new TypeError('Object.assign cannot be called with null or undefined');return Object(t)})(r),u=1;u<arguments.length;u++){for(var l in o=Object(arguments[u]))e.call(o,l)&&(s[l]=o[l]);if(t){a=t(o);for(var c=0;c<a.length;c++)n.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s},a}function A(){return l?u:(l=1,u='SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED')}function E(){return f||(f=1,c=Function.call.bind(Object.prototype.hasOwnProperty)),c}function j(){if(y)return d;y=1;var t=M(),e=O(),n=A(),r=E(),i=(()=>{if(p)return h;p=1;var t=()=>{};if('production'!==process.env.NODE_ENV){var e=A(),n={},r=E();t=t=>{var e='Warning: '+t;try{throw new Error(e)}catch{}}}function i(i,o,a,s,u){if('production'!==process.env.NODE_ENV)for(var l in i)if(r(i,l)){var c;try{if('function'!=typeof i[l]){var f=Error((s||'React class')+': '+a+' type `'+l+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+typeof i[l]+'`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');throw f.name='Invariant Violation',f}c=i[l](o,l,s,a,null,e)}catch(t){c=t}if(c&&!(c instanceof Error)&&t((s||'React class')+': type specification of '+a+' `'+l+'` is invalid; the type checker function must return `null` or an `Error` but returned a '+typeof c+'. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).'),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var h=u?u():'';t('Failed '+a+' type: '+c.message+(h??''))}}}return i.resetWarningCache=()=>{'production'!==process.env.NODE_ENV&&(n={})},h=i})(),o=()=>{};function a(){return null}return'production'!==process.env.NODE_ENV&&(o=t=>{var e='Warning: '+t;try{throw new Error(e)}catch{}}),d=function(s,u){var l='function'==typeof Symbol&&Symbol.iterator,c='<<anonymous>>',f={array:y('array'),bigint:y('bigint'),bool:y('boolean'),func:y('function'),number:y('number'),object:y('object'),string:y('string'),symbol:y('symbol'),any:d(a),arrayOf:t=>d(((e,r,i,o,a)=>{if('function'!=typeof t)return new p('Property `'+a+'` of component `'+i+'` has invalid PropType notation inside arrayOf.');var s=e[r];if(!Array.isArray(s))return new p('Invalid '+o+' `'+a+'` of type `'+v(s)+'` supplied to `'+i+'`, expected an array.');for(var u=0;u<s.length;u++){var l=t(s,u,i,o,a+'['+u+']',n);if(l instanceof Error)return l}return null})),element:d(((t,e,n,r,i)=>{var o=t[e];return s(o)?null:new p('Invalid '+r+' `'+i+'` of type `'+v(o)+'` supplied to `'+n+'`, expected a single ReactElement.')})),elementType:d(((e,n,r,i,o)=>{var a=e[n];return t.isValidElementType(a)?null:new p('Invalid '+i+' `'+o+'` of type `'+v(a)+'` supplied to `'+r+'`, expected a single ReactElement type.')})),instanceOf:t=>d(((e,n,r,i,o)=>{if(!(e[n]instanceof t)){var a=t.name||c,s=(t=>t.constructor&&t.constructor.name?t.constructor.name:c)(e[n]);return new p('Invalid '+i+' `'+o+'` of type `'+s+'` supplied to `'+r+'`, expected instance of `'+a+'`.')}return null})),node:d(((t,e,n,r,i)=>m(t[e])?null:new p('Invalid '+r+' `'+i+'` supplied to `'+n+'`, expected a ReactNode.'))),objectOf:t=>d(((e,i,o,a,s)=>{if('function'!=typeof t)return new p('Property `'+s+'` of component `'+o+'` has invalid PropType notation inside objectOf.');var u=e[i],l=v(u);if('object'!==l)return new p('Invalid '+a+' `'+s+'` of type `'+l+'` supplied to `'+o+'`, expected an object.');for(var c in u)if(r(u,c)){var f=t(u,c,o,a,s+'.'+c,n);if(f instanceof Error)return f}return null})),oneOf:function(t){return Array.isArray(t)?d(((e,n,r,i,o)=>{for(var a=e[n],s=0;s<t.length;s++)if(h(a,t[s]))return null;var u=JSON.stringify(t,((t,e)=>'symbol'===b(e)?String(e):e));return new p('Invalid '+i+' `'+o+'` of value `'+String(a)+'` supplied to `'+r+'`, expected one of '+u+'.')})):('production'!==process.env.NODE_ENV&&o(arguments.length>1?'Invalid arguments supplied to oneOf, expected an array, got '+arguments.length+' arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).':'Invalid argument supplied to oneOf, expected an array.'),a)},oneOfType:t=>{if(!Array.isArray(t))return'production'!==process.env.NODE_ENV&&o('Invalid argument supplied to oneOfType, expected an instance of array.'),a;for(var e=0;e<t.length;e++){var i=t[e];if('function'!=typeof i)return o('Invalid argument supplied to oneOfType. Expected an array of check functions, but received '+_(i)+' at index '+e+'.'),a}return d(((e,i,o,a,s)=>{for(var u=[],l=0;l<t.length;l++){var c=(0,t[l])(e,i,o,a,s,n);if(null==c)return null;c.data&&r(c.data,'expectedType')&&u.push(c.data.expectedType)}return new p('Invalid '+a+' `'+s+'` supplied to `'+o+'`'+(u.length>0?', expected one of type ['+u.join(', ')+']':'')+'.')}))},shape:t=>d(((e,r,i,o,a)=>{var s=e[r],u=v(s);if('object'!==u)return new p('Invalid '+o+' `'+a+'` of type `'+u+'` supplied to `'+i+'`, expected `object`.');for(var l in t){var c=t[l];if('function'!=typeof c)return g(i,o,a,l,b(c));var f=c(s,l,i,o,a+'.'+l,n);if(f)return f}return null})),exact:t=>d(((i,o,a,s,u)=>{var l=i[o],c=v(l);if('object'!==c)return new p('Invalid '+s+' `'+u+'` of type `'+c+'` supplied to `'+a+'`, expected `object`.');var f=e({},i[o],t);for(var h in f){var d=t[h];if(r(t,h)&&'function'!=typeof d)return g(a,s,u,h,b(d));if(!d)return new p('Invalid '+s+' `'+u+'` key `'+h+'` supplied to `'+a+'`.\nBad object: '+JSON.stringify(i[o],null,' ')+'\nValid keys: '+JSON.stringify(Object.keys(t),null,' '));var y=d(l,h,a,s,u+'.'+h,n);if(y)return y}return null}))};function h(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function p(t,e){this.message=t,this.data=e&&'object'==typeof e?e:{},this.stack=''}function d(t){if('production'!==process.env.NODE_ENV)var e={},r=0;function i(i,a,s,l,f,h,d){if(l=l||c,h=h||s,d!==n){if(u){var y=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types');throw y.name='Invariant Violation',y}if('production'!==process.env.NODE_ENV&&typeof console<'u'){var g=l+':'+s;!e[g]&&r<3&&(o('You are manually calling a React.PropTypes validation function for the `'+h+'` prop on `'+l+'`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.'),e[g]=!0,r++)}}return null==a[s]?i?null===a[s]?new p('The '+f+' `'+h+'` is marked as required in `'+l+'`, but its value is `null`.'):new p('The '+f+' `'+h+'` is marked as required in `'+l+'`, but its value is `undefined`.'):null:t(a,s,l,f,h)}var a=i.bind(null,!1);return a.isRequired=i.bind(null,!0),a}function y(t){return d(((e,n,r,i,o,a)=>{var s=e[n];return v(s)!==t?new p('Invalid '+i+' `'+o+'` of type `'+b(s)+'` supplied to `'+r+'`, expected `'+t+'`.',{expectedType:t}):null}))}function g(t,e,n,r,i){return new p((t||'React class')+': '+e+' type `'+n+'.'+r+'` is invalid; it must be a function, usually from the `prop-types` package, but received `'+i+'`.')}function m(t){switch(typeof t){case'number':case'string':case'undefined':return!0;case'boolean':return!t;case'object':if(Array.isArray(t))return t.every(m);if(null===t||s(t))return!0;var e=(t=>{var e=t&&(l&&t[l]||t['@@iterator']);if('function'==typeof e)return e})(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!m(n.value))return!1}else for(;!(n=r.next()).done;){var i=n.value;if(i&&!m(i[1]))return!1}return!0;default:return!1}}function v(t){var e=typeof t;return Array.isArray(t)?'array':t instanceof RegExp?'object':((t,e)=>'symbol'===t||!!e&&('Symbol'===e['@@toStringTag']||'function'==typeof Symbol&&e instanceof Symbol))(e,t)?'symbol':e}function b(t){if(typeof t>'u'||null===t)return''+t;var e=v(t);if('object'===e){if(t instanceof Date)return'date';if(t instanceof RegExp)return'regexp'}return e}function _(t){var e=b(t);switch(e){case'array':case'object':return'an '+e;case'boolean':case'date':case'regexp':return'a '+e;default:return e}}return p.prototype=Error.prototype,f.checkPropTypes=i,f.resetWarningCache=i.resetWarningCache,f.PropTypes=f,f},d}var N=(()=>{if(v)return w.exports;if(v=1,'production'!==process.env.NODE_ENV){var t=M();w.exports=j()(t.isElement,!0)}else w.exports=(()=>{if(m)return g;m=1;var t=A();function e(){}function n(){}return n.resetWarningCache=e,g=()=>{function r(e,n,r,i,o,a){if(a!==t){var s=new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types');throw s.name='Invariant Violation',s}}function i(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:e};return o.PropTypes=o,o}})()();return w.exports})();const T=(k=N)&&k.__esModule&&Object.prototype.hasOwnProperty.call(k,'default')?k.default:k;var k;function I(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf('e'))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function C(t){return(t=I(Math.abs(t)))?t[1]:NaN}var P,R=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function V(t){if(!(e=R.exec(t)))throw new Error('invalid format: '+t);var e;return new q({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 q(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 F(t,e){var n=I(t,e);if(!n)return t+'';var r=n[0],i=n[1];return i<0?'0.'+new Array(-i).join('0')+r:r.length>i+1?r.slice(0,i+1)+'.'+r.slice(i+1):r+new Array(i-r.length+2).join('0')}V.prototype=q.prototype,q.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};const D={'%':(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+'',d:t=>Math.abs(t=Math.round(t))>=1e21?t.toLocaleString('en').replace(/,/g,''):t.toString(10),e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>F(100*t,e),r:F,s:(t,e)=>{var n=I(t,e);if(!n)return t+'';var r=n[0],i=n[1],o=i-(P=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join('0'):o>0?r.slice(0,o)+'.'+r.slice(o):'0.'+new Array(1-o).join('0')+I(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function L(t){return t}var z,B,W,H=Array.prototype.map,U=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function X(t){var e=void 0===t.grouping||void 0===t.thousands?L:((t,e)=>(n,r)=>{for(var i=n.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(e)})(H.call(t.grouping,Number),t.thousands+''),n=void 0===t.currency?'':t.currency[0]+'',r=void 0===t.currency?'':t.currency[1]+'',i=void 0===t.decimal?'.':t.decimal+'',o=void 0===t.numerals?L:(t=>e=>e.replace(/[0-9]/g,(e=>t[+e])))(H.call(t.numerals,String)),a=void 0===t.percent?'%':t.percent+'',s=void 0===t.minus?'−':t.minus+'',u=void 0===t.nan?'NaN':t.nan+'';function l(t){var l=(t=V(t)).fill,c=t.align,f=t.sign,h=t.symbol,p=t.zero,d=t.width,y=t.comma,g=t.precision,m=t.trim,v=t.type;'n'===v?(y=!0,v='g'):D[v]||(void 0===g&&(g=12),m=!0,v='g'),(p||'0'===l&&'='===c)&&(p=!0,l='0',c='=');var b='$'===h?n:'#'===h&&/[boxX]/.test(v)?'0'+v.toLowerCase():'',_='$'===h?r:/[%p]/.test(v)?a:'',w=D[v],x=/[defgprs%]/.test(v);function S(t){var n,r,a,h=b,S=_;if('c'===v)S=w(t)+S,t='';else{var $=(t=+t)<0||1/t<0;if(t=isNaN(t)?u:w(Math.abs(t),g),m&&(t=(t=>{t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case'.':i=e=r;break;case'0':0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t})(t)),$&&0==+t&&'+'!==f&&($=!1),h=($?'('===f?f:s:'-'===f||'('===f?'':f)+h,S=('s'===v?U[8+P/3]:'')+S+($&&'('===f?')':''),x)for(n=-1,r=t.length;++n<r;)if(48>(a=t.charCodeAt(n))||a>57){S=(46===a?i+t.slice(n+1):t.slice(n))+S,t=t.slice(0,n);break}}y&&!p&&(t=e(t,1/0));var M=h.length+t.length+S.length,O=M<d?new Array(d-M+1).join(l):'';switch(y&&p&&(t=e(O+t,O.length?d-S.length:1/0),O=''),c){case'<':t=h+t+S+O;break;case'=':t=h+O+t+S;break;case'^':t=O.slice(0,M=O.length>>1)+h+t+S+O.slice(M);break;default:t=O+h+t+S}return o(t)}return g=void 0===g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),S.toString=()=>t+'',S}return{format:l,formatPrefix:(t,e)=>{var n=l(((t=V(t)).type='f',t)),r=3*Math.max(-8,Math.min(8,Math.floor(C(e)/3))),i=Math.pow(10,-r),o=U[8+r/3];return t=>n(i*t)+o}}}(t=>{z=X(t),B=z.format,W=z.formatPrefix})({thousands:',',grouping:[3],currency:['$','']});var Y='http://www.w3.org/1999/xhtml';const Q={svg:'http://www.w3.org/2000/svg',xhtml:Y,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'};function G(t){var e=t+='',n=e.indexOf(':');return n>=0&&'xmlns'!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Q.hasOwnProperty(e)?{space:Q[e],local:t}:t}function J(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Y&&e.documentElement.namespaceURI===Y?e.createElement(t):e.createElementNS(n,t)}}function Z(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function K(t){var e=G(t);return(e.local?Z:J)(e)}function tt(){}function et(t){return null==t?tt:function(){return this.querySelector(t)}}function nt(){return[]}function rt(t){return null==t?nt:function(){return this.querySelectorAll(t)}}function it(t){return function(){return(t=>null==t?[]:Array.isArray(t)?t:Array.from(t))(t.apply(this,arguments))}}function ot(t){return function(){return this.matches(t)}}function at(t){return e=>e.matches(t)}var st=Array.prototype.find;function ut(){return this.firstElementChild}var lt=Array.prototype.filter;function ct(){return Array.from(this.children)}function ft(t){return new Array(t.length)}function ht(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function pt(t,e,n,r,i,o){for(var a,s=0,u=e.length,l=o.length;s<l;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new ht(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function dt(t,e,n,r,i,o,a){var s,u,l,c=new Map,f=e.length,h=o.length,p=new Array(f);for(s=0;s<f;++s)(u=e[s])&&(p[s]=l=a.call(u,u.__data__,s,e)+'',c.has(l)?i[s]=u:c.set(l,u));for(s=0;s<h;++s)l=a.call(t,o[s],s,o)+'',(u=c.get(l))?(r[s]=u,u.__data__=o[s],c.delete(l)):n[s]=new ht(t,o[s]);for(s=0;s<f;++s)(u=e[s])&&c.get(p[s])===u&&(i[s]=u)}function yt(t){return t.__data__}function gt(t){return'object'==typeof t&&'length'in t?t:Array.from(t)}function mt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function vt(t){return function(){this.removeAttribute(t)}}function bt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function _t(t,e){return function(){this.setAttribute(t,e)}}function wt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function xt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function St(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 $t(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Mt(t){return function(){this.style.removeProperty(t)}}function Ot(t,e,n){return function(){this.style.setProperty(t,e,n)}}function At(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Et(t,e){return t.style.getPropertyValue(e)||$t(t).getComputedStyle(t,null).getPropertyValue(e)}function jt(t){return function(){delete this[t]}}function Nt(t,e){return function(){this[t]=e}}function Tt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function kt(t){return t.trim().split(/^|\s+/)}function It(t){return t.classList||new Ct(t)}function Ct(t){this._node=t,this._names=kt(t.getAttribute('class')||'')}function Pt(t,e){for(var n=It(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function Rt(t,e){for(var n=It(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function Vt(t){return function(){Pt(this,t)}}function qt(t){return function(){Rt(this,t)}}function Ft(t,e){return function(){(e.apply(this,arguments)?Pt:Rt)(this,t)}}function Dt(){this.textContent=''}function Lt(t){return function(){this.textContent=t}}function zt(t){return function(){var e=t.apply(this,arguments);this.textContent=e??''}}function Bt(){this.innerHTML=''}function Wt(t){return function(){this.innerHTML=t}}function Ht(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??''}}function Ut(){this.nextSibling&&this.parentNode.appendChild(this)}function Xt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Yt(){return null}function Qt(){var t=this.parentNode;t&&t.removeChild(this)}function Gt(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Jt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Zt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function Kt(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,s=i.length;a<s;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function te(t,e,n){var r=$t(t),i=r.CustomEvent;'function'==typeof i?i=new i(e,n):(i=r.document.createEvent('Event'),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function ee(t,e){return function(){return te(this,t,e)}}function ne(t,e){return function(){return te(this,t,e.apply(this,arguments))}}ht.prototype={constructor:ht,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)}},Ct.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 re=[null];function ie(t,e){this._groups=t,this._parents=e}function oe(){return new ie([[document.documentElement]],re)}function ae(t){return'string'==typeof t?new ie([[document.querySelector(t)]],[document.documentElement]):new ie([[t]],re)}function se(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function ue(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function le(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=se,n=(e,n)=>se(t(e),n),r=(e,n)=>t(e)-n):(e=t===se||t===ue?t:ce,n=t,r=t),{left:i,center:(t,e,n=0,o=t.length)=>{const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:(t,r,i=0,o=t.length)=>{if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function ce(){return 0}ie.prototype=oe.prototype={constructor:ie,select:function(t){'function'!=typeof t&&(t=et(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=e[i],u=s.length,l=r[i]=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 ie(r,this._parents)},selectAll:function(t){t='function'==typeof t?it(t):rt(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,s=e[o],u=s.length,l=0;l<u;++l)(a=s[l])&&(r.push(t.call(a,a.__data__,l,s)),i.push(a));return new ie(r,i)},selectChild:function(t){return this.select(null==t?ut:function(t){return function(){return st.call(this.children,t)}}('function'==typeof t?t:at(t)))},selectChildren:function(t){return this.selectAll(null==t?ct:function(t){return function(){return lt.call(this.children,t)}}('function'==typeof t?t:at(t)))},filter:function(t){'function'!=typeof t&&(t=ot(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],s=a.length,u=r[i]=[],l=0;l<s;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&u.push(o);return new ie(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,yt);var n=e?dt:pt,r=this._parents,i=this._groups;'function'!=typeof t&&(t=(t=>()=>t)(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],f=i[l],h=f.length,p=gt(t.call(c,c&&c.__data__,l,r)),d=p.length,y=s[l]=new Array(d),g=a[l]=new Array(d);n(c,f,y,g,u[l]=new Array(h),p,e);for(var m,v,b=0,_=0;b<d;++b)if(m=y[b]){for(b>=_&&(_=b+1);!(v=g[_])&&++_<d;);m._next=v||null}}return(a=new ie(a,r))._enter=s,a._exit=u,a},enter:function(){return new ie(this._enter||this._groups.map(ft),this._parents)},exit:function(){return new ie(this._exit||this._groups.map(ft),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return'function'==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+''),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),u=0;u<a;++u)for(var l,c=n[u],f=r[u],h=c.length,p=s[u]=new Array(h),d=0;d<h;++d)(l=c[d]||f[d])&&(p[d]=l);for(;u<i;++u)s[u]=n[u];return new ie(s,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=mt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,l=i[o]=new Array(u),c=0;c<u;++c)(a=s[c])&&(l[c]=a);l.sort(e)}return new ie(i,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 r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,s=o.length;a<s;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=G(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?bt:vt:'function'==typeof e?n.local?St:xt:n.local?wt:_t)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Mt:'function'==typeof e?At:Ot)(t,e,n??'')):Et(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?jt:'function'==typeof e?Tt:Nt)(t,e)):this.node()[t]},classed:function(t,e){var n=kt(t+'');if(arguments.length<2){for(var r=It(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(('function'==typeof e?Ft:e?Vt:qt)(n,e))},text:function(t){return arguments.length?this.each(null==t?Dt:('function'==typeof t?zt:Lt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Bt:('function'==typeof t?Ht:Wt)(t)):this.node().innerHTML},raise:function(){return this.each(Ut)},lower:function(){return this.each(Xt)},append:function(t){var e='function'==typeof t?t:K(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n='function'==typeof t?t:K(t),r=null==e?Yt:'function'==typeof e?e:et(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(Qt)},clone:function(t){return this.select(t?Jt:Gt)},datum:function(t){return arguments.length?this.property('__data__',t):this.node().__data__},on:function(t,e,n){var r,i,o=(t=>t.trim().split(/^|\s+/).map((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?Kt:Zt,r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,l=0,c=s.length;l<c;++l)for(r=0,u=s[l];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(t,e){return this.each(('function'==typeof e?ne:ee)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};const fe=le(se).right;le((t=>null===t?NaN:+t)).center;const he=Math.sqrt(50),pe=Math.sqrt(10),de=Math.sqrt(2);function ye(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=he?10:o>=pe?5:o>=de?2:1;let s,u,l;return i<0?(l=Math.pow(10,-i)/a,s=Math.round(t*l),u=Math.round(e*l),s/l<t&&++s,u/l>e&&--u,l=-l):(l=Math.pow(10,i)*a,s=Math.round(t/l),u=Math.round(e/l),s*l<t&&++s,u*l>e&&--u),u<s&&.5<=n&&n<2?ye(t,e,2*n):[s,u,l]}function ge(t,e,n){return ye(t=+t,e=+e,n=+n)[2]}function me(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function ve(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function be(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function _e(){}var we=.7,xe=1/we,Se='\\s*([+-]?\\d+)\\s*',$e='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*',Me='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Oe=/^#([0-9a-f]{3,8})$/,Ae=new RegExp(`^rgb\\(${Se},${Se},${Se}\\)$`),Ee=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),je=new RegExp(`^rgba\\(${Se},${Se},${Se},${$e}\\)$`),Ne=new RegExp(`^rgba\\(${Me},${Me},${Me},${$e}\\)$`),Te=new RegExp(`^hsl\\(${$e},${Me},${Me}\\)$`),ke=new RegExp(`^hsla\\(${$e},${Me},${Me},${$e}\\)$`),Ie={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 Ce(){return this.rgb().formatHex()}function Pe(){return this.rgb().formatRgb()}function Re(t){var e,n;return t=(t+'').trim().toLowerCase(),(e=Oe.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ve(e):3===n?new De(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?qe(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?qe(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=Ae.exec(t))?new De(e[1],e[2],e[3],1):(e=Ee.exec(t))?new De(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=je.exec(t))?qe(e[1],e[2],e[3],e[4]):(e=Ne.exec(t))?qe(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Te.exec(t))?Ue(e[1],e[2]/100,e[3]/100,1):(e=ke.exec(t))?Ue(e[1],e[2]/100,e[3]/100,e[4]):Ie.hasOwnProperty(t)?Ve(Ie[t]):'transparent'===t?new De(NaN,NaN,NaN,0):null}function Ve(t){return new De(t>>16&255,t>>8&255,255&t,1)}function qe(t,e,n,r){return r<=0&&(t=e=n=NaN),new De(t,e,n,r)}function Fe(t,e,n,r){return 1===arguments.length?(t=>(t instanceof _e||(t=Re(t)),t?new De((t=t.rgb()).r,t.g,t.b,t.opacity):new De))(t):new De(t,e,n,r??1)}function De(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Le(){return`#${He(this.r)}${He(this.g)}${He(this.b)}`}function ze(){const t=Be(this.opacity);return`${1===t?'rgb(':'rgba('}${We(this.r)}, ${We(this.g)}, ${We(this.b)}${1===t?')':`, ${t})`}`}function Be(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function We(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function He(t){return((t=We(t))<16?'0':'')+t.toString(16)}function Ue(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qe(t,e,n,r)}function Xe(t){if(t instanceof Qe)return new Qe(t.h,t.s,t.l,t.opacity);if(t instanceof _e||(t=Re(t)),!t)return new Qe;if(t instanceof Qe)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Qe(a,s,u,t.opacity)}function Ye(t,e,n,r){return 1===arguments.length?Xe(t):new Qe(t,e,n,r??1)}function Qe(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Ge(t){return(t=(t||0)%360)<0?t+360:t}function Je(t){return Math.max(0,Math.min(1,t||0))}function Ze(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}ve(_e,Re,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Ce,formatHex:Ce,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Xe(this).formatHsl()},formatRgb:Pe,toString:Pe}),ve(De,Fe,be(_e,{brighter(t){return t=null==t?xe:Math.pow(xe,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?we:Math.pow(we,t),new De(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new De(We(this.r),We(this.g),We(this.b),Be(this.opacity))},displayable(){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:Le,formatHex:Le,formatHex8:function(){return`#${He(this.r)}${He(this.g)}${He(this.b)}${He(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ze,toString:ze})),ve(Qe,Ye,be(_e,{brighter(t){return t=null==t?xe:Math.pow(xe,t),new Qe(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?we:Math.pow(we,t),new Qe(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new De(Ze(t>=240?t-240:t+120,i,r),Ze(t,i,r),Ze(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new Qe(Ge(this.h),Je(this.s),Je(this.l),Be(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Be(this.opacity);return`${1===t?'hsl(':'hsla('}${Ge(this.h)}, ${100*Je(this.s)}%, ${100*Je(this.l)}%${1===t?')':`, ${t})`}`}}));const Ke=t=>()=>t;function tn(t,e){return n=>t+n*e}function en(t){return 1==(t=+t)?nn:(e,n)=>n-e?((t,e,n)=>(t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,r=>Math.pow(t+r*e,n)))(e,n,t):Ke(isNaN(e)?n:e)}function nn(t,e){var n=e-t;return n?tn(t,n):Ke(isNaN(t)?e:t)}const rn=function t(e){var n=en(e);function r(t,e){var r=n((t=Fe(t)).r,(e=Fe(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=nn(t.opacity,e.opacity);return e=>(t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+'')}return r.gamma=t,r}(1);function on(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return o=>{for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function an(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=pn(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return t=>{for(n=0;n<i;++n)a[n]=o[n](t);return a}}function sn(t,e){var n=new Date;return t=+t,e=+e,r=>(n.setTime(t*(1-r)+e*r),n)}function un(t,e){return t=+t,e=+e,n=>t*(1-n)+e*n}function ln(t,e){var n,r={},i={};for(n in(null===t||'object'!=typeof t)&&(t={}),(null===e||'object'!=typeof e)&&(e={}),e)n in t?r[n]=pn(t[n],e[n]):i[n]=e[n];return t=>{for(n in r)i[n]=r[n](t);return i}}var cn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,fn=new RegExp(cn.source,'g');function hn(t,e){var n,r,i,o=cn.lastIndex=fn.lastIndex=0,a=-1,s=[],u=[];for(t+='',e+='';(n=cn.exec(t))&&(r=fn.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:un(n,r)})),o=fn.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?(t=>e=>t(e)+'')(u[0].x):(t=>()=>t)(e):(e=u.length,t=>{for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join('')})}function pn(t,e){var n,r=typeof e;return null==e||'boolean'===r?Ke(e):('number'===r?un:'string'===r?(n=Re(e))?(e=n,rn):hn:e instanceof Re?rn:e instanceof Date?sn:(t=>ArrayBuffer.isView(t)&&!(t instanceof DataView))(e)?on:Array.isArray(e)?an:'function'!=typeof e.valueOf&&'function'!=typeof e.toString||isNaN(e)?ln:un)(t,e)}function dn(t,e){return t=+t,e=+e,n=>Math.round(t*(1-n)+e*n)}var yn,gn=180/Math.PI,mn={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function vn(t,e,n,r,i,o){var a,s,u;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),t*r<e*n&&(t=-t,e=-e,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*gn,skewX:Math.atan(u)*gn,scaleX:a,scaleY:s}}function bn(t,e,n,r){function i(t){return t.length?t.pop()+' ':''}return(o,a)=>{var s=[],u=[];return o=t(o),a=t(a),((t,r,i,o,a,s)=>{if(t!==i||r!==o){var u=a.push('translate(',null,e,null,n);s.push({i:u-4,x:un(t,i)},{i:u-2,x:un(r,o)})}else(i||o)&&a.push('translate('+i+e+o+n)})(o.translateX,o.translateY,a.translateX,a.translateY,s,u),((t,e,n,o)=>{t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+'rotate(',null,r)-2,x:un(t,e)})):e&&n.push(i(n)+'rotate('+e+r)})(o.rotate,a.rotate,s,u),((t,e,n,o)=>{t!==e?o.push({i:n.push(i(n)+'skewX(',null,r)-2,x:un(t,e)}):e&&n.push(i(n)+'skewX('+e+r)})(o.skewX,a.skewX,s,u),((t,e,n,r,o,a)=>{if(t!==n||e!==r){var s=o.push(i(o)+'scale(',null,',',null,')');a.push({i:s-4,x:un(t,n)},{i:s-2,x:un(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+'scale('+n+','+r+')')})(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,t=>{for(var e,n=-1,r=u.length;++n<r;)s[(e=u[n]).i]=e.x(t);return s.join('')}}}var _n=bn((t=>{const e=new('function'==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+'');return e.isIdentity?mn:vn(e.a,e.b,e.c,e.d,e.e,e.f)}),'px, ','px)','deg)'),wn=bn((t=>null!=t&&(yn||(yn=document.createElementNS('http://www.w3.org/2000/svg','g')),yn.setAttribute('transform',t),t=yn.transform.baseVal.consolidate())?vn((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):mn),', ',')',')');const xn=(t=>(e,n)=>{var r=t((e=Ye(e)).h,(n=Ye(n)).h),i=nn(e.s,n.s),o=nn(e.l,n.l),a=nn(e.opacity,n.opacity);return t=>(e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+'')})(((t,e)=>{var n=e-t;return n?tn(t,n>180||n<-180?n-360*Math.round(n/360):n):Ke(isNaN(t)?e:t)}));function Sn(t){return+t}var $n=[0,1];function Mn(t){return t}function On(t,e){return(e-=t=+t)?n=>(n-t)/e:(t=>()=>t)(isNaN(e)?NaN:.5)}function An(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=On(i,r),o=n(a,o)):(r=On(r,i),o=n(o,a)),t=>o(r(t))}function En(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=On(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return e=>{var n=fe(t,e,1,r)-1;return o[n](i[n](e))}}function jn(){var t,e,n,r,i,o,a=$n,s=$n,u=pn,l=Mn;function c(){var t=Math.min(a.length,s.length);return l!==Mn&&(l=((t,e)=>{var n;return t>e&&(n=t,t=e,e=n),n=>Math.max(t,Math.min(e,n))})(a[0],a[t-1])),r=t>2?En:An,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(l(e)))}return f.invert=n=>l(e((o||(o=r(s,a.map(t),un)))(n))),f.domain=function(t){return arguments.length?(a=Array.from(t,Sn),c()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},f.rangeRound=t=>(s=Array.from(t),u=dn,c()),f.clamp=function(t){return arguments.length?(l=!!t||Mn,c()):l!==Mn},f.interpolate=function(t){return arguments.length?(u=t,c()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},(n,r)=>(t=n,e=r,c())}function Nn(t,e,n,r){var i,o=((t,e,n)=>{n=+n;const r=(e=+e)<(t=+t),i=r?ge(e,t,n):ge(t,e,n);return(r?-1:1)*(i<0?1/-i:i)})(t,e,n);switch((r=V(r??',f')).type){case's':var a=Math.max(Math.abs(t),Math.abs(e));return null==r.precision&&!isNaN(i=((t,e)=>Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(C(e)/3)))-C(Math.abs(t))))(o,a))&&(r.precision=i),W(r,a);case'':case'e':case'g':case'p':case'r':null==r.precision&&!isNaN(i=((t,e)=>(t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,C(e)-C(t))+1))(o,Math.max(Math.abs(t),Math.abs(e))))&&(r.precision=i-('e'===r.type));break;case'f':case'%':null==r.precision&&!isNaN(i=(t=>Math.max(0,-C(Math.abs(t))))(o))&&(r.precision=i-2*('%'===r.type))}return B(r)}function Tn(t){var e=t.domain;return t.ticks=t=>{var n=e();return((t,e,n)=>{if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,a]=r?ye(e,t,n):ye(t,e,n);if(!(o>=i))return[];const s=o-i+1,u=new Array(s);if(r)if(a<0)for(let t=0;t<s;++t)u[t]=(o-t)/-a;else for(let t=0;t<s;++t)u[t]=(o-t)*a;else if(a<0)for(let t=0;t<s;++t)u[t]=(i+t)/-a;else for(let t=0;t<s;++t)u[t]=(i+t)*a;return u})(n[0],n[n.length-1],t??10)},t.tickFormat=(t,n)=>{var r=e();return Nn(r[0],r[r.length-1],t??10,n)},t.nice=n=>{null==n&&(n=10);var r,i,o=e(),a=0,s=o.length-1,u=o[a],l=o[s],c=10;for(l<u&&(i=u,u=l,l=i,i=a,a=s,s=i);c-- >0;){if((i=ge(u,l,n))===r)return o[a]=u,o[s]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function kn(){var t=jn()(Mn,Mn);return t.copy=()=>((t,e)=>e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()))(t,kn()),me.apply(t,arguments),Tn(t)}function In(){var t,e=0,n=1,r=1,i=[.5],o=[0,1];function a(e){return null!=e&&e<=e?o[fe(i,e,0,r)]:t}function s(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return a}return a.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,s()):[e,n]},a.range=function(t){return arguments.length?(r=(o=Array.from(t)).length-1,s()):o.slice()},a.invertExtent=t=>{var a=o.indexOf(t);return a<0?[NaN,NaN]:a<1?[e,i[0]]:a>=r?[i[r-1],n]:[i[a-1],i[a]]},a.unknown=function(e){return arguments.length&&(t=e),a},a.thresholds=()=>i.slice(),a.copy=()=>In().domain([e,n]).range(o).unknown(t),me.apply(Tn(a),arguments)}var Cn='object'==typeof global&&global&&global.Object===Object&&global,Pn='object'==typeof self&&self&&self.Object===Object&&self,Rn=Cn||Pn||Function('return this')(),Vn=Rn.Symbol,qn=Object.prototype,Fn=qn.hasOwnProperty,Dn=qn.toString,Ln=Vn?Vn.toStringTag:void 0,zn=Object.prototype.toString,Bn=Vn?Vn.toStringTag:void 0;function Wn(t){return null==t?void 0===t?'[object Undefined]':'[object Null]':Bn&&Bn in Object(t)?(t=>{var e=Fn.call(t,Ln),n=t[Ln];try{t[Ln]=void 0;var r=!0}catch{}var i=Dn.call(t);return r&&(e?t[Ln]=n:delete t[Ln]),i})(t):(t=>zn.call(t))(t)}function Hn(t){return null!=t&&'object'==typeof t}function Un(t){return t}var Xn=Object.prototype;function Yn(t){var e=t&&t.constructor;return t===('function'==typeof e&&e.prototype||Xn)}var Qn=((t,e)=>n=>t(e(n)))(Object.keys,Object),Gn=Object.prototype.hasOwnProperty;function Jn(t){var e=typeof t;return null!=t&&('object'==e||'function'==e)}function Zn(t){if(!Jn(t))return!1;var e=Wn(t);return'[object Function]'==e||'[object GeneratorFunction]'==e||'[object AsyncFunction]'==e||'[object Proxy]'==e}var Kn=Rn['__core-js_shared__'],tr=(()=>{var t=/[^.]+$/.exec(Kn&&Kn.keys&&Kn.keys.IE_PROTO||'');return t?'Symbol(src)_1.'+t:''})(),er=Function.prototype.toString;function nr(t){if(null!=t){try{return er.call(t)}catch{}try{return t+''}catch{}}return''}var rr=/^\[object .+?Constructor\]$/,ir=Function.prototype,or=Object.prototype,ar=ir.toString,sr=or.hasOwnProperty,ur=RegExp('^'+ar.call(sr).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');function lr(t){return!(!Jn(t)||(t=>!!tr&&tr in t)(t))&&(Zn(t)?ur:rr).test(nr(t))}function cr(t,e){var n=((t,e)=>null==t?void 0:t[e])(t,e);return lr(n)?n:void 0}var fr=cr(Rn,'DataView'),hr=cr(Rn,'Map'),pr=cr(Rn,'Promise'),dr=cr(Rn,'Set'),yr=cr(Rn,'WeakMap'),gr='[object Map]',mr='[object Promise]',vr='[object Set]',br='[object WeakMap]',_r='[object DataView]',wr=nr(fr),xr=nr(hr),Sr=nr(pr),$r=nr(dr),Mr=nr(yr),Or=Wn;function Ar(t){return Hn(t)&&'[object Arguments]'==Wn(t)}(fr&&Or(new fr(new ArrayBuffer(1)))!=_r||hr&&Or(new hr)!=gr||pr&&Or(pr.resolve())!=mr||dr&&Or(new dr)!=vr||yr&&Or(new yr)!=br)&&(Or=t=>{var e=Wn(t),n='[object Object]'==e?t.constructor:void 0,r=n?nr(n):'';if(r)switch(r){case wr:return _r;case xr:return gr;case Sr:return mr;case $r:return vr;case Mr:return br}return e});var Er=Object.prototype,jr=Er.hasOwnProperty,Nr=Er.propertyIsEnumerable,Tr=Ar(function(){return arguments}())?Ar:t=>Hn(t)&&jr.call(t,'callee')&&!Nr.call(t,'callee'),kr=Array.isArray;function Ir(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}var Cr='object'==typeof t&&t&&!t.nodeType&&t,Pr=Cr&&'object'==typeof module&&module&&!module.nodeType&&module,Rr=Pr&&Pr.exports===Cr?Rn.Buffer:void 0,Vr=(Rr?Rr.isBuffer:void 0)||(()=>!1),qr={};qr['[object Float32Array]']=qr['[object Float64Array]']=qr['[object Int8Array]']=qr['[object Int16Array]']=qr['[object Int32Array]']=qr['[object Uint8Array]']=qr['[object Uint8ClampedArray]']=qr['[object Uint16Array]']=qr['[object Uint32Array]']=!0,qr['[object Arguments]']=qr['[object Array]']=qr['[object ArrayBuffer]']=qr['[object Boolean]']=qr['[object DataView]']=qr['[object Date]']=qr['[object Error]']=qr['[object Function]']=qr['[object Map]']=qr['[object Number]']=qr['[object Object]']=qr['[object RegExp]']=qr['[object Set]']=qr['[object String]']=qr['[object WeakMap]']=!1;var Fr='object'==typeof t&&t&&!t.nodeType&&t,Dr=Fr&&'object'==typeof module&&module&&!module.nodeType&&module,Lr=Dr&&Dr.exports===Fr&&Cn.process,zr=(()=>{try{return Dr&&Dr.require&&Dr.require('util').types||Lr&&Lr.binding&&Lr.binding('util')}catch{}})(),Br=zr&&zr.isTypedArray,Wr=Br?(t=>e=>t(e))(Br)