UNPKG

vue-speedometer

Version:

Vue component for showing speedomenter like gauge with d3

1 lines 84.4 kB
var t,e;t=this,e=function(t,e){function n(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 r(t){return(t=n(Math.abs(t)))?t[1]:NaN}var i,a=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function o(t){if(!(e=a.exec(t)))throw new Error('invalid format: '+t);var e;return new u({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 u(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 s(t,e){var r=n(t,e);if(!r)return t+'';var i=r[0],a=r[1];return a<0?'0.'+new Array(-a).join('0')+i:i.length>a+1?i.slice(0,a+1)+'.'+i.slice(a+1):i+new Array(a-i.length+2).join('0')}o.prototype=u.prototype,u.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 l={'%':(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)=>s(100*t,e),r:s,s:(t,e)=>{var r=n(t,e);if(!r)return t+'';var a=r[0],o=r[1],u=o-(i=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=a.length;return u===s?a:u>s?a+new Array(u-s+1).join('0'):u>0?a.slice(0,u)+'.'+a.slice(u):'0.'+new Array(1-u).join('0')+n(t,Math.max(0,e+u-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function c(t){return t}var h,f,p,d=Array.prototype.map,g=['y','z','a','f','p','n','µ','m','','k','M','G','T','P','E','Z','Y'];function y(t){var e=void 0===t.grouping||void 0===t.thousands?c:((t,e)=>(n,r)=>{for(var i=n.length,a=[],o=0,u=t[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(i-=u,i+u)),!((s+=u+1)>r));)u=t[o=(o+1)%t.length];return a.reverse().join(e)})(d.call(t.grouping,Number),t.thousands+''),n=void 0===t.currency?'':t.currency[0]+'',a=void 0===t.currency?'':t.currency[1]+'',u=void 0===t.decimal?'.':t.decimal+'',s=void 0===t.numerals?c:(t=>e=>e.replace(/[0-9]/g,(e=>t[+e])))(d.call(t.numerals,String)),h=void 0===t.percent?'%':t.percent+'',f=void 0===t.minus?'−':t.minus+'',p=void 0===t.nan?'NaN':t.nan+'';function y(t){var r=(t=o(t)).fill,c=t.align,d=t.sign,y=t.symbol,v=t.zero,m=t.width,_=t.comma,b=t.precision,w=t.trim,x=t.type;'n'===x?(_=!0,x='g'):l[x]||(void 0===b&&(b=12),w=!0,x='g'),(v||'0'===r&&'='===c)&&(v=!0,r='0',c='=');var M='$'===y?n:'#'===y&&/[boxX]/.test(x)?'0'+x.toLowerCase():'',S='$'===y?a:/[%p]/.test(x)?h:'',A=l[x],$=/[defgprs%]/.test(x);function O(t){var n,a,o,l=M,h=S;if('c'===x)h=A(t)+h,t='';else{var y=(t=+t)<0||1/t<0;if(t=isNaN(t)?p:A(Math.abs(t),b),w&&(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)),y&&0==+t&&'+'!==d&&(y=!1),l=(y?'('===d?d:f:'-'===d||'('===d?'':d)+l,h=('s'===x?g[8+i/3]:'')+h+(y&&'('===d?')':''),$)for(n=-1,a=t.length;++n<a;)if(48>(o=t.charCodeAt(n))||o>57){h=(46===o?u+t.slice(n+1):t.slice(n))+h,t=t.slice(0,n);break}}_&&!v&&(t=e(t,1/0));var O=l.length+t.length+h.length,j=O<m?new Array(m-O+1).join(r):'';switch(_&&v&&(t=e(j+t,j.length?m-h.length:1/0),j=''),c){case'<':t=l+t+h+j;break;case'=':t=l+j+t+h;break;case'^':t=j.slice(0,O=j.length>>1)+l+t+h+j.slice(O);break;default:t=j+l+t+h}return s(t)}return b=void 0===b?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),O.toString=()=>t+'',O}return{format:y,formatPrefix:(t,e)=>{var n=y(((t=o(t)).type='f',t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),a=Math.pow(10,-i),u=g[8+i/3];return t=>n(a*t)+u}}}h=y({thousands:',',grouping:[3],currency:['$','']}),f=h.format,p=h.formatPrefix;var v='http://www.w3.org/1999/xhtml';const m={svg:'http://www.w3.org/2000/svg',xhtml:v,xlink:'http://www.w3.org/1999/xlink',xml:'http://www.w3.org/XML/1998/namespace',xmlns:'http://www.w3.org/2000/xmlns/'};function _(t){var e=t+='',n=e.indexOf(':');return n>=0&&'xmlns'!==(e=t.slice(0,n))&&(t=t.slice(n+1)),m.hasOwnProperty(e)?{space:m[e],local:t}:t}function b(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===v&&e.documentElement.namespaceURI===v?e.createElement(t):e.createElementNS(n,t)}}function w(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function x(t){var e=_(t);return(e.local?w:b)(e)}function M(){}function S(t){return null==t?M:function(){return this.querySelector(t)}}function A(){return[]}function $(t){return null==t?A:function(){return this.querySelectorAll(t)}}function O(t){return function(){return(t=>null==t?[]:Array.isArray(t)?t:Array.from(t))(t.apply(this,arguments))}}function j(t){return function(){return this.matches(t)}}function N(t){return e=>e.matches(t)}var k=Array.prototype.find;function E(){return this.firstElementChild}var I=Array.prototype.filter;function C(){return Array.from(this.children)}function T(t){return new Array(t.length)}function P(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function q(t,e,n,r,i,a){for(var o,u=0,s=e.length,l=a.length;u<l;++u)(o=e[u])?(o.__data__=a[u],r[u]=o):n[u]=new P(t,a[u]);for(;u<s;++u)(o=e[u])&&(i[u]=o)}function z(t,e,n,r,i,a,o){var u,s,l,c=new Map,h=e.length,f=a.length,p=new Array(h);for(u=0;u<h;++u)(s=e[u])&&(p[u]=l=o.call(s,s.__data__,u,e)+'',c.has(l)?i[u]=s:c.set(l,s));for(u=0;u<f;++u)l=o.call(t,a[u],u,a)+'',(s=c.get(l))?(r[u]=s,s.__data__=a[u],c.delete(l)):n[u]=new P(t,a[u]);for(u=0;u<h;++u)(s=e[u])&&c.get(p[u])===s&&(i[u]=s)}function V(t){return t.__data__}function L(t){return'object'==typeof t&&'length'in t?t:Array.from(t)}function F(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function R(t){return function(){this.removeAttribute(t)}}function B(t){return function(){this.removeAttributeNS(t.space,t.local)}}function D(t,e){return function(){this.setAttribute(t,e)}}function H(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function W(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function U(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 X(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Q(t){return function(){this.style.removeProperty(t)}}function Y(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Z(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function G(t,e){return t.style.getPropertyValue(e)||X(t).getComputedStyle(t,null).getPropertyValue(e)}function K(t){return function(){delete this[t]}}function J(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 et(t){return t.trim().split(/^|\s+/)}function nt(t){return t.classList||new rt(t)}function rt(t){this._node=t,this._names=et(t.getAttribute('class')||'')}function it(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function at(t,e){for(var n=nt(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function ot(t){return function(){it(this,t)}}function ut(t){return function(){at(this,t)}}function st(t,e){return function(){(e.apply(this,arguments)?it:at)(this,t)}}function lt(){this.textContent=''}function ct(t){return function(){this.textContent=t}}function ht(t){return function(){var e=t.apply(this,arguments);this.textContent=e??''}}function ft(){this.innerHTML=''}function pt(t){return function(){this.innerHTML=t}}function dt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??''}}function gt(){this.nextSibling&&this.parentNode.appendChild(this)}function yt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vt(){return null}function mt(){var t=this.parentNode;t&&t.removeChild(this)}function _t(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function bt(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wt(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,a=e.length;r<a;++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 xt(t,e,n){return function(){var r,i=this.__on,a=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var o=0,u=i.length;o<u;++o)if((r=i[o]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=a,r.options=n),void(r.value=e);this.addEventListener(t.type,a,n),r={type:t.type,name:t.name,value:e,listener:a,options:n},i?i.push(r):this.__on=[r]}}function Mt(t,e,n){var r=X(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 St(t,e){return function(){return Mt(this,t,e)}}function At(t,e){return function(){return Mt(this,t,e.apply(this,arguments))}}P.prototype={constructor:P,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)}},rt.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 $t=[null];function Ot(t,e){this._groups=t,this._parents=e}function jt(){return new Ot([[document.documentElement]],$t)}function Nt(t){return'string'==typeof t?new Ot([[document.querySelector(t)]],[document.documentElement]):new Ot([[t]],$t)}Ot.prototype=jt.prototype={constructor:Ot,select:function(t){'function'!=typeof t&&(t=S(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o,u=e[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(a=u[c])&&(o=t.call(a,a.__data__,c,u))&&('__data__'in a&&(o.__data__=a.__data__),l[c]=o);return new Ot(r,this._parents)},selectAll:function(t){t='function'==typeof t?O(t):$(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a)for(var o,u=e[a],s=u.length,l=0;l<s;++l)(o=u[l])&&(r.push(t.call(o,o.__data__,l,u)),i.push(o));return new Ot(r,i)},selectChild:function(t){return this.select(null==t?E:function(t){return function(){return k.call(this.children,t)}}('function'==typeof t?t:N(t)))},selectChildren:function(t){return this.selectAll(null==t?C:function(t){return function(){return I.call(this.children,t)}}('function'==typeof t?t:N(t)))},filter:function(t){'function'!=typeof t&&(t=j(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var a,o=e[i],u=o.length,s=r[i]=[],l=0;l<u;++l)(a=o[l])&&t.call(a,a.__data__,l,o)&&s.push(a);return new Ot(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,V);var n=e?z:q,r=this._parents,i=this._groups;'function'!=typeof t&&(t=(t=>()=>t)(t));for(var a=i.length,o=new Array(a),u=new Array(a),s=new Array(a),l=0;l<a;++l){var c=r[l],h=i[l],f=h.length,p=L(t.call(c,c&&c.__data__,l,r)),d=p.length,g=u[l]=new Array(d),y=o[l]=new Array(d);n(c,h,g,y,s[l]=new Array(f),p,e);for(var v,m,_=0,b=0;_<d;++_)if(v=g[_]){for(_>=b&&(b=_+1);!(m=y[b])&&++b<d;);v._next=m||null}}return(o=new Ot(o,r))._enter=u,o._exit=s,o},enter:function(){return new Ot(this._enter||this._groups.map(T),this._parents)},exit:function(){return new Ot(this._exit||this._groups.map(T),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,a=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?a.remove():n(a),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,a=r.length,o=Math.min(i,a),u=new Array(i),s=0;s<o;++s)for(var l,c=n[s],h=r[s],f=c.length,p=u[s]=new Array(f),d=0;d<f;++d)(l=c[d]||h[d])&&(p[d]=l);for(;s<i;++s)u[s]=n[s];return new Ot(u,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],a=i.length-1,o=i[a];--a>=0;)(r=i[a])&&(o&&4^r.compareDocumentPosition(o)&&o.parentNode.insertBefore(r,o),o=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=F);for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o,u=n[a],s=u.length,l=i[a]=new Array(s),c=0;c<s;++c)(o=u[c])&&(l[c]=o);l.sort(e)}return new Ot(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,a=r.length;i<a;++i){var o=r[i];if(o)return o}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,a=e[n],o=0,u=a.length;o<u;++o)(i=a[o])&&t.call(i,i.__data__,o,a);return this},attr:function(t,e){var n=_(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?B:R:'function'==typeof e?n.local?U:W:n.local?H:D)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Q:'function'==typeof e?Z:Y)(t,e,n??'')):G(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?K:'function'==typeof e?tt:J)(t,e)):this.node()[t]},classed:function(t,e){var n=et(t+'');if(arguments.length<2){for(var r=nt(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each(('function'==typeof e?st:e?ot:ut)(n,e))},text:function(t){return arguments.length?this.each(null==t?lt:('function'==typeof t?ht:ct)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?ft:('function'==typeof t?dt:pt)(t)):this.node().innerHTML},raise:function(){return this.each(gt)},lower:function(){return this.each(yt)},append:function(t){var e='function'==typeof t?t:x(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n='function'==typeof t?t:x(t),r=null==e?vt:'function'==typeof e?e:S(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(mt)},clone:function(t){return this.select(t?bt:_t)},datum:function(t){return arguments.length?this.property('__data__',t):this.node().__data__},on:function(t,e,n){var r,i,a=(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+''),o=a.length;if(!(arguments.length<2)){for(u=e?xt:wt,r=0;r<o;++r)this.each(u(a[r],e,n));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(r=0,s=u[l];r<o;++r)if((i=a[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(('function'==typeof e?At:St)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],a=0,o=i.length;a<o;++a)(r=i[a])&&(yield r)}};var kt='object'==typeof global&&global&&global.Object===Object&&global,Et='object'==typeof self&&self&&self.Object===Object&&self,It=kt||Et||Function('return this')(),Ct=It.Symbol,Tt=Object.prototype,Pt=Tt.hasOwnProperty,qt=Tt.toString,zt=Ct?Ct.toStringTag:void 0,Vt=Object.prototype.toString,Lt='[object Null]',Ft='[object Undefined]',Rt=Ct?Ct.toStringTag:void 0;function Bt(t){return null==t?void 0===t?Ft:Lt:Rt&&Rt in Object(t)?(t=>{var e=Pt.call(t,zt),n=t[zt];try{t[zt]=void 0;var r=!0}catch{}var i=qt.call(t);return r&&(e?t[zt]=n:delete t[zt]),i})(t):(t=>Vt.call(t))(t)}function Dt(t){var e=typeof t;return null!=t&&('object'==e||'function'==e)}var Ht='[object AsyncFunction]',Wt='[object Function]',Ut='[object GeneratorFunction]',Xt='[object Proxy]';function Qt(t){if(!Dt(t))return!1;var e=Bt(t);return e==Wt||e==Ut||e==Ht||e==Xt}var Yt=It['__core-js_shared__'],Zt=(()=>{var t=/[^.]+$/.exec(Yt&&Yt.keys&&Yt.keys.IE_PROTO||'');return t?'Symbol(src)_1.'+t:''})(),Gt=Function.prototype.toString;function Kt(t){if(null!=t){try{return Gt.call(t)}catch{}try{return t+''}catch{}}return''}var Jt=/^\[object .+?Constructor\]$/,te=Function.prototype,ee=Object.prototype,ne=te.toString,re=ee.hasOwnProperty,ie=RegExp('^'+ne.call(re).replace(/[\\^$.*+?()[\]{}|]/g,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');function ae(t){return!(!Dt(t)||(t=>!!Zt&&Zt in t)(t))&&(Qt(t)?ie:Jt).test(Kt(t))}function oe(t,e){var n=((t,e)=>null==t?void 0:t[e])(t,e);return ae(n)?n:void 0}var ue=(()=>{try{var t=oe(Object,'defineProperty');return t({},'',{}),t}catch{}})(),se=(t=>(e,n,r)=>{for(var i=-1,a=Object(e),o=r(e),u=o.length;u--;){var s=o[t?u:++i];if(!1===n(a[s],s,a))break}return e})();function le(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function ce(t){return null!=t&&'object'==typeof t}function he(t){return ce(t)&&'[object Arguments]'==Bt(t)}var fe=Object.prototype,pe=fe.hasOwnProperty,de=fe.propertyIsEnumerable,ge=he(function(){return arguments}())?he:t=>ce(t)&&pe.call(t,'callee')&&!de.call(t,'callee'),ye=Array.isArray,ve='object'==typeof t&&t&&!t.nodeType&&t,me=ve&&'object'==typeof module&&module&&!module.nodeType&&module,_e=me&&me.exports===ve?It.Buffer:void 0;const be=(_e?_e.isBuffer:void 0)||(()=>!1);var we=9007199254740991,xe=/^(?:0|[1-9]\d*)$/;function Me(t,e){var n=typeof t;return!!(e=e??we)&&('number'==n||'symbol'!=n&&xe.test(t))&&t>-1&&t%1==0&&t<e}var Se=9007199254740991;function Ae(t){return'number'==typeof t&&t>-1&&t%1==0&&t<=Se}var $e={};$e['[object Float32Array]']=$e['[object Float64Array]']=$e['[object Int8Array]']=$e['[object Int16Array]']=$e['[object Int32Array]']=$e['[object Uint8Array]']=$e['[object Uint8ClampedArray]']=$e['[object Uint16Array]']=$e['[object Uint32Array]']=!0,$e['[object Arguments]']=$e['[object Array]']=$e['[object ArrayBuffer]']=$e['[object Boolean]']=$e['[object DataView]']=$e['[object Date]']=$e['[object Error]']=$e['[object Function]']=$e['[object Map]']=$e['[object Number]']=$e['[object Object]']=$e['[object RegExp]']=$e['[object Set]']=$e['[object String]']=$e['[object WeakMap]']=!1;var Oe='object'==typeof t&&t&&!t.nodeType&&t,je=Oe&&'object'==typeof module&&module&&!module.nodeType&&module,Ne=je&&je.exports===Oe&&kt.process,ke=(()=>{try{return je&&je.require&&je.require('util').types||Ne&&Ne.binding&&Ne.binding('util')}catch{}})(),Ee=ke&&ke.isTypedArray,Ie=Ee?(t=>e=>t(e))(Ee):t=>ce(t)&&Ae(t.length)&&!!$e[Bt(t)];const Ce=Ie;var Te=Object.prototype.hasOwnProperty,Pe=Object.prototype;function qe(t){var e=t&&t.constructor;return t===('function'==typeof e&&e.prototype||Pe)}var ze=((t,e)=>n=>t(e(n)))(Object.keys,Object),Ve=Object.prototype.hasOwnProperty;function Le(t){if(!qe(t))return ze(t);var e=[];for(var n in Object(t))Ve.call(t,n)&&'constructor'!=n&&e.push(n);return e}function Fe(t){return null!=t&&Ae(t.length)&&!Qt(t)}function Re(t){return Fe(t)?((t,e)=>{var n=ye(t),r=!n&&ge(t),i=!n&&!r&&be(t),a=!n&&!r&&!i&&Ce(t),o=n||r||i||a,u=o?le(t.length,String):[],s=u.length;for(var l in t)(e||Te.call(t,l))&&(!o||!('length'==l||i&&('offset'==l||'parent'==l)||a&&('buffer'==l||'byteLength'==l||'byteOffset'==l)||Me(l,s)))&&u.push(l);return u})(t):Le(t)}function Be(t,e){return t===e||t!=t&&e!=e}function De(t,e){for(var n=t.length;n--;)if(Be(t[n][0],e))return n;return-1}var He=Array.prototype.splice;function We(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}We.prototype.clear=function(){this.__data__=[],this.size=0},We.prototype.delete=function(t){var e=this.__data__,n=De(e,t);return!(n<0||(n==e.length-1?e.pop():He.call(e,n,1),--this.size,0))},We.prototype.get=function(t){var e=this.__data__,n=De(e,t);return n<0?void 0:e[n][1]},We.prototype.has=function(t){return De(this.__data__,t)>-1},We.prototype.set=function(t,e){var n=this.__data__,r=De(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this};var Ue=oe(It,'Map'),Xe=oe(Object,'create'),Qe=Object.prototype.hasOwnProperty,Ye=Object.prototype.hasOwnProperty;function Ze(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Ge(t,e){var n=t.__data__;return(t=>{var e=typeof t;return'string'==e||'number'==e||'symbol'==e||'boolean'==e?'__proto__'!==t:null===t})(e)?n['string'==typeof e?'string':'hash']:n.map}function Ke(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}function Je(t){var e=this.__data__=new We(t);this.size=e.size}function tn(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ke;++e<n;)this.add(t[e])}function en(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function nn(t,e){return t.has(e)}Ze.prototype.clear=function(){this.__data__=Xe?Xe(null):{},this.size=0},Ze.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Ze.prototype.get=function(t){var e=this.__data__;if(Xe){var n=e[t];return'__lodash_hash_undefined__'===n?void 0:n}return Qe.call(e,t)?e[t]:void 0},Ze.prototype.has=function(t){var e=this.__data__;return Xe?void 0!==e[t]:Ye.call(e,t)},Ze.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Xe&&void 0===e?'__lodash_hash_undefined__':e,this},Ke.prototype.clear=function(){this.size=0,this.__data__={hash:new Ze,map:new(Ue||We),string:new Ze}},Ke.prototype.delete=function(t){var e=Ge(this,t).delete(t);return this.size-=e?1:0,e},Ke.prototype.get=function(t){return Ge(this,t).get(t)},Ke.prototype.has=function(t){return Ge(this,t).has(t)},Ke.prototype.set=function(t,e){var n=Ge(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},Je.prototype.clear=function(){this.__data__=new We,this.size=0},Je.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Je.prototype.get=function(t){return this.__data__.get(t)},Je.prototype.has=function(t){return this.__data__.has(t)},Je.prototype.set=function(t,e){var n=this.__data__;if(n instanceof We){var r=n.__data__;if(!Ue||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ke(r)}return n.set(t,e),this.size=n.size,this},tn.prototype.add=tn.prototype.push=function(t){return this.__data__.set(t,'__lodash_hash_undefined__'),this},tn.prototype.has=function(t){return this.__data__.has(t)};var rn=1,an=2;function on(t,e,n,r,i,a){var o=n&rn,u=t.length,s=e.length;if(u!=s&&!(o&&s>u))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,p=n&an?new tn:void 0;for(a.set(t,e),a.set(e,t);++h<u;){var d=t[h],g=e[h];if(r)var y=o?r(g,d,h,e,t,a):r(d,g,h,t,e,a);if(void 0!==y){if(y)continue;f=!1;break}if(p){if(!en(e,((t,e)=>{if(!nn(p,e)&&(d===t||i(d,t,n,r,a)))return p.push(e)}))){f=!1;break}}else if(d!==g&&!i(d,g,n,r,a)){f=!1;break}}return a.delete(t),a.delete(e),f}const un=It.Uint8Array;function sn(t){var e=-1,n=Array(t.size);return t.forEach(((t,r)=>{n[++e]=[r,t]})),n}function ln(t){var e=-1,n=Array(t.size);return t.forEach((t=>{n[++e]=t})),n}var cn=1,hn=2,fn='[object Boolean]',pn='[object Date]',dn='[object Error]',gn='[object Map]',yn='[object Number]',vn='[object RegExp]',mn='[object Set]',_n='[object String]',bn='[object Symbol]',wn='[object ArrayBuffer]',xn='[object DataView]',Mn=Ct?Ct.prototype:void 0,Sn=Mn?Mn.valueOf:void 0,An=Object.prototype.propertyIsEnumerable,$n=Object.getOwnPropertySymbols,On=$n?t=>null==t?[]:(t=Object(t),((t,e)=>{for(var n=-1,r=null==t?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a})($n(t),(e=>An.call(t,e)))):()=>[];const jn=On;function Nn(t){return((t,e,n)=>{var r=e(t);return ye(t)?r:((t,e)=>{for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t})(r,n(t))})(t,Re,jn)}var kn=1,En=Object.prototype.hasOwnProperty,In=oe(It,'DataView'),Cn=oe(It,'Promise'),Tn=oe(It,'Set'),Pn=oe(It,'WeakMap'),qn='[object Map]',zn='[object Promise]',Vn='[object Set]',Ln='[object WeakMap]',Fn='[object DataView]',Rn=Kt(In),Bn=Kt(Ue),Dn=Kt(Cn),Hn=Kt(Tn),Wn=Kt(Pn),Un=Bt;(In&&Un(new In(new ArrayBuffer(1)))!=Fn||Ue&&Un(new Ue)!=qn||Cn&&Un(Cn.resolve())!=zn||Tn&&Un(new Tn)!=Vn||Pn&&Un(new Pn)!=Ln)&&(Un=t=>{var e=Bt(t),n='[object Object]'==e?t.constructor:void 0,r=n?Kt(n):'';if(r)switch(r){case Rn:return Fn;case Bn:return qn;case Dn:return zn;case Hn:return Vn;case Wn:return Ln}return e});const Xn=Un;var Qn=1,Yn='[object Arguments]',Zn='[object Array]',Gn='[object Object]',Kn=Object.prototype.hasOwnProperty;function Jn(t,e,n,r,i,a){var o=ye(t),u=ye(e),s=o?Zn:Xn(t),l=u?Zn:Xn(e),c=(s=s==Yn?Gn:s)==Gn,h=(l=l==Yn?Gn:l)==Gn,f=s==l;if(f&&be(t)){if(!be(e))return!1;o=!0,c=!1}if(f&&!c)return a||(a=new Je),o||Ce(t)?on(t,e,n,r,i,a):((t,e,n,r,i,a,o)=>{switch(n){case xn:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case wn:return!(t.byteLength!=e.byteLength||!a(new un(t),new un(e)));case fn:case pn:case yn:return Be(+t,+e);case dn:return t.name==e.name&&t.message==e.message;case vn:case _n:return t==e+'';case gn:var u=sn;case mn:var s=r&cn;if(u||(u=ln),t.size!=e.size&&!s)return!1;var l=o.get(t);if(l)return l==e;r|=hn,o.set(t,e);var c=on(u(t),u(e),r,i,a,o);return o.delete(t),c;case bn:if(Sn)return Sn.call(t)==Sn.call(e)}return!1})(t,e,s,n,r,i,a);if(!(n&Qn)){var p=c&&Kn.call(t,'__wrapped__'),d=h&&Kn.call(e,'__wrapped__');if(p||d){var g=p?t.value():t,y=d?e.value():e;return a||(a=new Je),i(g,y,n,r,a)}}return!!f&&(a||(a=new Je),((t,e,n,r,i,a)=>{var o=n&kn,u=Nn(t),s=u.length;if(s!=Nn(e).length&&!o)return!1;for(var l=s;l--;){var c=u[l];if(!(o?c in e:En.call(e,c)))return!1}var h=a.get(t),f=a.get(e);if(h&&f)return h==e&&f==t;var p=!0;a.set(t,e),a.set(e,t);for(var d=o;++l<s;){var g=t[c=u[l]],y=e[c];if(r)var v=o?r(y,g,c,e,t,a):r(g,y,c,t,e,a);if(!(void 0===v?g===y||i(g,y,n,r,a):v)){p=!1;break}d||(d='constructor'==c)}if(p&&!d){var m=t.constructor,_=e.constructor;m!=_&&'constructor'in t&&'constructor'in e&&!('function'==typeof m&&m instanceof m&&'function'==typeof _&&_ instanceof _)&&(p=!1)}return a.delete(t),a.delete(e),p})(t,e,n,r,i,a))}function tr(t,e,n,r,i){return t===e||(null==t||null==e||!ce(t)&&!ce(e)?t!=t&&e!=e:Jn(t,e,n,r,tr,i))}var er=1,nr=2;function rr(t){return t==t&&!Dt(t)}function ir(t,e){return n=>null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}function ar(t){var e=(t=>{for(var e=Re(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,rr(i)]}return e})(t);return 1==e.length&&e[0][2]?ir(e[0][0],e[0][1]):n=>n===t||((t,e,n,r)=>{var i=n.length,a=i,o=!r;if(null==t)return!a;for(t=Object(t);i--;){var u=n[i];if(o&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++i<a;){var s=(u=n[i])[0],l=t[s],c=u[1];if(o&&u[2]){if(void 0===l&&!(s in t))return!1}else{var h=new Je;if(r)var f=r(l,c,s,t,e,h);if(!(void 0===f?tr(c,l,er|nr,r,h):f))return!1}}return!0})(n,t,e)}var or='[object Symbol]';function ur(t){return'symbol'==typeof t||ce(t)&&Bt(t)==or}var sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lr=/^\w*$/;function cr(t,e){if(ye(t))return!1;var n=typeof t;return!('number'!=n&&'symbol'!=n&&'boolean'!=n&&null!=t&&!ur(t))||lr.test(t)||!sr.test(t)||null!=e&&t in Object(e)}var hr='Expected a function';function fr(t,e){if('function'!=typeof t||null!=e&&'function'!=typeof e)throw new TypeError(hr);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(fr.Cache||Ke),n}fr.Cache=Ke;var pr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dr=/\\(\\)?/g,gr=(t=>{var e=fr(t,(t=>(500===n.size&&n.clear(),t))),n=e.cache;return e})((t=>{var e=[];return 46===t.charCodeAt(0)&&e.push(''),t.replace(pr,((t,n,r,i)=>{e.push(r?i.replace(dr,'$1'):n||t)})),e})),yr=1/0,vr=Ct?Ct.prototype:void 0,mr=vr?vr.toString:void 0;function _r(t){if('string'==typeof t)return t;if(ye(t))return((t,e)=>{for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i})(t,_r)+'';if(ur(t))return mr?mr.call(t):'';var e=t+'';return'0'==e&&1/t==-yr?'-0':e}function br(t,e){return ye(t)?t:cr(t,e)?[t]:gr((t=>null==t?'':_r(t))(t))}var wr=1/0;function xr(t){if('string'==typeof t||ur(t))return t;var e=t+'';return'0'==e&&1/t==-wr?'-0':e}function Mr(t,e){for(var n=0,r=(e=br(e,t)).length;null!=t&&n<r;)t=t[xr(e[n++])];return n&&n==r?t:void 0}function Sr(t,e){return null!=t&&e in Object(t)}function Ar(t,e){return null!=t&&((t,e,n)=>{for(var r=-1,i=(e=br(e,t)).length,a=!1;++r<i;){var o=xr(e[r]);if(!(a=null!=t&&n(t,o)))break;t=t[o]}return a||++r!=i?a:!!(i=null==t?0:t.length)&&Ae(i)&&Me(o,i)&&(ye(t)||ge(t))})(t,e,Sr)}var $r=1,Or=2;function jr(t,e){return cr(t)&&rr(e)?ir(xr(t),e):n=>{var r=((t,e,n)=>{var r=null==t?void 0:Mr(t,e);return void 0===r?n:r})(n,t);return void 0===r&&r===e?Ar(n,t):tr(e,r,$r|Or)}}function Nr(t){return t}function kr(t){return cr(t)?(t=>e=>null==e?void 0:e[t])(xr(t)):(t=>e=>Mr(e,t))(t)}function Er(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ir(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Cr(t){let e,n,r;function i(t,r,i=0,a=t.length){if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<0?i=e+1:a=e}while(i<a)}return i}return 2!==t.length?(e=Er,n=(e,n)=>Er(t(e),n),r=(e,n)=>t(e)-n):(e=t===Er||t===Ir?t:Tr,n=t,r=t),{left:i,center:(t,e,n=0,a=t.length)=>{const o=i(t,e,n,a-1);return o>n&&r(t[o-1],e)>-r(t[o],e)?o-1:o},right:(t,r,i=0,a=t.length)=>{if(i<a){if(0!==e(r,r))return a;do{const e=i+a>>>1;n(t[e],r)<=0?i=e+1:a=e}while(i<a)}return i}}}function Tr(){return 0}const Pr=Cr(Er).right;Cr((t=>null===t?NaN:+t)).center;const qr=Math.sqrt(50),zr=Math.sqrt(10),Vr=Math.sqrt(2);function Lr(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=qr?10:a>=zr?5:a>=Vr?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(t*l),s=Math.round(e*l),u/l<t&&++u,s/l>e&&--s,l=-l):(l=Math.pow(10,i)*o,u=Math.round(t/l),s=Math.round(e/l),u*l<t&&++u,s*l>e&&--s),s<u&&.5<=n&&n<2?Lr(t,e,2*n):[u,s,l]}function Fr(t,e,n){return Lr(t=+t,e=+e,n=+n)[2]}function Rr(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function Br(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Dr(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Hr(){}var Wr=.7,Ur=1/Wr,Xr='\\s*([+-]?\\d+)\\s*',Qr='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*',Yr='\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*',Zr=/^#([0-9a-f]{3,8})$/,Gr=new RegExp(`^rgb\\(${Xr},${Xr},${Xr}\\)$`),Kr=new RegExp(`^rgb\\(${Yr},${Yr},${Yr}\\)$`),Jr=new RegExp(`^rgba\\(${Xr},${Xr},${Xr},${Qr}\\)$`),ti=new RegExp(`^rgba\\(${Yr},${Yr},${Yr},${Qr}\\)$`),ei=new RegExp(`^hsl\\(${Qr},${Yr},${Yr}\\)$`),ni=new RegExp(`^hsla\\(${Qr},${Yr},${Yr},${Qr}\\)$`),ri={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 ii(){return this.rgb().formatHex()}function ai(){return this.rgb().formatRgb()}function oi(t){var e,n;return t=(t+'').trim().toLowerCase(),(e=Zr.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?ui(e):3===n?new ci(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?si(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?si(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=Gr.exec(t))?new ci(e[1],e[2],e[3],1):(e=Kr.exec(t))?new ci(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Jr.exec(t))?si(e[1],e[2],e[3],e[4]):(e=ti.exec(t))?si(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=ei.exec(t))?yi(e[1],e[2]/100,e[3]/100,1):(e=ni.exec(t))?yi(e[1],e[2]/100,e[3]/100,e[4]):ri.hasOwnProperty(t)?ui(ri[t]):'transparent'===t?new ci(NaN,NaN,NaN,0):null}function ui(t){return new ci(t>>16&255,t>>8&255,255&t,1)}function si(t,e,n,r){return r<=0&&(t=e=n=NaN),new ci(t,e,n,r)}function li(t,e,n,r){return 1===arguments.length?(t=>(t instanceof Hr||(t=oi(t)),t?new ci((t=t.rgb()).r,t.g,t.b,t.opacity):new ci))(t):new ci(t,e,n,r??1)}function ci(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function hi(){return`#${gi(this.r)}${gi(this.g)}${gi(this.b)}`}function fi(){const t=pi(this.opacity);return`${1===t?'rgb(':'rgba('}${di(this.r)}, ${di(this.g)}, ${di(this.b)}${1===t?')':`, ${t})`}`}function pi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function di(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function gi(t){return((t=di(t))<16?'0':'')+t.toString(16)}function yi(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _i(t,e,n,r)}function vi(t){if(t instanceof _i)return new _i(t.h,t.s,t.l,t.opacity);if(t instanceof Hr||(t=oi(t)),!t)return new _i;if(t instanceof _i)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(o=e===a?(n-r)/u+6*(n<r):n===a?(r-e)/u+2:(e-n)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new _i(o,u,s,t.opacity)}function mi(t,e,n,r){return 1===arguments.length?vi(t):new _i(t,e,n,r??1)}function _i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function bi(t){return(t=(t||0)%360)<0?t+360:t}function wi(t){return Math.max(0,Math.min(1,t||0))}function xi(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Br(Hr,oi,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ii,formatHex:ii,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return vi(this).formatHsl()},formatRgb:ai,toString:ai}),Br(ci,li,Dr(Hr,{brighter(t){return t=null==t?Ur:Math.pow(Ur,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?Wr:Math.pow(Wr,t),new ci(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ci(di(this.r),di(this.g),di(this.b),pi(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:hi,formatHex:hi,formatHex8:function(){return`#${gi(this.r)}${gi(this.g)}${gi(this.b)}${gi(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:fi,toString:fi})),Br(_i,mi,Dr(Hr,{brighter(t){return t=null==t?Ur:Math.pow(Ur,t),new _i(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?Wr:Math.pow(Wr,t),new _i(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 ci(xi(t>=240?t-240:t+120,i,r),xi(t,i,r),xi(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _i(bi(this.h),wi(this.s),wi(this.l),pi(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=pi(this.opacity);return`${1===t?'hsl(':'hsla('}${bi(this.h)}, ${100*wi(this.s)}%, ${100*wi(this.l)}%${1===t?')':`, ${t})`}`}}));const Mi=t=>()=>t;function Si(t,e){return n=>t+n*e}function Ai(t){return 1==(t=+t)?$i:(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):Mi(isNaN(e)?n:e)}function $i(t,e){var n=e-t;return n?Si(t,n):Mi(isNaN(t)?e:t)}const Oi=function t(e){var n=Ai(e);function r(t,e){var r=n((t=li(t)).r,(e=li(e)).r),i=n(t.g,e.g),a=n(t.b,e.b),o=$i(t.opacity,e.opacity);return e=>(t.r=r(e),t.g=i(e),t.b=a(e),t.opacity=o(e),t+'')}return r.gamma=t,r}(1);function ji(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return a=>{for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}}function Ni(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,a=new Array(i),o=new Array(r);for(n=0;n<i;++n)a[n]=qi(t[n],e[n]);for(;n<r;++n)o[n]=e[n];return t=>{for(n=0;n<i;++n)o[n]=a[n](t);return o}}function ki(t,e){var n=new Date;return t=+t,e=+e,r=>(n.setTime(t*(1-r)+e*r),n)}function Ei(t,e){return t=+t,e=+e,n=>t*(1-n)+e*n}function Ii(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]=qi(t[n],e[n]):i[n]=e[n];return t=>{for(n in r)i[n]=r[n](t);return i}}var Ci=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ti=new RegExp(Ci.source,'g');function Pi(t,e){var n,r,i,a=Ci.lastIndex=Ti.lastIndex=0,o=-1,u=[],s=[];for(t+='',e+='';(n=Ci.exec(t))&&(r=Ti.exec(e));)(i=r.index)>a&&(i=e.slice(a,i),u[o]?u[o]+=i:u[++o]=i),(n=n[0])===(r=r[0])?u[o]?u[o]+=r:u[++o]=r:(u[++o]=null,s.push({i:o,x:Ei(n,r)})),a=Ti.lastIndex;return a<e.length&&(i=e.slice(a),u[o]?u[o]+=i:u[++o]=i),u.length<2?s[0]?(t=>e=>t(e)+'')(s[0].x):(t=>()=>t)(e):(e=s.length,t=>{for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join('')})}function qi(t,e){var n,r=typeof e;return null==e||'boolean'===r?Mi(e):('number'===r?Ei:'string'===r?(n=oi(e))?(e=n,Oi):Pi:e instanceof oi?Oi:e instanceof Date?ki:(t=>ArrayBuffer.isView(t)&&!(t instanceof DataView))(e)?ji:Array.isArray(e)?Ni:'function'!=typeof e.valueOf&&'function'!=typeof e.toString||isNaN(e)?Ii:Ei)(t,e)}function zi(t,e){return t=+t,e=+e,n=>Math.round(t*(1-n)+e*n)}var Vi,Li=180/Math.PI,Fi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ri(t,e,n,r,i,a){var o,u,s;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*Li,skewX:Math.atan(s)*Li,scaleX:o,scaleY:u}}function Bi(t,e,n,r){function i(t){return t.length?t.pop()+' ':''}return(a,o)=>{var u=[],s=[];return a=t(a),o=t(o),((t,r,i,a,o,u)=>{if(t!==i||r!==a){var s=o.push('translate(',null,e,null,n);u.push({i:s-4,x:Ei(t,i)},{i:s-2,x:Ei(r,a)})}else(i||a)&&o.push('translate('+i+e+a+n)})(a.translateX,a.translateY,o.translateX,o.translateY,u,s),((t,e,n,a)=>{t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+'rotate(',null,r)-2,x:Ei(t,e)})):e&&n.push(i(n)+'rotate('+e+r)})(a.rotate,o.rotate,u,s),((t,e,n,a)=>{t!==e?a.push({i:n.push(i(n)+'skewX(',null,r)-2,x:Ei(t,e)}):e&&n.push(i(n)+'skewX('+e+r)})(a.skewX,o.skewX,u,s),((t,e,n,r,a,o)=>{if(t!==n||e!==r){var u=a.push(i(a)+'scale(',null,',',null,')');o.push({i:u-4,x:Ei(t,n)},{i:u-2,x:Ei(e,r)})}else(1!==n||1!==r)&&a.push(i(a)+'scale('+n+','+r+')')})(a.scaleX,a.scaleY,o.scaleX,o.scaleY,u,s),a=o=null,t=>{for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join('')}}}var Di=Bi((t=>{const e=new('function'==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+'');return e.isIdentity?Fi:Ri(e.a,e.b,e.c,e.d,e.e,e.f)}),'px, ','px)','deg)'),Hi=Bi((t=>null!=t&&(Vi||(Vi=document.createElementNS('http://www.w3.org/2000/svg','g')),Vi.setAttribute('transform',t),t=Vi.transform.baseVal.consolidate())?Ri((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Fi),', ',')',')');const Wi=(t=>(e,n)=>{var r=t((e=mi(e)).h,(n=mi(n)).h),i=$i(e.s,n.s),a=$i(e.l,n.l),o=$i(e.opacity,n.opacity);return t=>(e.h=r(t),e.s=i(t),e.l=a(t),e.opacity=o(t),e+'')})(((t,e)=>{var n=e-t;return n?Si(t,n>180||n<-180?n-360*Math.round(n/360):n):Mi(isNaN(t)?e:t)}));function Ui(t){return+t}var Xi=[0,1];function Qi(t){return t}function Yi(t,e){return(e-=t=+t)?n=>(n-t)/e:(t=>()=>t)(isNaN(e)?NaN:.5)}function Zi(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];return i<r?(r=Yi(i,r),a=n(o,a)):(r=Yi(r,i),a=n(a,o)),t=>a(r(t))}function Gi(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<r;)i[o]=Yi(t[o],t[o+1]),a[o]=n(e[o],e[o+1]);return e=>{var n=Pr(t,e,1,r)-1;return a[n](i[n](e))}}function Ki(){var t,e,n,r,i,a,o=Xi,u=Xi,s=qi,l=Qi;function c(){var t=Math.min(o.length,u.length);return l!==Qi&&(l=((t,e)=>{var n;return t>e&&(n=t,t=e,e=n),n=>Math.max(t,Math.min(e,n))})(o[0],o[t-1])),r=t>2?Gi:Zi,i=a=null,h}function h(e){return null==e||isNaN(e=+e)?n:(i||(i=r(o.map(t),u,s)))(t(l(e)))}return h.invert=n=>l(e((a||(a=r(u,o.map(t),Ei)))(n))),h.domain=function(t){return arguments.length?(o=Array.from(t,Ui),c()):o.slice()},h.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},h.rangeRound=t=>(u=Array.from(t),s=zi,c()),h.clamp=function(t){return arguments.length?(l=!!t||Qi,c()):l!==Qi},h.interpolate=function(t){return arguments.length?(s=t,c()):s},h.unknown=function(t){return arguments.length?(n=t,h):n},(n,r)=>(t=n,e=r,c())}function Ji(t,e,n,i){var a,u=((t,e,n)=>{n=+n;const r=(e=+e)<(t=+t),i=r?Fr(e,t,n):Fr(t,e,n);return(r?-1:1)*(i<0?1/-i:i)})(t,e,n);switch((i=o(i??',f')).type){case's':var s=Math.max(Math.abs(t),Math.abs(e));return null==i.precision&&!isNaN(a=((t,e)=>Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t))))(u,s))&&(i.precision=a),p(i,s);case'':case'e':case'g':case'p':case'r':null==i.precision&&!isNaN(a=((t,e)=>(t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1))(u,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=a-('e'===i.type));break;case'f':case'%':null==i.precision&&!isNaN(a=(t=>Math.max(0,-r(Math.abs(t))))(u))&&(i.precision=a-2*('%'===i.type))}return f(i)}function ta(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,a,o]=r?Lr(e,t,n):Lr(t,e,n);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(r)if(o<0)for(let t=0;t<u;++t)s[t]=(a-t)/-o;else for(let t=0;t<u;++t)s[t]=(a-t)*o;else if(o<0)for(let t=0;t<u;++t)s[t]=(i+t)/-o;else for(let t=0;t<u;++t)s[t]=(i+t)*o;return s})(n[0],n[n.length-1],t??10)},t.tickFormat=(t,n)=>{var r=e();return Ji(r[0],r[r.length-1],t??10,n)},t.nice=n=>{null==n&&(n=10);var r,i,a=e(),o=0,u=a.length-1,s=a[o],l=a[u],c=10;for(l<s&&(i=s,s=l,l=i,i=o,o=u,u=i);c-- >0;){if((i=Fr(s,l,n))===r)return a[o]=s,a[u]=l,e(a);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function ea(){var t=Ki()(Qi,Qi);return t.copy=()=>((t,e)=>e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown()))(t,ea()),Rr.apply(t,arguments),ta(t)}function na(){var t,e=0,n=1,r=1,i=[.5],a=[0,1];function o(e){return null!=e&&e<=e?a[Pr(i,e,0,r)]:t}function u(){var t=-1;for(i=new Array(r);++t<r;)i[t]=((t+1)*n-(t-r)*e)/(r+1);return o}return o.domain=function(t){return arguments.length?([e,n]=t,e=+e,n=+n,u()):[e,n]},o.range=function(t){return arguments.length?(r=(a=Array.from(t)).length-1,u()):a.slice()},o.invertExtent=t=>{var o=a.indexOf(t);return o<0?[NaN,NaN]:o<1?[e,i[0]]:o>=r?[i[r-1],n]:[i[o-1],i[o]]},o.unknown=function(e){return arguments.length&&(t=e),o},o.thresholds=()=>i.slice(),o.copy=()=>na().domain([e,n]).range(a).unknown(t),Rr.apply(ta(o),arguments)}var ra='[object Number]',ia='[object Map]',aa='[object Set]',oa=Object.prototype.hasOwnProperty;function ua(t){if(null==t)return!0;if(Fe(t)&&(ye(t)||'string'==typeof t||'function'==typeof t.splice||be(t)||Ce(t)||ge(t)))return!t.length;var e=Xn(t);if(e==ia||e==aa)return!t.size;if(qe(t))return!Le(t).length;for(var n in t)if(oa.call(t,n))return!1;return!0}function sa(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}function la(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(i);++r<i;)a[r]=t[r+e];return a}var ca=/\s/,ha=/^\s+/;function fa(t){return t&&t.slice(0,(t=>{for(var e=t.length;e--&&ca.test(t.charAt(e)););return e})(t)+1).replace(ha,'')}var pa=NaN,da=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,ya=/^0o[0-7]+$/i,va=parseInt,ma=1/0,_a=17976931348623157e292;function ba(t){return t?(t=(t=>{if('number'==typeof t)return t;if(ur(t))return pa;if(Dt(t)){var e='function'==typeof t.valueOf?t.valueOf():t;t=Dt(e)?e+'':e}if('string'!=typeof t)return 0===t?t:+t;t=fa(t);var n=ga.test(t);return n||ya.test(t)?va(t.slice(2),n?2:8):da.test(t)?pa:+t})(t),t===ma||t===-ma?(t<0?-1:1)*_a:t==t?t:0):0===t?t:0}function wa(t){var e=ba(t),n=e%1;return e==e?n?e-n:e:0}var xa=9007199254740991,Ma=4294967295,Sa=Math.min;function Aa(t,e){if((t=wa(t))<1||t>xa)return[];var n=Ma,r=Sa(t,Ma);e=(t=>'function'==typeof t?t:Nr)(e),t-=Ma;for(var i=le(r,e);++n<t;)e(n);return i}function $a(t,e){return(t=>t&&t.length?((t,e)=>{for(var n,r=-1,i=t.length;++r<i;){var a=e(t[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n})(t,Nr):0)(((t,e,n)=>t&&t.length?la(t,0,(e=n||void 0===e?1:wa(e))<0?0:e):[])(t,e))}function Oa({tickData:t,customSegmentStops:e,min:n,max:r}){if(!ye(e)||ua(e))return t;if((t=>t&&t.length?t[0]:void 0)(e)!==n)throw new Error(`First value should be equivalent to min value given. Current min value - ${n}`);if(sa(e)!==r)throw new Error(`Last value should be equivalent to max value given. Current min value - ${r}`);return((t,e,n)=>{var r=null==t?0:t.length;return r?la(t,(e=n||void 0===e?1:wa(e))<0?0:e,r):[]})(e.map(((t,i)=>{if(0!==i)return(t-e[i-1])/(r-n)})))}function ja({maxSegmentLabelCount:t,segmentCount:e}){const n=parseInt(t,10),r=parseInt(e,10);return(t=>'number'==typeof t||ce(t)&&Bt(t)==ra)(n)&&n>=0&&n<=r?n:r}function Na(t){return t*Math.PI/180}const ka={easeLinear:'easeLinear',easeQuadIn:'easeQuadIn',easeQuadOut:'easeQuadOut',easeQuadInOut:'easeQuadInOut',easeCubicIn:'easeCubicIn',easeCubicOut:'easeCubicOut',easeCubicInOut:'easeCubicInOut',easePolyIn:'easePolyIn',easePolyOut:'easePolyOut',easePolyInOut:'easePolyInOut',easeSinIn:'easeSinIn',easeSinOut:'easeSinOut',easeSinInOut:'easeSinInOut',easeExpIn:'easeExpIn',easeExpOut:'easeExpOut',easeExpInOut:'easeExpInOut',easeCircleIn:'easeCircleIn',easeCircleOut:'easeCircleOut',easeCircleInOut:'easeCircleInOut',easeBounceIn:'easeBounceIn',easeBounceOut:'easeBounceOut',easeBounceInOut:'easeBounceInOut',easeBackIn:'easeBackIn',easeBackOut:'easeBackOut',easeBackInOut:'easeBackInOut',easeElasticIn:'easeElasticIn',easeElasticOut:'easeElasticOut',easeElasticInOut:'easeElasticInOut',easeElastic:'easeElastic'},Ea=t=>t,Ia={value:0,minValue:0,maxValue:1e3,forceRender:!1,width:300,height:300,paddingHorizontal:0,paddingVertical:0,fluidWidth:!1,dimensionUnit:'px',segments:5,maxSegmentLabels:-1,customSegmentStops:[],customSegmentLabels:[],needleColor:'steelblue',startColor:'#FF471A',endColor:'#33CC33',segmentColors:[],needleTransition:ka.easeQuadInOut,needleTransitionDuration:500,needleHeightRatio:.9,ringWidth:60,textColor:'#666',valueFormat:'',segmentValueFormatter:Ea,currentValueText:'${value}',currentValuePlaceholderStyle:'${value}',labelFontSize:'14px',valueTextFontSize:'16px',valueTextFontWeight:'bold',svgAriaLabel:'React d3 speedometer'},Ca={ringInset:20,pointerWidth:10,pointerTailLength:5,minAngle:-90,maxAngle:90,labelInset:10},Ta=({PROPS:t,parentWidth:e,parentHeight:n})=>{const r={width:t.fluidWidth?e:t.width,height:t.fluidWidth?n:t.height,paddingHorizontal:t.paddingHorizontal,paddingVertical:t.paddingVertical,dim