@carbon/charts-vue 0.24.2 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/charts-vue.common.js +40 -34
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +40 -34
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +3 -2
package/charts-vue.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("0b74")(t))},"054c":function(t,e,n){var r=n("f455")("meta"),i=n("194e"),o=n("25a6"),a=n("6f0d").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("a124")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},p=function(t){return c&&d.NEED&&u(t)&&!o(t,r)&&l(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},"0b04":function(t,e,n){var r=n("aec0"),i=n("c8ae");t.exports=function(t){return r(i(t))}},"0b74":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"0d9c":function(t,e,n){"use strict";var r=n("ef37"),i=n("dafe"),o="includes";r(r.P+r.F*n("8222")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"0e85":function(t,e,n){var r=n("6f0d").f,i=n("25a6"),o=n("d951")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"0e8c":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"124c":function(t,e,n){var r=n("d3d5");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"194e":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"1c25":function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("4f72"),n("0d9c"),n("c880"),n("5e32"),n("4823"),n("2e73");var i,o,a,s,u,c,l,h,f,p,d,v,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},g=[];function _(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group"})(i||(i={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(o||(o={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(a||(a={})),function(t){t["PRIMARY"]="primary",t["SECONDARY"]="secondary"}(s||(s={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(u||(u={})),function(t){t["MOUSE"]="mouse",t["TOP"]="top",t["BOTTOM"]="bottom"}(c||(c={})),function(t){t["DATAPOINT"]="datapoint",t["GRIDLINE"]="gridline",t["TITLE"]="title"}(l||(l={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(h||(h={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(f||(f={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(p||(p={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(d||(d={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(v||(v={}));var m=_,b=n("7f0d"),x=function(){return b["a"].Date.now()},w=x,O=b["a"].Symbol,T=O,M=Object.prototype,E=M.hasOwnProperty,S=M.toString,A=T?T.toStringTag:void 0;function k(t){var e=E.call(t,A),n=t[A];try{t[A]=void 0;var r=!0}catch(o){}var i=S.call(t);return r&&(e?t[A]=n:delete t[A]),i}var P=k,C=Object.prototype,L=C.toString;function j(t){return L.call(t)}var D=j,N="[object Null]",R="[object Undefined]",F=T?T.toStringTag:void 0;function I(t){return null==t?void 0===t?R:N:F&&F in Object(t)?P(t):D(t)}var V=I;function H(t){return null!=t&&"object"==typeof t}var B=H,z="[object Symbol]";function G(t){return"symbol"==typeof t||B(t)&&V(t)==z}var U=G,Y=NaN,X=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,$=/^0o[0-7]+$/i,Z=parseInt;function J(t){if("number"==typeof t)return t;if(U(t))return Y;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(X,"");var n=q.test(t);return n||$.test(t)?Z(t.slice(2),n?2:8):W.test(t)?Y:+t}var Q=J,K="Expected a function",tt=Math.max,et=Math.min;function nt(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(K);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(g,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?et(i,o-r):i}function y(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function g(){var t=w();if(y(t))return _(t);s=setTimeout(g,v(t))}function _(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function x(){return void 0===s?a:_(w())}function O(){var t=w(),n=y(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(g,e),p(u)}return void 0===s&&(s=setTimeout(g,e)),a}return e=Q(e)||0,m(n)&&(l=!!n.leading,h="maxWait"in n,o=h?tt(Q(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=b,O.flush=x,O}var rt=nt;function it(){this.__data__=[],this.size=0}var ot=it;function at(t,e){return t===e||t!==t&&e!==e}var st=at;function ut(t,e){var n=t.length;while(n--)if(st(t[n][0],e))return n;return-1}var ct=ut,lt=Array.prototype,ht=lt.splice;function ft(t){var e=this.__data__,n=ct(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ht.call(e,n,1),--this.size,!0}var pt=ft;function dt(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]}var vt=dt;function yt(t){return ct(this.__data__,t)>-1}var gt=yt;function _t(t,e){var n=this.__data__,r=ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var mt=_t;function bt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=ot,bt.prototype["delete"]=pt,bt.prototype.get=vt,bt.prototype.has=gt,bt.prototype.set=mt;var xt=bt;function wt(){this.__data__=new xt,this.size=0}var Ot=wt;function Tt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Mt=Tt;function Et(t){return this.__data__.get(t)}var St=Et;function At(t){return this.__data__.has(t)}var kt=At,Pt="[object AsyncFunction]",Ct="[object Function]",Lt="[object GeneratorFunction]",jt="[object Proxy]";function Dt(t){if(!m(t))return!1;var e=V(t);return e==Ct||e==Lt||e==Pt||e==jt}var Nt=Dt,Rt=b["a"]["__core-js_shared__"],Ft=Rt,It=function(){var t=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vt(t){return!!It&&It in t}var Ht=Vt,Bt=Function.prototype,zt=Bt.toString;function Gt(t){if(null!=t){try{return zt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Ut=Gt,Yt=/[\\^$.*+?()[\]{}|]/g,Xt=/^\[object .+?Constructor\]$/,Wt=Function.prototype,qt=Object.prototype,$t=Wt.toString,Zt=qt.hasOwnProperty,Jt=RegExp("^"+$t.call(Zt).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qt(t){if(!m(t)||Ht(t))return!1;var e=Nt(t)?Jt:Xt;return e.test(Ut(t))}var Kt=Qt;function te(t,e){return null==t?void 0:t[e]}var ee=te;function ne(t,e){var n=ee(t,e);return Kt(n)?n:void 0}var re=ne,ie=re(b["a"],"Map"),oe=ie,ae=re(Object,"create"),se=ae;function ue(){this.__data__=se?se(null):{},this.size=0}var ce=ue;function le(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var he=le,fe="__lodash_hash_undefined__",pe=Object.prototype,de=pe.hasOwnProperty;function ve(t){var e=this.__data__;if(se){var n=e[t];return n===fe?void 0:n}return de.call(e,t)?e[t]:void 0}var ye=ve,ge=Object.prototype,_e=ge.hasOwnProperty;function me(t){var e=this.__data__;return se?void 0!==e[t]:_e.call(e,t)}var be=me,xe="__lodash_hash_undefined__";function we(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?xe:e,this}var Oe=we;function Te(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=ce,Te.prototype["delete"]=he,Te.prototype.get=ye,Te.prototype.has=be,Te.prototype.set=Oe;var Me=Te;function Ee(){this.size=0,this.__data__={hash:new Me,map:new(oe||xt),string:new Me}}var Se=Ee;function Ae(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var ke=Ae;function Pe(t,e){var n=t.__data__;return ke(e)?n["string"==typeof e?"string":"hash"]:n.map}var Ce=Pe;function Le(t){var e=Ce(this,t)["delete"](t);return this.size-=e?1:0,e}var je=Le;function De(t){return Ce(this,t).get(t)}var Ne=De;function Re(t){return Ce(this,t).has(t)}var Fe=Re;function Ie(t,e){var n=Ce(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Ve=Ie;function He(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}He.prototype.clear=Se,He.prototype["delete"]=je,He.prototype.get=Ne,He.prototype.has=Fe,He.prototype.set=Ve;var Be=He,ze=200;function Ge(t,e){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!oe||r.length<ze-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Be(r)}return n.set(t,e),this.size=n.size,this}var Ue=Ge;function Ye(t){var e=this.__data__=new xt(t);this.size=e.size}Ye.prototype.clear=Ot,Ye.prototype["delete"]=Mt,Ye.prototype.get=St,Ye.prototype.has=kt,Ye.prototype.set=Ue;var Xe=Ye;function We(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var qe=We,$e=function(){try{var t=re(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ze=$e;function Je(t,e,n){"__proto__"==e&&Ze?Ze(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qe=Je,Ke=Object.prototype,tn=Ke.hasOwnProperty;function en(t,e,n){var r=t[e];tn.call(t,e)&&st(r,n)&&(void 0!==n||e in t)||Qe(t,e,n)}var nn=en;function rn(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Qe(n,s,u):nn(n,s,u)}return n}var on=rn;function an(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var sn=an,un="[object Arguments]";function cn(t){return B(t)&&V(t)==un}var ln=cn,hn=Object.prototype,fn=hn.hasOwnProperty,pn=hn.propertyIsEnumerable,dn=ln(function(){return arguments}())?ln:function(t){return B(t)&&fn.call(t,"callee")&&!pn.call(t,"callee")},vn=dn,yn=Array.isArray,gn=yn,_n=n("4cf0"),mn=9007199254740991,bn=/^(?:0|[1-9]\d*)$/;function xn(t,e){var n=typeof t;return e=null==e?mn:e,!!e&&("number"==n||"symbol"!=n&&bn.test(t))&&t>-1&&t%1==0&&t<e}var wn=xn,On=9007199254740991;function Tn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=On}var Mn=Tn,En="[object Arguments]",Sn="[object Array]",An="[object Boolean]",kn="[object Date]",Pn="[object Error]",Cn="[object Function]",Ln="[object Map]",jn="[object Number]",Dn="[object Object]",Nn="[object RegExp]",Rn="[object Set]",Fn="[object String]",In="[object WeakMap]",Vn="[object ArrayBuffer]",Hn="[object DataView]",Bn="[object Float32Array]",zn="[object Float64Array]",Gn="[object Int8Array]",Un="[object Int16Array]",Yn="[object Int32Array]",Xn="[object Uint8Array]",Wn="[object Uint8ClampedArray]",qn="[object Uint16Array]",$n="[object Uint32Array]",Zn={};function Jn(t){return B(t)&&Mn(t.length)&&!!Zn[V(t)]}Zn[Bn]=Zn[zn]=Zn[Gn]=Zn[Un]=Zn[Yn]=Zn[Xn]=Zn[Wn]=Zn[qn]=Zn[$n]=!0,Zn[En]=Zn[Sn]=Zn[Vn]=Zn[An]=Zn[Hn]=Zn[kn]=Zn[Pn]=Zn[Cn]=Zn[Ln]=Zn[jn]=Zn[Dn]=Zn[Nn]=Zn[Rn]=Zn[Fn]=Zn[In]=!1;var Qn=Jn;function Kn(t){return function(e){return t(e)}}var tr=Kn,er=n("01ff"),nr=er["a"]&&er["a"].isTypedArray,rr=nr?tr(nr):Qn,ir=rr,or=Object.prototype,ar=or.hasOwnProperty;function sr(t,e){var n=gn(t),r=!n&&vn(t),i=!n&&!r&&Object(_n["a"])(t),o=!n&&!r&&!i&&ir(t),a=n||r||i||o,s=a?sn(t.length,String):[],u=s.length;for(var c in t)!e&&!ar.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wn(c,u))||s.push(c);return s}var ur=sr,cr=Object.prototype;function lr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||cr;return t===n}var hr=lr;function fr(t,e){return function(n){return t(e(n))}}var pr=fr,dr=pr(Object.keys,Object),vr=dr,yr=Object.prototype,gr=yr.hasOwnProperty;function _r(t){if(!hr(t))return vr(t);var e=[];for(var n in Object(t))gr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var mr=_r;function br(t){return null!=t&&Mn(t.length)&&!Nt(t)}var xr=br;function wr(t){return xr(t)?ur(t):mr(t)}var Or=wr;function Tr(t,e){return t&&on(e,Or(e),t)}var Mr=Tr;function Er(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Sr=Er,Ar=Object.prototype,kr=Ar.hasOwnProperty;function Pr(t){if(!m(t))return Sr(t);var e=hr(t),n=[];for(var r in t)("constructor"!=r||!e&&kr.call(t,r))&&n.push(r);return n}var Cr=Pr;function Lr(t){return xr(t)?ur(t,!0):Cr(t)}var jr=Lr;function Dr(t,e){return t&&on(e,jr(e),t)}var Nr=Dr,Rr=n("d6f0");function Fr(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Ir=Fr;function Vr(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var Hr=Vr;function Br(){return[]}var zr=Br,Gr=Object.prototype,Ur=Gr.propertyIsEnumerable,Yr=Object.getOwnPropertySymbols,Xr=Yr?function(t){return null==t?[]:(t=Object(t),Hr(Yr(t),(function(e){return Ur.call(t,e)})))}:zr,Wr=Xr;function qr(t,e){return on(t,Wr(t),e)}var $r=qr;function Zr(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Jr=Zr,Qr=pr(Object.getPrototypeOf,Object),Kr=Qr,ti=Object.getOwnPropertySymbols,ei=ti?function(t){var e=[];while(t)Jr(e,Wr(t)),t=Kr(t);return e}:zr,ni=ei;function ri(t,e){return on(t,ni(t),e)}var ii=ri;function oi(t,e,n){var r=e(t);return gn(t)?r:Jr(r,n(t))}var ai=oi;function si(t){return ai(t,Or,Wr)}var ui=si;function ci(t){return ai(t,jr,ni)}var li=ci,hi=re(b["a"],"DataView"),fi=hi,pi=re(b["a"],"Promise"),di=pi,vi=re(b["a"],"Set"),yi=vi,gi=re(b["a"],"WeakMap"),_i=gi,mi="[object Map]",bi="[object Object]",xi="[object Promise]",wi="[object Set]",Oi="[object WeakMap]",Ti="[object DataView]",Mi=Ut(fi),Ei=Ut(oe),Si=Ut(di),Ai=Ut(yi),ki=Ut(_i),Pi=V;(fi&&Pi(new fi(new ArrayBuffer(1)))!=Ti||oe&&Pi(new oe)!=mi||di&&Pi(di.resolve())!=xi||yi&&Pi(new yi)!=wi||_i&&Pi(new _i)!=Oi)&&(Pi=function(t){var e=V(t),n=e==bi?t.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case Mi:return Ti;case Ei:return mi;case Si:return xi;case Ai:return wi;case ki:return Oi}return e});var Ci=Pi,Li=Object.prototype,ji=Li.hasOwnProperty;function Di(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ji.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ni=Di,Ri=b["a"].Uint8Array,Fi=Ri;function Ii(t){var e=new t.constructor(t.byteLength);return new Fi(e).set(new Fi(t)),e}var Vi=Ii;function Hi(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Bi=Hi,zi=/\w*$/;function Gi(t){var e=new t.constructor(t.source,zi.exec(t));return e.lastIndex=t.lastIndex,e}var Ui=Gi,Yi=T?T.prototype:void 0,Xi=Yi?Yi.valueOf:void 0;function Wi(t){return Xi?Object(Xi.call(t)):{}}var qi=Wi;function $i(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Zi=$i,Ji="[object Boolean]",Qi="[object Date]",Ki="[object Map]",to="[object Number]",eo="[object RegExp]",no="[object Set]",ro="[object String]",io="[object Symbol]",oo="[object ArrayBuffer]",ao="[object DataView]",so="[object Float32Array]",uo="[object Float64Array]",co="[object Int8Array]",lo="[object Int16Array]",ho="[object Int32Array]",fo="[object Uint8Array]",po="[object Uint8ClampedArray]",vo="[object Uint16Array]",yo="[object Uint32Array]";function go(t,e,n){var r=t.constructor;switch(e){case oo:return Vi(t);case Ji:case Qi:return new r(+t);case ao:return Bi(t,n);case so:case uo:case co:case lo:case ho:case fo:case po:case vo:case yo:return Zi(t,n);case Ki:return new r;case to:case ro:return new r(t);case eo:return Ui(t);case no:return new r;case io:return qi(t)}}var _o=go,mo=Object.create,bo=function(){function t(){}return function(e){if(!m(e))return{};if(mo)return mo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),xo=bo;function wo(t){return"function"!=typeof t.constructor||hr(t)?{}:xo(Kr(t))}var Oo=wo,To="[object Map]";function Mo(t){return B(t)&&Ci(t)==To}var Eo=Mo,So=er["a"]&&er["a"].isMap,Ao=So?tr(So):Eo,ko=Ao,Po="[object Set]";function Co(t){return B(t)&&Ci(t)==Po}var Lo=Co,jo=er["a"]&&er["a"].isSet,Do=jo?tr(jo):Lo,No=Do,Ro=1,Fo=2,Io=4,Vo="[object Arguments]",Ho="[object Array]",Bo="[object Boolean]",zo="[object Date]",Go="[object Error]",Uo="[object Function]",Yo="[object GeneratorFunction]",Xo="[object Map]",Wo="[object Number]",qo="[object Object]",$o="[object RegExp]",Zo="[object Set]",Jo="[object String]",Qo="[object Symbol]",Ko="[object WeakMap]",ta="[object ArrayBuffer]",ea="[object DataView]",na="[object Float32Array]",ra="[object Float64Array]",ia="[object Int8Array]",oa="[object Int16Array]",aa="[object Int32Array]",sa="[object Uint8Array]",ua="[object Uint8ClampedArray]",ca="[object Uint16Array]",la="[object Uint32Array]",ha={};function fa(t,e,n,r,i,o){var a,s=e&Ro,u=e&Fo,c=e&Io;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!m(t))return t;var l=gn(t);if(l){if(a=Ni(t),!s)return Ir(t,a)}else{var h=Ci(t),f=h==Uo||h==Yo;if(Object(_n["a"])(t))return Object(Rr["a"])(t,s);if(h==qo||h==Vo||f&&!i){if(a=u||f?{}:Oo(t),!s)return u?ii(t,Nr(a,t)):$r(t,Mr(a,t))}else{if(!ha[h])return i?t:{};a=_o(t,h,s)}}o||(o=new Xe);var p=o.get(t);if(p)return p;o.set(t,a),No(t)?t.forEach((function(r){a.add(fa(r,e,n,r,t,o))})):ko(t)&&t.forEach((function(r,i){a.set(i,fa(r,e,n,i,t,o))}));var d=c?u?li:ui:u?keysIn:Or,v=l?void 0:d(t);return qe(v||t,(function(r,i){v&&(i=r,r=t[i]),nn(a,i,fa(r,e,n,i,t,o))})),a}ha[Vo]=ha[Ho]=ha[ta]=ha[ea]=ha[Bo]=ha[zo]=ha[na]=ha[ra]=ha[ia]=ha[oa]=ha[aa]=ha[Xo]=ha[Wo]=ha[qo]=ha[$o]=ha[Zo]=ha[Jo]=ha[Qo]=ha[sa]=ha[ua]=ha[ca]=ha[la]=!0,ha[Go]=ha[Uo]=ha[Ko]=!1;var pa=fa,da=1,va=4;function ya(t){return pa(t,da|va)}var ga=ya;function _a(t,e,n){(void 0===n||st(t[e],n))&&(void 0!==n||e in t)||Qe(t,e,n)}var ma=_a;function ba(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var xa=ba,wa=xa(),Oa=wa;function Ta(t){return B(t)&&xr(t)}var Ma=Ta,Ea="[object Object]",Sa=Function.prototype,Aa=Object.prototype,ka=Sa.toString,Pa=Aa.hasOwnProperty,Ca=ka.call(Object);function La(t){if(!B(t)||V(t)!=Ea)return!1;var e=Kr(t);if(null===e)return!0;var n=Pa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ka.call(n)==Ca}var ja=La;function Da(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Na=Da;function Ra(t){return on(t,jr(t))}var Fa=Ra;function Ia(t,e,n,r,i,o,a){var s=Na(t,n),u=Na(e,n),c=a.get(u);if(c)ma(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=gn(u),p=!f&&Object(_n["a"])(u),d=!f&&!p&&ir(u);l=u,f||p||d?gn(s)?l=s:Ma(s)?l=Ir(s):p?(h=!1,l=Object(Rr["a"])(u,!0)):d?(h=!1,l=Zi(u,!0)):l=[]:ja(u)||vn(u)?(l=s,vn(s)?l=Fa(s):m(s)&&!Nt(s)||(l=Oo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),ma(t,n,l)}}var Va=Ia;function Ha(t,e,n,r,i){t!==e&&Oa(e,(function(o,a){if(i||(i=new Xe),m(o))Va(t,e,a,n,Ha,r,i);else{var s=r?r(Na(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),ma(t,a,s)}}),jr)}var Ba=Ha;function za(t){return t}var Ga=za;function Ua(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ya=Ua,Xa=Math.max;function Wa(t,e,n){return e=Xa(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Xa(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),Ya(t,this,s)}}var qa=Wa;function $a(t){return function(){return t}}var Za=$a,Ja=Ze?function(t,e){return Ze(t,"toString",{configurable:!0,enumerable:!1,value:Za(e),writable:!0})}:Ga,Qa=Ja,Ka=800,ts=16,es=Date.now;function ns(t){var e=0,n=0;return function(){var r=es(),i=ts-(r-n);if(n=r,i>0){if(++e>=Ka)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var rs=ns,is=rs(Qa),os=is;function as(t,e){return os(qa(t,e,Ga),t+"")}var ss=as;function us(t,e,n){if(!m(n))return!1;var r=typeof e;return!!("number"==r?xr(n)&&wn(e,n.length):"string"==r&&e in n)&&st(n[e],t)}var cs=us;function ls(t){return ss((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&cs(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var hs=ls,fs=hs((function(t,e,n){Ba(t,e,n)})),ps=fs,ds="__lodash_hash_undefined__";function vs(t){return this.__data__.set(t,ds),this}var ys=vs;function gs(t){return this.__data__.has(t)}var _s=gs;function ms(t){var e=-1,n=null==t?0:t.length;this.__data__=new Be;while(++e<n)this.add(t[e])}ms.prototype.add=ms.prototype.push=ys,ms.prototype.has=_s;var bs=ms;function xs(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var ws=xs;function Os(t){return t!==t}var Ts=Os;function Ms(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Es=Ms;function Ss(t,e,n){return e===e?Es(t,e,n):ws(t,Ts,n)}var As=Ss;function ks(t,e){var n=null==t?0:t.length;return!!n&&As(t,e,0)>-1}var Ps=ks;function Cs(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var Ls=Cs;function js(t,e){return t.has(e)}var Ds=js;function Ns(){}var Rs=Ns;function Fs(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Is=Fs,Vs=1/0,Hs=yi&&1/Is(new yi([,-0]))[1]==Vs?function(t){return new yi(t)}:Rs,Bs=Hs,zs=200;function Gs(t,e,n){var r=-1,i=Ps,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ls;else if(o>=zs){var c=e?null:Bs(t);if(c)return Is(c);a=!1,i=Ds,u=new bs}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var Us=Gs;function Ys(t){return t&&t.length?Us(t):[]}var Xs,Ws=Ys;(function(t){function e(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function n(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function r(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function i(t){return t[0].toUpperCase()+t.slice(1)}function o(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n<1?n.toPrecision(1):Math.floor(n)}function a(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function s(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function u(t){return t.each((function(){this.parentNode.appendChild(this)}))}t.debounce=rt,t.clone=ga,t.merge=ps,t.removeArrayDuplicates=Ws,t.getDimensions=e,t.getTranslationValues=n,t.getTranformOffsets=r,t.capitalizeFirstLetter=i,t.convertValueToPercentage=o,t.arrayDifferences=a,t.getDuplicateValues=s,t.moveToFront=u,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(!r[a])return null;r=r[a]}return r}return null}})(Xs||(Xs={}));var qs={position:h.BOTTOM,clickable:!0,items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},$s={x:{numberOfTicks:5},y:{numberOfTicks:5}},Zs={datapoint:{horizontalOffset:10,enabled:!0},title:{verticalOffset:.75,width:.4}},Js=Xs.merge({},Zs,{gridline:{enabled:!0,threshold:.25}}),Qs=Xs.merge({},Js,{datapoint:{verticalOffset:4},gridline:{enabled:!1}}),Ks={},tu={addSpaceOnEdges:!0},eu={width:"100%",height:"100%",resizable:!0,theme:o.DEFAULT,tooltip:Zs,legend:qs,style:{prefix:"cc"}},nu=Xs.merge({},eu,{axes:Ks,timeScale:tu,grid:$s,tooltip:Js}),ru=Xs.merge({},nu,{bars:{maxWidth:16},timeScale:Xs.merge(tu,{addSpaceOnEdges:!0}),tooltip:Qs}),iu=Xs.merge({},ru,{}),ou=Xs.merge({},ru,{}),au=Xs.merge({},ru,{bars:Xs.merge({},ru.bars,{dividerSize:1.5})}),su=Xs.merge({},nu,{points:{radius:3,filled:!1}}),uu=Xs.merge({},nu,{points:{radius:4,fillOpacity:.3,filled:!0}}),cu=Xs.merge({},eu,{pie:{radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2},labels:{formatter:null}}}),lu=Xs.merge({},cu,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}}}}),hu={chart:eu,axisChart:nu,simpleBarChart:iu,groupedBarChart:ou,stackedBarChart:au,lineChart:su,scatterChart:uu,pieChart:cu,donutChart:lu},fu={opacity:{unselected:.3,selected:1}},pu={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},du={ticks:{number:7,rotateIfSmallerThan:30}},vu={default:{size:24}},yu="#fff0f1",gu="#fcd0d3",_u="#ffa4a9",mu="#ff767c",bu="#fb4b53",xu="#da1e28",wu="#a51920",Ou="#750e13",Tu="#570408",Mu="#2c080a",Eu={10:yu,20:gu,30:_u,40:mu,50:bu,60:xu,70:wu,80:Ou,90:Tu,100:Mu},Su="#fff0f6",Au="#ffcfe1",ku="#ffa0c2",Pu="#fa75a6",Cu="#ee538b",Lu="#d12765",ju="#a11950",Du="#760a3a",Nu="#57002b",Ru="#2a0a16",Fu={10:Su,20:Au,30:ku,40:Pu,50:Cu,60:Lu,70:ju,80:Du,90:Nu,100:Ru},Iu="#f7f1ff",Vu="#e6d6ff",Hu="#d0b0ff",Bu="#bb8eff",zu="#a66efa",Gu="#8a3ffc",Uu="#6e32c9",Yu="#4f2196",Xu="#38146b",Wu="#1e1033",qu={10:Iu,20:Vu,30:Hu,40:Bu,50:zu,60:Gu,70:Uu,80:Yu,90:Xu,100:Wu},$u="#edf4ff",Zu="#c9deff",Ju="#97c1ff",Qu="#6ea6ff",Ku="#408bfc",tc="#0062ff",ec="#054ada",nc="#0530ad",rc="#061f80",ic="#051243",oc={10:$u,20:Zu,30:Ju,40:Qu,50:Ku,60:tc,70:ec,80:nc,90:rc,100:ic},ac="#e3f6ff",sc="#b3e6ff",uc="#6ccaff",cc="#30b0ff",lc="#1191e6",hc="#0072c3",fc="#0058a1",pc="#003d73",dc="#002b50",vc="#07192b",yc={10:ac,20:sc,30:uc,40:cc,50:lc,60:hc,70:fc,80:pc,90:dc,100:vc},gc="#dbfbfb",_c="#92eeee",mc="#20d5d2",bc="#00bab6",xc="#009c98",wc="#007d79",Oc="#006161",Tc="#004548",Mc="#003137",Ec="#081a1c",Sc={10:gc,20:_c,30:mc,40:bc,50:xc,60:wc,70:Oc,80:Tc,90:Mc,100:Ec},Ac="#dafbe4",kc="#9deeb2",Pc="#56d679",Cc="#3dbb61",Lc="#24a148",jc="#198038",Dc="#10642a",Nc="#054719",Rc="#01330f",Fc="#081b09",Ic={10:Ac,20:kc,30:Pc,40:Cc,50:Lc,60:jc,70:Dc,80:Nc,90:Rc,100:Fc};var Vc=function(t,e){return t[e]},Hc={blue:function(t){return Vc(oc,t)},cyan:function(t){return Vc(yc,t)},green:function(t){return Vc(Ic,t)},magenta:function(t){return Vc(Fu,t)},purple:function(t){return Vc(qu,t)},red:function(t){return Vc(Eu,t)},teal:function(t){return Vc(Sc,t)}},Bc=[Hc.purple(70),Hc.cyan(50),Hc.teal(70),Hc.magenta(70),Hc.red(50),Hc.red(90),Hc.green(60),Hc.blue(80),Hc.magenta(50),"#b28600",Hc.teal(50),Hc.cyan(90),"#8a3800",Hc.purple(50)],zc=(Hc.purple(60),Hc.cyan(40),Hc.teal(60),Hc.magenta(40),Hc.red(50),Hc.red(10),Hc.green(30),Hc.blue(50),Hc.magenta(60),Hc.teal(40),Hc.cyan(20),Hc.purple(30),Bc),Gc=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Uc=function(t){return 1===t.length&&(t=Yc(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function Yc(t){return function(e,n){return Gc(t(e),n)}}var Xc=Uc(Gc),Wc=Xc.right,qc=(Xc.left,Wc);var $c=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},Zc=Array.prototype,Jc=(Zc.slice,Zc.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),Qc=Math.sqrt(50),Kc=Math.sqrt(10),tl=Math.sqrt(2),el=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=nl(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function nl(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Qc?10:o>=Kc?5:o>=tl?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Qc?10:o>=Kc?5:o>=tl?2:1)}function rl(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Qc?i*=10:o>=Kc?i*=5:o>=tl&&(i*=2),e<t?-i:i}var il=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r};function ol(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var al="$";function sl(){}function ul(t,e){var n=new sl;if(t instanceof sl)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}sl.prototype=ul.prototype={constructor:sl,has:function(t){return al+t in this},get:function(t){return this[al+t]},set:function(t,e){return this[al+t]=e,this},remove:function(t){var e=al+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===al&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===al&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===al&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===al&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===al&&++t;return t},empty:function(){for(var t in this)if(t[0]===al)return!1;return!0},each:function(t){for(var e in this)e[0]===al&&t(this[e],e.slice(1),this)}};var cl=ul;function ll(){}var hl=cl.prototype;function fl(t,e){var n=new ll;if(t instanceof ll)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}ll.prototype=fl.prototype={constructor:ll,has:hl.has,add:function(t){return t+="",this[al+t]=t,this},remove:hl.remove,clear:hl.clear,values:hl.keys,size:hl.size,empty:hl.empty,each:hl.each};var pl=Array.prototype,dl=pl.map,vl=pl.slice,yl={name:"implicit"};function gl(){var t=cl(),e=[],n=[],r=yl;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==yl)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=cl();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=vl.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gl(e,n).unknown(r)},ol.apply(i,arguments),i}function _l(){var t,e,n=gl().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=Jc(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return _l(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},ol.apply(l(),arguments)}var ml=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function bl(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xl(){}var wl=.7,Ol=1/wl,Tl="\\s*([+-]?\\d+)\\s*",Ml="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",El="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sl=/^#([0-9a-f]{3,8})$/,Al=new RegExp("^rgb\\("+[Tl,Tl,Tl]+"\\)$"),kl=new RegExp("^rgb\\("+[El,El,El]+"\\)$"),Pl=new RegExp("^rgba\\("+[Tl,Tl,Tl,Ml]+"\\)$"),Cl=new RegExp("^rgba\\("+[El,El,El,Ml]+"\\)$"),Ll=new RegExp("^hsl\\("+[Ml,El,El]+"\\)$"),jl=new RegExp("^hsla\\("+[Ml,El,El,Ml]+"\\)$"),Dl={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 Nl(){return this.rgb().formatHex()}function Rl(){return ql(this).formatHsl()}function Fl(){return this.rgb().formatRgb()}function Il(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Sl.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Vl(e):3===n?new Gl(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Gl(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Gl(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=Al.exec(t))?new Gl(e[1],e[2],e[3],1):(e=kl.exec(t))?new Gl(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pl.exec(t))?Hl(e[1],e[2],e[3],e[4]):(e=Cl.exec(t))?Hl(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ll.exec(t))?Wl(e[1],e[2]/100,e[3]/100,1):(e=jl.exec(t))?Wl(e[1],e[2]/100,e[3]/100,e[4]):Dl.hasOwnProperty(t)?Vl(Dl[t]):"transparent"===t?new Gl(NaN,NaN,NaN,0):null}function Vl(t){return new Gl(t>>16&255,t>>8&255,255&t,1)}function Hl(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gl(t,e,n,r)}function Bl(t){return t instanceof xl||(t=Il(t)),t?(t=t.rgb(),new Gl(t.r,t.g,t.b,t.opacity)):new Gl}function zl(t,e,n,r){return 1===arguments.length?Bl(t):new Gl(t,e,n,null==r?1:r)}function Gl(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ul(){return"#"+Xl(this.r)+Xl(this.g)+Xl(this.b)}function Yl(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xl(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Wl(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zl(t,e,n,r)}function ql(t){if(t instanceof Zl)return new Zl(t.h,t.s,t.l,t.opacity);if(t instanceof xl||(t=Il(t)),!t)return new Zl;if(t instanceof Zl)return t;t=t.rgb();var e=t.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 Zl(a,s,u,t.opacity)}function $l(t,e,n,r){return 1===arguments.length?ql(t):new Zl(t,e,n,null==r?1:r)}function Zl(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Jl(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ql(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}ml(xl,Il,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Nl,formatHex:Nl,formatHsl:Rl,formatRgb:Fl,toString:Fl}),ml(Gl,zl,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new Gl(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Gl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ul,formatHex:Ul,formatRgb:Yl,toString:Yl})),ml(Zl,$l,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new Zl(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Zl(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Gl(Jl(t>=240?t-240:t+120,i,r),Jl(t,i,r),Jl(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Kl=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Ql((n-r/e)*e,a,i,o,s)}},th=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Ql((n-r/e)*e,i,o,a,s)}},eh=function(t){return function(){return t}};function nh(t,e){return function(n){return t+n*e}}function rh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ih(t,e){var n=e-t;return n?nh(t,n>180||n<-180?n-360*Math.round(n/360):n):eh(isNaN(t)?e:t)}function oh(t){return 1===(t=+t)?ah:function(e,n){return n-e?rh(e,n,t):eh(isNaN(e)?n:e)}}function ah(t,e){var n=e-t;return n?nh(t,n):eh(isNaN(t)?e:t)}var sh=function t(e){var n=oh(e);function r(t,e){var r=n((t=zl(t)).r,(e=zl(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ah(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function uh(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=zl(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}uh(Kl),uh(th);var ch=function(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]=wh(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}},lh=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},hh=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},fh=function(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]=wh(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},ph=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dh=new RegExp(ph.source,"g");function vh(t){return function(){return t}}function yh(t){return function(e){return t(e)+""}}var gh,_h,mh,bh,xh=function(t,e){var n,r,i,o=ph.lastIndex=dh.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=ph.exec(t))&&(r=dh.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:hh(n,r)})),o=dh.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?yh(u[0].x):vh(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},wh=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?eh(e):("number"===r?hh:"string"===r?(n=Il(e))?(e=n,sh):xh:e instanceof Il?sh:e instanceof Date?lh:Array.isArray(e)?ch:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?fh:hh)(t,e)},Oh=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},Th=180/Math.PI,Mh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Eh=function(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)*Th,skewX:Math.atan(u)*Th,scaleX:a,scaleY:s}};function Sh(t){return"none"===t?Mh:(gh||(gh=document.createElement("DIV"),_h=document.documentElement,mh=document.defaultView),gh.style.transform=t,t=mh.getComputedStyle(_h.appendChild(gh),null).getPropertyValue("transform"),_h.removeChild(gh),t=t.slice(7,-1).split(","),Eh(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Ah(t){return null==t?Mh:(bh||(bh=document.createElementNS("http://www.w3.org/2000/svg","g")),bh.setAttribute("transform",t),(t=bh.transform.baseVal.consolidate())?(t=t.matrix,Eh(t.a,t.b,t.c,t.d,t.e,t.f)):Mh)}function kh(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(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:hh(t,i)},{i:u-2,x:hh(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(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:hh(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:hh(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function 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:hh(t,n)},{i:s-2,x:hh(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var Ph=kh(Sh,"px, ","px)","deg)"),Ch=kh(Ah,", ",")",")");Math.SQRT2;function Lh(t){return function(e,n){var r=t((e=$l(e)).h,(n=$l(n)).h),i=ah(e.s,n.s),o=ah(e.l,n.l),a=ah(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}Lh(ih),Lh(ah);var jh=Math.PI/180,Dh=180/Math.PI,Nh=18,Rh=.96422,Fh=1,Ih=.82521,Vh=4/29,Hh=6/29,Bh=3*Hh*Hh,zh=Hh*Hh*Hh;function Gh(t){if(t instanceof Yh)return new Yh(t.l,t.a,t.b,t.opacity);if(t instanceof Qh)return Kh(t);t instanceof Gl||(t=Bl(t));var e,n,r=$h(t.r),i=$h(t.g),o=$h(t.b),a=Xh((.2225045*r+.7168786*i+.0606169*o)/Fh);return r===i&&i===o?e=n=a:(e=Xh((.4360747*r+.3850649*i+.1430804*o)/Rh),n=Xh((.0139322*r+.0971045*i+.7141733*o)/Ih)),new Yh(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Uh(t,e,n,r){return 1===arguments.length?Gh(t):new Yh(t,e,n,null==r?1:r)}function Yh(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Xh(t){return t>zh?Math.pow(t,1/3):t/Bh+Vh}function Wh(t){return t>Hh?t*t*t:Bh*(t-Vh)}function qh(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $h(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Zh(t){if(t instanceof Qh)return new Qh(t.h,t.c,t.l,t.opacity);if(t instanceof Yh||(t=Gh(t)),0===t.a&&0===t.b)return new Qh(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Dh;return new Qh(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Jh(t,e,n,r){return 1===arguments.length?Zh(t):new Qh(t,e,n,null==r?1:r)}function Qh(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Kh(t){if(isNaN(t.h))return new Yh(t.l,0,0,t.opacity);var e=t.h*jh;return new Yh(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function tf(t){return function(e,n){var r=t((e=Jh(e)).h,(n=Jh(n)).h),i=ah(e.c,n.c),o=ah(e.l,n.l),a=ah(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}ml(Yh,Uh,bl(xl,{brighter:function(t){return new Yh(this.l+Nh*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Yh(this.l-Nh*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Rh*Wh(e),t=Fh*Wh(t),n=Ih*Wh(n),new Gl(qh(3.1338561*e-1.6168667*t-.4906146*n),qh(-.9787684*e+1.9161415*t+.033454*n),qh(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),ml(Qh,Jh,bl(xl,{brighter:function(t){return new Qh(this.h,this.c,this.l+Nh*(null==t?1:t),this.opacity)},darker:function(t){return new Qh(this.h,this.c,this.l-Nh*(null==t?1:t),this.opacity)},rgb:function(){return Kh(this).rgb()}}));tf(ih),tf(ah);var ef=-.14861,nf=1.78277,rf=-.29227,of=-.90649,af=1.97294,sf=af*of,uf=af*nf,cf=nf*rf-of*ef;function lf(t){if(t instanceof ff)return new ff(t.h,t.s,t.l,t.opacity);t instanceof Gl||(t=Bl(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(cf*r+sf*e-uf*n)/(cf+sf-uf),o=r-i,a=(af*(n-i)-rf*o)/of,s=Math.sqrt(a*a+o*o)/(af*i*(1-i)),u=s?Math.atan2(a,o)*Dh-120:NaN;return new ff(u<0?u+360:u,s,i,t.opacity)}function hf(t,e,n,r){return 1===arguments.length?lf(t):new ff(t,e,n,null==r?1:r)}function ff(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function pf(t){return function e(n){function r(e,r){var i=t((e=hf(e)).h,(r=hf(r)).h),o=ah(e.s,r.s),a=ah(e.l,r.l),s=ah(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}ml(ff,hf,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new ff(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new ff(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*jh,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Gl(255*(e+n*(ef*r+nf*i)),255*(e+n*(rf*r+of*i)),255*(e+n*(af*r)),this.opacity)}}));pf(ih),pf(ah);var df=function(t){return function(){return t}},vf=function(t){return+t},yf=[0,1];function gf(t){return t}function _f(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:df(isNaN(e)?NaN:.5)}function mf(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function bf(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=_f(i,r),o=n(a,o)):(r=_f(r,i),o=n(o,a)),function(t){return o(r(t))}}function xf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=_f(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=qc(t,e,1,r)-1;return o[n](i[n](e))}}function wf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Of(){var t,e,n,r,i,o,a=yf,s=yf,u=wh,c=gf;function l(){return r=Math.min(a.length,s.length)>2?xf:bf,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),hh)))(n)))},h.domain=function(t){return arguments.length?(a=dl.call(t,vf),c===gf||(c=mf(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=vl.call(t),l()):s.slice()},h.rangeRound=function(t){return s=vl.call(t),u=Oh,l()},h.clamp=function(t){return arguments.length?(c=t?mf(a):gf,h):c!==gf},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Tf(t,e){return Of()(t,e)}var Mf=function(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)]},Ef=function(t){return t=Mf(Math.abs(t)),t?t[1]:NaN},Sf=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},Af=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},kf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pf(t){if(!(e=kf.exec(t)))throw new Error("invalid format: "+t);var e;return new Cf({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 Cf(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+""}Pf.prototype=Cf.prototype,Cf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Lf,jf,Df,Nf,Rf=function(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(i>0){if(!+t[r])break t;i=0}break}return i>0?t.slice(0,i)+t.slice(e+1):t},Ff=function(t,e){var n=Mf(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Lf=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")+Mf(t,Math.max(0,e+o-1))[0]},If=function(t,e){var n=Mf(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")},Vf={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return If(100*t,e)},r:If,s:Ff,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Hf=function(t){return t},Bf=Array.prototype.map,zf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Gf=function(t){var e=void 0===t.grouping||void 0===t.thousands?Hf:Sf(Bf.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?Hf:Af(Bf.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 c(t){t=Pf(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,y=t.precision,g=t.trim,_=t.type;"n"===_?(v=!0,_="g"):Vf[_]||(void 0===y&&(y=12),g=!0,_="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var m="$"===f?n:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===f?r:/[%p]/.test(_)?a:"",x=Vf[_],w=/[defgprs%]/.test(_);function O(t){var n,r,a,f=m,O=b;if("c"===_)O=x(t)+O,t="";else{t=+t;var T=t<0;if(t=isNaN(t)?u:x(Math.abs(t),y),g&&(t=Rf(t)),T&&0===+t&&(T=!1),f=(T?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===_?zf[8+Lf/3]:"")+O+(T&&"("===h?")":""),w){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var M=f.length+t.length+O.length,E=M<d?new Array(d-M+1).join(c):"";switch(v&&p&&(t=e(E+t,E.length?d-O.length:1/0),E=""),l){case"<":t=f+t+O+E;break;case"=":t=f+E+t+O;break;case"^":t=E.slice(0,M=E.length>>1)+f+t+O+E.slice(M);break;default:t=E+f+t+O;break}return o(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=Pf(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3))),i=Math.pow(10,-r),o=zf[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Uf(t){return jf=Gf(t),Df=jf.format,Nf=jf.formatPrefix,jf}Uf({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Yf=function(t){return Math.max(0,-Ef(Math.abs(t)))},Xf=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3)))-Ef(Math.abs(t)))},Wf=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ef(e)-Ef(t))+1},qf=function(t,e,n,r){var i,o=rl(t,e,n);switch(r=Pf(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Xf(o,a))||(r.precision=i),Nf(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Wf(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Yf(o))||(r.precision=i-2*("%"===r.type));break}return Df(r)};function $f(t){var e=t.domain;return t.ticks=function(t){var n=e();return el(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return qf(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=nl(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=nl(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=nl(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Zf(){var t=Tf(gf,gf);return t.copy=function(){return wf(t,Zf())},ol.apply(t,arguments),$f(t)}var Jf=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function Qf(t){return Math.log(t)}function Kf(t){return Math.exp(t)}function tp(t){return-Math.log(-t)}function ep(t){return-Math.exp(-t)}function np(t){return isFinite(t)?+("1e"+t):t<0?0:t}function rp(t){return 10===t?np:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function ip(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function op(t){return function(e){return-t(-e)}}function ap(t){var e,n,r=t(Qf,Kf),i=r.domain,o=10;function a(){return e=ip(o),n=rp(o),i()[0]<0?(e=op(e),n=op(n),t(tp,ep)):t(Qf,Kf),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=el(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Df(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(Jf(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function sp(){var t=ap(Of()).domain([1,10]);return t.copy=function(){return wf(t,sp()).base(t.base())},ol.apply(t,arguments),t}var up=new Date,cp=new Date;function lp(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return lp((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return up.setTime(+e),cp.setTime(+r),t(up),t(cp),Math.floor(n(up,cp))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var hp=lp((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));hp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lp((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var fp=hp,pp=(hp.range,lp((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),dp=pp,vp=(pp.range,1e3),yp=6e4,gp=36e5,_p=864e5,mp=6048e5;function bp(t){return lp((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yp)/mp}))}var xp=bp(0),wp=bp(1),Op=bp(2),Tp=bp(3),Mp=bp(4),Ep=bp(5),Sp=bp(6),Ap=(xp.range,wp.range,Op.range,Tp.range,Mp.range,Ep.range,Sp.range,lp((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yp)/_p}),(function(t){return t.getDate()-1}))),kp=Ap,Pp=(Ap.range,lp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*vp-t.getMinutes()*yp)}),(function(t,e){t.setTime(+t+e*gp)}),(function(t,e){return(e-t)/gp}),(function(t){return t.getHours()}))),Cp=Pp,Lp=(Pp.range,lp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*vp)}),(function(t,e){t.setTime(+t+e*yp)}),(function(t,e){return(e-t)/yp}),(function(t){return t.getMinutes()}))),jp=Lp,Dp=(Lp.range,lp((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*vp)}),(function(t,e){return(e-t)/vp}),(function(t){return t.getUTCSeconds()}))),Np=Dp,Rp=(Dp.range,lp((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Rp.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lp((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Rp:null};var Fp=Rp;Rp.range;function Ip(t){return lp((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/mp}))}var Vp=Ip(0),Hp=Ip(1),Bp=Ip(2),zp=Ip(3),Gp=Ip(4),Up=Ip(5),Yp=Ip(6),Xp=(Vp.range,Hp.range,Bp.range,zp.range,Gp.range,Up.range,Yp.range,lp((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/_p}),(function(t){return t.getUTCDate()-1}))),Wp=Xp,qp=(Xp.range,lp((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));qp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lp((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var $p=qp;qp.range;function Zp(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Jp(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Qp(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Kp(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=ld(i),l=hd(i),h=ld(o),f=hd(o),p=ld(a),d=hd(a),v=ld(s),y=hd(s),g=ld(u),_=hd(u),m={a:j,A:D,b:N,B:R,c:null,d:Cd,e:Cd,f:Rd,H:Ld,I:jd,j:Dd,L:Nd,m:Fd,M:Id,p:F,Q:fv,s:pv,S:Vd,u:Hd,U:Bd,V:zd,w:Gd,W:Ud,x:null,X:null,y:Yd,Y:Xd,Z:Wd,"%":hv},b={a:I,A:V,b:H,B:B,c:null,d:qd,e:qd,f:Kd,H:$d,I:Zd,j:Jd,L:Qd,m:tv,M:ev,p:z,Q:fv,s:pv,S:nv,u:rv,U:iv,V:ov,w:av,W:sv,x:null,X:null,y:uv,Y:cv,Z:lv,"%":hv},x={a:E,A:S,b:A,B:k,c:P,d:xd,e:xd,f:Sd,H:Od,I:Od,j:wd,L:Ed,m:bd,M:Td,p:M,Q:kd,s:Pd,S:Md,u:pd,U:dd,V:vd,w:fd,W:yd,x:C,X:L,y:_d,Y:gd,Z:md,"%":Ad};function w(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=id[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(n){var r,i,o=Qp(1900),a=T(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=Jp(Qp(o.y)),i=r.getUTCDay(),r=i>4||0===i?Hp.ceil(r):Hp(r),r=Wp.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=e(Qp(o.y)),i=r.getDay(),r=i>4||0===i?wp.ceil(r):wp(r),r=kp.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Jp(Qp(o.y)).getUTCDay():e(Qp(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Jp(o)):e(o)}}function T(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=x[i in id?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function M(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function E(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function S(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1}function k(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return T(t,e,n,r)}function C(t,e,r){return T(t,n,e,r)}function L(t,e,n){return T(t,r,e,n)}function j(t){return a[t.getDay()]}function D(t){return o[t.getDay()]}function N(t){return u[t.getMonth()]}function R(t){return s[t.getMonth()]}function F(t){return i[+(t.getHours()>=12)]}function I(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function B(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}return(m.x=w(n,m),m.X=w(r,m),m.c=w(e,m),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",Zp);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t,Jp);return e.toString=function(){return t},e}})}var td,ed,nd,rd,id={"-":"",_:" ",0:"0"},od=/^\s*\d+/,ad=/^%/,sd=/[\\^$*+?|[\]().{}]/g;function ud(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function cd(t){return t.replace(sd,"\\$&")}function ld(t){return new RegExp("^(?:"+t.map(cd).join("|")+")","i")}function hd(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function fd(t,e,n){var r=od.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function pd(t,e,n){var r=od.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function dd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function vd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function yd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function gd(t,e,n){var r=od.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function _d(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function md(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function xd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function wd(t,e,n){var r=od.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Od(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Td(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Md(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ed(t,e,n){var r=od.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Sd(t,e,n){var r=od.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ad(t,e,n){var r=ad.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function kd(t,e,n){var r=od.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Pd(t,e,n){var r=od.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Cd(t,e){return ud(t.getDate(),e,2)}function Ld(t,e){return ud(t.getHours(),e,2)}function jd(t,e){return ud(t.getHours()%12||12,e,2)}function Dd(t,e){return ud(1+kp.count(fp(t),t),e,3)}function Nd(t,e){return ud(t.getMilliseconds(),e,3)}function Rd(t,e){return Nd(t,e)+"000"}function Fd(t,e){return ud(t.getMonth()+1,e,2)}function Id(t,e){return ud(t.getMinutes(),e,2)}function Vd(t,e){return ud(t.getSeconds(),e,2)}function Hd(t){var e=t.getDay();return 0===e?7:e}function Bd(t,e){return ud(xp.count(fp(t),t),e,2)}function zd(t,e){var n=t.getDay();return t=n>=4||0===n?Mp(t):Mp.ceil(t),ud(Mp.count(fp(t),t)+(4===fp(t).getDay()),e,2)}function Gd(t){return t.getDay()}function Ud(t,e){return ud(wp.count(fp(t),t),e,2)}function Yd(t,e){return ud(t.getFullYear()%100,e,2)}function Xd(t,e){return ud(t.getFullYear()%1e4,e,4)}function Wd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ud(e/60|0,"0",2)+ud(e%60,"0",2)}function qd(t,e){return ud(t.getUTCDate(),e,2)}function $d(t,e){return ud(t.getUTCHours(),e,2)}function Zd(t,e){return ud(t.getUTCHours()%12||12,e,2)}function Jd(t,e){return ud(1+Wp.count($p(t),t),e,3)}function Qd(t,e){return ud(t.getUTCMilliseconds(),e,3)}function Kd(t,e){return Qd(t,e)+"000"}function tv(t,e){return ud(t.getUTCMonth()+1,e,2)}function ev(t,e){return ud(t.getUTCMinutes(),e,2)}function nv(t,e){return ud(t.getUTCSeconds(),e,2)}function rv(t){var e=t.getUTCDay();return 0===e?7:e}function iv(t,e){return ud(Vp.count($p(t),t),e,2)}function ov(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Gp(t):Gp.ceil(t),ud(Gp.count($p(t),t)+(4===$p(t).getUTCDay()),e,2)}function av(t){return t.getUTCDay()}function sv(t,e){return ud(Hp.count($p(t),t),e,2)}function uv(t,e){return ud(t.getUTCFullYear()%100,e,2)}function cv(t,e){return ud(t.getUTCFullYear()%1e4,e,4)}function lv(){return"+0000"}function hv(){return"%"}function fv(t){return+t}function pv(t){return Math.floor(+t/1e3)}function dv(t){return td=Kp(t),ed=td.format,td.parse,nd=td.utcFormat,rd=td.utcParse,td}dv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var vv="%Y-%m-%dT%H:%M:%S.%LZ";function yv(t){return t.toISOString()}Date.prototype.toISOString||nd(vv);function gv(t){var e=new Date(t);return isNaN(e)?null:e}+new Date("2000-01-01T00:00:00.000Z")||rd(vv);var _v=1e3,mv=60*_v,bv=60*mv,xv=24*bv,wv=7*xv,Ov=30*xv,Tv=365*xv;function Mv(t){return new Date(t)}function Ev(t){return t instanceof Date?+t:+new Date(+t)}function Sv(t,e,n,r,i,o,a,s,u){var c=Tf(gf,gf),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),g=u("%b %d"),_=u("%B"),m=u("%Y"),b=[[a,1,_v],[a,5,5*_v],[a,15,15*_v],[a,30,30*_v],[o,1,mv],[o,5,5*mv],[o,15,15*mv],[o,30,30*mv],[i,1,bv],[i,3,3*bv],[i,6,6*bv],[i,12,12*bv],[r,1,xv],[r,2,2*xv],[n,1,wv],[e,1,Ov],[e,3,3*Ov],[t,1,Tv]];function x(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?y:g:t(s)<s?_:m)(s)}function w(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=Uc((function(t){return t[2]})).right(b,o);a===b.length?(i=rl(n/Tv,r/Tv,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(rl(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(dl.call(t,Ev)):h().map(Mv)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=w(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?x:u(e)},c.nice=function(t,e){var n=h();return(t=w(t,n[0],n[n.length-1],e))?h(Jf(n,t)):c},c.copy=function(){return wf(c,Sv(t,e,n,r,i,o,a,s,u))},c}var Av=function(){return ol.apply(Sv(fp,dp,xp,kp,Cp,jp,Np,Fp,ed).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},kv=lp((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Pv=(kv.range,lp((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*gp)}),(function(t,e){return(e-t)/gp}),(function(t){return t.getUTCHours()}))),Cv=(Pv.range,lp((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*yp)}),(function(t,e){return(e-t)/yp}),(function(t){return t.getUTCMinutes()})));Cv.range;var Lv=function(){function t(t){this.state={options:{}},this.patternScale={},this.colorScale={},this.services=t}return t.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data"));return n.datasets=n.datasets.filter((function(n){return e[n.label]===t})),n},t.prototype.getData=function(){return this.get("data")},t.prototype.setData=function(t){var e=this.generateDataLabels(t);return this.set({data:t,dataLabels:e}),this.state.data},t.prototype.generateDataLabels=function(t){var e={};return t.datasets.forEach((function(t){e[t.label]=qs.items.status.ACTIVE})),e},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){void 0===e&&(e=!1),this.state=Object.assign({},this.state,t),e||this.update()},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:Xs.merge(this.getOptions(),t)})},t.prototype.update=function(){this.getDisplayData()&&(this.updateAllDataLabels(),this.setColorScale(),this.services.events.dispatchEvent("model-update"))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=qs.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.get("dataLabels"),o=Object.keys(i).some((function(t){return i[t]===r})),a=Object.keys(i).filter((function(t){return i[t]===n}));o?1===a.length&&a[0]===t?Object.keys(i).forEach((function(t){i[t]=n})):i[t]=i[t]===r?n:r:Object.keys(i).forEach((function(e){i[e]=e===t?n:r})),this.set({dataLabels:i})},t.prototype.setColorScale=function(){var t=this;if(this.getDisplayData().datasets[0].fillColors)this.getDisplayData().datasets.forEach((function(e){t.colorScale[e.label]=gl().range(e.fillColors).domain(t.allDataLabels)}));else{var e=zc;this.getData().datasets.forEach((function(n,r){t.colorScale[n.label]=gl().range([e[r]]).domain(t.allDataLabels)}))}},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions();return r.getFillColor?r.getFillColor(t,e,n):this.getFillScale()[t](e)},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions();return r.getStrokeColor?r.getStrokeColor(t,e,n):this.colorScale[t](e)},t.prototype.getFillScale=function(){return this.colorScale},t.prototype.updateAllDataLabels=function(){var t=this;this.allDataLabels?this.getDisplayData().labels.forEach((function(e){-1===t.allDataLabels.indexOf(e)&&t.allDataLabels.push(e)})):this.allDataLabels=this.getDisplayData().labels},t}(),jv=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}(),Dv="http://www.w3.org/1999/xhtml",Nv={svg:"http://www.w3.org/2000/svg",xhtml:Dv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Rv=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Nv.hasOwnProperty(e)?{space:Nv[e],local:t}:t};function Fv(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Dv&&e.documentElement.namespaceURI===Dv?e.createElement(t):e.createElementNS(n,t)}}function Iv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Vv=function(t){var e=Rv(t);return(e.local?Iv:Fv)(e)};function Hv(){}var Bv=function(t){return null==t?Hv:function(){return this.querySelector(t)}},zv=function(t){"function"!==typeof t&&(t=Bv(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,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new xg(r,this._parents)};function Gv(){return[]}var Uv=function(t){return null==t?Gv:function(){return this.querySelectorAll(t)}},Yv=function(t){"function"!==typeof t&&(t=Uv(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,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new xg(r,i)},Xv=function(t){return function(){return this.matches(t)}},Wv=function(t){"function"!==typeof t&&(t=Xv(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]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new xg(r,this._parents)},qv=function(t){return new Array(t.length)},$v=function(){return new xg(this._enter||this._groups.map(qv),this._parents)};function Zv(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Zv.prototype={constructor:Zv,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)}};var Jv=function(t){return function(){return t}},Qv="$";function Kv(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Zv(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function ty(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=Qv+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=Qv+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new Zv(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var ey=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?ty:Kv,r=this._parents,i=this._groups;"function"!==typeof t&&(t=Jv(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),y=a[c]=new Array(d),g=u[c]=new Array(f);n(l,h,v,y,g,p,e);for(var _,m,b=0,x=0;b<d;++b)if(_=v[b]){b>=x&&(x=b+1);while(!(m=y[x])&&++x<d);_._next=m||null}}return a=new xg(a,r),a._enter=s,a._exit=u,a},ny=function(){return new xg(this._exit||this._groups.map(qv),this._parents)},ry=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},iy=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new xg(a,this._parents)},oy=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},ay=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=sy);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,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new xg(i,this._parents).order()};function sy(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var uy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},cy=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},ly=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},hy=function(){var t=0;return this.each((function(){++t})),t},fy=function(){return!this.node()},py=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};function dy(t){return function(){this.removeAttribute(t)}}function vy(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yy(t,e){return function(){this.setAttribute(t,e)}}function gy(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function my(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)}}var by=function(t,e){var n=Rv(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?vy:dy:"function"===typeof e?n.local?my:_y:n.local?gy:yy)(n,e))},xy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function wy(t){return function(){this.style.removeProperty(t)}}function Oy(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ty(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var My=function(t,e,n){return arguments.length>1?this.each((null==e?wy:"function"===typeof e?Ty:Oy)(t,e,null==n?"":n)):Ey(this.node(),t)};function Ey(t,e){return t.style.getPropertyValue(e)||xy(t).getComputedStyle(t,null).getPropertyValue(e)}function Sy(t){return function(){delete this[t]}}function Ay(t,e){return function(){this[t]=e}}function ky(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Py=function(t,e){return arguments.length>1?this.each((null==e?Sy:"function"===typeof e?ky:Ay)(t,e)):this.node()[t]};function Cy(t){return t.trim().split(/^|\s+/)}function Ly(t){return t.classList||new jy(t)}function jy(t){this._node=t,this._names=Cy(t.getAttribute("class")||"")}function Dy(t,e){var n=Ly(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function Ny(t,e){var n=Ly(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Ry(t){return function(){Dy(this,t)}}function Fy(t){return function(){Ny(this,t)}}function Iy(t,e){return function(){(e.apply(this,arguments)?Dy:Ny)(this,t)}}jy.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Vy=function(t,e){var n=Cy(t+"");if(arguments.length<2){var r=Ly(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?Iy:e?Ry:Fy)(n,e))};function Hy(){this.textContent=""}function By(t){return function(){this.textContent=t}}function zy(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var Gy=function(t){return arguments.length?this.each(null==t?Hy:("function"===typeof t?zy:By)(t)):this.node().textContent};function Uy(){this.innerHTML=""}function Yy(t){return function(){this.innerHTML=t}}function Xy(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var Wy=function(t){return arguments.length?this.each(null==t?Uy:("function"===typeof t?Xy:Yy)(t)):this.node().innerHTML};function qy(){this.nextSibling&&this.parentNode.appendChild(this)}var $y=function(){return this.each(qy)};function Zy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Jy=function(){return this.each(Zy)},Qy=function(t){var e="function"===typeof t?t:Vv(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function Ky(){return null}var tg=function(t,e){var n="function"===typeof t?t:Vv(t),r=null==e?Ky:"function"===typeof e?e:Bv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function eg(){var t=this.parentNode;t&&t.removeChild(this)}var ng=function(){return this.each(eg)};function rg(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ig(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var og=function(t){return this.select(t?ig:rg)},ag=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},sg={},ug=null;if("undefined"!==typeof document){var cg=document.documentElement;"onmouseenter"in cg||(sg={mouseenter:"mouseover",mouseleave:"mouseout"})}function lg(t,e,n){return t=hg(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function hg(t,e,n){return function(r){var i=ug;ug=r;try{t.call(this,this.__data__,e,n)}finally{ug=i}}}function fg(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function pg(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.capture);++i?e.length=i:delete this.__on}}}function dg(t,e,n){var r=sg.hasOwnProperty(t.type)?lg:hg;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}var vg=function(t,e,n){var r,i,o=fg(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?dg:pg,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function yg(t,e,n){var r=xy(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 gg(t,e){return function(){return yg(this,t,e)}}function _g(t,e){return function(){return yg(this,t,e.apply(this,arguments))}}var mg=function(t,e){return this.each(("function"===typeof e?_g:gg)(t,e))},bg=[null];function xg(t,e){this._groups=t,this._parents=e}function wg(){return new xg([[document.documentElement]],bg)}xg.prototype=wg.prototype={constructor:xg,select:zv,selectAll:Yv,filter:Wv,data:ey,enter:$v,exit:ny,join:ry,merge:iy,order:oy,sort:ay,call:uy,nodes:cy,node:ly,size:hy,empty:fy,each:py,attr:by,style:My,property:Py,classed:Vy,text:Gy,html:Wy,raise:$y,lower:Jy,append:Qy,insert:tg,remove:ng,clone:og,datum:ag,on:vg,dispatch:mg};var Og=wg,Tg=function(t){return"string"===typeof t?new xg([[document.querySelector(t)]],[document.documentElement]):new xg([[t]],bg)},Mg=0;function Eg(){return new Sg}function Sg(){this._="@"+(++Mg).toString(36)}Sg.prototype=Eg.prototype={constructor:Sg,get:function(t){var e=this._;while(!(e in t))if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ag=function(){var t,e=ug;while(t=e.sourceEvent)e=t;return e},kg=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Pg=function(t){var e=Ag();return e.changedTouches&&(e=e.changedTouches[0]),kg(t,e)},Cg=n("2314"),Lg=n.n(Cg),jg=n("2da1"),Dg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ng=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dg(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=Tg(t));var n,r,i,o,a={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(l){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(l){}var s={width:t.node().clientWidth,height:t.node().clientHeight},u=function(t){return!!(t&&t.width&&t.height&&!isNaN(t.height)&&!isNaN(t.width)&&-1===(""+t.width+t.height).indexOf("%")&&t.width>0&&t.height>0)};if(e){if(e.useAttrs&&u(a))return a;if(e.useClientDimensions&&u(s))return s;if(e.useBBox&&u(r))return r;if(e.useBoundingRect&&u(o))return o}try{var c={width:Xs.getProperty(t.node(),"width","baseVal","value"),height:Xs.getProperty(t.node(),"height","baseVal","value")};if(u(c))return c}catch(l){if(u(s))return s;if(u(r))return r;if(u(a))return a}return{width:0,height:0}},e.appendOrSelect=function(t,e){var n=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.model.getOptions().resizable&&this.addResizeListener()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Tg(this.getHolder()).classed(Lg.a.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=Xs.getProperty(this.model.getOptions(),"style","prefix"),e=Tg(this.getHolder()).append("svg").classed(Lg.a.prefix+"--"+t+"--chart-svg",!0).attr("height","100%").attr("width","100%");this.svg=e.node()},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=Xs.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent("chart-resize"))}),12.5),o=new jg["a"](i);o.observe(e)}},e}(jv),Rg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rg(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(jv),Ig={value:function(){}};function Vg(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Hg(r)}function Hg(t){this._=t}function Bg(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function zg(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Gg(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ig,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Hg.prototype=Vg.prototype={constructor:Hg,on:function(t,e){var n,r=this._,i=Bg(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=Gg(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Gg(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=zg(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Hg(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Ug,Yg,Xg=Vg,Wg=0,qg=0,$g=0,Zg=1e3,Jg=0,Qg=0,Kg=0,t_="object"===typeof performance&&performance.now?performance:Date,e_="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function n_(){return Qg||(e_(r_),Qg=t_.now()+Kg)}function r_(){Qg=0}function i_(){this._call=this._time=this._next=null}function o_(t,e,n){var r=new i_;return r.restart(t,e,n),r}function a_(){n_(),++Wg;var t,e=Ug;while(e)(t=Qg-e._time)>=0&&e._call.call(null,t),e=e._next;--Wg}function s_(){Qg=(Jg=t_.now())+Kg,Wg=qg=0;try{a_()}finally{Wg=0,c_(),Qg=0}}function u_(){var t=t_.now(),e=t-Jg;e>Zg&&(Kg-=e,Jg=t)}function c_(){var t,e,n=Ug,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ug=e);Yg=t,l_(r)}function l_(t){if(!Wg){qg&&(qg=clearTimeout(qg));var e=t-Qg;e>24?(t<1/0&&(qg=setTimeout(s_,t-t_.now()-Kg)),$g&&($g=clearInterval($g))):($g||(Jg=t_.now(),$g=setInterval(u_,Zg)),Wg=1,e_(s_))}}i_.prototype=o_.prototype={constructor:i_,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?n_():+n)+(null==e?0:+e),this._next||Yg===this||(Yg?Yg._next=this:Ug=this,Yg=this),this._call=t,this._time=n,l_()},stop:function(){this._call&&(this._call=null,this._time=1/0,l_())}};var h_=function(t,e,n){var r=new i_;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},f_=Xg("start","end","cancel","interrupt"),p_=[],d_=0,v_=1,y_=2,g_=3,__=4,m_=5,b_=6,x_=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};M_(t,n,{name:e,index:r,group:i,on:f_,tween:p_,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:d_})};function w_(t,e){var n=T_(t,e);if(n.state>d_)throw new Error("too late; already scheduled");return n}function O_(t,e){var n=T_(t,e);if(n.state>g_)throw new Error("too late; already running");return n}function T_(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function M_(t,e,n){var r,i=t.__transition;function o(t){n.state=v_,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==v_)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===g_)return h_(a);f.state===__?(f.state=b_,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=b_,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(h_((function(){n.state===g_&&(n.state=__,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=y_,n.on.call("start",t,t.__data__,n.index,n.group),n.state===y_){for(n.state=g_,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=m_,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===m_&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=b_,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=o_(o,0,n.time)}var E_=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>y_&&n.state<m_,n.state=b_,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},S_=function(t){return this.each((function(){E_(this,t)}))};function A_(t,e){var n,r;return function(){var i=O_(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function k_(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=O_(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var P_=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=T_(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?A_:k_)(n,t,e))};function C_(t,e,n){var r=t._id;return t.each((function(){var t=O_(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return T_(t,r).value[e]}}var L_=function(t,e){var n;return("number"===typeof e?hh:e instanceof Il?sh:(n=Il(e))?(e=n,sh):xh)(t,e)};function j_(t){return function(){this.removeAttribute(t)}}function D_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N_(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function R_(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function F_(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function I_(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var V_=function(t,e){var n=Rv(t),r="transform"===n?Ch:L_;return this.attrTween(t,"function"===typeof e?(n.local?I_:F_)(n,r,C_(this,"attr."+t,e)):null==e?(n.local?D_:j_)(n):(n.local?R_:N_)(n,r,e))};function H_(t,e){return function(n){this.setAttribute(t,e(n))}}function B_(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}function z_(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&B_(t,i)),n}return i._value=e,i}function G_(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&H_(t,i)),n}return i._value=e,i}var U_=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Rv(t);return this.tween(n,(r.local?z_:G_)(r,e))};function Y_(t,e){return function(){w_(this,t).delay=+e.apply(this,arguments)}}function X_(t,e){return e=+e,function(){w_(this,t).delay=e}}var W_=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Y_:X_)(e,t)):T_(this.node(),e).delay};function q_(t,e){return function(){O_(this,t).duration=+e.apply(this,arguments)}}function $_(t,e){return e=+e,function(){O_(this,t).duration=e}}var Z_=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?q_:$_)(e,t)):T_(this.node(),e).duration};function J_(t,e){if("function"!==typeof e)throw new Error;return function(){O_(this,t).ease=e}}var Q_=function(t){var e=this._id;return arguments.length?this.each(J_(e,t)):T_(this.node(),e).ease},K_=function(t){"function"!==typeof t&&(t=Xv(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]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Mm(r,this._parents,this._name,this._id)},tm=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new Mm(a,this._parents,this._name,this._id)};function em(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function nm(t,e,n){var r,i,o=em(e)?w_:O_;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var rm=function(t,e){var n=this._id;return arguments.length<2?T_(this.node(),n).on.on(t):this.each(nm(n,t,e))};function im(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var om=function(){return this.on("end.remove",im(this._id))},am=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Bv(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,x_(h[f],e,n,f,h,T_(s,n)));return new Mm(o,this._parents,e,n)},sm=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Uv(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=T_(u,n),v=0,y=p.length;v<y;++v)(f=p[v])&&x_(f,e,n,v,p,d);o.push(p),a.push(u)}return new Mm(o,a,e,n)},um=Og.prototype.constructor,cm=function(){return new um(this._groups,this._parents)};function lm(t,e){var n,r,i;return function(){var o=Ey(this,t),a=(this.style.removeProperty(t),Ey(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function hm(t){return function(){this.style.removeProperty(t)}}function fm(t,e,n){var r,i,o=n+"";return function(){var a=Ey(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function pm(t,e,n){var r,i,o;return function(){var a=Ey(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ey(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function dm(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=O_(this,t),c=u.on,l=null==u.value[a]?o||(o=hm(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var vm=function(t,e,n){var r="transform"===(t+="")?Ph:L_;return null==e?this.styleTween(t,lm(t,r)).on("end.style."+t,hm(t)):"function"===typeof e?this.styleTween(t,pm(t,r,C_(this,"style."+t,e))).each(dm(this._id,t)):this.styleTween(t,fm(t,r,e),n).on("end.style."+t,null)};function ym(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}function gm(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&ym(t,o,n)),r}return o._value=e,o}var _m=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,gm(t,e,null==n?"":n))};function mm(t){return function(){this.textContent=t}}function bm(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var xm=function(t){return this.tween("text","function"===typeof t?bm(C_(this,"text",t)):mm(null==t?"":t+""))},wm=function(){for(var t=this._name,e=this._id,n=Sm(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=T_(a,e);x_(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Mm(r,this._parents,t,n)},Om=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=O_(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},Tm=0;function Mm(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Em(t){return Og().transition(t)}function Sm(){return++Tm}var Am=Og.prototype;function km(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Mm.prototype=Em.prototype={constructor:Mm,select:am,selectAll:sm,filter:K_,merge:tm,selection:cm,transition:wm,call:Am.call,nodes:Am.nodes,node:Am.node,size:Am.size,empty:Am.empty,each:Am.each,on:rm,attr:V_,attrTween:U_,style:vm,styleTween:_m,text:xm,remove:om,tween:P_,delay:W_,duration:Z_,ease:Q_,end:Om};var Pm=3;(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(Pm),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(Pm),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(Pm),Math.PI;var Cm=1.70158,Lm=(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(Cm),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(Cm),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(Cm),2*Math.PI),jm=1,Dm=.3,Nm=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),{time:null,delay:0,duration:250,ease:km});function Rm(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return Nm.time=n_(),Nm;return n}var Fm=function(t){var e,n;t instanceof Mm?(e=t._id,t=t._name):(e=Sm(),(n=Nm).time=n_(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&x_(a,t,e,c,s,n||Rm(a,e));return new Mm(r,this._parents,t,e)};Og.prototype.interrupt=S_,Og.prototype.transition=Fm;var Im=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Im(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener("model-update",(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=Em(t).duration(Xs.getProperty(pu,t,"duration")||pu.default.duration);return this.pendingTransitions[r._id]=r,r.on("end",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=Em(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(jv),Hm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hm(e,t),e.prototype.getMainXAxis=function(){var t=this.model.get(s.PRIMARY),e=this.model.get(s.SECONDARY);return t===this.model.get(a.TOP)||t===this.model.get(a.BOTTOM)?t:e===this.model.get(a.TOP)||e===this.model.get(a.BOTTOM)?e:this.model.get(a.BOTTOM)},e.prototype.getMainYAxis=function(){var t=this.model.get(s.PRIMARY),e=this.model.get(s.SECONDARY);return t===this.model.get(a.LEFT)||t===this.model.get(a.RIGHT)?t:e===this.model.get(a.LEFT)||e===this.model.get(a.RIGHT)?e:this.model.get(a.LEFT)},e.prototype.getXValue=function(t,e){return this.getMainXAxis().getValueFromScale(t,e)},e.prototype.getYValue=function(t,e){return this.getMainYAxis().getValueFromScale(t,e)},e.prototype.getDataFromDomain=function(t){var e=this.model.getDisplayData(),n=[],r=this.getMainXAxis().scaleType;switch(r){case u.LABELS:var i=e.labels.indexOf(t);e.datasets.forEach((function(t){n.push({datasetLabel:t.label,value:t.data[i]})}));break;case u.TIME:var o=Object.keys(e.datasets[0].data[0]).filter((function(t){return"value"!==t}))[0];e.datasets.forEach((function(e){var r=e.label,i=e.data.filter((function(e){var n=new Date(e[o]),r=new Date(t);return n.getTime()===r.getTime()}));i.forEach((function(t){n.push(Object.assign({datasetLabel:r,value:t.value},t))}))}));break}return n},e}(jv),zm=Math.PI,Gm=2*zm,Um=1e-6,Ym=Gm-Um;function Xm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Wm(){return new Xm}Xm.prototype=Wm.prototype={constructor:Xm,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Um)if(Math.abs(l*s-u*c)>Um&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,y=Math.sqrt(d),g=Math.sqrt(h),_=i*Math.tan((zm-Math.acos((d+h-v)/(2*y*g)))/2),m=_/g,b=_/y;Math.abs(m-1)>Um&&(this._+="L"+(t+m*c)+","+(e+m*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Um||Math.abs(this._y1-c)>Um)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%Gm+Gm),h>Ym?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>Um&&(this._+="A"+n+","+n+",0,"+ +(h>=zm)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var qm=Wm,$m=function(t){return function(){return t}},Zm=Math.abs,Jm=Math.atan2,Qm=Math.cos,Km=Math.max,tb=Math.min,eb=Math.sin,nb=Math.sqrt,rb=1e-12,ib=Math.PI,ob=ib/2,ab=2*ib;function sb(t){return t>1?0:t<-1?ib:Math.acos(t)}function ub(t){return t>=1?ob:t<=-1?-ob:Math.asin(t)}function cb(t){return t.innerRadius}function lb(t){return t.outerRadius}function hb(t){return t.startAngle}function fb(t){return t.endAngle}function pb(t){return t&&t.padAngle}function db(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<rb))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function vb(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/nb(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,y=(f+d)/2,g=(p+v)/2,_=d-f,m=v-p,b=_*_+m*m,x=i-o,w=f*v-d*p,O=(m<0?-1:1)*nb(Km(0,x*x*b-w*w)),T=(w*m-_*O)/b,M=(-w*_-m*O)/b,E=(w*m+_*O)/b,S=(-w*_+m*O)/b,A=T-y,k=M-g,P=E-y,C=S-g;return A*A+k*k>P*P+C*C&&(T=E,M=S),{cx:T,cy:M,x01:-l,y01:-h,x11:T*(i/x-1),y11:M*(i/x-1)}}var yb=function(){var t=cb,e=lb,n=$m(0),r=null,i=hb,o=fb,a=pb,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-ob,p=o.apply(this,arguments)-ob,d=Zm(p-f),v=p>f;if(s||(s=u=qm()),h<l&&(c=h,h=l,l=c),h>rb)if(d>ab-rb)s.moveTo(h*Qm(f),h*eb(f)),s.arc(0,0,h,f,p,!v),l>rb&&(s.moveTo(l*Qm(p),l*eb(p)),s.arc(0,0,l,p,f,v));else{var y,g,_=f,m=p,b=f,x=p,w=d,O=d,T=a.apply(this,arguments)/2,M=T>rb&&(r?+r.apply(this,arguments):nb(l*l+h*h)),E=tb(Zm(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(M>rb){var k=ub(M/l*eb(T)),P=ub(M/h*eb(T));(w-=2*k)>rb?(k*=v?1:-1,b+=k,x-=k):(w=0,b=x=(f+p)/2),(O-=2*P)>rb?(P*=v?1:-1,_+=P,m-=P):(O=0,_=m=(f+p)/2)}var C=h*Qm(_),L=h*eb(_),j=l*Qm(x),D=l*eb(x);if(E>rb){var N,R=h*Qm(m),F=h*eb(m),I=l*Qm(b),V=l*eb(b);if(d<ib&&(N=db(C,L,I,V,R,F,j,D))){var H=C-N[0],B=L-N[1],z=R-N[0],G=F-N[1],U=1/eb(sb((H*z+B*G)/(nb(H*H+B*B)*nb(z*z+G*G)))/2),Y=nb(N[0]*N[0]+N[1]*N[1]);S=tb(E,(l-Y)/(U-1)),A=tb(E,(h-Y)/(U+1))}}O>rb?A>rb?(y=vb(I,V,C,L,h,A,v),g=vb(R,F,j,D,h,A,v),s.moveTo(y.cx+y.x01,y.cy+y.y01),A<E?s.arc(y.cx,y.cy,A,Jm(y.y01,y.x01),Jm(g.y01,g.x01),!v):(s.arc(y.cx,y.cy,A,Jm(y.y01,y.x01),Jm(y.y11,y.x11),!v),s.arc(0,0,h,Jm(y.cy+y.y11,y.cx+y.x11),Jm(g.cy+g.y11,g.cx+g.x11),!v),s.arc(g.cx,g.cy,A,Jm(g.y11,g.x11),Jm(g.y01,g.x01),!v))):(s.moveTo(C,L),s.arc(0,0,h,_,m,!v)):s.moveTo(C,L),l>rb&&w>rb?S>rb?(y=vb(j,D,R,F,l,-S,v),g=vb(C,L,I,V,l,-S,v),s.lineTo(y.cx+y.x01,y.cy+y.y01),S<E?s.arc(y.cx,y.cy,S,Jm(y.y01,y.x01),Jm(g.y01,g.x01),!v):(s.arc(y.cx,y.cy,S,Jm(y.y01,y.x01),Jm(y.y11,y.x11),!v),s.arc(0,0,l,Jm(y.cy+y.y11,y.cx+y.x11),Jm(g.cy+g.y11,g.cx+g.x11),v),s.arc(g.cx,g.cy,S,Jm(g.y11,g.x11),Jm(g.y01,g.x01),!v))):s.arc(0,0,l,x,b,v):s.lineTo(j,D)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ib/2;return[Qm(r)*n,eb(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:$m(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:$m(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:$m(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:$m(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:$m(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:$m(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u};function gb(t){this._context=t}gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var _b=function(t){return new gb(t)};function mb(t){return t[0]}function bb(t){return t[1]}var xb=function(){var t=mb,e=bb,n=$m(!0),r=null,i=_b,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=qm())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:$m(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:$m(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},wb=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},Ob=function(t){return t},Tb=function(){var t=Ob,e=wb,n=null,r=$m(0),i=$m(ab),o=$m(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),y=+r.apply(this,arguments),g=Math.min(ab,Math.max(-ab,i.apply(this,arguments)-y)),_=Math.min(Math.abs(g)/f,o.apply(this,arguments)),m=_*(g<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(g-f*m)/p:0;s<f;++s,y=l)u=d[s],h=v[u],l=y+(h>0?h*c:0)+m,v[u]={data:a[u],index:s,value:h,startAngle:y,endAngle:l,padAngle:_};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:$m(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:$m(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:$m(+t),a):o},a};Eb(_b);function Mb(t){this._curve=t}function Eb(t){function e(e){return new Mb(t(e))}return e._curve=t,e}Mb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Sb=Array.prototype.slice;Math.sqrt(1/3);var Ab=Math.sin(ib/10)/Math.sin(7*ib/10),kb=(Math.sin(ab/10),Math.cos(ab/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12),function(){});function Pb(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Cb(t){this._context=t}Cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Lb=function(t){return new Cb(t)};function jb(t){this._context=t}jb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Db=function(t){return new jb(t)};function Nb(t){this._context=t}Nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Rb=function(t){return new Nb(t)};function Fb(t,e){this._basis=new Cb(t),this._beta=e}Fb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ib=function t(e){function n(t){return 1===e?new Cb(t):new Fb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Vb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Hb(t,e){this._context=t,this._k=(1-e)/6}Hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vb(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bb=function t(e){function n(t){return new Hb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zb(t,e){this._context=t,this._k=(1-e)/6}zb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gb=function t(e){function n(t){return new zb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ub(t,e){this._context=t,this._k=(1-e)/6}Ub.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Yb=function t(e){function n(t){return new Ub(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Xb(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>rb){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>rb){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Wb(t,e){this._context=t,this._alpha=e}Wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qb=function t(e){function n(t){return e?new Wb(t,e):new Hb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $b(t,e){this._context=t,this._alpha=e}$b.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zb=function t(e){function n(t){return e?new $b(t,e):new zb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Jb(t,e){this._context=t,this._alpha=e}Jb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qb=function t(e){function n(t){return e?new Jb(t,e):new Ub(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Kb(t){this._context=t}Kb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var tx=function(t){return new Kb(t)};function ex(t){return t<0?-1:1}function nx(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ex(o)+ex(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function rx(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ix(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function ox(t){this._context=t}function ax(t){this._context=new sx(t)}function sx(t){this._context=t}function ux(t){return new ox(t)}function cx(t){return new ax(t)}function lx(t){this._context=t}function hx(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}ox.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ix(this,this._t0,rx(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ix(this,rx(this,n=nx(this,t,e)),n);break;default:ix(this,this._t0,n=nx(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ax.prototype=Object.create(ox.prototype)).point=function(t,e){ox.prototype.point.call(this,e,t)},sx.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=hx(t),i=hx(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var fx=function(t){return new lx(t)};function px(t,e){this._context=t,this._t=e}px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var dx=function(t){return new px(t,.5)};function vx(t){return new px(t,0)}function yx(t){return new px(t,1)}var gx=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},_x=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function mx(t,e){return t[e]}var bx=function(){var t=$m([]),e=_x,n=gx,r=mx;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:$m(Sb.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:$m(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?_x:"function"===typeof t?t:$m(Sb.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?gx:t,i):n},i};var xx,wx,Ox=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:_b,curveLinearClosed:tx,curveBasis:Lb,curveBasisClosed:Db,curveBasisOpen:Rb,curveBundle:Ib,curveCardinal:Bb,curveCardinalClosed:Gb,curveCardinalOpen:Yb,curveCatmullRom:qb,curveCatmullRomClosed:Zb,curveCatmullRomOpen:Qb,curveMonotoneX:ux,curveMonotoneY:cx,curveNatural:fx,curveStep:dx,curveStepAfter:yx,curveStepBefore:vx},e}return Ox(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(jv),Mx=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(Tg(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=Xs.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Lg.a.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(Lg.a.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(){if(this.type){var t=Xs.getProperty(this.model.getOptions(),"style","prefix");return Ng.appendOrSelect(this.parent,"g."+Lg.a.prefix+"--"+t+"--"+this.type)}return this.parent},t}(),Ex=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return Ex(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",i.GRAPHICS_DOCUMENT),n=this.model.getOptions(),r=e.selectAll("g.legend-item").data(this.getLegendItemArray()),o=r.enter().append("g").classed("legend-item",!0),a=n.legend.checkbox.radius;o.append("rect").classed("checkbox",!0).merge(r.select("rect.checkbox")).attr("width",2*a).attr("height",2*a).attr("rx",1).attr("ry",1).style("fill",(function(e){return e.value===n.legend.items.status.ACTIVE?t.model.getStrokeColor(e.key):null})).classed("active",(function(t,e){return t.value===n.legend.items.status.ACTIVE})),o.append("text").merge(r.select("text")).text((function(t){return t.key})).attr("alignment-baseline","middle"),this.breakItemsIntoLines(o),r.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var s=Xs.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",s),s&&o.size()>0&&this.addEventListeners()},e.prototype.breakItemsIntoLines=function(t){var e,n=this,r=this.getContainerSVG(),i=this.model.getOptions(),o=i.legend.checkbox.radius,a=i.legend.items.horizontalSpace,s=i.legend.items.verticalSpace,u=i.legend.items.textYOffset,c=2*o+i.legend.checkbox.spaceAfter,l=i.legend.items.status.DISABLED,h=this.model.get("dataLabels"),p=Object.keys(h).some((function(t){return h[t]===l})),d=Xs.getProperty(i,"legend","orientation"),v=0,y=0,g=0;t.merge(r.selectAll("g.legend-item")).each((function(t,i){var l=Tg(this),h=Tg(r.selectAll("g.legend-item").nodes()[i-1]);if(0===g||h.empty()||d===f.VERTICAL)d===f.VERTICAL&&0!==i&&y++;else{var _=Ng.getSVGElementSize(n.parent,{useAttr:!0}),m=Ng.getSVGElementSize(Tg(this).select("text"),{useBBox:!0}),b=Ng.getSVGElementSize(h.select("text"),{useBBox:!0});v=v+b.width+c+a,v+c+m.width>_.width&&(y++,v=0,g=0)}var x=0;l.select("rect.checkbox").attr("x",v).attr("y",x+y*s);var w=u+y*s;l.select("text").attr("x",v+c).attr("y",x+w),e=w,p&&l.select("g.check").empty()?(l.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),l.select("g.check svg").attr("width",2*o-1).attr("height",2*o-1).attr("x",parseFloat(l.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(l.select("rect.checkbox").attr("y"))+.5)):p||l.select("g.check").empty()||l.select("g.check").remove(),g++})),Ng.appendOrSelect(r,"rect.spacer").attr("x",0).attr("y",e).attr("width",16).attr("height",16).attr("fill","none")},e.prototype.getLegendItemArray=function(){var t=this.model.get("dataLabels"),e=Object.keys(t);return e.map((function(e){return{key:e,value:t[e]}}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions();e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent("legend-item-onhover",{hoveredElement:Tg(this)});var e=n.legend.checkbox.radius,r=Tg(this);r.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(r.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(r.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower()})).on("click",(function(){t.services.events.dispatchEvent("legend-item-onclick",{clickedElement:Tg(this)});var e=Tg(this),n=e.datum();t.model.toggleDataLabel(n.key)})).on("mouseout",(function(){var e=Tg(this);e.select("rect.hover-stroke").remove(),t.services.events.dispatchEvent("legend-item-onmouseout",{hoveredElement:e})}))},e}(Mx),Ax=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return Ax(e,t),e.prototype.truncateTitle=function(){var t=Ng.getSVGElementSize(this.parent).width,e=Ng.appendOrSelect(this.parent,"text.title");if(e.node().getComputedTextLength()>t){e.append("tspan").text("...");var n=Ng.appendOrSelect(e,"tspan").node().getComputedTextLength(),r=Math.floor(t-n),i=this.model.getOptions().title,o=this.getSubstringIndex(e.node(),0,i.length-1,r);e.text(i.substring(0,o-1)).append("tspan").text("...");var a=this;e.on("mouseenter",(function(){a.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.TITLE})})).on("mouseout",(function(){a.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))}},e.prototype.render=function(){var t=this.getContainerSVG(),e=Ng.appendOrSelect(t,"text.title");e.attr("x",0).attr("y",20).text(this.model.getOptions().title),this.truncateTitle()},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(Mx);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(wx||(wx={}));var Px=(xx={},xx[wx.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},xx[wx.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},xx[wx.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},xx[wx.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},xx),Cx="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},Lx=function(){function t(t){void 0===t&&(t={}),this.positions=Px,this.positions=Object.assign({},Px,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:Cx.innerHeight-Cx.scrollY,height:Cx.innerWidth-Cx.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),jx=(new Lx,Lx),Dx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nx=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.positionService=new jx,i.init(),i}return Dx(e,t),e.prototype.init=function(){var t=this,e=Tg(this.services.domUtils.getHolder()),n=Xs.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=Ng.appendOrSelect(e,"div."+Lg.a.prefix+"--"+n+"--tooltip");var r=Ng.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener("show-tooltip",(function(i){if(i.detail.type===l.DATAPOINT&&Xs.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")||i.detail.type===l.GRIDLINE&&Xs.getProperty(t.model.getOptions(),"tooltip","gridline","enabled")){var o=Tg(ug.target).datum(),a=void 0;i.detail.multidata?(o=i.detail.multidata,a=t.getMultilineTooltipHTML(o)):a=t.getTooltipHTML(o,l.DATAPOINT),Xs.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(o,a)):r.html(a),t.positionTooltip()}else if(i.detail.type===l.TITLE){var s=Ng.appendOrSelect(e,"svg."+Lg.a.prefix+"--"+n+"--chart-svg"),u=Ng.getSVGElementSize(s).width*Xs.getProperty(t.model.getOptions(),"tooltip","title","width");t.tooltip.style("max-width",u),r.html(t.getTooltipHTML(i.detail.hoveredElement,l.TITLE));var c=t.getTooltipPosition(i.detail.hoveredElement.node());t.positionTooltip(c)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener("hide-tooltip",(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipHTML=function(t,e){if(e===l.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}var r=Xs.getProperty(t,"data")?t.data:t,i=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r.value):r.value.toLocaleString("en"),o=r.datasetLabel?r.datasetLabel:r.label;return'<div class="datapoint-tooltip">\n\t\t\t\t\t<p class="label">'+o+'</p>\n\t\t\t\t\t<p class="value">'+i+"</p>\n\t\t\t\t</div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.sort((function(t,e){return e.value-t.value}));var r=this.services.axes.getMainXAxis().scaleType;return"<ul class='multi-tooltip'>"+n.map((function(t){var n=t.value;n instanceof Object&&(n=r===u.TIME?t.value.date:t.value.value);var i=Xs.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(n):n.toLocaleString("en"),o=e.model.getStrokeColor(t.datasetLabel,t.label);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+o+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+i+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e.prototype.render=function(){this.tooltip.classed("hidden",!0)},e.prototype.getTooltipPosition=function(t){var e=Tg(this.services.domUtils.getHolder()).node().getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.model.getOptions().tooltip.title.verticalOffset,i={left:n.left-e.left+n.width/2,top:n.top-e.top-r};return{placement:c.BOTTOM,position:i}},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=Pg(n);if(t){var o=t.placement===c.TOP?wx.TOP:wx.BOTTOM;e=this.positionService.findPositionAt(t.position,r,o)}else{var a=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},r,[wx.RIGHT,wx.LEFT,wx.TOP,wx.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),s=this.model.getOptions().tooltip.datapoint.horizontalOffset;a===wx.LEFT&&(s*=-1),e=this.positionService.findPositionAt({left:i[0]+s,top:i[1]},r,a)}this.positionService.setElement(r,e)},e}(Mx),Rx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rx(e,t),e.prototype.init=function(){var e=this,n=Tg(this.services.domUtils.getHolder()),r=Xs.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=Ng.appendOrSelect(n,"div."+Lg.a.prefix+"--"+r+"--tooltip");var i=Ng.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener("show-tooltip",(function(o){if(o.detail.type===l.DATAPOINT&&Xs.getProperty(e.model.getOptions(),"tooltip","datapoint","enabled")||o.detail.type===l.GRIDLINE&&Xs.getProperty(e.model.getOptions(),"tooltip","gridline","enabled")){var a=o.detail.hoveredElement.node(),s=void 0;s=o.detail.multidata?e.getMultilineTooltipHTML(o.detail.multidata):e.getTooltipHTML(o.detail.hoveredElement.datum()),Xs.getProperty(e.model.getOptions(),"tooltip","customHTML")?i.html(e.model.getOptions().tooltip.customHTML(a,s)):i.html(s);var u=e.getTooltipPosition(a);e.positionTooltip(o.detail.multidata?void 0:u)}else if(o.detail.type===l.TITLE){var c=Ng.appendOrSelect(n,"svg."+Lg.a.prefix+"--"+r+"--chart-svg"),h=Ng.getSVGElementSize(c).width*Xs.getProperty(e.model.getOptions(),"tooltip","title","width");e.tooltip.style("max-width",h),i.html(t.prototype.getTooltipHTML.call(e,o.detail.hoveredElement,l.TITLE));u=t.prototype.getTooltipPosition.call(e,o.detail.hoveredElement.node());e.positionTooltip(u)}e.tooltip.classed("hidden",!1)})),this.services.events.addEventListener("hide-tooltip",(function(){e.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t){var e=Tg(t).datum(),n=Tg(this.services.domUtils.getHolder()).node().getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.model.getOptions().tooltip.datapoint.verticalOffset;if(e.value<=0){var o={left:r.left-n.left+r.width/2,top:r.bottom-n.top+i};return{placement:c.BOTTOM,position:o}}o={left:r.left-n.left+r.width/2,top:r.top-n.top-i};return{placement:c.TOP,position:o}},e.prototype.getTooltipHTML=function(t){var e=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en");return'<div class="datapoint-tooltip"><p class="value">'+e+"</p></div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.reverse();var r=n.reduce((function(t,e){return t+e.value}),0);return r=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r):r.toLocaleString("en"),"<ul class='multi-tooltip'>"+n.map((function(t){var n=Xs.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t.datasetLabel,t.label,t.value);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"<li>\n\t\t\t\t\t<div class='total-val'>\n\t\t\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t\t\t<p class='value'>"+r+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>"},e}(Nx),Ix=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ix(e,t),e.prototype.getTooltipHTML=function(e,n){if(n===l.TITLE)return t.prototype.getTooltipHTML.call(this,e,n);var r=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(e.value):e.value.toLocaleString("en"),i=this.model.getStrokeColor(e.datasetLabel,e.label,e.value);return'\n\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t<a style="background-color:'+i+'" class="tooltip-color"></a>\n\t\t\t\t<p class="label">'+e.datasetLabel+'</p>\n\t\t\t\t<p class="value">'+r+"</p>\n\t\t\t</div>"},e}(Nx),Hx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hx(e,t),e.prototype.getBarWidth=function(){var t=this.services.axes.getMainXAxis(),e=this.model.getOptions();return t.scale.step?Math.min(e.bars.maxWidth,t.scale.step()/2):Math.min(e.bars.maxWidth,5/t.scale.ticks().length*e.bars.maxWidth)},e}(Mx),zx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t.label!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return zx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG(),r=n.selectAll("g.bars").data(this.model.getDisplayData().datasets,(function(t){return t.label}));r.exit().attr("opacity",0).remove();var o=r.enter().append("g").classed("bars",!0).attr("role",i.GROUP),a=o.merge(r).selectAll("rect.bar").data((function(t,n){return e.addLabelsToDataPoints(t,n)}),(function(t){return t.label}));a.exit().attr("opacity",0).remove();var s=a.enter().append("rect").attr("opacity",0);s.merge(a).classed("bar",!0).attr("x",(function(t,n){var r=e.getBarWidth();return e.services.axes.getXValue(t,n)-r/2})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(Math.max(0,t.value))})).attr("fill",(function(t){return e.model.getFillScale()(t.label)})).attr("height",(function(t,n){return Math.abs(e.services.axes.getYValue(t,n)-e.services.axes.getYValue(0))})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().labels;return t.data.map((function(e,r){return{date:e.date,label:n[r],datasetLabel:t.label,value:isNaN(e)?e.value:e}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.classed("hovered",!0),e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString()),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()(e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),Ux=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Ux(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getGroupWidth=function(){var t=this.model.getDisplayData().datasets,e=5;return t.length*this.getBarWidth()+e*(t.length-1)},e.prototype.setGroupScale=function(){var t=this.model.getDisplayData().datasets;this.groupScale=_l().domain(t.map((function(t){return t.label}))).rangeRound([0,this.getGroupWidth()])},e.prototype.getBarWidth=function(){var e=this.model.getDisplayData().datasets;return Math.min(this.services.axes.getMainXAxis().scale.step()/2/e.length,t.prototype.getBarWidth.call(this))},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData();this.setGroupScale();var r=this.getContainerSVG(),o=r.selectAll("g.bars").data(n.labels);o.exit().attr("opacity",0).remove();var a=o.enter().append("g").classed("bars",!0).attr("role",i.GROUP).attr("aria-labelledby",(function(t){return t})),s=a.merge(o).attr("transform",(function(t,n){var r=e.services.axes.getXValue(t,n);return"translate("+(r-e.getGroupWidth()/2)+", 0)"})).selectAll("rect.bar").data((function(t,n){return e.addLabelsToDataPoints(t,n)}));s.exit().attr("opacity",0).remove();var u=s.enter().append("rect").attr("opacity",0);u.merge(s).classed("bar",!0).attr("x",(function(t){return e.groupScale(t.datasetLabel)})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(Math.max(0,t.value))})).attr("height",(function(t,n){return Math.abs(e.services.axes.getYValue(t,n)-e.services.axes.getYValue(0))})).attr("fill",(function(t){return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().datasets;return n.map((function(n){return{label:t,datasetLabel:n.label,value:n.data[e].value?n.data[e].value:n.data[e]}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString()),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),Xx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wx=function(t){return Object.keys(t).map((function(e){"object"===typeof t[e]&&(t[e]["datasetLabel"]=t.key,t[e]["label"]=t[e].data["label"],t[e]["value"]=t[e].data[t.key])})),t},qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Xx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getStackData=function(){var t,e=this.model.getDisplayData(),n=this.services.axes.getMainXAxis().scaleType===u.TIME;if(n){var r=[];e.datasets.forEach((function(t){r=r.concat(t.data.map((function(t){return Number(t.date)})))})),r=Xs.removeArrayDuplicates(r).sort(),t=r.map((function(t,n){var r={};return e.datasets.forEach((function(e){var n=e.data.find((function(e){return Number(e.date)===Number(t)}));r[e.label]=n?n.value:0})),r["label"]=t,r}))}else t=e.labels.map((function(t,n){var r={};return e.datasets.forEach((function(t){r[t.label]=isNaN(t.data[n])?t.data[n].value:t.data[n]})),r["label"]=t,r}));return t},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=this.getContainerSVG(),o=this.model.getDisplayData(),a=this.getStackData(),s=o.datasets.map((function(t){return t.label})),u=r.selectAll("g.bars").data(bx().keys(s)(a),(function(t){return t.key}));u.exit().attr("opacity",0).remove(),u.enter().append("g").classed("bars",!0).attr("role",i.GROUP);var c=r.selectAll("g.bars").selectAll("rect.bar").data((function(t){return Wx(t)}),(function(t){return t.label}));c.exit().remove(),c.enter().append("rect").merge(c).classed("bar",!0).attr("x",(function(t,n){var r=e.getBarWidth();return e.services.axes.getXValue(t,n)-r/2})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(t[1],n)})).attr("fill",(function(t){return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("height",(function(t,r){var i=t.datasetLabel,o=s.indexOf(i),a=e.services.axes.getYValue(t[0])-e.services.axes.getYValue(t[1]);return o>0&&a>=n.bars.dividerSize?a-n.bars.dividerSize:a})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString())})).on("mousemove",(function(){var e=Tg(this),n=Tg(this).datum();e.classed("hovered",!0);var r=n["data"],i=r["label"];delete r["label"];var o=Object.keys(r).map((function(t){return{datasetLabel:t,value:r[t],label:i}}));t.services.events.dispatchEvent("show-tooltip",{multidata:o,hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),$x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return $x(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener("legend-item-onhover",(function(e){var n=e.detail.hoveredElement;t.parent.selectAll("g.lines").transition(t.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.label!==n.datum()["key"]?fu.opacity.unselected:fu.opacity.selected}))})),this.services.events.addEventListener("legend-item-onmouseout",(function(e){t.parent.selectAll("g.lines").transition(t.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",fu.opacity.selected)}))},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG();this.lineGenerator=xb().x((function(t,n){return e.services.axes.getXValue(t,n)})).y((function(t,n){return e.services.axes.getYValue(t,n)})).curve(this.services.curves.getD3Curve());var r=n.selectAll("g.lines").data(this.model.getDisplayData().datasets,(function(t){return t.label}));r.exit().attr("opacity",0).remove();var o=r.enter().append("g").classed("lines",!0),a=this,s=o.append("path").attr("opacity",0);s.merge(n.selectAll("g.lines path")).attr("stroke",(function(t){var e=Tg(this.parentNode).datum();return a.model.getStrokeColor(e.label)})).datum((function(t){var e=Tg(this.parentNode).datum();return this._datasetLabel=e.label,e.data})).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){return t.map((function(t){return t.value||t})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",1).attr("class","line").attr("d",this.lineGenerator)},e}(Mx),Jx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return Jx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=this.getContainerSVG(),o=r.selectAll("g.dots").data(this.model.getDisplayData().datasets,(function(t){return t.label}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g").classed("dots",!0).attr("role",i.GROUP),s=a.merge(o).selectAll("circle.dot").data((function(t,n){return e.addLabelsToDataPoints(t,n)})),u=s.enter().append("circle").attr("opacity",0),c=n.points.filled;u.merge(s).raise().classed("dot",!0).classed("filled",c).classed("unfilled",!c).attr("cx",(function(t,n){return e.services.axes.getXValue(t,n)})).transition(this.services.transitions.getTransition("scatter-update-enter",t)).attr("cy",(function(t,n){return e.services.axes.getYValue(t,n)})).attr("r",n.points.radius).attr("fill",(function(t){if(c)return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("fill-opacity",c?.2:1).attr("stroke",(function(t){return e.model.getStrokeColor(t.datasetLabel,t.label,t.value)})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().labels;return t.data.map((function(e,r){return{date:e.date,label:n[r],datasetLabel:t.label,value:isNaN(e)?e.value:e}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle").on("mouseover mousemove",(function(){var e=Tg(this);e.classed("hovered",!0),e.style("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),t.configs.filled||e.style("fill",null),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Mx),Kx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function tw(t,e){var n=this,r=wh(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var ew=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data.label!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Kx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getDataList=function(){var t=this.model.getDisplayData(),e=t.datasets[0];return e.data.map((function(e,n){return{label:t.labels[n],value:e.value?e.value:e}}))},e.prototype.getInnerRadius=function(){var t=this.model.getOptions();return t.pie.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),o=this.model.getOptions(),a=this.getDataList(),s=this.computeRadius();this.arc=yb().innerRadius(this.getInnerRadius()).outerRadius(s),this.hoverArc=yb().innerRadius(this.getInnerRadius()).outerRadius(s+o.pie.hoverArc.outerRadiusOffset);var u=Tb().value((function(t){return t.value})).sort((function(t,e){return e.value-t.value})).padAngle(o.pie.padAngle),c=u(a).sort((function(t,e){return t.index-e.index})),l=Ng.appendOrSelect(r,"g.slices").attr("role",i.GROUP),h=l.selectAll("path.slice").data(c,(function(t){return t.data.label}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").classed("slice",!0).attr("opacity",0);f.merge(h).attr("fill",(function(t){return e.model.getFillScale()(t.data.label)})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+Xs.convertValueToPercentage(t.data.value,a)+"%"})).attrTween("d",(function(t){return tw.bind(this)(t,n.arc)}));var p=Ng.appendOrSelect(r,"g.labels").attr("role",i.GROUP),d=p.selectAll("text.pie-label").data(c,(function(t){return t.data.label}));d.exit().attr("opacity",0).remove();var y=d.enter().append("text").classed("pie-label",!0),g=[];y.merge(d).style("text-anchor","middle").text((function(t){return o.pie.labels.formatter?o.pie.labels.formatter(t):Xs.convertValueToPercentage(t.data.value,a)+"%"})).datum((function(t){var e=this.getComputedTextLength();t.textOffsetX=e/2,t.textOffsetY=parseFloat(getComputedStyle(this).fontSize)/2;var n=s+7,r=(t.endAngle-t.startAngle)/2+t.startAngle;return t.xPosition=(t.textOffsetX+n)*Math.sin(r),t.yPosition=(t.textOffsetY+n)*-Math.cos(r),t})).attr("transform",(function(t,e){var n=a.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<o.pie.callout.minSliceDegree){var i=void 0,s=void 0;return t.index===n-1?(i=t.xPosition+o.pie.callout.offsetX+o.pie.callout.textMargin+t.textOffsetX,s=t.yPosition-o.pie.callout.offsetY,t.direction=v.RIGHT,g.push(t)):(i=t.xPosition-o.pie.callout.offsetX-t.textOffsetX-o.pie.callout.textMargin,s=t.yPosition-o.pie.callout.offsetY,t.direction=v.LEFT,g.push(t)),"translate("+i+", "+s+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(g);var _=s+o.pie.xOffset,m=s+o.pie.yOffset;g.length>0&&(m+=o.pie.yOffsetCallout),r.attr("transform","translate("+_+", "+m+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=Ng.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",i.GROUP),n=this.model.getOptions(),r=e.selectAll("g.callout").data(t);r.exit().remove();var o=r.enter().append("g").classed("callout",!0).attr("role",i.GRAPHICS_SYMBOL+" "+i.GROUP).attr("aria-roledescription","label callout");o.merge(r).datum((function(t){var e=t.xPosition,r=t.yPosition,i=t.direction;return i===v.RIGHT?(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e+n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-n.pie.callout.horizontalLineLength):(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e-n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+n.pie.callout.horizontalLineLength),t}));var a=o.append("line").classed("vertical-line",!0);a.merge(e.selectAll("line.vertical-line")).datum((function(t){return Tg(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var s=o.append("line").classed("horizontal-line",!0);s.merge(r.selectAll("line.horizontal-line")).datum((function(t){return Tg(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mousemove",(function(){var e=Tg(this);e.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent("pie-slice-mouseover",e),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent("pie-slice-mouseout",e),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})})).on("click",(function(e){return t.services.events.dispatchEvent("pie-slice-click",e)}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=Ng.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.radiusOffset},e}(Mx),nw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return nw(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this,r=Ng.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();Ng.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(Tg(this))})),Ng.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(Xs.getProperty(i,"donut","center","label"))},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=Xs.getProperty(e,"donut","center","number");n||(n=this.getDataList().reduce((function(t,e){return t+e.value}),0));var r=parseInt(t.text().replace(/[, ]+/g,""),10)||0,i=hh(r,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(i(n)))}},e}(ew),iw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ow=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return iw(e,t),e.prototype.render=function(){this.getContainerSVG().append("rect").attr("x",0).attr("y",0).attr("width",this.configs.size||vu.default.size).attr("height",this.configs.size||vu.default.size).attr("opacity",0)},e}(Mx);function aw(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var sw=function(){return this.eachAfter(aw)},uw=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},cw=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},lw=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},hw=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},fw=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},pw=function(t){var e=this,n=dw(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function dw(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var vw=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},yw=function(){var t=[];return this.each((function(e){t.push(e)})),t},gw=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},_w=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function mw(t,e){var n,r,i,o,a,s=new Tw(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=xw);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Tw(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ow)}function bw(){return mw(this).eachBefore(ww)}function xw(t){return t.children}function ww(t){t.data=t.data.data}function Ow(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Tw(t){this.data=t,this.depth=this.height=0,this.parent=null}Tw.prototype=mw.prototype={constructor:Tw,count:sw,each:uw,eachAfter:lw,eachBefore:cw,sum:hw,sort:fw,path:pw,ancestors:vw,descendants:yw,leaves:gw,links:_w,copy:bw};Array.prototype.slice;function Mw(t){if("function"!==typeof t)throw new Error;return t}function Ew(){return 0}var Sw=function(t){return function(){return t}};var Aw=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},kw=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c};function Pw(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Pw.prototype=Object.create(Tw.prototype);var Cw=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},Lw=(1+Math.sqrt(5))/2;function jw(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,y,g=[],_=e.children,m=0,b=0,x=_.length,w=e.value;while(m<x){u=i-n,c=o-r;do{l=_[b++].value}while(!l&&b<x);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),y=l*l*v,d=Math.max(f/y,y/h);b<x;++b){if(l+=s=_[b].value,s<h&&(h=s),s>f&&(f=s),y=l*l*v,p=Math.max(f/y,y/h),p>d){l-=s;break}d=p}g.push(a={value:l,dice:u<c,children:_.slice(m,b)}),a.dice?kw(a,n,r,i,w?r+=c*l/w:o):Cw(a,n,r,w?n+=u*l/w:i,o),w-=l,m=b}return g}var Dw=function t(e){function n(t,n,r,i,o){jw(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Lw),Nw=function(){var t=Dw,e=!1,n=1,r=1,i=[0],o=Ew,a=Ew,s=Ew,u=Ew,c=Ew;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Aw),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=Mw(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:Sw(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:Sw(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:Sw(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:Sw(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:Sw(+t),l):c},l},Rw=(function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e){var a,s,u,c,l,h=-1,f=a.length,p=t.value;while(++h<f){for(s=a[h],u=s.children,c=s.value=0,l=u.length;c<l;++c)s.value+=u[c].value;s.dice?kw(s,n,r,i,r+=(o-r)*s.value/p):Cw(s,n,r,n+=(i-n)*s.value/p,o),p-=s.value}}else t._squarify=a=jw(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Lw),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Fw=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===p.ROW_REVERSE||a.configs.direction===p.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return Rw(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Xs.getProperty(t,"data","growth","x");return e===d.PREFERRED||e===d.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Xs.getProperty(t,"data","growth","x");return e===d.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=Ng.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=mw({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===p.ROW||this.configs.direction===p.ROW_REVERSE?kw:Cw;Nw().tile(s).size([i,o])(a);var u=this.configs.direction===p.ROW||this.configs.direction===p.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(Tg(n));var i=Xs.getProperty(e,"data","growth","x");i!==d.PREFERRED&&i!==d.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=Xs.getProperty(t,"data","growth","x"),n=Ng.getSVGElementSize(Tg(this),{useBBox:!0});if(e===d.PREFERRED){var r=u?n.width:n.height,a=u?i:o;t.data.size=r/a*100}})),c.exit().remove(),this.children.filter((function(t){var e=Xs.getProperty(t,"growth","x");return e===d.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=mw({children:this.children}).sum((function(t){return t.size})),Nw().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=Xs.getProperty(e,"data","growth","x");r===d.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(Mx),Iw=Array.prototype.slice,Vw=function(t){return t},Hw=1,Bw=2,zw=3,Gw=4,Uw=1e-6;function Yw(t){return"translate("+(t+.5)+",0)"}function Xw(t){return"translate(0,"+(t+.5)+")"}function Ww(t){return function(e){return+t(e)}}function qw(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function $w(){return!this.__axis}function Zw(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===Hw||t===Gw?-1:1,c=t===Gw||t===Bw?"x":"y",l=t===Hw||t===zw?Yw:Xw;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):Vw:i,d=Math.max(o,0)+s,v=e.range(),y=+v[0]+.5,g=+v[v.length-1]+.5,_=(e.bandwidth?qw:Ww)(e.copy()),m=h.selection?h.selection():h,b=m.selectAll(".domain").data([null]),x=m.selectAll(".tick").data(f,e).order(),w=x.exit(),O=x.enter().append("g").attr("class","tick"),T=x.select("line"),M=x.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(O),T=T.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),M=M.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===Hw?"0em":t===zw?"0.71em":"0.32em")),h!==m&&(b=b.transition(h),x=x.transition(h),T=T.transition(h),M=M.transition(h),w=w.transition(h).attr("opacity",Uw).attr("transform",(function(t){return isFinite(t=_(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",Uw).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:_(t))}))),w.remove(),b.attr("d",t===Gw||t==Bw?a?"M"+u*a+","+y+"H0.5V"+g+"H"+u*a:"M0.5,"+y+"V"+g:a?"M"+y+","+u*a+"V0.5H"+g+"V"+u*a:"M"+y+",0.5H"+g),x.attr("opacity",1).attr("transform",(function(t){return l(_(t))})),T.attr(c+"2",u*o),M.attr(c,u*d).text(p),m.filter($w).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Bw?"start":t===Gw?"end":"middle"),m.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Iw.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Iw.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Iw.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function Jw(t){return Zw(Hw,t)}function Qw(t){return Zw(Bw,t)}function Kw(t){return Zw(zw,t)}function tO(t){return Zw(Gw,t)}var eO,nO,rO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iO=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return rO(e,t),e.prototype.createOrGetScale=function(){var t,e,n=this.configs.position,r=Xs.getProperty(this.model.getOptions(),"axes",n);if(this.scaleType=r&&r.scaleType?r.scaleType:u.LINEAR,e=this.scaleType===u.TIME?Av():this.scaleType===u.LOG?sp().base(r.base||10):this.scaleType===u.LABELS?_l():Zf(),!this.model.get(n)){var i=(t={},t[n]=this,t);r&&(!0===r.primary&&(i[s.PRIMARY]=this),!0===r.secondary&&(i[s.SECONDARY]=this)),this.model.set(i,!0)}return this.scale=e,e},e.prototype.getScale=function(){return this.scale?this.scale:this.createOrGetScale()},e.prototype.getScaleDomain=function(){var t,e=this.model.getOptions(),n=this.configs.position,r=Xs.getProperty(e,"axes",n),i=this.model.getDisplayData(),o=i.datasets,a=i.labels;if(r&&r.scaleType===u.LABELS)return a||this.model.getDisplayData().datasets[0].data.map((function(t,e){return e+1}));if(r.stacked)t=$c(a.reduce((function(t,e,n){var r=o.map((function(t){return isNaN(t.data[n])?t.data[n].value:t.data[n]})),i=r.reduce((function(t,e){return t+e}),0);return t.concat(i,il(r))}),[]).concat(0));else{var s=o.reduce((function(t,e){return e.data.forEach((function(e){t=r.scaleType===u.TIME?t.concat(e.date):t.concat(isNaN(e)?e.value:e)})),t}),[]);r.scaleType!==u.TIME&&(s=s.concat(0)),t=$c(s)}if(r.scaleType===u.TIME){if(Xs.getProperty(e,"timeScale","addSpaceOnEdges")){var c=t[0],l=t[1];c.setDate(c.getDate()-1),l.setDate(l.getDate()+1)}return[new Date(t[0]),new Date(t[1])]}return t[1]=1.1*t[1],t},e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,o=this.model.getOptions(),s=Xs.getProperty(o,"axes",r),c=this.getContainerSVG(),l=Ng.getSVGElementSize(this.parent,{useAttrs:!0}),h=l.width,f=l.height;r===a.BOTTOM||r===a.TOP?(e=this.configs.axes[a.LEFT]?this.margins.left:0,n=this.configs.axes[a.RIGHT]?h-this.margins.right:h):(e=f-this.margins.bottom,n=this.margins.top);var p,d=this.createOrGetScale().domain(this.getScaleDomain());switch(this.scaleType===u.LABELS?d.rangeRound([e,n]):d.range([e,n]),r){case a.LEFT:p=tO;break;case a.BOTTOM:p=Kw;break;case a.RIGHT:p=Qw;break;case a.TOP:p=Jw;break}if(this.scaleType===u.TIME){var v=Xs.getProperty(o,"locale","time");v&&dv(v)}var y=p(d).tickSizeOuter(0).tickFormat(Xs.getProperty(s,"ticks","formatter"));if(d.ticks){var g=Xs.getProperty(s,"ticks","number")||du.ticks.number;if(y.ticks(g),this.scaleType===u.TIME){var _=d.ticks(g).concat(d.domain()).map((function(t){return+t})).sort();_=Xs.removeArrayDuplicates(_),Xs.getProperty(o,"timeScale","addSpaceOnEdges")&&_.length>2&&(_.splice(_.length-1,1),_.splice(0,1)),y.tickValues(_)}}var m=Ng.appendOrSelect(c,"g.axis."+r),b=!m.select("g.ticks").empty(),x=Ng.appendOrSelect(m,"g.ticks");b||x.attr("role",i.GRAPHICS_OBJECT+" "+i.GROUP);var w=Ng.appendOrSelect(m,"g.ticks.invisible").style("opacity","0").attr("aria-hidden",!0);switch(r){case a.LEFT:x.attr("transform","translate("+this.margins.left+", 0)");break;case a.BOTTOM:x.attr("transform","translate(0, "+(f-this.margins.bottom)+")");break;case a.RIGHT:x.attr("transform","translate("+(h-this.margins.right)+", 0)");break;case a.TOP:x.attr("transform","translate(0, "+this.margins.top+")");break}if(s.title){var O=Ng.appendOrSelect(m,"text.axis-title").text(s.title);switch(r){case a.LEFT:O.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case a.BOTTOM:O.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+f+")").style("text-anchor","middle");break;case a.RIGHT:O.attr("transform","rotate(90)").attr("y",-h).attr("x",d.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case a.TOP:var T=Ng.getSVGElementSize(O,{useBBox:!0}).height;O.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+T/2+")").style("text-anchor","middle");break}}if(x=t&&b?x.transition(this.services.transitions.getTransition("axis-update")).call(y):x.call(y),w.call(y),r===a.BOTTOM||r===a.TOP){var M=!1;if(d.step){var E=w.selectAll("g.tick text").nodes();M=E.some((function(t){return Ng.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{var S=Xs.getProperty(s,"ticks","rotateIfSmallerThan")||du.ticks.rotateIfSmallerThan,A=h/d.ticks().length/2;M=A<S}M?m.selectAll("g.ticks g.tick text").attr("transform","rotate(45)").style("text-anchor",r===a.TOP?"end":"start"):m.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}},e.prototype.getValueFromScale=function(t,e){var n=isNaN(t)?t.value:t;if(this.scaleType===u.LABELS){var r=this.model.getDisplayData().labels[e];return this.scale(r)+this.scale.step()/2}return this.scaleType===u.TIME?this.scale(new Date(t.date||t.label)):this.scale(n)},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e}(Mx),oO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.margins={top:0,right:0,bottom:0,left:0},e}return oO(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(a),i=Xs.getProperty(this.model.getOptions(),"axes");i?r.forEach((function(t){var e=i[a[t]];e&&(n[a[t]]=!0,!0===e.primary?e:!0===e.secondary&&e)})):(this.model.getOptions().axes={left:{primary:!0},bottom:{secondary:!0,type:this.model.getDisplayData().labels?u.LABELS:void 0}},n[a.LEFT]=!0,n[a.BOTTOM]=!0);this.configs.axes=n,r.forEach((function(t){var n=a[t];if(e.configs.axes[n]&&!e.children[n]){var r=new iO(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,s=r.getInvisibleAxisRef(),u=Ng.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(n=r.getTitleRef().empty()?0:Ng.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i){case a.TOP:o.top=l+n;break;case a.BOTTOM:o.bottom=l+n;break;case a.LEFT:o.left=c+n;break;case a.RIGHT:o.right=c+n;break}}));var s=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));s&&(this.margins=Object.assign(this.margins,o),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(Mx),sO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return sO(e,t),e.prototype.render=function(){this.drawBackdrop(),Ng.appendOrSelect(this.backdrop,"g.x.grid"),Ng.appendOrSelect(this.backdrop,"g.y.grid"),this.drawXGrid(),this.drawYGrid(),Xs.getProperty(this.model.getOptions(),"tooltip","gridline","enabled")&&this.addGridEventListeners()},e.prototype.drawXGrid=function(){var t=this.parent,e=this.backdrop.attr("height"),n=this.services.axes.getMainXAxis().getScale(),r=Kw(n).tickSizeInner(-e).tickSizeOuter(0),i=Xs.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");r.ticks(i);var o=t.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+e+")").call(r);this.cleanGrid(o)},e.prototype.drawYGrid=function(){var t=this.parent,e=this.backdrop.attr("width"),n=this.services.axes.getMainYAxis().getScale(),r=tO(n).tickSizeInner(-e).tickSizeOuter(0),i=Xs.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");r.ticks(i);var o=t.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")").call(r);this.cleanGrid(o)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(Xs.getTranslationValues(t).tx)-Number(Xs.getTranslationValues(e).tx)})),i=-1;r.forEach((function(e,n){t[0]>=+Xs.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+Xs.getTranslationValues(s).tx-+Xs.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=Ng.getSVGElementSize(u).width;o=c-+Xs.getTranslationValues(a).tx}else o=+Xs.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l},e.prototype.getActiveGridline=function(t){var e=Xs.getProperty(this.model.getOptions,"tooltip","gridline","threshold")?Xs.getProperty(this.model.getOptions,"tooltip","gridline","threshold"):this.getGridlineThreshold(t),n=this.parent,r=n.selectAll(".x.grid .tick").filter((function(){var n=Xs.getTranslationValues(this),r={min:Number(n.tx)-e,max:Number(n.tx)+e};return r.min<=t[0]&&t[0]<=r.max}));return r},e.prototype.addGridEventListeners=function(){var t=this,e=this.parent,n=Ng.appendOrSelect(e,"rect.chart-grid-backdrop");n.on("mousemove mouseover",(function(){var n=t.services.domUtils.getMainSVG(),r=Pg(n),i=Tg(this),o=e.selectAll(".x.grid .tick");o.classed("active",!1);var a,s=t.getActiveGridline(r);s.empty()?t.services.events.dispatchEvent("hide-tooltip",{}):(s.classed("active",!0),s.each((function(e){a=t.services.axes.getDataFromDomain(e)})),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:i,multidata:a,type:l.GRIDLINE}))})).on("mouseout",(function(){e.selectAll(".x.grid .tick").classed("active",!1),t.services.events.dispatchEvent("hide-tooltip",{})}))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.axes.getMainXAxis().getScale(),n=this.services.axes.getMainYAxis().getScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=Ng.appendOrSelect(t,"svg.chart-grid-backdrop");var c=Ng.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){var e=this.model.getOptions();t.selectAll("line").attr("stroke",e.grid.strokeColor),t.selectAll("text").remove(),t.select(".domain").remove()},e}(Mx),cO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="horizontal-zero-line",e}return cO(e,t),e.prototype.render=function(t){var e=this.getContainerSVG(),n=this.services.axes.getMainXAxis().scale.range(),r=n[0],i=n[1],o=this.services.axes.getYValue(0)+.5,a=Ng.appendOrSelect(e,"line.domain");a.transition(this.services.transitions.getTransition("horizontal-line-update",t)).attr("y1",o).attr("y2",o).attr("x1",r).attr("x2",i)},e}(Mx),hO=function(){function t(t,e){this.services={domUtils:Ng,events:Fg,transitions:Vm},this.model=new Lv(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},!0),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener("model-update",(function(){n.update(!0)})),this.model.setData(e.data),this.services.events.addEventListener("chart-resize",(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent("render-finished")}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},!0)},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new kx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},n={id:"legend",components:[new Sx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},r={id:"graph-frame",components:t,growth:{x:d.STRETCH,y:d.FIXED}},i=p.COLUMN,o=Xs.getProperty(this.model.getOptions(),"legend","position");"left"===o?(i=p.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):"right"===o?(i=p.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):"bottom"===o&&(i=p.COLUMN_REVERSE);var a={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},s={id:"full-frame",components:[new Fw(this.model,this.services,[n,a,r],{direction:i})],growth:{x:d.STRETCH,y:d.FIXED}},u=[];if(this.model.getOptions().title){u.push(e);var c={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}};u.push(c)}return u.push(s),[new Fw(this.model,this.services,u,{direction:p.COLUMN})]},t}(),fO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{axes:Bm,curves:Tx}),r}return fO(e,t),e.prototype.getAxisChartComponents=function(t){var e={id:"title",components:[new kx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},n={id:"legend",components:[new Sx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},r={id:"graph-frame",components:t,growth:{x:d.STRETCH,y:d.FIXED}},i=p.COLUMN,o=Xs.getProperty(this.model.getOptions(),"legend","position");o===h.LEFT?(i=p.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):o===h.RIGHT?(i=p.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):o===h.BOTTOM&&(i=p.COLUMN_REVERSE);var a={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},s={id:"full-frame",components:[new Fw(this.model,this.services,[n,a,r],{direction:i})],growth:{x:d.STRETCH,y:d.FIXED}},u=[];if(this.model.getOptions().title){u.push(e);var c={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}};u.push(c)}return u.push(s),[new Fw(this.model,this.services,u,{direction:p.COLUMN})]},e}(hO),dO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vO=function(t){function e(e){return t.call(this,e)||this}return dO(e,t),e.prototype.generateDataLabels=function(t){var e={};return t.labels.forEach((function(t){e[t]=qs.items.status.ACTIVE})),e},e.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data")),r=n.datasets[0];return r.data=r.data.filter((function(r,i){var o=n.labels[i];return e[o]===t})),n.labels=n.labels.filter((function(n){return e[n]===t})),n},e.prototype.setColorScale=function(){var t=this.getDisplayData().datasets[0];if(t.fillColors)this.colorScale=gl().range(t.fillColors).domain(this.allDataLabels);else{var e=zc;this.colorScale=gl().range(e).domain(this.allDataLabels)}},e.prototype.getFillColor=function(t){var e=this.getOptions();return e.getFillColor?e.getFillColor(t):this.getFillScale()(t)},e.prototype.getStrokeColor=function(t){var e=this.getOptions();return e.getStrokeColor?e.getStrokeColor(t):this.colorScale(t)},e}(Lv),yO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new vO(r.services),r.model.setOptions(Xs.merge(Xs.clone(hu.simpleBarChart),n.options)),r.init(e,n),r}return yO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Gx(this.model,this.services),new lO(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),_O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.groupedBarChart),n.options)),r.init(e,n),r}return _O(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Yx(this.model,this.services),new lO(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),bO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.stackedBarChart),n.options)),r.init(e,n),r}return bO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),wO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.lineChart),n.options)),r.init(e,n),r}return wO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Zx(this.model,this.services),new Qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Vx(this.model,this.services)),e},e}(pO),TO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.scatterChart),n.options)),r.init(e,n),r}return TO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Vx(this.model,this.services)),e},e}(pO),EO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),SO=function(t){function e(e){return t.call(this,e)||this}return EO(e,t),e.prototype.generateDataLabels=function(t){var e={};return t.labels.forEach((function(t){e[t]=qs.items.status.ACTIVE})),e},e.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data")),r=n.datasets[0];return r.data=r.data.filter((function(r,i){var o=n.labels[i];return e[o]===t})),n.labels=n.labels.filter((function(n){return e[n]===t})),n},e.prototype.toggleDataLabel=function(t){var e=qs.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.get("dataLabels"),o=Object.keys(i).some((function(t){return i[t]===r})),a=Object.keys(i).filter((function(t){return i[t]===n}));o?1===a.length&&a[0]===t?Object.keys(i).forEach((function(t){i[t]=n})):i[t]=i[t]===r?n:r:Object.keys(i).forEach((function(e){i[e]=e===t?n:r})),this.set({dataLabels:i})},e.prototype.setColorScale=function(){var t=this.getDisplayData().datasets[0];if(t.fillColors)this.colorScale=gl().range(t.fillColors).domain(this.allDataLabels);else{var e=zc;this.colorScale=gl().range(e).domain(this.allDataLabels)}},e.prototype.getFillColor=function(t){var e=this.getOptions();return e.getFillColor?e.getFillColor(t):this.getFillScale()(t)},e.prototype.getStrokeColor=function(t){var e=this.getOptions();return e.getStrokeColor?e.getStrokeColor(t):this.colorScale(t)},e}(Lv),AO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kO=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new SO(i.services),r?i:(i.model.setOptions(Xs.merge(Xs.clone(hu.pieChart),n.options)),i.init(e,n),i)}return AO(e,t),e.prototype.getComponents=function(){var t=[new ew(this.model,this.services)],e=this.getChartComponents(t);return e.push(new Nx(this.model,this.services)),e},e}(hO),PO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CO=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.donutChart),n.options)),r.init(e,n),r}return PO(e,t),e.prototype.getComponents=function(){var t=[new rw(this.model,this.services)],e=this.getChartComponents(t);return e.push(new Nx(this.model,this.services)),e},e}(kO),LO={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:Object,required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},jO=LO;function DO(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var NO=DO(jO,eO,nO,!1,null,null,null),RO=NO.exports,FO={name:"CcvSimpleBarChart",extends:RO,mounted:function(){this.coreChart=new gO(this.$el,{data:this.data,options:this.options})}},IO=FO,VO=DO(IO,y,g,!1,null,null,null),HO=VO.exports,BO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},zO=[],GO={name:"CcvGroupedBarChart",extends:RO,mounted:function(){this.coreChart=new mO(this.$el,{data:this.data,options:this.options})}},UO=GO,YO=DO(UO,BO,zO,!1,null,null,null),XO=YO.exports,WO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},qO=[],$O={name:"CcvStackedBarChart",extends:RO,mounted:function(){this.coreChart=new xO(this.$el,{data:this.data,options:this.options})}},ZO=$O,JO=DO(ZO,WO,qO,!1,null,null,null),QO=JO.exports,KO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},tT=[],eT={name:"CcvLineChart",extends:RO,mounted:function(){this.coreChart=new OO(this.$el,{data:this.data,options:this.options})}},nT=eT,rT=DO(nT,KO,tT,!1,null,null,null),iT=rT.exports,oT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},aT=[],sT={name:"CcvScatterChart",extends:RO,mounted:function(){this.coreChart=new MO(this.$el,{data:this.data,options:this.options})}},uT=sT,cT=DO(uT,oT,aT,!1,null,null,null),lT=cT.exports,hT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},fT=[],pT={name:"CcvDonutChart",extends:RO,mounted:function(){this.coreChart=new CO(this.$el,{data:this.data,options:this.options})}},dT=pT,vT=DO(dT,hT,fT,!1,null,null,null),yT=vT.exports,gT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},_T=[],mT={name:"CcvPieChart",extends:RO,mounted:function(){this.coreChart=new kO(this.$el,{data:this.data,options:this.options})}},bT=mT,xT=DO(bT,gT,_T,!1,null,null,null),wT=xT.exports,OT=[HO,XO,QO,iT,lT,yT,wT],TT={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=OT[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=OT[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvSimpleBarChart",(function(){return HO})),n.d(e,"CcvGroupedBarChart",(function(){return XO})),n.d(e,"CcvStackedBarChart",(function(){return QO})),n.d(e,"CcvLineChart",(function(){return iT})),n.d(e,"CcvScatterChart",(function(){return lT})),n.d(e,"CcvDonutChart",(function(){return yT})),n.d(e,"CcvPieChart",(function(){return wT}));e["default"]=TT},2314:function(t,e){const n={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "};t.exports=n},"25a6":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},2866:function(t,e,n){var r=n("0b04"),i=n("c74b").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"2c53":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"2d2d":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=T(0,0,0,0);function v(t){return parseFloat(t)||0}function y(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function g(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function _(t){var e=t.getBBox();return T(0,0,e.width,e.height)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=g(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=y(r,"left","right")+o),Math.round(u+a)!==n&&(u-=y(r,"top","bottom")+a)),!x(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return T(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function x(t){return t===p(t).document.documentElement}function w(t){return r?b(t)?_(t):m(t):d}function O(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function T(t,e,n,r){return{x:t,y:e,width:n,height:r}}var M=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=t};M.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var E=function(t,e){var n=O(e);f(this,{target:t,contentRect:n})},S=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};S.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new M(t)),this.controller_.addObserver(this),this.controller_.refresh())}},S.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},S.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},S.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},S.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},S.prototype.clearActive=function(){this.activeObservations_.splice(0)},S.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,k=function(t){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new S(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){k.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:k}();e["a"]=P}).call(this,n("2c53"))},"2e73":function(t,e,n){for(var r=n("dde3"),i=n("8996"),o=n("e385"),a=n("0e8c"),s=n("bafe"),u=n("9dd3"),c=n("d951"),l=c("iterator"),h=c("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v<d.length;v++){var y,g=d[v],_=p[g],m=a[g],b=m&&m.prototype;if(b&&(b[l]||s(b,l,f),b[h]||s(b,h,g),u[g]=f,_))for(y in r)b[y]||o(b,y,r[y],!0)}},3460:function(t,e,n){var r=n("5c50"),i=n("0e8c"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("742f")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"36f8":function(t,e,n){var r=n("0e8c"),i=n("5c50"),o=n("742f"),a=n("b6ac"),s=n("6f0d").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3bd0":function(t,e,n){"use strict";var r=n("bec8"),i=n("ad8d"),o=n("0e85"),a={};n("bafe")(a,n("d951")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"3d85":function(t,e,n){t.exports=!n("a124")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"402c":function(t,e,n){var r=n("d0e9"),i=n("ad8d"),o=n("0b04"),a=n("78d3"),s=n("25a6"),u=n("cd30"),c=Object.getOwnPropertyDescriptor;e.f=n("3d85")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},4823:function(t,e,n){"use strict";var r=n("0e8c"),i=n("25a6"),o=n("3d85"),a=n("ef37"),s=n("e385"),u=n("054c").KEY,c=n("a124"),l=n("3460"),h=n("0e85"),f=n("f455"),p=n("d951"),d=n("b6ac"),v=n("36f8"),y=n("ffaf"),g=n("4cf2"),_=n("8c7e"),m=n("194e"),b=n("79c1"),x=n("0b04"),w=n("78d3"),O=n("ad8d"),T=n("bec8"),M=n("2866"),E=n("402c"),S=n("8109"),A=n("6f0d"),k=n("8996"),P=E.f,C=A.f,L=M.f,j=r.Symbol,D=r.JSON,N=D&&D.stringify,R="prototype",F=p("_hidden"),I=p("toPrimitive"),V={}.propertyIsEnumerable,H=l("symbol-registry"),B=l("symbols"),z=l("op-symbols"),G=Object[R],U="function"==typeof j&&!!S.f,Y=r.QObject,X=!Y||!Y[R]||!Y[R].findChild,W=o&&c((function(){return 7!=T(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=P(G,e);r&&delete G[e],C(t,e,n),r&&t!==G&&C(G,e,r)}:C,q=function(t){var e=B[t]=T(j[R]);return e._k=t,e},$=U&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Z=function(t,e,n){return t===G&&Z(z,e,n),_(t),e=w(e,!0),_(n),i(B,e)?(n.enumerable?(i(t,F)&&t[F][e]&&(t[F][e]=!1),n=T(n,{enumerable:O(0,!1)})):(i(t,F)||C(t,F,O(1,{})),t[F][e]=!0),W(t,e,n)):C(t,e,n)},J=function(t,e){_(t);var n,r=y(e=x(e)),i=0,o=r.length;while(o>i)Z(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?T(t):J(T(t),e)},K=function(t){var e=V.call(this,t=w(t,!0));return!(this===G&&i(B,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!i(B,e)||i(z,e)){var n=P(t,e);return!n||!i(B,e)||i(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=L(x(t)),r=[],o=0;while(n.length>o)i(B,e=n[o++])||e==F||e==u||r.push(e);return r},nt=function(t){var e,n=t===G,r=L(n?z:x(t)),o=[],a=0;while(r.length>a)!i(B,e=r[a++])||n&&!i(G,e)||o.push(B[e]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(z,n),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),W(this,t,O(1,n))};return o&&X&&W(G,t,{configurable:!0,set:e}),q(t)},s(j[R],"toString",(function(){return this._k})),E.f=tt,A.f=Z,n("c74b").f=M.f=et,n("d0e9").f=K,S.f=nt,o&&!n("742f")&&s(G,"propertyIsEnumerable",K,!0),d.f=function(t){return q(p(t))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)p(rt[it++]);for(var ot=k(p.store),at=0;ot.length>at;)v(ot[at++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(H,t+="")?H[t]:H[t]=j(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!U,"Object",{create:Q,defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){S.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return S.f(b(t))}}),D&&a(a.S+a.F*(!U||c((function(){var t=j();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,N.apply(D,r)}}),j[R][I]||n("bafe")(j[R],I,j[R].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("0b74")(t))},"4cf2":function(t,e,n){var r=n("b735");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"4f72":function(t,e,n){"use strict";var r=n("ef37"),i=n("af6b")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("96ba")("includes")},"50cc":function(t,e,n){var r=n("0e8c").document;t.exports=r&&r.documentElement},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5c50":function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5e32":function(t,e,n){n("36f8")("asyncIterator")},"6ccd":function(t,e,n){var r=n("6f0d"),i=n("8c7e"),o=n("8996");t.exports=n("3d85")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"6f0d":function(t,e,n){var r=n("8c7e"),i=n("cd30"),o=n("78d3"),a=Object.defineProperty;e.f=n("3d85")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"742f":function(t,e){t.exports=!1},"78d3":function(t,e,n){var r=n("194e");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"79c1":function(t,e,n){var r=n("c8ae");t.exports=function(t){return Object(r(t))}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},8109:function(t,e){e.f=Object.getOwnPropertySymbols},8222:function(t,e,n){var r=n("d951")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},8996:function(t,e,n){var r=n("dd61"),i=n("eaa3");t.exports=Object.keys||function(t){return r(t,i)}},"8c7e":function(t,e,n){var r=n("194e");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"904a":function(t,e,n){var r=n("25a6"),i=n("79c1"),o=n("f962")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("2c53"))},"96ba":function(t,e,n){var r=n("d951")("unscopables"),i=Array.prototype;void 0==i[r]&&n("bafe")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9b86":function(t,e,n){var r=n("194e"),i=n("0e8c").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"9c84":function(t,e,n){t.exports=n("3460")("native-function-to-string",Function.toString)},"9dd3":function(t,e){t.exports={}},"9e61":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a124:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},ad8d:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},adb3:function(t,e,n){var r=n("9e61"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},aec0:function(t,e,n){var r=n("b735");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},af6b:function(t,e,n){var r=n("0b04"),i=n("bb64"),o=n("adb3");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},b6ac:function(t,e,n){e.f=n("d951")},b735:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},bafe:function(t,e,n){var r=n("6f0d"),i=n("ad8d");t.exports=n("3d85")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},bb64:function(t,e,n){var r=n("9e61"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},bec8:function(t,e,n){var r=n("8c7e"),i=n("6ccd"),o=n("eaa3"),a=n("f962")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("9b86")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("50cc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},c74b:function(t,e,n){var r=n("dd61"),i=n("eaa3").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},c880:function(t,e,n){var r=n("6f0d").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("3d85")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},c8ae:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},cd30:function(t,e,n){t.exports=!n("3d85")&&!n("a124")((function(){return 7!=Object.defineProperty(n("9b86")("div"),"a",{get:function(){return 7}}).a}))},d0e9:function(t,e){e.f={}.propertyIsEnumerable},d3d5:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("0b74")(t))},d951:function(t,e,n){var r=n("3460")("wks"),i=n("f455"),o=n("0e8c").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},dafe:function(t,e,n){var r=n("eb58"),i=n("c8ae");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},dcce:function(t,e,n){"use strict";var r=n("742f"),i=n("ef37"),o=n("e385"),a=n("bafe"),s=n("9dd3"),u=n("3bd0"),c=n("0e85"),l=n("904a"),h=n("d951")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",y=function(){return this};t.exports=function(t,e,n,g,_,m,b){u(n,e,g);var x,w,O,T=function(t){if(!f&&t in A)return A[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",E=_==v,S=!1,A=t.prototype,k=A[h]||A[p]||_&&A[_],P=k||T(_),C=_?E?T("entries"):P:void 0,L="Array"==e&&A.entries||k;if(L&&(O=l(L.call(new t)),O!==Object.prototype&&O.next&&(c(O,M,!0),r||"function"==typeof O[h]||a(O,h,y))),E&&k&&k.name!==v&&(S=!0,P=function(){return k.call(this)}),r&&!b||!f&&!S&&A[h]||a(A,h,P),s[e]=P,s[M]=y,_)if(x={values:E?P:T(v),keys:m?P:T(d),entries:C},b)for(w in x)w in A||o(A,w,x[w]);else i(i.P+i.F*(f||S),e,x);return x}},dd61:function(t,e,n){var r=n("25a6"),i=n("0b04"),o=n("af6b")(!1),a=n("f962")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},dde3:function(t,e,n){"use strict";var r=n("96ba"),i=n("2d2d"),o=n("9dd3"),a=n("0b04");t.exports=n("dcce")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e385:function(t,e,n){var r=n("0e8c"),i=n("bafe"),o=n("25a6"),a=n("f455")("src"),s=n("9c84"),u="toString",c=(""+s).split(u);n("5c50").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},eaa3:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},eb58:function(t,e,n){var r=n("194e"),i=n("b735"),o=n("d951")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ef37:function(t,e,n){var r=n("0e8c"),i=n("5c50"),o=n("bafe"),a=n("e385"),s=n("124c"),u="prototype",c=function(t,e,n){var l,h,f,p,d=t&c.F,v=t&c.G,y=t&c.S,g=t&c.P,_=t&c.B,m=v?r:y?r[e]||(r[e]={}):(r[e]||{})[u],b=v?i:i[e]||(i[e]={}),x=b[u]||(b[u]={});for(l in v&&(n=e),n)h=!d&&m&&void 0!==m[l],f=(h?m:n)[l],p=_&&h?s(f,r):g&&"function"==typeof f?s(Function.call,f):f,m&&a(m,l,f,t&c.U),b[l]!=f&&o(b,l,p),g&&x[l]!=f&&(x[l]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},f455:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},f962:function(t,e,n){var r=n("3460")("keys"),i=n("f455");t.exports=function(t){return r[t]||(r[t]=i(t))}},ffaf:function(t,e,n){var r=n("8996"),i=n("8109"),o=n("d0e9");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}}})}));
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["charts-vue"]=e():t["charts-vue"]=e()})("undefined"!==typeof self?self:this,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="1c25")}({"01ff":function(t,e,n){"use strict";(function(t){var r=n("92ae"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a&&r["a"].process,u=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(e){}}();e["a"]=u}).call(this,n("0b74")(t))},"054c":function(t,e,n){var r=n("f455")("meta"),i=n("194e"),o=n("25a6"),a=n("6f0d").f,s=0,u=Object.isExtensible||function(){return!0},c=!n("a124")((function(){return u(Object.preventExtensions({}))})),l=function(t){a(t,r,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";l(t)}return t[r].i},f=function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;l(t)}return t[r].w},p=function(t){return c&&d.NEED&&u(t)&&!o(t,r)&&l(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:h,getWeak:f,onFreeze:p}},"0b04":function(t,e,n){var r=n("aec0"),i=n("c8ae");t.exports=function(t){return r(i(t))}},"0b74":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"0d9c":function(t,e,n){"use strict";var r=n("ef37"),i=n("dafe"),o="includes";r(r.P+r.F*n("8222")(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"0e85":function(t,e,n){var r=n("6f0d").f,i=n("25a6"),o=n("d951")("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},"0e8c":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"124c":function(t,e,n){var r=n("d3d5");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,i){return t.call(e,n,r,i)}}return function(){return t.apply(e,arguments)}}},"194e":function(t,e){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},"1c25":function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));n("4f72"),n("0d9c"),n("c880"),n("5e32"),n("4823"),n("2e73");var i,o,a,s,u,c,l,h,f,p,d,v,y=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-simple-bar-chart"})},g=[];function _(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}(function(t){t["GRAPHICS_DOCUMENT"]="graphics-document",t["GRAPHICS_OBJECT"]="graphics-object",t["GRAPHICS_SYMBOL"]="graphics-symbol",t["GROUP"]="group"})(i||(i={})),function(t){t["DEFAULT"]="default",t["G100"]="g100",t["G90"]="g90",t["G10"]="g10"}(o||(o={})),function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"}(a||(a={})),function(t){t["PRIMARY"]="primary",t["SECONDARY"]="secondary"}(s||(s={})),function(t){t["TIME"]="time",t["LINEAR"]="linear",t["LOG"]="log",t["LABELS"]="labels"}(u||(u={})),function(t){t["MOUSE"]="mouse",t["TOP"]="top",t["BOTTOM"]="bottom"}(c||(c={})),function(t){t["DATAPOINT"]="datapoint",t["GRIDLINE"]="gridline",t["TITLE"]="title"}(l||(l={})),function(t){t["RIGHT"]="right",t["LEFT"]="left",t["TOP"]="top",t["BOTTOM"]="bottom"}(h||(h={})),function(t){t["HORIZONTAL"]="horizontal",t["VERTICAL"]="vertical"}(f||(f={})),function(t){t["ROW"]="row",t["COLUMN"]="column",t["ROW_REVERSE"]="row-reverse",t["COLUMN_REVERSE"]="column-reverse"}(p||(p={})),function(t){t["FIXED"]="fixed",t["PREFERRED"]="preferred",t["STRETCH"]="stretch"}(d||(d={})),function(t){t["LEFT"]="left",t["RIGHT"]="right"}(v||(v={}));var m=_,b=n("7f0d"),x=function(){return b["a"].Date.now()},w=x,O=b["a"].Symbol,T=O,M=Object.prototype,E=M.hasOwnProperty,S=M.toString,A=T?T.toStringTag:void 0;function k(t){var e=E.call(t,A),n=t[A];try{t[A]=void 0;var r=!0}catch(o){}var i=S.call(t);return r&&(e?t[A]=n:delete t[A]),i}var P=k,C=Object.prototype,L=C.toString;function j(t){return L.call(t)}var D=j,N="[object Null]",R="[object Undefined]",F=T?T.toStringTag:void 0;function I(t){return null==t?void 0===t?R:N:F&&F in Object(t)?P(t):D(t)}var V=I;function H(t){return null!=t&&"object"==typeof t}var B=H,z="[object Symbol]";function G(t){return"symbol"==typeof t||B(t)&&V(t)==z}var U=G,Y=NaN,X=/^\s+|\s+$/g,W=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,$=/^0o[0-7]+$/i,Z=parseInt;function J(t){if("number"==typeof t)return t;if(U(t))return Y;if(m(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=m(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(X,"");var n=q.test(t);return n||$.test(t)?Z(t.slice(2),n?2:8):W.test(t)?Y:+t}var Q=J,K="Expected a function",tt=Math.max,et=Math.min;function nt(t,e,n){var r,i,o,a,s,u,c=0,l=!1,h=!1,f=!0;if("function"!=typeof t)throw new TypeError(K);function p(e){var n=r,o=i;return r=i=void 0,c=e,a=t.apply(o,n),a}function d(t){return c=t,s=setTimeout(g,e),l?p(t):a}function v(t){var n=t-u,r=t-c,i=e-n;return h?et(i,o-r):i}function y(t){var n=t-u,r=t-c;return void 0===u||n>=e||n<0||h&&r>=o}function g(){var t=w();if(y(t))return _(t);s=setTimeout(g,v(t))}function _(t){return s=void 0,f&&r?p(t):(r=i=void 0,a)}function b(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0}function x(){return void 0===s?a:_(w())}function O(){var t=w(),n=y(t);if(r=arguments,i=this,u=t,n){if(void 0===s)return d(u);if(h)return clearTimeout(s),s=setTimeout(g,e),p(u)}return void 0===s&&(s=setTimeout(g,e)),a}return e=Q(e)||0,m(n)&&(l=!!n.leading,h="maxWait"in n,o=h?tt(Q(n.maxWait)||0,e):o,f="trailing"in n?!!n.trailing:f),O.cancel=b,O.flush=x,O}var rt=nt;function it(){this.__data__=[],this.size=0}var ot=it;function at(t,e){return t===e||t!==t&&e!==e}var st=at;function ut(t,e){var n=t.length;while(n--)if(st(t[n][0],e))return n;return-1}var ct=ut,lt=Array.prototype,ht=lt.splice;function ft(t){var e=this.__data__,n=ct(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ht.call(e,n,1),--this.size,!0}var pt=ft;function dt(t){var e=this.__data__,n=ct(e,t);return n<0?void 0:e[n][1]}var vt=dt;function yt(t){return ct(this.__data__,t)>-1}var gt=yt;function _t(t,e){var n=this.__data__,r=ct(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var mt=_t;function bt(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}bt.prototype.clear=ot,bt.prototype["delete"]=pt,bt.prototype.get=vt,bt.prototype.has=gt,bt.prototype.set=mt;var xt=bt;function wt(){this.__data__=new xt,this.size=0}var Ot=wt;function Tt(t){var e=this.__data__,n=e["delete"](t);return this.size=e.size,n}var Mt=Tt;function Et(t){return this.__data__.get(t)}var St=Et;function At(t){return this.__data__.has(t)}var kt=At,Pt="[object AsyncFunction]",Ct="[object Function]",Lt="[object GeneratorFunction]",jt="[object Proxy]";function Dt(t){if(!m(t))return!1;var e=V(t);return e==Ct||e==Lt||e==Pt||e==jt}var Nt=Dt,Rt=b["a"]["__core-js_shared__"],Ft=Rt,It=function(){var t=/[^.]+$/.exec(Ft&&Ft.keys&&Ft.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Vt(t){return!!It&&It in t}var Ht=Vt,Bt=Function.prototype,zt=Bt.toString;function Gt(t){if(null!=t){try{return zt.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var Ut=Gt,Yt=/[\\^$.*+?()[\]{}|]/g,Xt=/^\[object .+?Constructor\]$/,Wt=Function.prototype,qt=Object.prototype,$t=Wt.toString,Zt=qt.hasOwnProperty,Jt=RegExp("^"+$t.call(Zt).replace(Yt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Qt(t){if(!m(t)||Ht(t))return!1;var e=Nt(t)?Jt:Xt;return e.test(Ut(t))}var Kt=Qt;function te(t,e){return null==t?void 0:t[e]}var ee=te;function ne(t,e){var n=ee(t,e);return Kt(n)?n:void 0}var re=ne,ie=re(b["a"],"Map"),oe=ie,ae=re(Object,"create"),se=ae;function ue(){this.__data__=se?se(null):{},this.size=0}var ce=ue;function le(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var he=le,fe="__lodash_hash_undefined__",pe=Object.prototype,de=pe.hasOwnProperty;function ve(t){var e=this.__data__;if(se){var n=e[t];return n===fe?void 0:n}return de.call(e,t)?e[t]:void 0}var ye=ve,ge=Object.prototype,_e=ge.hasOwnProperty;function me(t){var e=this.__data__;return se?void 0!==e[t]:_e.call(e,t)}var be=me,xe="__lodash_hash_undefined__";function we(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?xe:e,this}var Oe=we;function Te(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}Te.prototype.clear=ce,Te.prototype["delete"]=he,Te.prototype.get=ye,Te.prototype.has=be,Te.prototype.set=Oe;var Me=Te;function Ee(){this.size=0,this.__data__={hash:new Me,map:new(oe||xt),string:new Me}}var Se=Ee;function Ae(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}var ke=Ae;function Pe(t,e){var n=t.__data__;return ke(e)?n["string"==typeof e?"string":"hash"]:n.map}var Ce=Pe;function Le(t){var e=Ce(this,t)["delete"](t);return this.size-=e?1:0,e}var je=Le;function De(t){return Ce(this,t).get(t)}var Ne=De;function Re(t){return Ce(this,t).has(t)}var Fe=Re;function Ie(t,e){var n=Ce(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Ve=Ie;function He(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e<n){var r=t[e];this.set(r[0],r[1])}}He.prototype.clear=Se,He.prototype["delete"]=je,He.prototype.get=Ne,He.prototype.has=Fe,He.prototype.set=Ve;var Be=He,ze=200;function Ge(t,e){var n=this.__data__;if(n instanceof xt){var r=n.__data__;if(!oe||r.length<ze-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Be(r)}return n.set(t,e),this.size=n.size,this}var Ue=Ge;function Ye(t){var e=this.__data__=new xt(t);this.size=e.size}Ye.prototype.clear=Ot,Ye.prototype["delete"]=Mt,Ye.prototype.get=St,Ye.prototype.has=kt,Ye.prototype.set=Ue;var Xe=Ye;function We(t,e){var n=-1,r=null==t?0:t.length;while(++n<r)if(!1===e(t[n],n,t))break;return t}var qe=We,$e=function(){try{var t=re(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Ze=$e;function Je(t,e,n){"__proto__"==e&&Ze?Ze(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qe=Je,Ke=Object.prototype,tn=Ke.hasOwnProperty;function en(t,e,n){var r=t[e];tn.call(t,e)&&st(r,n)&&(void 0!==n||e in t)||Qe(t,e,n)}var nn=en;function rn(t,e,n,r){var i=!n;n||(n={});var o=-1,a=e.length;while(++o<a){var s=e[o],u=r?r(n[s],t[s],s,n,t):void 0;void 0===u&&(u=t[s]),i?Qe(n,s,u):nn(n,s,u)}return n}var on=rn;function an(t,e){var n=-1,r=Array(t);while(++n<t)r[n]=e(n);return r}var sn=an,un="[object Arguments]";function cn(t){return B(t)&&V(t)==un}var ln=cn,hn=Object.prototype,fn=hn.hasOwnProperty,pn=hn.propertyIsEnumerable,dn=ln(function(){return arguments}())?ln:function(t){return B(t)&&fn.call(t,"callee")&&!pn.call(t,"callee")},vn=dn,yn=Array.isArray,gn=yn,_n=n("4cf0"),mn=9007199254740991,bn=/^(?:0|[1-9]\d*)$/;function xn(t,e){var n=typeof t;return e=null==e?mn:e,!!e&&("number"==n||"symbol"!=n&&bn.test(t))&&t>-1&&t%1==0&&t<e}var wn=xn,On=9007199254740991;function Tn(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=On}var Mn=Tn,En="[object Arguments]",Sn="[object Array]",An="[object Boolean]",kn="[object Date]",Pn="[object Error]",Cn="[object Function]",Ln="[object Map]",jn="[object Number]",Dn="[object Object]",Nn="[object RegExp]",Rn="[object Set]",Fn="[object String]",In="[object WeakMap]",Vn="[object ArrayBuffer]",Hn="[object DataView]",Bn="[object Float32Array]",zn="[object Float64Array]",Gn="[object Int8Array]",Un="[object Int16Array]",Yn="[object Int32Array]",Xn="[object Uint8Array]",Wn="[object Uint8ClampedArray]",qn="[object Uint16Array]",$n="[object Uint32Array]",Zn={};function Jn(t){return B(t)&&Mn(t.length)&&!!Zn[V(t)]}Zn[Bn]=Zn[zn]=Zn[Gn]=Zn[Un]=Zn[Yn]=Zn[Xn]=Zn[Wn]=Zn[qn]=Zn[$n]=!0,Zn[En]=Zn[Sn]=Zn[Vn]=Zn[An]=Zn[Hn]=Zn[kn]=Zn[Pn]=Zn[Cn]=Zn[Ln]=Zn[jn]=Zn[Dn]=Zn[Nn]=Zn[Rn]=Zn[Fn]=Zn[In]=!1;var Qn=Jn;function Kn(t){return function(e){return t(e)}}var tr=Kn,er=n("01ff"),nr=er["a"]&&er["a"].isTypedArray,rr=nr?tr(nr):Qn,ir=rr,or=Object.prototype,ar=or.hasOwnProperty;function sr(t,e){var n=gn(t),r=!n&&vn(t),i=!n&&!r&&Object(_n["a"])(t),o=!n&&!r&&!i&&ir(t),a=n||r||i||o,s=a?sn(t.length,String):[],u=s.length;for(var c in t)!e&&!ar.call(t,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||wn(c,u))||s.push(c);return s}var ur=sr,cr=Object.prototype;function lr(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||cr;return t===n}var hr=lr;function fr(t,e){return function(n){return t(e(n))}}var pr=fr,dr=pr(Object.keys,Object),vr=dr,yr=Object.prototype,gr=yr.hasOwnProperty;function _r(t){if(!hr(t))return vr(t);var e=[];for(var n in Object(t))gr.call(t,n)&&"constructor"!=n&&e.push(n);return e}var mr=_r;function br(t){return null!=t&&Mn(t.length)&&!Nt(t)}var xr=br;function wr(t){return xr(t)?ur(t):mr(t)}var Or=wr;function Tr(t,e){return t&&on(e,Or(e),t)}var Mr=Tr;function Er(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}var Sr=Er,Ar=Object.prototype,kr=Ar.hasOwnProperty;function Pr(t){if(!m(t))return Sr(t);var e=hr(t),n=[];for(var r in t)("constructor"!=r||!e&&kr.call(t,r))&&n.push(r);return n}var Cr=Pr;function Lr(t){return xr(t)?ur(t,!0):Cr(t)}var jr=Lr;function Dr(t,e){return t&&on(e,jr(e),t)}var Nr=Dr,Rr=n("d6f0");function Fr(t,e){var n=-1,r=t.length;e||(e=Array(r));while(++n<r)e[n]=t[n];return e}var Ir=Fr;function Vr(t,e){var n=-1,r=null==t?0:t.length,i=0,o=[];while(++n<r){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var Hr=Vr;function Br(){return[]}var zr=Br,Gr=Object.prototype,Ur=Gr.propertyIsEnumerable,Yr=Object.getOwnPropertySymbols,Xr=Yr?function(t){return null==t?[]:(t=Object(t),Hr(Yr(t),(function(e){return Ur.call(t,e)})))}:zr,Wr=Xr;function qr(t,e){return on(t,Wr(t),e)}var $r=qr;function Zr(t,e){var n=-1,r=e.length,i=t.length;while(++n<r)t[i+n]=e[n];return t}var Jr=Zr,Qr=pr(Object.getPrototypeOf,Object),Kr=Qr,ti=Object.getOwnPropertySymbols,ei=ti?function(t){var e=[];while(t)Jr(e,Wr(t)),t=Kr(t);return e}:zr,ni=ei;function ri(t,e){return on(t,ni(t),e)}var ii=ri;function oi(t,e,n){var r=e(t);return gn(t)?r:Jr(r,n(t))}var ai=oi;function si(t){return ai(t,Or,Wr)}var ui=si;function ci(t){return ai(t,jr,ni)}var li=ci,hi=re(b["a"],"DataView"),fi=hi,pi=re(b["a"],"Promise"),di=pi,vi=re(b["a"],"Set"),yi=vi,gi=re(b["a"],"WeakMap"),_i=gi,mi="[object Map]",bi="[object Object]",xi="[object Promise]",wi="[object Set]",Oi="[object WeakMap]",Ti="[object DataView]",Mi=Ut(fi),Ei=Ut(oe),Si=Ut(di),Ai=Ut(yi),ki=Ut(_i),Pi=V;(fi&&Pi(new fi(new ArrayBuffer(1)))!=Ti||oe&&Pi(new oe)!=mi||di&&Pi(di.resolve())!=xi||yi&&Pi(new yi)!=wi||_i&&Pi(new _i)!=Oi)&&(Pi=function(t){var e=V(t),n=e==bi?t.constructor:void 0,r=n?Ut(n):"";if(r)switch(r){case Mi:return Ti;case Ei:return mi;case Si:return xi;case Ai:return wi;case ki:return Oi}return e});var Ci=Pi,Li=Object.prototype,ji=Li.hasOwnProperty;function Di(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ji.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var Ni=Di,Ri=b["a"].Uint8Array,Fi=Ri;function Ii(t){var e=new t.constructor(t.byteLength);return new Fi(e).set(new Fi(t)),e}var Vi=Ii;function Hi(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Bi=Hi,zi=/\w*$/;function Gi(t){var e=new t.constructor(t.source,zi.exec(t));return e.lastIndex=t.lastIndex,e}var Ui=Gi,Yi=T?T.prototype:void 0,Xi=Yi?Yi.valueOf:void 0;function Wi(t){return Xi?Object(Xi.call(t)):{}}var qi=Wi;function $i(t,e){var n=e?Vi(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Zi=$i,Ji="[object Boolean]",Qi="[object Date]",Ki="[object Map]",to="[object Number]",eo="[object RegExp]",no="[object Set]",ro="[object String]",io="[object Symbol]",oo="[object ArrayBuffer]",ao="[object DataView]",so="[object Float32Array]",uo="[object Float64Array]",co="[object Int8Array]",lo="[object Int16Array]",ho="[object Int32Array]",fo="[object Uint8Array]",po="[object Uint8ClampedArray]",vo="[object Uint16Array]",yo="[object Uint32Array]";function go(t,e,n){var r=t.constructor;switch(e){case oo:return Vi(t);case Ji:case Qi:return new r(+t);case ao:return Bi(t,n);case so:case uo:case co:case lo:case ho:case fo:case po:case vo:case yo:return Zi(t,n);case Ki:return new r;case to:case ro:return new r(t);case eo:return Ui(t);case no:return new r;case io:return qi(t)}}var _o=go,mo=Object.create,bo=function(){function t(){}return function(e){if(!m(e))return{};if(mo)return mo(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),xo=bo;function wo(t){return"function"!=typeof t.constructor||hr(t)?{}:xo(Kr(t))}var Oo=wo,To="[object Map]";function Mo(t){return B(t)&&Ci(t)==To}var Eo=Mo,So=er["a"]&&er["a"].isMap,Ao=So?tr(So):Eo,ko=Ao,Po="[object Set]";function Co(t){return B(t)&&Ci(t)==Po}var Lo=Co,jo=er["a"]&&er["a"].isSet,Do=jo?tr(jo):Lo,No=Do,Ro=1,Fo=2,Io=4,Vo="[object Arguments]",Ho="[object Array]",Bo="[object Boolean]",zo="[object Date]",Go="[object Error]",Uo="[object Function]",Yo="[object GeneratorFunction]",Xo="[object Map]",Wo="[object Number]",qo="[object Object]",$o="[object RegExp]",Zo="[object Set]",Jo="[object String]",Qo="[object Symbol]",Ko="[object WeakMap]",ta="[object ArrayBuffer]",ea="[object DataView]",na="[object Float32Array]",ra="[object Float64Array]",ia="[object Int8Array]",oa="[object Int16Array]",aa="[object Int32Array]",sa="[object Uint8Array]",ua="[object Uint8ClampedArray]",ca="[object Uint16Array]",la="[object Uint32Array]",ha={};function fa(t,e,n,r,i,o){var a,s=e&Ro,u=e&Fo,c=e&Io;if(n&&(a=i?n(t,r,i,o):n(t)),void 0!==a)return a;if(!m(t))return t;var l=gn(t);if(l){if(a=Ni(t),!s)return Ir(t,a)}else{var h=Ci(t),f=h==Uo||h==Yo;if(Object(_n["a"])(t))return Object(Rr["a"])(t,s);if(h==qo||h==Vo||f&&!i){if(a=u||f?{}:Oo(t),!s)return u?ii(t,Nr(a,t)):$r(t,Mr(a,t))}else{if(!ha[h])return i?t:{};a=_o(t,h,s)}}o||(o=new Xe);var p=o.get(t);if(p)return p;o.set(t,a),No(t)?t.forEach((function(r){a.add(fa(r,e,n,r,t,o))})):ko(t)&&t.forEach((function(r,i){a.set(i,fa(r,e,n,i,t,o))}));var d=c?u?li:ui:u?keysIn:Or,v=l?void 0:d(t);return qe(v||t,(function(r,i){v&&(i=r,r=t[i]),nn(a,i,fa(r,e,n,i,t,o))})),a}ha[Vo]=ha[Ho]=ha[ta]=ha[ea]=ha[Bo]=ha[zo]=ha[na]=ha[ra]=ha[ia]=ha[oa]=ha[aa]=ha[Xo]=ha[Wo]=ha[qo]=ha[$o]=ha[Zo]=ha[Jo]=ha[Qo]=ha[sa]=ha[ua]=ha[ca]=ha[la]=!0,ha[Go]=ha[Uo]=ha[Ko]=!1;var pa=fa,da=1,va=4;function ya(t){return pa(t,da|va)}var ga=ya;function _a(t,e,n){(void 0===n||st(t[e],n))&&(void 0!==n||e in t)||Qe(t,e,n)}var ma=_a;function ba(t){return function(e,n,r){var i=-1,o=Object(e),a=r(e),s=a.length;while(s--){var u=a[t?s:++i];if(!1===n(o[u],u,o))break}return e}}var xa=ba,wa=xa(),Oa=wa;function Ta(t){return B(t)&&xr(t)}var Ma=Ta,Ea="[object Object]",Sa=Function.prototype,Aa=Object.prototype,ka=Sa.toString,Pa=Aa.hasOwnProperty,Ca=ka.call(Object);function La(t){if(!B(t)||V(t)!=Ea)return!1;var e=Kr(t);if(null===e)return!0;var n=Pa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ka.call(n)==Ca}var ja=La;function Da(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}var Na=Da;function Ra(t){return on(t,jr(t))}var Fa=Ra;function Ia(t,e,n,r,i,o,a){var s=Na(t,n),u=Na(e,n),c=a.get(u);if(c)ma(t,n,c);else{var l=o?o(s,u,n+"",t,e,a):void 0,h=void 0===l;if(h){var f=gn(u),p=!f&&Object(_n["a"])(u),d=!f&&!p&&ir(u);l=u,f||p||d?gn(s)?l=s:Ma(s)?l=Ir(s):p?(h=!1,l=Object(Rr["a"])(u,!0)):d?(h=!1,l=Zi(u,!0)):l=[]:ja(u)||vn(u)?(l=s,vn(s)?l=Fa(s):m(s)&&!Nt(s)||(l=Oo(u))):h=!1}h&&(a.set(u,l),i(l,u,r,o,a),a["delete"](u)),ma(t,n,l)}}var Va=Ia;function Ha(t,e,n,r,i){t!==e&&Oa(e,(function(o,a){if(i||(i=new Xe),m(o))Va(t,e,a,n,Ha,r,i);else{var s=r?r(Na(t,a),o,a+"",t,e,i):void 0;void 0===s&&(s=o),ma(t,a,s)}}),jr)}var Ba=Ha;function za(t){return t}var Ga=za;function Ua(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var Ya=Ua,Xa=Math.max;function Wa(t,e,n){return e=Xa(void 0===e?t.length-1:e,0),function(){var r=arguments,i=-1,o=Xa(r.length-e,0),a=Array(o);while(++i<o)a[i]=r[e+i];i=-1;var s=Array(e+1);while(++i<e)s[i]=r[i];return s[e]=n(a),Ya(t,this,s)}}var qa=Wa;function $a(t){return function(){return t}}var Za=$a,Ja=Ze?function(t,e){return Ze(t,"toString",{configurable:!0,enumerable:!1,value:Za(e),writable:!0})}:Ga,Qa=Ja,Ka=800,ts=16,es=Date.now;function ns(t){var e=0,n=0;return function(){var r=es(),i=ts-(r-n);if(n=r,i>0){if(++e>=Ka)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var rs=ns,is=rs(Qa),os=is;function as(t,e){return os(qa(t,e,Ga),t+"")}var ss=as;function us(t,e,n){if(!m(n))return!1;var r=typeof e;return!!("number"==r?xr(n)&&wn(e,n.length):"string"==r&&e in n)&&st(n[e],t)}var cs=us;function ls(t){return ss((function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;o=t.length>3&&"function"==typeof o?(i--,o):void 0,a&&cs(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);while(++r<i){var s=n[r];s&&t(e,s,r,o)}return e}))}var hs=ls,fs=hs((function(t,e,n){Ba(t,e,n)})),ps=fs,ds="__lodash_hash_undefined__";function vs(t){return this.__data__.set(t,ds),this}var ys=vs;function gs(t){return this.__data__.has(t)}var _s=gs;function ms(t){var e=-1,n=null==t?0:t.length;this.__data__=new Be;while(++e<n)this.add(t[e])}ms.prototype.add=ms.prototype.push=ys,ms.prototype.has=_s;var bs=ms;function xs(t,e,n,r){var i=t.length,o=n+(r?1:-1);while(r?o--:++o<i)if(e(t[o],o,t))return o;return-1}var ws=xs;function Os(t){return t!==t}var Ts=Os;function Ms(t,e,n){var r=n-1,i=t.length;while(++r<i)if(t[r]===e)return r;return-1}var Es=Ms;function Ss(t,e,n){return e===e?Es(t,e,n):ws(t,Ts,n)}var As=Ss;function ks(t,e){var n=null==t?0:t.length;return!!n&&As(t,e,0)>-1}var Ps=ks;function Cs(t,e,n){var r=-1,i=null==t?0:t.length;while(++r<i)if(n(e,t[r]))return!0;return!1}var Ls=Cs;function js(t,e){return t.has(e)}var Ds=js;function Ns(){}var Rs=Ns;function Fs(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}var Is=Fs,Vs=1/0,Hs=yi&&1/Is(new yi([,-0]))[1]==Vs?function(t){return new yi(t)}:Rs,Bs=Hs,zs=200;function Gs(t,e,n){var r=-1,i=Ps,o=t.length,a=!0,s=[],u=s;if(n)a=!1,i=Ls;else if(o>=zs){var c=e?null:Bs(t);if(c)return Is(c);a=!1,i=Ds,u=new bs}else u=e?[]:s;t:while(++r<o){var l=t[r],h=e?e(l):l;if(l=n||0!==l?l:0,a&&h===h){var f=u.length;while(f--)if(u[f]===h)continue t;e&&u.push(h),s.push(l)}else i(u,h,n)||(u!==s&&u.push(h),s.push(l))}return s}var Us=Gs;function Ys(t){return t&&t.length?Us(t):[]}var Xs,Ws=Ys;(function(t){function e(t){return{width:parseFloat(t.style.width.replace("px","")||t.offsetWidth),height:parseFloat(t.style.height.replace("px","")||t.offsetHeight)}}function n(t){var e=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=t.getAttribute("transform").match(e);if(n[0]){var r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function r(t){var e=/\(([^)]+)\)/,n=e.exec(t)[1],r=n.split(",");return{x:parseFloat(r[0]),y:parseFloat(r[1])}}function i(t){return t[0].toUpperCase()+t.slice(1)}function o(t,e){var n=t/e.reduce((function(t,e){return t+e.value}),0)*100;return n<1?n.toPrecision(1):Math.floor(n)}function a(t,e){var n={missing:[],added:[]};return t.forEach((function(t){-1===e.indexOf(t)&&n.missing.push(t)})),e.forEach((function(e){-1===t.indexOf(e)&&n.added.push(e)})),n}function s(t){var e=[],n=[];return t.forEach((function(t){-1!==e.indexOf(t)&&-1===n.indexOf(t)&&n.push(t),e.push(t)})),n}function u(t){return t.each((function(){this.parentNode.appendChild(this)}))}t.debounce=rt,t.clone=ga,t.merge=ps,t.removeArrayDuplicates=Ws,t.getDimensions=e,t.getTranslationValues=n,t.getTranformOffsets=r,t.capitalizeFirstLetter=i,t.convertValueToPercentage=o,t.arrayDifferences=a,t.getDuplicateValues=s,t.moveToFront=u,t.getProperty=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=t;if(r){for(var i=0,o=e;i<o.length;i++){var a=o[i];if(!r[a])return null;r=r[a]}return r}return null}})(Xs||(Xs={}));var qs={position:h.BOTTOM,clickable:!0,items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8},checkbox:{radius:6.5,spaceAfter:4}},$s={x:{numberOfTicks:5},y:{numberOfTicks:5}},Zs={datapoint:{horizontalOffset:10,enabled:!0},title:{verticalOffset:.75,width:.4}},Js=Xs.merge({},Zs,{gridline:{enabled:!0,threshold:.25}}),Qs=Xs.merge({},Js,{datapoint:{verticalOffset:4},gridline:{enabled:!1}}),Ks={},tu={addSpaceOnEdges:!0},eu={width:"100%",height:"100%",resizable:!0,theme:o.DEFAULT,tooltip:Zs,legend:qs,style:{prefix:"cc"}},nu=Xs.merge({},eu,{axes:Ks,timeScale:tu,grid:$s,tooltip:Js}),ru=Xs.merge({},nu,{bars:{maxWidth:16},timeScale:Xs.merge(tu,{addSpaceOnEdges:!0}),tooltip:Qs}),iu=Xs.merge({},ru,{}),ou=Xs.merge({},ru,{}),au=Xs.merge({},ru,{bars:Xs.merge({},ru.bars,{dividerSize:1.5})}),su=Xs.merge({},nu,{points:{radius:3,filled:!1}}),uu=Xs.merge({},nu,{points:{radius:4,fillOpacity:.3,filled:!0}}),cu=Xs.merge({},eu,{pie:{radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2},labels:{formatter:null}}}),lu=Xs.merge({},cu,{donut:{center:{numberFontSize:function(t){return Math.min(t/100*24,24)+"px"},titleFontSize:function(t){return Math.min(t/100*15,15)+"px"},titleYPosition:function(t){return Math.min(t/80*20,20)},numberFormatter:function(t){return Math.floor(t).toLocaleString()}}}}),hu={chart:eu,axisChart:nu,simpleBarChart:iu,groupedBarChart:ou,stackedBarChart:au,lineChart:su,scatterChart:uu,pieChart:cu,donutChart:lu},fu={opacity:{unselected:.3,selected:1}},pu={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},du={ticks:{number:7,rotateIfSmallerThan:30}},vu={default:{size:24}},yu="#fff0f1",gu="#fcd0d3",_u="#ffa4a9",mu="#ff767c",bu="#fb4b53",xu="#da1e28",wu="#a51920",Ou="#750e13",Tu="#570408",Mu="#2c080a",Eu={10:yu,20:gu,30:_u,40:mu,50:bu,60:xu,70:wu,80:Ou,90:Tu,100:Mu},Su="#fff0f6",Au="#ffcfe1",ku="#ffa0c2",Pu="#fa75a6",Cu="#ee538b",Lu="#d12765",ju="#a11950",Du="#760a3a",Nu="#57002b",Ru="#2a0a16",Fu={10:Su,20:Au,30:ku,40:Pu,50:Cu,60:Lu,70:ju,80:Du,90:Nu,100:Ru},Iu="#f7f1ff",Vu="#e6d6ff",Hu="#d0b0ff",Bu="#bb8eff",zu="#a66efa",Gu="#8a3ffc",Uu="#6e32c9",Yu="#4f2196",Xu="#38146b",Wu="#1e1033",qu={10:Iu,20:Vu,30:Hu,40:Bu,50:zu,60:Gu,70:Uu,80:Yu,90:Xu,100:Wu},$u="#edf4ff",Zu="#c9deff",Ju="#97c1ff",Qu="#6ea6ff",Ku="#408bfc",tc="#0062ff",ec="#054ada",nc="#0530ad",rc="#061f80",ic="#051243",oc={10:$u,20:Zu,30:Ju,40:Qu,50:Ku,60:tc,70:ec,80:nc,90:rc,100:ic},ac="#e3f6ff",sc="#b3e6ff",uc="#6ccaff",cc="#30b0ff",lc="#1191e6",hc="#0072c3",fc="#0058a1",pc="#003d73",dc="#002b50",vc="#07192b",yc={10:ac,20:sc,30:uc,40:cc,50:lc,60:hc,70:fc,80:pc,90:dc,100:vc},gc="#dbfbfb",_c="#92eeee",mc="#20d5d2",bc="#00bab6",xc="#009c98",wc="#007d79",Oc="#006161",Tc="#004548",Mc="#003137",Ec="#081a1c",Sc={10:gc,20:_c,30:mc,40:bc,50:xc,60:wc,70:Oc,80:Tc,90:Mc,100:Ec},Ac="#dafbe4",kc="#9deeb2",Pc="#56d679",Cc="#3dbb61",Lc="#24a148",jc="#198038",Dc="#10642a",Nc="#054719",Rc="#01330f",Fc="#081b09",Ic={10:Ac,20:kc,30:Pc,40:Cc,50:Lc,60:jc,70:Dc,80:Nc,90:Rc,100:Fc};var Vc=function(t,e){return t[e]},Hc={blue:function(t){return Vc(oc,t)},cyan:function(t){return Vc(yc,t)},green:function(t){return Vc(Ic,t)},magenta:function(t){return Vc(Fu,t)},purple:function(t){return Vc(qu,t)},red:function(t){return Vc(Eu,t)},teal:function(t){return Vc(Sc,t)}},Bc=[Hc.purple(70),Hc.cyan(50),Hc.teal(70),Hc.magenta(70),Hc.red(50),Hc.red(90),Hc.green(60),Hc.blue(80),Hc.magenta(50),"#b28600",Hc.teal(50),Hc.cyan(90),"#8a3800",Hc.purple(50)],zc=(Hc.purple(60),Hc.cyan(40),Hc.teal(60),Hc.magenta(40),Hc.red(50),Hc.red(10),Hc.green(30),Hc.blue(50),Hc.magenta(60),Hc.teal(40),Hc.cyan(20),Hc.purple(30),Bc),Gc=function(t,e){return t<e?-1:t>e?1:t>=e?0:NaN},Uc=function(t){return 1===t.length&&(t=Yc(t)),{left:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)<0?r=o+1:i=o}return r},right:function(e,n,r,i){null==r&&(r=0),null==i&&(i=e.length);while(r<i){var o=r+i>>>1;t(e[o],n)>0?i=o:r=o+1}return r}}};function Yc(t){return function(e,n){return Gc(t(e),n)}}var Xc=Uc(Gc),Wc=Xc.right,qc=(Xc.left,Wc);var $c=function(t,e){var n,r,i,o=t.length,a=-1;if(null==e){while(++a<o)if(null!=(n=t[a])&&n>=n){r=i=n;while(++a<o)null!=(n=t[a])&&(r>n&&(r=n),i<n&&(i=n))}}else while(++a<o)if(null!=(n=e(t[a],a,t))&&n>=n){r=i=n;while(++a<o)null!=(n=e(t[a],a,t))&&(r>n&&(r=n),i<n&&(i=n))}return[r,i]},Zc=Array.prototype,Jc=(Zc.slice,Zc.map,function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);while(++r<i)o[r]=t+r*n;return o}),Qc=Math.sqrt(50),Kc=Math.sqrt(10),tl=Math.sqrt(2),el=function(t,e,n){var r,i,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((r=e<t)&&(i=t,t=e,e=i),0===(a=nl(t,e,n))||!isFinite(a))return[];if(a>0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));while(++s<i)o[s]=(t+s)*a}else{t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));while(++s<i)o[s]=(t-s)/a}return r&&o.reverse(),o};function nl(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=Qc?10:o>=Kc?5:o>=tl?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=Qc?10:o>=Kc?5:o>=tl?2:1)}function rl(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=Qc?i*=10:o>=Kc?i*=5:o>=tl&&(i*=2),e<t?-i:i}var il=function(t,e){var n,r,i=t.length,o=-1;if(null==e){while(++o<i)if(null!=(n=t[o])&&n>=n){r=n;while(++o<i)null!=(n=t[o])&&r>n&&(r=n)}}else while(++o<i)if(null!=(n=e(t[o],o,t))&&n>=n){r=n;while(++o<i)null!=(n=e(t[o],o,t))&&r>n&&(r=n)}return r};function ol(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}var al="$";function sl(){}function ul(t,e){var n=new sl;if(t instanceof sl)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var r,i=-1,o=t.length;if(null==e)while(++i<o)n.set(i,t[i]);else while(++i<o)n.set(e(r=t[i],i,t),r)}else if(t)for(var a in t)n.set(a,t[a]);return n}sl.prototype=ul.prototype={constructor:sl,has:function(t){return al+t in this},get:function(t){return this[al+t]},set:function(t,e){return this[al+t]=e,this},remove:function(t){var e=al+t;return e in this&&delete this[e]},clear:function(){for(var t in this)t[0]===al&&delete this[t]},keys:function(){var t=[];for(var e in this)e[0]===al&&t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)e[0]===al&&t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)e[0]===al&&t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)e[0]===al&&++t;return t},empty:function(){for(var t in this)if(t[0]===al)return!1;return!0},each:function(t){for(var e in this)e[0]===al&&t(this[e],e.slice(1),this)}};var cl=ul;function ll(){}var hl=cl.prototype;function fl(t,e){var n=new ll;if(t instanceof ll)t.each((function(t){n.add(t)}));else if(t){var r=-1,i=t.length;if(null==e)while(++r<i)n.add(t[r]);else while(++r<i)n.add(e(t[r],r,t))}return n}ll.prototype=fl.prototype={constructor:ll,has:hl.has,add:function(t){return t+="",this[al+t]=t,this},remove:hl.remove,clear:hl.clear,values:hl.keys,size:hl.size,empty:hl.empty,each:hl.each};var pl=Array.prototype,dl=pl.map,vl=pl.slice,yl={name:"implicit"};function gl(){var t=cl(),e=[],n=[],r=yl;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==yl)return r;t.set(o,a=e.push(i))}return n[(a-1)%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=cl();var r,o,a=-1,s=n.length;while(++a<s)t.has(o=(r=n[a])+"")||t.set(o,e.push(r));return i},i.range=function(t){return arguments.length?(n=vl.call(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gl(e,n).unknown(r)},ol.apply(i,arguments),i}function _l(){var t,e,n=gl().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],h=o[l-0],f=o[1-l];t=(f-h)/Math.max(1,n-s+2*u),a&&(t=Math.floor(t)),h+=(f-h-t*(n-s))*c,e=t*(1-s),a&&(h=Math.round(h),e=Math.round(e));var p=Jc(n).map((function(e){return h+t*e}));return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),l()):r()},n.range=function(t){return arguments.length?(o=[+t[0],+t[1]],l()):o.slice()},n.rangeRound=function(t){return o=[+t[0],+t[1]],a=!0,l()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(a=!!t,l()):a},n.padding=function(t){return arguments.length?(s=Math.min(1,u=+t),l()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),l()):s},n.paddingOuter=function(t){return arguments.length?(u=+t,l()):u},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),l()):c},n.copy=function(){return _l(r(),o).round(a).paddingInner(s).paddingOuter(u).align(c)},ol.apply(l(),arguments)}var ml=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function bl(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function xl(){}var wl=.7,Ol=1/wl,Tl="\\s*([+-]?\\d+)\\s*",Ml="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",El="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Sl=/^#([0-9a-f]{3,8})$/,Al=new RegExp("^rgb\\("+[Tl,Tl,Tl]+"\\)$"),kl=new RegExp("^rgb\\("+[El,El,El]+"\\)$"),Pl=new RegExp("^rgba\\("+[Tl,Tl,Tl,Ml]+"\\)$"),Cl=new RegExp("^rgba\\("+[El,El,El,Ml]+"\\)$"),Ll=new RegExp("^hsl\\("+[Ml,El,El]+"\\)$"),jl=new RegExp("^hsla\\("+[Ml,El,El,Ml]+"\\)$"),Dl={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 Nl(){return this.rgb().formatHex()}function Rl(){return ql(this).formatHsl()}function Fl(){return this.rgb().formatRgb()}function Il(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Sl.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Vl(e):3===n?new Gl(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?new Gl(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?new Gl(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=Al.exec(t))?new Gl(e[1],e[2],e[3],1):(e=kl.exec(t))?new Gl(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pl.exec(t))?Hl(e[1],e[2],e[3],e[4]):(e=Cl.exec(t))?Hl(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Ll.exec(t))?Wl(e[1],e[2]/100,e[3]/100,1):(e=jl.exec(t))?Wl(e[1],e[2]/100,e[3]/100,e[4]):Dl.hasOwnProperty(t)?Vl(Dl[t]):"transparent"===t?new Gl(NaN,NaN,NaN,0):null}function Vl(t){return new Gl(t>>16&255,t>>8&255,255&t,1)}function Hl(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gl(t,e,n,r)}function Bl(t){return t instanceof xl||(t=Il(t)),t?(t=t.rgb(),new Gl(t.r,t.g,t.b,t.opacity)):new Gl}function zl(t,e,n,r){return 1===arguments.length?Bl(t):new Gl(t,e,n,null==r?1:r)}function Gl(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Ul(){return"#"+Xl(this.r)+Xl(this.g)+Xl(this.b)}function Yl(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xl(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Wl(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zl(t,e,n,r)}function ql(t){if(t instanceof Zl)return new Zl(t.h,t.s,t.l,t.opacity);if(t instanceof xl||(t=Il(t)),!t)return new Zl;if(t instanceof Zl)return t;t=t.rgb();var e=t.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 Zl(a,s,u,t.opacity)}function $l(t,e,n,r){return 1===arguments.length?ql(t):new Zl(t,e,n,null==r?1:r)}function Zl(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Jl(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Ql(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}ml(xl,Il,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Nl,formatHex:Nl,formatHsl:Rl,formatRgb:Fl,toString:Fl}),ml(Gl,zl,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new Gl(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Gl(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Ul,formatHex:Ul,formatRgb:Yl,toString:Yl})),ml(Zl,$l,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new Zl(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new Zl(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new Gl(Jl(t>=240?t-240:t+120,i,r),Jl(t,i,r),Jl(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var Kl=function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,s=r<e-1?t[r+2]:2*o-i;return Ql((n-r/e)*e,a,i,o,s)}},th=function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],s=t[(r+2)%e];return Ql((n-r/e)*e,i,o,a,s)}},eh=function(t){return function(){return t}};function nh(t,e){return function(n){return t+n*e}}function rh(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function ih(t,e){var n=e-t;return n?nh(t,n>180||n<-180?n-360*Math.round(n/360):n):eh(isNaN(t)?e:t)}function oh(t){return 1===(t=+t)?ah:function(e,n){return n-e?rh(e,n,t):eh(isNaN(e)?n:e)}}function ah(t,e){var n=e-t;return n?nh(t,n):eh(isNaN(t)?e:t)}var sh=function t(e){var n=oh(e);function r(t,e){var r=n((t=zl(t)).r,(e=zl(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ah(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function uh(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=zl(e[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=t(o),a=t(a),s=t(s),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=s(t),r+""}}}uh(Kl),uh(th);var ch=function(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]=wh(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}},lh=function(t,e){var n=new Date;return t=+t,e-=t,function(r){return n.setTime(t+e*r),n}},hh=function(t,e){return t=+t,e-=t,function(n){return t+e*n}},fh=function(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]=wh(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},ph=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,dh=new RegExp(ph.source,"g");function vh(t){return function(){return t}}function yh(t){return function(e){return t(e)+""}}var gh,_h,mh,bh,xh=function(t,e){var n,r,i,o=ph.lastIndex=dh.lastIndex=0,a=-1,s=[],u=[];t+="",e+="";while((n=ph.exec(t))&&(r=dh.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:hh(n,r)})),o=dh.lastIndex;return o<e.length&&(i=e.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?yh(u[0].x):vh(e):(e=u.length,function(t){for(var n,r=0;r<e;++r)s[(n=u[r]).i]=n.x(t);return s.join("")})},wh=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?eh(e):("number"===r?hh:"string"===r?(n=Il(e))?(e=n,sh):xh:e instanceof Il?sh:e instanceof Date?lh:Array.isArray(e)?ch:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?fh:hh)(t,e)},Oh=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}},Th=180/Math.PI,Mh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Eh=function(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)*Th,skewX:Math.atan(u)*Th,scaleX:a,scaleY:s}};function Sh(t){return"none"===t?Mh:(gh||(gh=document.createElement("DIV"),_h=document.documentElement,mh=document.defaultView),gh.style.transform=t,t=mh.getComputedStyle(_h.appendChild(gh),null).getPropertyValue("transform"),_h.removeChild(gh),t=t.slice(7,-1).split(","),Eh(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}function Ah(t){return null==t?Mh:(bh||(bh=document.createElementNS("http://www.w3.org/2000/svg","g")),bh.setAttribute("transform",t),(t=bh.transform.baseVal.consolidate())?(t=t.matrix,Eh(t.a,t.b,t.c,t.d,t.e,t.f)):Mh)}function kh(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function o(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:hh(t,i)},{i:u-2,x:hh(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}function a(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:hh(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function s(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:hh(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function 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:hh(t,n)},{i:s-2,x:hh(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}return function(e,n){var r=[],i=[];return e=t(e),n=t(n),o(e.translateX,e.translateY,n.translateX,n.translateY,r,i),a(e.rotate,n.rotate,r,i),s(e.skewX,n.skewX,r,i),u(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,i),e=n=null,function(t){var e,n=-1,o=i.length;while(++n<o)r[(e=i[n]).i]=e.x(t);return r.join("")}}}var Ph=kh(Sh,"px, ","px)","deg)"),Ch=kh(Ah,", ",")",")");Math.SQRT2;function Lh(t){return function(e,n){var r=t((e=$l(e)).h,(n=$l(n)).h),i=ah(e.s,n.s),o=ah(e.l,n.l),a=ah(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=i(t),e.l=o(t),e.opacity=a(t),e+""}}}Lh(ih),Lh(ah);var jh=Math.PI/180,Dh=180/Math.PI,Nh=18,Rh=.96422,Fh=1,Ih=.82521,Vh=4/29,Hh=6/29,Bh=3*Hh*Hh,zh=Hh*Hh*Hh;function Gh(t){if(t instanceof Yh)return new Yh(t.l,t.a,t.b,t.opacity);if(t instanceof Qh)return Kh(t);t instanceof Gl||(t=Bl(t));var e,n,r=$h(t.r),i=$h(t.g),o=$h(t.b),a=Xh((.2225045*r+.7168786*i+.0606169*o)/Fh);return r===i&&i===o?e=n=a:(e=Xh((.4360747*r+.3850649*i+.1430804*o)/Rh),n=Xh((.0139322*r+.0971045*i+.7141733*o)/Ih)),new Yh(116*a-16,500*(e-a),200*(a-n),t.opacity)}function Uh(t,e,n,r){return 1===arguments.length?Gh(t):new Yh(t,e,n,null==r?1:r)}function Yh(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function Xh(t){return t>zh?Math.pow(t,1/3):t/Bh+Vh}function Wh(t){return t>Hh?t*t*t:Bh*(t-Vh)}function qh(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $h(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Zh(t){if(t instanceof Qh)return new Qh(t.h,t.c,t.l,t.opacity);if(t instanceof Yh||(t=Gh(t)),0===t.a&&0===t.b)return new Qh(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*Dh;return new Qh(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function Jh(t,e,n,r){return 1===arguments.length?Zh(t):new Qh(t,e,n,null==r?1:r)}function Qh(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function Kh(t){if(isNaN(t.h))return new Yh(t.l,0,0,t.opacity);var e=t.h*jh;return new Yh(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}function tf(t){return function(e,n){var r=t((e=Jh(e)).h,(n=Jh(n)).h),i=ah(e.c,n.c),o=ah(e.l,n.l),a=ah(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=i(t),e.l=o(t),e.opacity=a(t),e+""}}}ml(Yh,Uh,bl(xl,{brighter:function(t){return new Yh(this.l+Nh*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new Yh(this.l-Nh*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=Rh*Wh(e),t=Fh*Wh(t),n=Ih*Wh(n),new Gl(qh(3.1338561*e-1.6168667*t-.4906146*n),qh(-.9787684*e+1.9161415*t+.033454*n),qh(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),ml(Qh,Jh,bl(xl,{brighter:function(t){return new Qh(this.h,this.c,this.l+Nh*(null==t?1:t),this.opacity)},darker:function(t){return new Qh(this.h,this.c,this.l-Nh*(null==t?1:t),this.opacity)},rgb:function(){return Kh(this).rgb()}}));tf(ih),tf(ah);var ef=-.14861,nf=1.78277,rf=-.29227,of=-.90649,af=1.97294,sf=af*of,uf=af*nf,cf=nf*rf-of*ef;function lf(t){if(t instanceof ff)return new ff(t.h,t.s,t.l,t.opacity);t instanceof Gl||(t=Bl(t));var e=t.r/255,n=t.g/255,r=t.b/255,i=(cf*r+sf*e-uf*n)/(cf+sf-uf),o=r-i,a=(af*(n-i)-rf*o)/of,s=Math.sqrt(a*a+o*o)/(af*i*(1-i)),u=s?Math.atan2(a,o)*Dh-120:NaN;return new ff(u<0?u+360:u,s,i,t.opacity)}function hf(t,e,n,r){return 1===arguments.length?lf(t):new ff(t,e,n,null==r?1:r)}function ff(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function pf(t){return function e(n){function r(e,r){var i=t((e=hf(e)).h,(r=hf(r)).h),o=ah(e.s,r.s),a=ah(e.l,r.l),s=ah(e.opacity,r.opacity);return function(t){return e.h=i(t),e.s=o(t),e.l=a(Math.pow(t,n)),e.opacity=s(t),e+""}}return n=+n,r.gamma=e,r}(1)}ml(ff,hf,bl(xl,{brighter:function(t){return t=null==t?Ol:Math.pow(Ol,t),new ff(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?wl:Math.pow(wl,t),new ff(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*jh,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),i=Math.sin(t);return new Gl(255*(e+n*(ef*r+nf*i)),255*(e+n*(rf*r+of*i)),255*(e+n*(af*r)),this.opacity)}}));pf(ih),pf(ah);var df=function(t){return function(){return t}},vf=function(t){return+t},yf=[0,1];function gf(t){return t}function _f(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:df(isNaN(e)?NaN:.5)}function mf(t){var e,n=t[0],r=t[t.length-1];return n>r&&(e=n,n=r,r=e),function(t){return Math.max(n,Math.min(r,t))}}function bf(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=_f(i,r),o=n(a,o)):(r=_f(r,i),o=n(o,a)),function(t){return o(r(t))}}function xf(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());while(++a<r)i[a]=_f(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=qc(t,e,1,r)-1;return o[n](i[n](e))}}function wf(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Of(){var t,e,n,r,i,o,a=yf,s=yf,u=wh,c=gf;function l(){return r=Math.min(a.length,s.length)>2?xf:bf,i=o=null,h}function h(e){return isNaN(e=+e)?n:(i||(i=r(a.map(t),s,u)))(t(c(e)))}return h.invert=function(n){return c(e((o||(o=r(s,a.map(t),hh)))(n)))},h.domain=function(t){return arguments.length?(a=dl.call(t,vf),c===gf||(c=mf(a)),l()):a.slice()},h.range=function(t){return arguments.length?(s=vl.call(t),l()):s.slice()},h.rangeRound=function(t){return s=vl.call(t),u=Oh,l()},h.clamp=function(t){return arguments.length?(c=t?mf(a):gf,h):c!==gf},h.interpolate=function(t){return arguments.length?(u=t,l()):u},h.unknown=function(t){return arguments.length?(n=t,h):n},function(n,r){return t=n,e=r,l()}}function Tf(t,e){return Of()(t,e)}var Mf=function(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)]},Ef=function(t){return t=Mf(Math.abs(t)),t?t[1]:NaN},Sf=function(t,e){return function(n,r){var i=n.length,o=[],a=0,s=t[0],u=0;while(i>0&&s>0){if(u+s+1>r&&(s=Math.max(1,r-u)),o.push(n.substring(i-=s,i+s)),(u+=s+1)>r)break;s=t[a=(a+1)%t.length]}return o.reverse().join(e)}},Af=function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}},kf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pf(t){if(!(e=kf.exec(t)))throw new Error("invalid format: "+t);var e;return new Cf({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 Cf(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+""}Pf.prototype=Cf.prototype,Cf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Lf,jf,Df,Nf,Rf=function(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(i>0){if(!+t[r])break t;i=0}break}return i>0?t.slice(0,i)+t.slice(e+1):t},Ff=function(t,e){var n=Mf(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(Lf=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")+Mf(t,Math.max(0,e+o-1))[0]},If=function(t,e){var n=Mf(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")},Vf={"%":function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.round(t).toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return If(100*t,e)},r:If,s:Ff,X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}},Hf=function(t){return t},Bf=Array.prototype.map,zf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],Gf=function(t){var e=void 0===t.grouping||void 0===t.thousands?Hf:Sf(Bf.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?Hf:Af(Bf.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 c(t){t=Pf(t);var c=t.fill,l=t.align,h=t.sign,f=t.symbol,p=t.zero,d=t.width,v=t.comma,y=t.precision,g=t.trim,_=t.type;"n"===_?(v=!0,_="g"):Vf[_]||(void 0===y&&(y=12),g=!0,_="g"),(p||"0"===c&&"="===l)&&(p=!0,c="0",l="=");var m="$"===f?n:"#"===f&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",b="$"===f?r:/[%p]/.test(_)?a:"",x=Vf[_],w=/[defgprs%]/.test(_);function O(t){var n,r,a,f=m,O=b;if("c"===_)O=x(t)+O,t="";else{t=+t;var T=t<0;if(t=isNaN(t)?u:x(Math.abs(t),y),g&&(t=Rf(t)),T&&0===+t&&(T=!1),f=(T?"("===h?h:s:"-"===h||"("===h?"":h)+f,O=("s"===_?zf[8+Lf/3]:"")+O+(T&&"("===h?")":""),w){n=-1,r=t.length;while(++n<r)if(a=t.charCodeAt(n),48>a||a>57){O=(46===a?i+t.slice(n+1):t.slice(n))+O,t=t.slice(0,n);break}}}v&&!p&&(t=e(t,1/0));var M=f.length+t.length+O.length,E=M<d?new Array(d-M+1).join(c):"";switch(v&&p&&(t=e(E+t,E.length?d-O.length:1/0),E=""),l){case"<":t=f+t+O+E;break;case"=":t=f+E+t+O;break;case"^":t=E.slice(0,M=E.length>>1)+f+t+O+E.slice(M);break;default:t=E+f+t+O;break}return o(t)}return y=void 0===y?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),O.toString=function(){return t+""},O}function l(t,e){var n=c((t=Pf(t),t.type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3))),i=Math.pow(10,-r),o=zf[8+r/3];return function(t){return n(i*t)+o}}return{format:c,formatPrefix:l}};function Uf(t){return jf=Gf(t),Df=jf.format,Nf=jf.formatPrefix,jf}Uf({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var Yf=function(t){return Math.max(0,-Ef(Math.abs(t)))},Xf=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Ef(e)/3)))-Ef(Math.abs(t)))},Wf=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Ef(e)-Ef(t))+1},qf=function(t,e,n,r){var i,o=rl(t,e,n);switch(r=Pf(null==r?",f":r),r.type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=Xf(o,a))||(r.precision=i),Nf(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=Wf(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=Yf(o))||(r.precision=i-2*("%"===r.type));break}return Df(r)};function $f(t){var e=t.domain;return t.ticks=function(t){var n=e();return el(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return qf(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i=e(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),r=nl(s,u,n),r>0?(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,r=nl(s,u,n)):r<0&&(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,r=nl(s,u,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,e(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,e(i)),t},t}function Zf(){var t=Tf(gf,gf);return t.copy=function(){return wf(t,Zf())},ol.apply(t,arguments),$f(t)}var Jf=function(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t};function Qf(t){return Math.log(t)}function Kf(t){return Math.exp(t)}function tp(t){return-Math.log(-t)}function ep(t){return-Math.exp(-t)}function np(t){return isFinite(t)?+("1e"+t):t<0?0:t}function rp(t){return 10===t?np:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function ip(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function op(t){return function(e){return-t(-e)}}function ap(t){var e,n,r=t(Qf,Kf),i=r.domain,o=10;function a(){return e=ip(o),n=rp(o),i()[0]<0?(e=op(e),n=op(n),t(tp,ep)):t(Qf,Kf),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=function(t){var r,a=i(),s=a[0],u=a[a.length-1];(r=u<s)&&(f=s,s=u,u=f);var c,l,h,f=e(s),p=e(u),d=null==t?10:+t,v=[];if(!(o%1)&&p-f<d){if(f=Math.round(f)-1,p=Math.round(p)+1,s>0){for(;f<p;++f)for(l=1,c=n(f);l<o;++l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else for(;f<p;++f)for(l=o-1,c=n(f);l>=1;--l)if(h=c*l,!(h<s)){if(h>u)break;v.push(h)}}else v=el(f,p,Math.min(p-f,d)).map(n);return r?v.reverse():v},r.tickFormat=function(t,i){if(null==i&&(i=10===o?".0e":","),"function"!==typeof i&&(i=Df(i)),t===1/0)return i;null==t&&(t=10);var a=Math.max(1,o*t/r.ticks().length);return function(t){var r=t/n(Math.round(e(t)));return r*o<o-.5&&(r*=o),r<=a?i(t):""}},r.nice=function(){return i(Jf(i(),{floor:function(t){return n(Math.floor(e(t)))},ceil:function(t){return n(Math.ceil(e(t)))}}))},r}function sp(){var t=ap(Of()).domain([1,10]);return t.copy=function(){return wf(t,sp()).base(t.base())},ol.apply(t,arguments),t}var up=new Date,cp=new Date;function lp(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=function(e){return t(e=new Date(+e)),e},i.ceil=function(n){return t(n=new Date(n-1)),e(n,1),t(n),n},i.round=function(t){var e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=function(t,n){return e(t=new Date(+t),null==n?1:Math.floor(n)),t},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r)||!(o>0))return s;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(a<n&&n<r);return s},i.filter=function(n){return lp((function(e){if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),(function(t,r){if(t>=t)if(r<0)while(++r<=0)while(e(t,-1),!n(t));else while(--r>=0)while(e(t,1),!n(t));}))},n&&(i.count=function(e,r){return up.setTime(+e),cp.setTime(+r),t(up),t(cp),Math.floor(n(up,cp))},i.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?function(e){return r(e)%t===0}:function(e){return i.count(0,e)%t===0}):i:null}),i}var hp=lp((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));hp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lp((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,n){e.setFullYear(e.getFullYear()+n*t)})):null};var fp=hp,pp=(hp.range,lp((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()}))),dp=pp,vp=(pp.range,1e3),yp=6e4,gp=36e5,_p=864e5,mp=6048e5;function bp(t){return lp((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yp)/mp}))}var xp=bp(0),wp=bp(1),Op=bp(2),Tp=bp(3),Mp=bp(4),Ep=bp(5),Sp=bp(6),Ap=(xp.range,wp.range,Op.range,Tp.range,Mp.range,Ep.range,Sp.range,lp((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yp)/_p}),(function(t){return t.getDate()-1}))),kp=Ap,Pp=(Ap.range,lp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*vp-t.getMinutes()*yp)}),(function(t,e){t.setTime(+t+e*gp)}),(function(t,e){return(e-t)/gp}),(function(t){return t.getHours()}))),Cp=Pp,Lp=(Pp.range,lp((function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*vp)}),(function(t,e){t.setTime(+t+e*yp)}),(function(t,e){return(e-t)/yp}),(function(t){return t.getMinutes()}))),jp=Lp,Dp=(Lp.range,lp((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+e*vp)}),(function(t,e){return(e-t)/vp}),(function(t){return t.getUTCSeconds()}))),Np=Dp,Rp=(Dp.range,lp((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t})));Rp.every=function(t){return t=Math.floor(t),isFinite(t)&&t>0?t>1?lp((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,n){e.setTime(+e+n*t)}),(function(e,n){return(n-e)/t})):Rp:null};var Fp=Rp;Rp.range;function Ip(t){return lp((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/mp}))}var Vp=Ip(0),Hp=Ip(1),Bp=Ip(2),zp=Ip(3),Gp=Ip(4),Up=Ip(5),Yp=Ip(6),Xp=(Vp.range,Hp.range,Bp.range,zp.range,Gp.range,Up.range,Yp.range,lp((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/_p}),(function(t){return t.getUTCDate()-1}))),Wp=Xp,qp=(Xp.range,lp((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()})));qp.every=function(t){return isFinite(t=Math.floor(t))&&t>0?lp((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,n){e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null};var $p=qp;qp.range;function Zp(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function Jp(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Qp(t){return{y:t,m:0,d:1,H:0,M:0,S:0,L:0}}function Kp(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,s=t.months,u=t.shortMonths,c=ld(i),l=hd(i),h=ld(o),f=hd(o),p=ld(a),d=hd(a),v=ld(s),y=hd(s),g=ld(u),_=hd(u),m={a:j,A:D,b:N,B:R,c:null,d:Cd,e:Cd,f:Rd,H:Ld,I:jd,j:Dd,L:Nd,m:Fd,M:Id,p:F,Q:fv,s:pv,S:Vd,u:Hd,U:Bd,V:zd,w:Gd,W:Ud,x:null,X:null,y:Yd,Y:Xd,Z:Wd,"%":hv},b={a:I,A:V,b:H,B:B,c:null,d:qd,e:qd,f:Kd,H:$d,I:Zd,j:Jd,L:Qd,m:tv,M:ev,p:z,Q:fv,s:pv,S:nv,u:rv,U:iv,V:ov,w:av,W:sv,x:null,X:null,y:uv,Y:cv,Z:lv,"%":hv},x={a:E,A:S,b:A,B:k,c:P,d:xd,e:xd,f:Sd,H:Od,I:Od,j:wd,L:Ed,m:bd,M:Td,p:M,Q:kd,s:Pd,S:Md,u:pd,U:dd,V:vd,w:fd,W:yd,x:C,X:L,y:_d,Y:gd,Z:md,"%":Ad};function w(t,e){return function(n){var r,i,o,a=[],s=-1,u=0,c=t.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===t.charCodeAt(s)&&(a.push(t.slice(u,s)),null!=(i=id[r=t.charAt(++s)])?r=t.charAt(++s):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(t.slice(u,s)),a.join("")}}function O(t,e){return function(n){var r,i,o=Qp(1900),a=T(o,t,n+="",0);if(a!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=Jp(Qp(o.y)),i=r.getUTCDay(),r=i>4||0===i?Hp.ceil(r):Hp(r),r=Wp.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=e(Qp(o.y)),i=r.getDay(),r=i>4||0===i?wp.ceil(r):wp(r),r=kp.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?Jp(Qp(o.y)).getUTCDay():e(Qp(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,Jp(o)):e(o)}}function T(t,e,n,r){var i,o,a=0,s=e.length,u=n.length;while(a<s){if(r>=u)return-1;if(i=e.charCodeAt(a++),37===i){if(i=e.charAt(a++),o=x[i in id?e.charAt(a++):i],!o||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}function M(t,e,n){var r=c.exec(e.slice(n));return r?(t.p=l[r[0].toLowerCase()],n+r[0].length):-1}function E(t,e,n){var r=p.exec(e.slice(n));return r?(t.w=d[r[0].toLowerCase()],n+r[0].length):-1}function S(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=f[r[0].toLowerCase()],n+r[0].length):-1}function A(t,e,n){var r=g.exec(e.slice(n));return r?(t.m=_[r[0].toLowerCase()],n+r[0].length):-1}function k(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=y[r[0].toLowerCase()],n+r[0].length):-1}function P(t,n,r){return T(t,e,n,r)}function C(t,e,r){return T(t,n,e,r)}function L(t,e,n){return T(t,r,e,n)}function j(t){return a[t.getDay()]}function D(t){return o[t.getDay()]}function N(t){return u[t.getMonth()]}function R(t){return s[t.getMonth()]}function F(t){return i[+(t.getHours()>=12)]}function I(t){return a[t.getUTCDay()]}function V(t){return o[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function B(t){return s[t.getUTCMonth()]}function z(t){return i[+(t.getUTCHours()>=12)]}return(m.x=w(n,m),m.X=w(r,m),m.c=w(e,m),b.x=w(n,b),b.X=w(r,b),b.c=w(e,b),{format:function(t){var e=w(t+="",m);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",Zp);return e.toString=function(){return t},e},utcFormat:function(t){var e=w(t+="",b);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t,Jp);return e.toString=function(){return t},e}})}var td,ed,nd,rd,id={"-":"",_:" ",0:"0"},od=/^\s*\d+/,ad=/^%/,sd=/[\\^$*+?|[\]().{}]/g;function ud(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function cd(t){return t.replace(sd,"\\$&")}function ld(t){return new RegExp("^(?:"+t.map(cd).join("|")+")","i")}function hd(t){var e={},n=-1,r=t.length;while(++n<r)e[t[n].toLowerCase()]=n;return e}function fd(t,e,n){var r=od.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function pd(t,e,n){var r=od.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function dd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function vd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function yd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function gd(t,e,n){var r=od.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function _d(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function md(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function bd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function xd(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function wd(t,e,n){var r=od.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Od(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Td(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Md(t,e,n){var r=od.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Ed(t,e,n){var r=od.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function Sd(t,e,n){var r=od.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Ad(t,e,n){var r=ad.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function kd(t,e,n){var r=od.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Pd(t,e,n){var r=od.exec(e.slice(n));return r?(t.Q=1e3*+r[0],n+r[0].length):-1}function Cd(t,e){return ud(t.getDate(),e,2)}function Ld(t,e){return ud(t.getHours(),e,2)}function jd(t,e){return ud(t.getHours()%12||12,e,2)}function Dd(t,e){return ud(1+kp.count(fp(t),t),e,3)}function Nd(t,e){return ud(t.getMilliseconds(),e,3)}function Rd(t,e){return Nd(t,e)+"000"}function Fd(t,e){return ud(t.getMonth()+1,e,2)}function Id(t,e){return ud(t.getMinutes(),e,2)}function Vd(t,e){return ud(t.getSeconds(),e,2)}function Hd(t){var e=t.getDay();return 0===e?7:e}function Bd(t,e){return ud(xp.count(fp(t),t),e,2)}function zd(t,e){var n=t.getDay();return t=n>=4||0===n?Mp(t):Mp.ceil(t),ud(Mp.count(fp(t),t)+(4===fp(t).getDay()),e,2)}function Gd(t){return t.getDay()}function Ud(t,e){return ud(wp.count(fp(t),t),e,2)}function Yd(t,e){return ud(t.getFullYear()%100,e,2)}function Xd(t,e){return ud(t.getFullYear()%1e4,e,4)}function Wd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+ud(e/60|0,"0",2)+ud(e%60,"0",2)}function qd(t,e){return ud(t.getUTCDate(),e,2)}function $d(t,e){return ud(t.getUTCHours(),e,2)}function Zd(t,e){return ud(t.getUTCHours()%12||12,e,2)}function Jd(t,e){return ud(1+Wp.count($p(t),t),e,3)}function Qd(t,e){return ud(t.getUTCMilliseconds(),e,3)}function Kd(t,e){return Qd(t,e)+"000"}function tv(t,e){return ud(t.getUTCMonth()+1,e,2)}function ev(t,e){return ud(t.getUTCMinutes(),e,2)}function nv(t,e){return ud(t.getUTCSeconds(),e,2)}function rv(t){var e=t.getUTCDay();return 0===e?7:e}function iv(t,e){return ud(Vp.count($p(t),t),e,2)}function ov(t,e){var n=t.getUTCDay();return t=n>=4||0===n?Gp(t):Gp.ceil(t),ud(Gp.count($p(t),t)+(4===$p(t).getUTCDay()),e,2)}function av(t){return t.getUTCDay()}function sv(t,e){return ud(Hp.count($p(t),t),e,2)}function uv(t,e){return ud(t.getUTCFullYear()%100,e,2)}function cv(t,e){return ud(t.getUTCFullYear()%1e4,e,4)}function lv(){return"+0000"}function hv(){return"%"}function fv(t){return+t}function pv(t){return Math.floor(+t/1e3)}function dv(t){return td=Kp(t),ed=td.format,td.parse,nd=td.utcFormat,rd=td.utcParse,td}dv({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var vv="%Y-%m-%dT%H:%M:%S.%LZ";function yv(t){return t.toISOString()}Date.prototype.toISOString||nd(vv);function gv(t){var e=new Date(t);return isNaN(e)?null:e}+new Date("2000-01-01T00:00:00.000Z")||rd(vv);var _v=1e3,mv=60*_v,bv=60*mv,xv=24*bv,wv=7*xv,Ov=30*xv,Tv=365*xv;function Mv(t){return new Date(t)}function Ev(t){return t instanceof Date?+t:+new Date(+t)}function Sv(t,e,n,r,i,o,a,s,u){var c=Tf(gf,gf),l=c.invert,h=c.domain,f=u(".%L"),p=u(":%S"),d=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),g=u("%b %d"),_=u("%B"),m=u("%Y"),b=[[a,1,_v],[a,5,5*_v],[a,15,15*_v],[a,30,30*_v],[o,1,mv],[o,5,5*mv],[o,15,15*mv],[o,30,30*mv],[i,1,bv],[i,3,3*bv],[i,6,6*bv],[i,12,12*bv],[r,1,xv],[r,2,2*xv],[n,1,wv],[e,1,Ov],[e,3,3*Ov],[t,1,Tv]];function x(s){return(a(s)<s?f:o(s)<s?p:i(s)<s?d:r(s)<s?v:e(s)<s?n(s)<s?y:g:t(s)<s?_:m)(s)}function w(e,n,r,i){if(null==e&&(e=10),"number"===typeof e){var o=Math.abs(r-n)/e,a=Uc((function(t){return t[2]})).right(b,o);a===b.length?(i=rl(n/Tv,r/Tv,e),e=t):a?(a=b[o/b[a-1][2]<b[a][2]/o?a-1:a],i=a[1],e=a[0]):(i=Math.max(rl(n,r,e),1),e=s)}return null==i?e:e.every(i)}return c.invert=function(t){return new Date(l(t))},c.domain=function(t){return arguments.length?h(dl.call(t,Ev)):h().map(Mv)},c.ticks=function(t,e){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=w(t,i,o,e),n=n?n.range(i,o+1):[],a?n.reverse():n},c.tickFormat=function(t,e){return null==e?x:u(e)},c.nice=function(t,e){var n=h();return(t=w(t,n[0],n[n.length-1],e))?h(Jf(n,t)):c},c.copy=function(){return wf(c,Sv(t,e,n,r,i,o,a,s,u))},c}var Av=function(){return ol.apply(Sv(fp,dp,xp,kp,Cp,jp,Np,Fp,ed).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},kv=lp((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),Pv=(kv.range,lp((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+e*gp)}),(function(t,e){return(e-t)/gp}),(function(t){return t.getUTCHours()}))),Cv=(Pv.range,lp((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+e*yp)}),(function(t,e){return(e-t)/yp}),(function(t){return t.getUTCMinutes()})));Cv.range;var Lv=function(){function t(t){this.state={options:{}},this.patternScale={},this.colorScale={},this.services=t}return t.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data"));return n.datasets=n.datasets.filter((function(n){return e[n.label]===t})),n},t.prototype.getData=function(){return this.get("data")},t.prototype.setData=function(t){var e=this.generateDataLabels(t);return this.set({data:t,dataLabels:e}),this.state.data},t.prototype.generateDataLabels=function(t){var e={};return t.datasets.forEach((function(t){e[t.label]=qs.items.status.ACTIVE})),e},t.prototype.getOptions=function(){return this.state.options},t.prototype.set=function(t,e){void 0===e&&(e=!1),this.state=Object.assign({},this.state,t),e||this.update()},t.prototype.get=function(t){return t?this.state[t]:this.state},t.prototype.setOptions=function(t){this.set({options:Xs.merge(this.getOptions(),t)})},t.prototype.update=function(){this.getDisplayData()&&(this.updateAllDataLabels(),this.setColorScale(),this.services.events.dispatchEvent("model-update"))},t.prototype.setUpdateCallback=function(t){this.updateCallback=t},t.prototype.toggleDataLabel=function(t){var e=qs.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.get("dataLabels"),o=Object.keys(i).some((function(t){return i[t]===r})),a=Object.keys(i).filter((function(t){return i[t]===n}));o?1===a.length&&a[0]===t?Object.keys(i).forEach((function(t){i[t]=n})):i[t]=i[t]===r?n:r:Object.keys(i).forEach((function(e){i[e]=e===t?n:r})),this.set({dataLabels:i})},t.prototype.setColorScale=function(){var t=this;if(this.getDisplayData().datasets[0].fillColors)this.getDisplayData().datasets.forEach((function(e){t.colorScale[e.label]=gl().range(e.fillColors).domain(t.allDataLabels)}));else{var e=zc;this.getData().datasets.forEach((function(n,r){t.colorScale[n.label]=gl().range([e[r]]).domain(t.allDataLabels)}))}},t.prototype.getFillColor=function(t,e,n){var r=this.getOptions();return r.getFillColor?r.getFillColor(t,e,n):this.getFillScale()[t](e)},t.prototype.getStrokeColor=function(t,e,n){var r=this.getOptions();return r.getStrokeColor?r.getStrokeColor(t,e,n):this.colorScale[t](e)},t.prototype.getFillScale=function(){return this.colorScale},t.prototype.updateAllDataLabels=function(){var t=this;this.allDataLabels?this.getDisplayData().labels.forEach((function(e){-1===t.allDataLabels.indexOf(e)&&t.allDataLabels.push(e)})):this.allDataLabels=this.getDisplayData().labels},t}(),jv=function(){function t(t,e){this.model=t,this.services=e,this.init()}return t.prototype.init=function(){},t.prototype.update=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t}(),Dv="http://www.w3.org/1999/xhtml",Nv={svg:"http://www.w3.org/2000/svg",xhtml:Dv,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Rv=function(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),Nv.hasOwnProperty(e)?{space:Nv[e],local:t}:t};function Fv(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===Dv&&e.documentElement.namespaceURI===Dv?e.createElement(t):e.createElementNS(n,t)}}function Iv(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}var Vv=function(t){var e=Rv(t);return(e.local?Iv:Fv)(e)};function Hv(){}var Bv=function(t){return null==t?Hv:function(){return this.querySelector(t)}},zv=function(t){"function"!==typeof t&&(t=Bv(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,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=t.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new xg(r,this._parents)};function Gv(){return[]}var Uv=function(t){return null==t?Gv:function(){return this.querySelectorAll(t)}},Yv=function(t){"function"!==typeof t&&(t=Uv(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,c=0;c<u;++c)(a=s[c])&&(r.push(t.call(a,a.__data__,c,s)),i.push(a));return new xg(r,i)},Xv=function(t){return function(){return this.matches(t)}},Wv=function(t){"function"!==typeof t&&(t=Xv(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]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new xg(r,this._parents)},qv=function(t){return new Array(t.length)},$v=function(){return new xg(this._enter||this._groups.map(qv),this._parents)};function Zv(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Zv.prototype={constructor:Zv,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)}};var Jv=function(t){return function(){return t}},Qv="$";function Kv(t,e,n,r,i,o){for(var a,s=0,u=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):n[s]=new Zv(t,o[s]);for(;s<u;++s)(a=e[s])&&(i[s]=a)}function ty(t,e,n,r,i,o,a){var s,u,c,l={},h=e.length,f=o.length,p=new Array(h);for(s=0;s<h;++s)(u=e[s])&&(p[s]=c=Qv+a.call(u,u.__data__,s,e),c in l?i[s]=u:l[c]=u);for(s=0;s<f;++s)c=Qv+a.call(t,o[s],s,o),(u=l[c])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new Zv(t,o[s]);for(s=0;s<h;++s)(u=e[s])&&l[p[s]]===u&&(i[s]=u)}var ey=function(t,e){if(!t)return p=new Array(this.size()),c=-1,this.each((function(t){p[++c]=t})),p;var n=e?ty:Kv,r=this._parents,i=this._groups;"function"!==typeof t&&(t=Jv(t));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=r[c],h=i[c],f=h.length,p=t.call(l,l&&l.__data__,c,r),d=p.length,v=s[c]=new Array(d),y=a[c]=new Array(d),g=u[c]=new Array(f);n(l,h,v,y,g,p,e);for(var _,m,b=0,x=0;b<d;++b)if(_=v[b]){b>=x&&(x=b+1);while(!(m=y[x])&&++x<d);_._next=m||null}}return a=new xg(a,r),a._enter=s,a._exit=u,a},ny=function(){return new xg(this._exit||this._groups.map(qv),this._parents)},ry=function(t,e,n){var r=this.enter(),i=this,o=this.exit();return r="function"===typeof t?t(r):r.append(t+""),null!=e&&(i=e(i)),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},iy=function(t){for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new xg(a,this._parents)},oy=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},ay=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=sy);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,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new xg(i,this._parents).order()};function sy(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}var uy=function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},cy=function(){var t=new Array(this.size()),e=-1;return this.each((function(){t[++e]=this})),t},ly=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},hy=function(){var t=0;return this.each((function(){++t})),t},fy=function(){return!this.node()},py=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};function dy(t){return function(){this.removeAttribute(t)}}function vy(t){return function(){this.removeAttributeNS(t.space,t.local)}}function yy(t,e){return function(){this.setAttribute(t,e)}}function gy(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function _y(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function my(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)}}var by=function(t,e){var n=Rv(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?vy:dy:"function"===typeof e?n.local?my:_y:n.local?gy:yy)(n,e))},xy=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView};function wy(t){return function(){this.style.removeProperty(t)}}function Oy(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ty(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}var My=function(t,e,n){return arguments.length>1?this.each((null==e?wy:"function"===typeof e?Ty:Oy)(t,e,null==n?"":n)):Ey(this.node(),t)};function Ey(t,e){return t.style.getPropertyValue(e)||xy(t).getComputedStyle(t,null).getPropertyValue(e)}function Sy(t){return function(){delete this[t]}}function Ay(t,e){return function(){this[t]=e}}function ky(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}var Py=function(t,e){return arguments.length>1?this.each((null==e?Sy:"function"===typeof e?ky:Ay)(t,e)):this.node()[t]};function Cy(t){return t.trim().split(/^|\s+/)}function Ly(t){return t.classList||new jy(t)}function jy(t){this._node=t,this._names=Cy(t.getAttribute("class")||"")}function Dy(t,e){var n=Ly(t),r=-1,i=e.length;while(++r<i)n.add(e[r])}function Ny(t,e){var n=Ly(t),r=-1,i=e.length;while(++r<i)n.remove(e[r])}function Ry(t){return function(){Dy(this,t)}}function Fy(t){return function(){Ny(this,t)}}function Iy(t,e){return function(){(e.apply(this,arguments)?Dy:Ny)(this,t)}}jy.prototype={add:function(t){var e=this._names.indexOf(t);e<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 Vy=function(t,e){var n=Cy(t+"");if(arguments.length<2){var r=Ly(this.node()),i=-1,o=n.length;while(++i<o)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"===typeof e?Iy:e?Ry:Fy)(n,e))};function Hy(){this.textContent=""}function By(t){return function(){this.textContent=t}}function zy(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}var Gy=function(t){return arguments.length?this.each(null==t?Hy:("function"===typeof t?zy:By)(t)):this.node().textContent};function Uy(){this.innerHTML=""}function Yy(t){return function(){this.innerHTML=t}}function Xy(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}var Wy=function(t){return arguments.length?this.each(null==t?Uy:("function"===typeof t?Xy:Yy)(t)):this.node().innerHTML};function qy(){this.nextSibling&&this.parentNode.appendChild(this)}var $y=function(){return this.each(qy)};function Zy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var Jy=function(){return this.each(Zy)},Qy=function(t){var e="function"===typeof t?t:Vv(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))};function Ky(){return null}var tg=function(t,e){var n="function"===typeof t?t:Vv(t),r=null==e?Ky:"function"===typeof e?e:Bv(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))};function eg(){var t=this.parentNode;t&&t.removeChild(this)}var ng=function(){return this.each(eg)};function rg(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function ig(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var og=function(t){return this.select(t?ig:rg)},ag=function(t){return arguments.length?this.property("__data__",t):this.node().__data__},sg={},ug=null;if("undefined"!==typeof document){var cg=document.documentElement;"onmouseenter"in cg||(sg={mouseenter:"mouseover",mouseleave:"mouseout"})}function lg(t,e,n){return t=hg(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function hg(t,e,n){return function(r){var i=ug;ug=r;try{t.call(this,this.__data__,e,n)}finally{ug=i}}}function fg(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}function pg(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.capture);++i?e.length=i:delete this.__on}}}function dg(t,e,n){var r=sg.hasOwnProperty(t.type)?lg:hg;return function(i,o,a){var s,u=this.__on,c=r(e,o,a);if(u)for(var l=0,h=u.length;l<h;++l)if((s=u[l]).type===t.type&&s.name===t.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=e);this.addEventListener(t.type,c,n),s={type:t.type,name:t.name,value:e,listener:c,capture:n},u?u.push(s):this.__on=[s]}}var vg=function(t,e,n){var r,i,o=fg(t+""),a=o.length;if(!(arguments.length<2)){for(s=e?dg:pg,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],e,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value};function yg(t,e,n){var r=xy(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 gg(t,e){return function(){return yg(this,t,e)}}function _g(t,e){return function(){return yg(this,t,e.apply(this,arguments))}}var mg=function(t,e){return this.each(("function"===typeof e?_g:gg)(t,e))},bg=[null];function xg(t,e){this._groups=t,this._parents=e}function wg(){return new xg([[document.documentElement]],bg)}xg.prototype=wg.prototype={constructor:xg,select:zv,selectAll:Yv,filter:Wv,data:ey,enter:$v,exit:ny,join:ry,merge:iy,order:oy,sort:ay,call:uy,nodes:cy,node:ly,size:hy,empty:fy,each:py,attr:by,style:My,property:Py,classed:Vy,text:Gy,html:Wy,raise:$y,lower:Jy,append:Qy,insert:tg,remove:ng,clone:og,datum:ag,on:vg,dispatch:mg};var Og=wg,Tg=function(t){return"string"===typeof t?new xg([[document.querySelector(t)]],[document.documentElement]):new xg([[t]],bg)},Mg=0;function Eg(){return new Sg}function Sg(){this._="@"+(++Mg).toString(36)}Sg.prototype=Eg.prototype={constructor:Sg,get:function(t){var e=this._;while(!(e in t))if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}};var Ag=function(){var t,e=ug;while(t=e.sourceEvent)e=t;return e},kg=function(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]},Pg=function(t){var e=Ag();return e.changedTouches&&(e=e.changedTouches[0]),kg(t,e)},Cg=n("2314"),Lg=n.n(Cg),jg=n("2da1"),Dg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ng=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dg(e,t),e.getSVGElementSize=function(t,e){t.attr||(t=Tg(t));var n,r,i,o,a={width:t.attr("width"),height:t.attr("height")};try{n=t.node().getBBox(),r={width:n.width,height:n.height}}catch(l){}try{i=t.node().getBoundingClientRect(),o={width:i.width,height:i.height}}catch(l){}var s={width:t.node().clientWidth,height:t.node().clientHeight},u=function(t){return!!(t&&t.width&&t.height&&!isNaN(t.height)&&!isNaN(t.width)&&-1===(""+t.width+t.height).indexOf("%")&&t.width>0&&t.height>0)};if(e){if(e.useAttrs&&u(a))return a;if(e.useClientDimensions&&u(s))return s;if(e.useBBox&&u(r))return r;if(e.useBoundingRect&&u(o))return o}try{var c={width:Xs.getProperty(t.node(),"width","baseVal","value"),height:Xs.getProperty(t.node(),"height","baseVal","value")};if(u(c))return c}catch(l){if(u(s))return s;if(u(r))return r;if(u(a))return a}return{width:0,height:0}},e.appendOrSelect=function(t,e){var n=e.split("."),r=n[0],i=t.select(e);return i.empty()?t.append(r).attr("class",n.slice(1).join(" ")):i},e.prototype.init=function(){this.styleHolderElement(),this.addSVGElement(),this.model.getOptions().resizable&&this.addResizeListener()},e.prototype.update=function(){this.styleHolderElement()},e.prototype.styleHolderElement=function(){var t=this.getHolder();Tg(this.getHolder()).classed(Lg.a.prefix+"--chart-holder",!0);var e=this.model.getOptions(),n=e.width,r=e.height;n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r)},e.prototype.getHolder=function(){return this.model.get("holder")},e.prototype.addSVGElement=function(){var t=Xs.getProperty(this.model.getOptions(),"style","prefix"),e=Tg(this.getHolder()).append("svg").classed(Lg.a.prefix+"--"+t+"--chart-svg",!0).attr("height","100%").attr("width","100%");this.svg=e.node()},e.prototype.getMainSVG=function(){return this.svg},e.prototype.addResizeListener=function(){var t=this,e=this.getHolder();if(e){var n=e.clientWidth,r=e.clientHeight,i=Xs.debounce((function(i,o){e&&(Math.abs(n-e.clientWidth)>1||Math.abs(r-e.clientHeight)>1)&&(n=e.clientWidth,r=e.clientHeight,t.services.events.dispatchEvent("chart-resize"))}),12.5),o=new jg["a"](i);o.observe(e)}},e}(jv),Rg=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rg(e,t),e.prototype.init=function(){this.documentFragment=document.createDocumentFragment()},e.prototype.addEventListener=function(t,e){this.documentFragment.addEventListener(t,e)},e.prototype.removeEventListener=function(t,e){this.documentFragment.removeEventListener(t,e)},e.prototype.dispatchEvent=function(t,e){var n;e?n=new CustomEvent(t,{detail:e}):(n=document.createEvent("Event"),n.initEvent(t,!1,!0)),this.documentFragment.dispatchEvent(n)},e}(jv),Ig={value:function(){}};function Vg(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r)throw new Error("illegal type: "+t);r[t]=[]}return new Hg(r)}function Hg(t){this._=t}function Bg(t,e){return t.trim().split(/^|\s+/).map((function(t){var n="",r=t.indexOf(".");if(r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}function zg(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function Gg(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ig,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Hg.prototype=Vg.prototype={constructor:Hg,on:function(t,e){var n,r=this._,i=Bg(t+"",r),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=e&&"function"!==typeof e)throw new Error("invalid callback: "+e);while(++o<a)if(n=(t=i[o]).type)r[n]=Gg(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Gg(r[n],t.name,null);return this}while(++o<a)if((n=(t=i[o]).type)&&(n=zg(r[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Hg(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var Ug,Yg,Xg=Vg,Wg=0,qg=0,$g=0,Zg=1e3,Jg=0,Qg=0,Kg=0,t_="object"===typeof performance&&performance.now?performance:Date,e_="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function n_(){return Qg||(e_(r_),Qg=t_.now()+Kg)}function r_(){Qg=0}function i_(){this._call=this._time=this._next=null}function o_(t,e,n){var r=new i_;return r.restart(t,e,n),r}function a_(){n_(),++Wg;var t,e=Ug;while(e)(t=Qg-e._time)>=0&&e._call.call(null,t),e=e._next;--Wg}function s_(){Qg=(Jg=t_.now())+Kg,Wg=qg=0;try{a_()}finally{Wg=0,c_(),Qg=0}}function u_(){var t=t_.now(),e=t-Jg;e>Zg&&(Kg-=e,Jg=t)}function c_(){var t,e,n=Ug,r=1/0;while(n)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:Ug=e);Yg=t,l_(r)}function l_(t){if(!Wg){qg&&(qg=clearTimeout(qg));var e=t-Qg;e>24?(t<1/0&&(qg=setTimeout(s_,t-t_.now()-Kg)),$g&&($g=clearInterval($g))):($g||(Jg=t_.now(),$g=setInterval(u_,Zg)),Wg=1,e_(s_))}}i_.prototype=o_.prototype={constructor:i_,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?n_():+n)+(null==e?0:+e),this._next||Yg===this||(Yg?Yg._next=this:Ug=this,Yg=this),this._call=t,this._time=n,l_()},stop:function(){this._call&&(this._call=null,this._time=1/0,l_())}};var h_=function(t,e,n){var r=new i_;return e=null==e?0:+e,r.restart((function(n){r.stop(),t(n+e)}),e,n),r},f_=Xg("start","end","cancel","interrupt"),p_=[],d_=0,v_=1,y_=2,g_=3,__=4,m_=5,b_=6,x_=function(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};M_(t,n,{name:e,index:r,group:i,on:f_,tween:p_,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:d_})};function w_(t,e){var n=T_(t,e);if(n.state>d_)throw new Error("too late; already scheduled");return n}function O_(t,e){var n=T_(t,e);if(n.state>g_)throw new Error("too late; already running");return n}function T_(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function M_(t,e,n){var r,i=t.__transition;function o(t){n.state=v_,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var c,l,h,f;if(n.state!==v_)return u();for(c in i)if(f=i[c],f.name===n.name){if(f.state===g_)return h_(a);f.state===__?(f.state=b_,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[c]):+c<e&&(f.state=b_,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[c])}if(h_((function(){n.state===g_&&(n.state=__,n.timer.restart(s,n.delay,n.time),s(o))})),n.state=y_,n.on.call("start",t,t.__data__,n.index,n.group),n.state===y_){for(n.state=g_,r=new Array(h=n.tween.length),c=0,l=-1;c<h;++c)(f=n.tween[c].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=f);r.length=l+1}}function s(e){var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(u),n.state=m_,1),o=-1,a=r.length;while(++o<a)r[o].call(t,i);n.state===m_&&(n.on.call("end",t,t.__data__,n.index,n.group),u())}function u(){for(var r in n.state=b_,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=o_(o,0,n.time)}var E_=function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>y_&&n.state<m_,n.state=b_,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}},S_=function(t){return this.each((function(){E_(this,t)}))};function A_(t,e){var n,r;return function(){var i=O_(this,t),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===e){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function k_(t,e,n){var r,i;if("function"!==typeof n)throw new Error;return function(){var o=O_(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:e,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===e){i[u]=s;break}u===c&&i.push(s)}o.tween=i}}var P_=function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=T_(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?A_:k_)(n,t,e))};function C_(t,e,n){var r=t._id;return t.each((function(){var t=O_(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return T_(t,r).value[e]}}var L_=function(t,e){var n;return("number"===typeof e?hh:e instanceof Il?sh:(n=Il(e))?(e=n,sh):xh)(t,e)};function j_(t){return function(){this.removeAttribute(t)}}function D_(t){return function(){this.removeAttributeNS(t.space,t.local)}}function N_(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function R_(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function F_(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttribute(t),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttribute(t)}}function I_(t,e,n){var r,i,o;return function(){var a,s,u=n(this);if(null!=u)return a=this.getAttributeNS(t.space,t.local),s=u+"",a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u));this.removeAttributeNS(t.space,t.local)}}var V_=function(t,e){var n=Rv(t),r="transform"===n?Ch:L_;return this.attrTween(t,"function"===typeof e?(n.local?I_:F_)(n,r,C_(this,"attr."+t,e)):null==e?(n.local?D_:j_)(n):(n.local?R_:N_)(n,r,e))};function H_(t,e){return function(n){this.setAttribute(t,e(n))}}function B_(t,e){return function(n){this.setAttributeNS(t.space,t.local,e(n))}}function z_(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&B_(t,i)),n}return i._value=e,i}function G_(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&H_(t,i)),n}return i._value=e,i}var U_=function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!==typeof e)throw new Error;var r=Rv(t);return this.tween(n,(r.local?z_:G_)(r,e))};function Y_(t,e){return function(){w_(this,t).delay=+e.apply(this,arguments)}}function X_(t,e){return e=+e,function(){w_(this,t).delay=e}}var W_=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?Y_:X_)(e,t)):T_(this.node(),e).delay};function q_(t,e){return function(){O_(this,t).duration=+e.apply(this,arguments)}}function $_(t,e){return e=+e,function(){O_(this,t).duration=e}}var Z_=function(t){var e=this._id;return arguments.length?this.each(("function"===typeof t?q_:$_)(e,t)):T_(this.node(),e).duration};function J_(t,e){if("function"!==typeof e)throw new Error;return function(){O_(this,t).ease=e}}var Q_=function(t){var e=this._id;return arguments.length?this.each(J_(e,t)):T_(this.node(),e).ease},K_=function(t){"function"!==typeof t&&(t=Xv(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]=[],c=0;c<s;++c)(o=a[c])&&t.call(o,o.__data__,c,a)&&u.push(o);return new Mm(r,this._parents,this._name,this._id)},tm=function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=e[s],l=n[s],h=c.length,f=a[s]=new Array(h),p=0;p<h;++p)(u=c[p]||l[p])&&(f[p]=u);for(;s<r;++s)a[s]=e[s];return new Mm(a,this._parents,this._name,this._id)};function em(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}function nm(t,e,n){var r,i,o=em(e)?w_:O_;return function(){var a=o(this,t),s=a.on;s!==r&&(i=(r=s).copy()).on(e,n),a.on=i}}var rm=function(t,e){var n=this._id;return arguments.length<2?T_(this.node(),n).on.on(t):this.each(nm(n,t,e))};function im(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}var om=function(){return this.on("end.remove",im(this._id))},am=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Bv(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,h=o[a]=new Array(l),f=0;f<l;++f)(s=c[f])&&(u=t.call(s,s.__data__,f,c))&&("__data__"in s&&(u.__data__=s.__data__),h[f]=u,x_(h[f],e,n,f,h,T_(s,n)));return new Mm(o,this._parents,e,n)},sm=function(t){var e=this._name,n=this._id;"function"!==typeof t&&(t=Uv(t));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,h=0;h<l;++h)if(u=c[h]){for(var f,p=t.call(u,u.__data__,h,c),d=T_(u,n),v=0,y=p.length;v<y;++v)(f=p[v])&&x_(f,e,n,v,p,d);o.push(p),a.push(u)}return new Mm(o,a,e,n)},um=Og.prototype.constructor,cm=function(){return new um(this._groups,this._parents)};function lm(t,e){var n,r,i;return function(){var o=Ey(this,t),a=(this.style.removeProperty(t),Ey(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}function hm(t){return function(){this.style.removeProperty(t)}}function fm(t,e,n){var r,i,o=n+"";return function(){var a=Ey(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}function pm(t,e,n){var r,i,o;return function(){var a=Ey(this,t),s=n(this),u=s+"";return null==s&&(this.style.removeProperty(t),u=s=Ey(this,t)),a===u?null:a===r&&u===i?o:(i=u,o=e(r=a,s))}}function dm(t,e){var n,r,i,o,a="style."+e,s="end."+a;return function(){var u=O_(this,t),c=u.on,l=null==u.value[a]?o||(o=hm(e)):void 0;c===n&&i===l||(r=(n=c).copy()).on(s,i=l),u.on=r}}var vm=function(t,e,n){var r="transform"===(t+="")?Ph:L_;return null==e?this.styleTween(t,lm(t,r)).on("end.style."+t,hm(t)):"function"===typeof e?this.styleTween(t,pm(t,r,C_(this,"style."+t,e))).each(dm(this._id,t)):this.styleTween(t,fm(t,r,e),n).on("end.style."+t,null)};function ym(t,e,n){return function(r){this.style.setProperty(t,e(r),n)}}function gm(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&ym(t,o,n)),r}return o._value=e,o}var _m=function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!==typeof e)throw new Error;return this.tween(r,gm(t,e,null==n?"":n))};function mm(t){return function(){this.textContent=t}}function bm(t){return function(){var e=t(this);this.textContent=null==e?"":e}}var xm=function(t){return this.tween("text","function"===typeof t?bm(C_(this,"text",t)):mm(null==t?"":t+""))},wm=function(){for(var t=this._name,e=this._id,n=Sm(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=T_(a,e);x_(a,t,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new Mm(r,this._parents,t,n)},Om=function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var s={value:a},u={value:function(){0===--i&&o()}};n.each((function(){var n=O_(this,r),i=n.on;i!==t&&(e=(t=i).copy(),e._.cancel.push(s),e._.interrupt.push(s),e._.end.push(u)),n.on=e}))}))},Tm=0;function Mm(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Em(t){return Og().transition(t)}function Sm(){return++Tm}var Am=Og.prototype;function km(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}Mm.prototype=Em.prototype={constructor:Mm,select:am,selectAll:sm,filter:K_,merge:tm,selection:cm,transition:wm,call:Am.call,nodes:Am.nodes,node:Am.node,size:Am.size,empty:Am.empty,each:Am.each,on:rm,attr:V_,attrTween:U_,style:vm,styleTween:_m,text:xm,remove:om,tween:P_,delay:W_,duration:Z_,ease:Q_,end:Om};var Pm=3;(function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n})(Pm),function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(Pm),function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(Pm),Math.PI;var Cm=1.70158,Lm=(function t(e){function n(t){return t*t*((e+1)*t-e)}return e=+e,n.overshoot=t,n}(Cm),function t(e){function n(t){return--t*t*((e+1)*t+e)+1}return e=+e,n.overshoot=t,n}(Cm),function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(Cm),2*Math.PI),jm=1,Dm=.3,Nm=(function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return e*Math.pow(2,10*--t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return 1-e*Math.pow(2,-10*(t=+t))*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Lm);function i(t){return((t=2*t-1)<0?e*Math.pow(2,10*t)*Math.sin((r-t)/n):2-e*Math.pow(2,-10*t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Lm)},i.period=function(n){return t(e,n)},i}(jm,Dm),{time:null,delay:0,duration:250,ease:km});function Rm(t,e){var n;while(!(n=t.__transition)||!(n=n[e]))if(!(t=t.parentNode))return Nm.time=n_(),Nm;return n}var Fm=function(t){var e,n;t instanceof Mm?(e=t._id,t=t._name):(e=Sm(),(n=Nm).time=n_(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&x_(a,t,e,c,s,n||Rm(a,e));return new Mm(r,this._parents,t,e)};Og.prototype.interrupt=S_,Og.prototype.transition=Fm;var Im=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vm=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.pendingTransitions={},e}return Im(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener("model-update",(function(){t.pendingTransitions={}}))},e.prototype.getTransition=function(t,e){var n=this;if(!1===this.model.getOptions().animations||!1===e)return this.getInstantTransition(t);var r=Em(t).duration(Xs.getProperty(pu,t,"duration")||pu.default.duration);return this.pendingTransitions[r._id]=r,r.on("end interrupt cancel",(function(){delete n.pendingTransitions[r._id]})),r},e.prototype.getInstantTransition=function(t){var e=this,n=Em(t).duration(0);return this.pendingTransitions[n._id]=n,n.on("end interrupt cancel",(function(){delete e.pendingTransitions[n._id]})),n},e.prototype.getPendingTransitions=function(){return this.pendingTransitions},e}(jv),Hm=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bm=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hm(e,t),e.prototype.getMainXAxis=function(){var t=this.model.get(s.PRIMARY),e=this.model.get(s.SECONDARY);return t===this.model.get(a.TOP)||t===this.model.get(a.BOTTOM)?t:e===this.model.get(a.TOP)||e===this.model.get(a.BOTTOM)?e:this.model.get(a.BOTTOM)},e.prototype.getMainYAxis=function(){var t=this.model.get(s.PRIMARY),e=this.model.get(s.SECONDARY);return t===this.model.get(a.LEFT)||t===this.model.get(a.RIGHT)?t:e===this.model.get(a.LEFT)||e===this.model.get(a.RIGHT)?e:this.model.get(a.LEFT)},e.prototype.getXValue=function(t,e){return this.getMainXAxis().getValueFromScale(t,e)},e.prototype.getYValue=function(t,e){return this.getMainYAxis().getValueFromScale(t,e)},e.prototype.getDataFromDomain=function(t){var e=this.model.getDisplayData(),n=[],r=this.getMainXAxis().scaleType;switch(r){case u.LABELS:var i=e.labels.indexOf(t);e.datasets.forEach((function(t){n.push({datasetLabel:t.label,value:t.data[i]})}));break;case u.TIME:var o=Object.keys(e.datasets[0].data[0]).filter((function(t){return"value"!==t}))[0];e.datasets.forEach((function(e){var r=e.label,i=e.data.filter((function(e){var n=new Date(e[o]),r=new Date(t);return n.getTime()===r.getTime()}));i.forEach((function(t){n.push(Object.assign({datasetLabel:r,value:t.value},t))}))}));break}return n},e}(jv),zm=Math.PI,Gm=2*zm,Um=1e-6,Ym=Gm-Um;function Xm(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Wm(){return new Xm}Xm.prototype=Wm.prototype={constructor:Xm,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){t=+t,e=+e,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-t,u=r-e,c=o-t,l=a-e,h=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=t)+","+(this._y1=e);else if(h>Um)if(Math.abs(l*s-u*c)>Um&&i){var f=n-o,p=r-a,d=s*s+u*u,v=f*f+p*p,y=Math.sqrt(d),g=Math.sqrt(h),_=i*Math.tan((zm-Math.acos((d+h-v)/(2*y*g)))/2),m=_/g,b=_/y;Math.abs(m-1)>Um&&(this._+="L"+(t+m*c)+","+(e+m*l)),this._+="A"+i+","+i+",0,0,"+ +(l*f>c*p)+","+(this._x1=t+b*s)+","+(this._y1=e+b*u)}else this._+="L"+(this._x1=t)+","+(this._y1=e);else;},arc:function(t,e,n,r,i,o){t=+t,e=+e,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),u=t+a,c=e+s,l=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>Um||Math.abs(this._y1-c)>Um)&&(this._+="L"+u+","+c),n&&(h<0&&(h=h%Gm+Gm),h>Ym?this._+="A"+n+","+n+",0,1,"+l+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):h>Um&&(this._+="A"+n+","+n+",0,"+ +(h>=zm)+","+l+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var qm=Wm,$m=function(t){return function(){return t}},Zm=Math.abs,Jm=Math.atan2,Qm=Math.cos,Km=Math.max,tb=Math.min,eb=Math.sin,nb=Math.sqrt,rb=1e-12,ib=Math.PI,ob=ib/2,ab=2*ib;function sb(t){return t>1?0:t<-1?ib:Math.acos(t)}function ub(t){return t>=1?ob:t<=-1?-ob:Math.asin(t)}function cb(t){return t.innerRadius}function lb(t){return t.outerRadius}function hb(t){return t.startAngle}function fb(t){return t.endAngle}function pb(t){return t&&t.padAngle}function db(t,e,n,r,i,o,a,s){var u=n-t,c=r-e,l=a-i,h=s-o,f=h*u-l*c;if(!(f*f<rb))return f=(l*(e-o)-h*(t-i))/f,[t+f*u,e+f*c]}function vb(t,e,n,r,i,o,a){var s=t-n,u=e-r,c=(a?o:-o)/nb(s*s+u*u),l=c*u,h=-c*s,f=t+l,p=e+h,d=n+l,v=r+h,y=(f+d)/2,g=(p+v)/2,_=d-f,m=v-p,b=_*_+m*m,x=i-o,w=f*v-d*p,O=(m<0?-1:1)*nb(Km(0,x*x*b-w*w)),T=(w*m-_*O)/b,M=(-w*_-m*O)/b,E=(w*m+_*O)/b,S=(-w*_+m*O)/b,A=T-y,k=M-g,P=E-y,C=S-g;return A*A+k*k>P*P+C*C&&(T=E,M=S),{cx:T,cy:M,x01:-l,y01:-h,x11:T*(i/x-1),y11:M*(i/x-1)}}var yb=function(){var t=cb,e=lb,n=$m(0),r=null,i=hb,o=fb,a=pb,s=null;function u(){var u,c,l=+t.apply(this,arguments),h=+e.apply(this,arguments),f=i.apply(this,arguments)-ob,p=o.apply(this,arguments)-ob,d=Zm(p-f),v=p>f;if(s||(s=u=qm()),h<l&&(c=h,h=l,l=c),h>rb)if(d>ab-rb)s.moveTo(h*Qm(f),h*eb(f)),s.arc(0,0,h,f,p,!v),l>rb&&(s.moveTo(l*Qm(p),l*eb(p)),s.arc(0,0,l,p,f,v));else{var y,g,_=f,m=p,b=f,x=p,w=d,O=d,T=a.apply(this,arguments)/2,M=T>rb&&(r?+r.apply(this,arguments):nb(l*l+h*h)),E=tb(Zm(h-l)/2,+n.apply(this,arguments)),S=E,A=E;if(M>rb){var k=ub(M/l*eb(T)),P=ub(M/h*eb(T));(w-=2*k)>rb?(k*=v?1:-1,b+=k,x-=k):(w=0,b=x=(f+p)/2),(O-=2*P)>rb?(P*=v?1:-1,_+=P,m-=P):(O=0,_=m=(f+p)/2)}var C=h*Qm(_),L=h*eb(_),j=l*Qm(x),D=l*eb(x);if(E>rb){var N,R=h*Qm(m),F=h*eb(m),I=l*Qm(b),V=l*eb(b);if(d<ib&&(N=db(C,L,I,V,R,F,j,D))){var H=C-N[0],B=L-N[1],z=R-N[0],G=F-N[1],U=1/eb(sb((H*z+B*G)/(nb(H*H+B*B)*nb(z*z+G*G)))/2),Y=nb(N[0]*N[0]+N[1]*N[1]);S=tb(E,(l-Y)/(U-1)),A=tb(E,(h-Y)/(U+1))}}O>rb?A>rb?(y=vb(I,V,C,L,h,A,v),g=vb(R,F,j,D,h,A,v),s.moveTo(y.cx+y.x01,y.cy+y.y01),A<E?s.arc(y.cx,y.cy,A,Jm(y.y01,y.x01),Jm(g.y01,g.x01),!v):(s.arc(y.cx,y.cy,A,Jm(y.y01,y.x01),Jm(y.y11,y.x11),!v),s.arc(0,0,h,Jm(y.cy+y.y11,y.cx+y.x11),Jm(g.cy+g.y11,g.cx+g.x11),!v),s.arc(g.cx,g.cy,A,Jm(g.y11,g.x11),Jm(g.y01,g.x01),!v))):(s.moveTo(C,L),s.arc(0,0,h,_,m,!v)):s.moveTo(C,L),l>rb&&w>rb?S>rb?(y=vb(j,D,R,F,l,-S,v),g=vb(C,L,I,V,l,-S,v),s.lineTo(y.cx+y.x01,y.cy+y.y01),S<E?s.arc(y.cx,y.cy,S,Jm(y.y01,y.x01),Jm(g.y01,g.x01),!v):(s.arc(y.cx,y.cy,S,Jm(y.y01,y.x01),Jm(y.y11,y.x11),!v),s.arc(0,0,l,Jm(y.cy+y.y11,y.cx+y.x11),Jm(g.cy+g.y11,g.cx+g.x11),v),s.arc(g.cx,g.cy,S,Jm(g.y11,g.x11),Jm(g.y01,g.x01),!v))):s.arc(0,0,l,x,b,v):s.lineTo(j,D)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-ib/2;return[Qm(r)*n,eb(r)*n]},u.innerRadius=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),u):t},u.outerRadius=function(t){return arguments.length?(e="function"===typeof t?t:$m(+t),u):e},u.cornerRadius=function(t){return arguments.length?(n="function"===typeof t?t:$m(+t),u):n},u.padRadius=function(t){return arguments.length?(r=null==t?null:"function"===typeof t?t:$m(+t),u):r},u.startAngle=function(t){return arguments.length?(i="function"===typeof t?t:$m(+t),u):i},u.endAngle=function(t){return arguments.length?(o="function"===typeof t?t:$m(+t),u):o},u.padAngle=function(t){return arguments.length?(a="function"===typeof t?t:$m(+t),u):a},u.context=function(t){return arguments.length?(s=null==t?null:t,u):s},u};function gb(t){this._context=t}gb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};var _b=function(t){return new gb(t)};function mb(t){return t[0]}function bb(t){return t[1]}var xb=function(){var t=mb,e=bb,n=$m(!0),r=null,i=_b,o=null;function a(a){var s,u,c,l=a.length,h=!1;for(null==r&&(o=i(c=qm())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(u,s,a),+e(u,s,a));if(c)return o=null,c+""||null}return a.x=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),a):t},a.y=function(t){return arguments.length?(e="function"===typeof t?t:$m(+t),a):e},a.defined=function(t){return arguments.length?(n="function"===typeof t?t:$m(!!t),a):n},a.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),a):i},a.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),a):r},a},wb=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},Ob=function(t){return t},Tb=function(){var t=Ob,e=wb,n=null,r=$m(0),i=$m(ab),o=$m(0);function a(a){var s,u,c,l,h,f=a.length,p=0,d=new Array(f),v=new Array(f),y=+r.apply(this,arguments),g=Math.min(ab,Math.max(-ab,i.apply(this,arguments)-y)),_=Math.min(Math.abs(g)/f,o.apply(this,arguments)),m=_*(g<0?-1:1);for(s=0;s<f;++s)(h=v[d[s]=s]=+t(a[s],s,a))>0&&(p+=h);for(null!=e?d.sort((function(t,n){return e(v[t],v[n])})):null!=n&&d.sort((function(t,e){return n(a[t],a[e])})),s=0,c=p?(g-f*m)/p:0;s<f;++s,y=l)u=d[s],h=v[u],l=y+(h>0?h*c:0)+m,v[u]={data:a[u],index:s,value:h,startAngle:y,endAngle:l,padAngle:_};return v}return a.value=function(e){return arguments.length?(t="function"===typeof e?e:$m(+e),a):t},a.sortValues=function(t){return arguments.length?(e=t,n=null,a):e},a.sort=function(t){return arguments.length?(n=t,e=null,a):n},a.startAngle=function(t){return arguments.length?(r="function"===typeof t?t:$m(+t),a):r},a.endAngle=function(t){return arguments.length?(i="function"===typeof t?t:$m(+t),a):i},a.padAngle=function(t){return arguments.length?(o="function"===typeof t?t:$m(+t),a):o},a};Eb(_b);function Mb(t){this._curve=t}function Eb(t){function e(e){return new Mb(t(e))}return e._curve=t,e}Mb.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var Sb=Array.prototype.slice;Math.sqrt(1/3);var Ab=Math.sin(ib/10)/Math.sin(7*ib/10),kb=(Math.sin(ab/10),Math.cos(ab/10),Math.sqrt(3),Math.sqrt(3),Math.sqrt(12),function(){});function Pb(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Cb(t){this._context=t}Cb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Pb(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Lb=function(t){return new Cb(t)};function jb(t){this._context=t}jb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Db=function(t){return new jb(t)};function Nb(t){this._context=t}Nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,r=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Pb(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};var Rb=function(t){return new Nb(t)};function Fb(t,e){this._basis=new Cb(t),this._beta=e}Fb.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0){var r,i=t[0],o=e[0],a=t[n]-i,s=e[n]-o,u=-1;while(++u<=n)r=u/n,this._basis.point(this._beta*t[u]+(1-this._beta)*(i+r*a),this._beta*e[u]+(1-this._beta)*(o+r*s))}this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var Ib=function t(e){function n(t){return 1===e?new Cb(t):new Fb(t,e)}return n.beta=function(e){return t(+e)},n}(.85);function Vb(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Hb(t,e){this._context=t,this._k=(1-e)/6}Hb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Vb(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Bb=function t(e){function n(t){return new Hb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function zb(t,e){this._context=t,this._k=(1-e)/6}zb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Gb=function t(e){function n(t){return new zb(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Ub(t,e){this._context=t,this._k=(1-e)/6}Ub.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Vb(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Yb=function t(e){function n(t){return new Ub(t,e)}return n.tension=function(e){return t(+e)},n}(0);function Xb(t,e,n){var r=t._x1,i=t._y1,o=t._x2,a=t._y2;if(t._l01_a>rb){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>rb){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,l=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/l,a=(a*c+t._y1*t._l23_2a-n*t._l12_2a)/l}t._context.bezierCurveTo(r,i,o,a,t._x2,t._y2)}function Wb(t,e){this._context=t,this._alpha=e}Wb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var qb=function t(e){function n(t){return e?new Wb(t,e):new Hb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function $b(t,e){this._context=t,this._alpha=e}$b.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Zb=function t(e){function n(t){return e?new $b(t,e):new zb(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Jb(t,e){this._context=t,this._alpha=e}Jb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Xb(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Qb=function t(e){function n(t){return e?new Jb(t,e):new Ub(t,0)}return n.alpha=function(e){return t(+e)},n}(.5);function Kb(t){this._context=t}Kb.prototype={areaStart:kb,areaEnd:kb,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};var tx=function(t){return new Kb(t)};function ex(t){return t<0?-1:1}function nx(t,e,n){var r=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(r||i<0&&-0),a=(n-t._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(ex(o)+ex(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function rx(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function ix(t,e,n){var r=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-r)/3;t._context.bezierCurveTo(r+s,i+s*e,o-s,a-s*n,o,a)}function ox(t){this._context=t}function ax(t){this._context=new sx(t)}function sx(t){this._context=t}function ux(t){return new ox(t)}function cx(t){return new ax(t)}function lx(t){this._context=t}function hx(t){var e,n,r=t.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e<r-1;++e)i[e]=1,o[e]=4,a[e]=4*t[e]+2*t[e+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*t[r-1]+t[r],e=1;e<r;++e)n=i[e]/o[e-1],o[e]-=n,a[e]-=n*a[e-1];for(i[r-1]=a[r-1]/o[r-1],e=r-2;e>=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(o[r-1]=(t[r]+i[r-1])/2,e=0;e<r-1;++e)o[e]=2*t[e+1]-i[e+1];return[i,o]}ox.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:ix(this,this._t0,rx(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,t!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,ix(this,rx(this,n=nx(this,t,e)),n);break;default:ix(this,this._t0,n=nx(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}},(ax.prototype=Object.create(ox.prototype)).point=function(t,e){ox.prototype.point.call(this,e,t)},sx.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,o){this._context.bezierCurveTo(e,t,r,n,o,i)}},lx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===n)this._context.lineTo(t[1],e[1]);else for(var r=hx(t),i=hx(e),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],t[a],e[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var fx=function(t){return new lx(t)};function px(t,e){this._context=t,this._t=e}px.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}this._x=t,this._y=e}};var dx=function(t){return new px(t,.5)};function vx(t){return new px(t,0)}function yx(t){return new px(t,1)}var gx=function(t,e){if((i=t.length)>1)for(var n,r,i,o=1,a=t[e[0]],s=a.length;o<i;++o)for(r=a,a=t[e[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},_x=function(t){var e=t.length,n=new Array(e);while(--e>=0)n[e]=e;return n};function mx(t,e){return t[e]}var bx=function(){var t=$m([]),e=_x,n=gx,r=mx;function i(i){var o,a,s=t.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var h,f=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=h=[0,+r(i[d],f,d,i)],h.data=i[d];p.key=f}for(o=0,a=e(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(e){return arguments.length?(t="function"===typeof e?e:$m(Sb.call(e)),i):t},i.value=function(t){return arguments.length?(r="function"===typeof t?t:$m(+t),i):r},i.order=function(t){return arguments.length?(e=null==t?_x:"function"===typeof t?t:$m(Sb.call(t)),i):e},i.offset=function(t){return arguments.length?(n=null==t?gx:t,i):n},i};var xx,wx,Ox=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.curveTypes={curveLinear:_b,curveLinearClosed:tx,curveBasis:Lb,curveBasisClosed:Db,curveBasisOpen:Rb,curveBundle:Ib,curveCardinal:Bb,curveCardinalClosed:Gb,curveCardinalOpen:Yb,curveCatmullRom:qb,curveCatmullRomClosed:Zb,curveCatmullRomOpen:Qb,curveMonotoneX:ux,curveMonotoneY:cx,curveNatural:fx,curveStep:dx,curveStepAfter:yx,curveStepBefore:vx},e}return Ox(e,t),e.prototype.getD3Curve=function(){var t="curveLinear",e=this.model.getOptions().curve;if(e&&(t="string"===typeof e?e:e.name),this.curveTypes[t]){var n=this.curveTypes[t];return e&&Object.keys(e).forEach((function(t){n[t]&&(n=n[t](e[t]))})),n}return console.warn("The curve type '"+t+"' is invalid, using 'curveLinear' instead"),this.curveTypes["curveLinear"]},e}(jv),Mx=function(){function t(t,e,n){this.configs={},this.model=t,this.services=e,n&&(this.configs=n),this.parent||this.setParent(Tg(this.services.domUtils.getMainSVG()))}return t.prototype.init=function(){},t.prototype.render=function(t){void 0===t&&(t=!0),console.error("render() method is not implemented")},t.prototype.destroy=function(){},t.prototype.setModel=function(t){this.model=t},t.prototype.setServices=function(t){this.services=t},t.prototype.setParent=function(t){var e=this.parent;if(this.parent=t,(!e||e.node()!==t.node())&&this.type){var n=Xs.getProperty(this.model.getOptions(),"style","prefix");this.parent.classed(Lg.a.prefix+"--"+n+"--"+this.type,!0),e&&e.classed(Lg.a.prefix+"--"+n+"--"+this.type,!1)}},t.prototype.getParent=function(){return this.parent},t.prototype.getContainerSVG=function(){if(this.type){var t=Xs.getProperty(this.model.getOptions(),"style","prefix");return Ng.appendOrSelect(this.parent,"g."+Lg.a.prefix+"--"+t+"--"+this.type)}return this.parent},t}(),Ex=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="legend",e}return Ex(e,t),e.prototype.render=function(){var t=this,e=this.getContainerSVG().attr("role",i.GRAPHICS_DOCUMENT),n=this.model.getOptions(),r=e.selectAll("g.legend-item").data(this.getLegendItemArray()),o=r.enter().append("g").classed("legend-item",!0),a=n.legend.checkbox.radius;o.append("rect").classed("checkbox",!0).merge(r.select("rect.checkbox")).attr("width",2*a).attr("height",2*a).attr("rx",1).attr("ry",1).style("fill",(function(e){return e.value===n.legend.items.status.ACTIVE?t.model.getStrokeColor(e.key):null})).classed("active",(function(t,e){return t.value===n.legend.items.status.ACTIVE})),o.append("text").merge(r.select("text")).text((function(t){return t.key})).attr("alignment-baseline","middle"),this.breakItemsIntoLines(o),r.exit().on("mouseover",null).on("click",null).on("mouseout",null).remove();var s=Xs.getProperty(this.model.getOptions(),"legend","clickable");e.classed("clickable",s),s&&o.size()>0&&this.addEventListeners()},e.prototype.breakItemsIntoLines=function(t){var e,n=this,r=this.getContainerSVG(),i=this.model.getOptions(),o=i.legend.checkbox.radius,a=i.legend.items.horizontalSpace,s=i.legend.items.verticalSpace,u=i.legend.items.textYOffset,c=2*o+i.legend.checkbox.spaceAfter,l=i.legend.items.status.DISABLED,h=this.model.get("dataLabels"),p=Object.keys(h).some((function(t){return h[t]===l})),d=Xs.getProperty(i,"legend","orientation"),v=0,y=0,g=0;t.merge(r.selectAll("g.legend-item")).each((function(t,i){var l=Tg(this),h=Tg(r.selectAll("g.legend-item").nodes()[i-1]);if(0===g||h.empty()||d===f.VERTICAL)d===f.VERTICAL&&0!==i&&y++;else{var _=Ng.getSVGElementSize(n.parent,{useAttr:!0}),m=Ng.getSVGElementSize(Tg(this).select("text"),{useBBox:!0}),b=Ng.getSVGElementSize(h.select("text"),{useBBox:!0});v=v+b.width+c+a,v+c+m.width>_.width&&(y++,v=0,g=0)}var x=0;l.select("rect.checkbox").attr("x",v).attr("y",x+y*s);var w=u+y*s;l.select("text").attr("x",v+c).attr("y",x+w),e=w,p&&l.select("g.check").empty()?(l.append("g").classed("check",!0).html('\n\t\t\t\t\t\t\t<svg focusable="false" preserveAspectRatio="xMidYMid meet"\n\t\t\t\t\t\t\t\txmlns="http://www.w3.org/2000/svg" width="32" height="32"\n\t\t\t\t\t\t\t\tviewBox="0 0 32 32" aria-hidden="true"\n\t\t\t\t\t\t\t\tstyle="will-change: transform;">\n\t\t\t\t\t\t\t\t<path d="M13 21.2l-7.1-7.1-1.4 1.4 7.1 7.1L13 24 27.1 9.9l-1.4-1.5z"></path>\n\t\t\t\t\t\t\t\t<title>Checkmark</title>\n\t\t\t\t\t\t\t</svg>\n\t\t\t\t\t\t'),l.select("g.check svg").attr("width",2*o-1).attr("height",2*o-1).attr("x",parseFloat(l.select("rect.checkbox").attr("x"))+.5).attr("y",parseFloat(l.select("rect.checkbox").attr("y"))+.5)):p||l.select("g.check").empty()||l.select("g.check").remove(),g++})),Ng.appendOrSelect(r,"rect.spacer").attr("x",0).attr("y",e).attr("width",16).attr("height",16).attr("fill","none")},e.prototype.getLegendItemArray=function(){var t=this.model.get("dataLabels"),e=Object.keys(t);return e.map((function(e){return{key:e,value:t[e]}}))},e.prototype.addEventListeners=function(){var t=this,e=this.getContainerSVG(),n=this.model.getOptions();e.selectAll("g.legend-item").on("mouseover",(function(){t.services.events.dispatchEvent("legend-item-onhover",{hoveredElement:Tg(this)});var e=n.legend.checkbox.radius,r=Tg(this);r.append("rect").classed("hover-stroke",!0).attr("x",parseFloat(r.select("rect.checkbox").attr("x"))-2).attr("y",parseFloat(r.select("rect.checkbox").attr("y"))-2).attr("width",2*e+4).attr("height",2*e+4).attr("rx",3).attr("ry",3).lower()})).on("click",(function(){t.services.events.dispatchEvent("legend-item-onclick",{clickedElement:Tg(this)});var e=Tg(this),n=e.datum();t.model.toggleDataLabel(n.key)})).on("mouseout",(function(){var e=Tg(this);e.select("rect.hover-stroke").remove(),t.services.events.dispatchEvent("legend-item-onmouseout",{hoveredElement:e})}))},e}(Mx),Ax=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="title",e}return Ax(e,t),e.prototype.truncateTitle=function(){var t=Ng.getSVGElementSize(this.services.domUtils.getMainSVG(),{useAttr:!0}).width,e=Ng.appendOrSelect(this.parent,"text.title");if(!(t<=0)&&e.node().getComputedTextLength()>t){e.append("tspan").text("...");var n=Ng.appendOrSelect(e,"tspan").node().getComputedTextLength(),r=Math.floor(t-n),i=this.model.getOptions().title,o=this.getSubstringIndex(e.node(),0,i.length-1,r);e.text(i.substring(0,o-1)).append("tspan").text("...");var a=this;e.on("mouseenter",(function(){a.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.TITLE})})).on("mouseout",(function(){a.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))}},e.prototype.render=function(){var t=this.getContainerSVG(),e=Ng.appendOrSelect(t,"text.title");e.attr("x",0).attr("y",20).text(this.model.getOptions().title),this.truncateTitle()},e.prototype.getSubstringIndex=function(t,e,n,r){var i=Math.floor((n+e)/2);return t.getSubStringLength(0,i)>r?this.getSubstringIndex(t,e,i,r):t.getSubStringLength(0,i)<r?t.getSubStringLength(0,i+1)>r?i:this.getSubstringIndex(t,i,n,r):i},e}(Mx);(function(t){t["LEFT"]="left",t["RIGHT"]="right",t["TOP"]="top",t["BOTTOM"]="bottom"})(wx||(wx={}));var Px=(xx={},xx[wx.LEFT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left-e.offsetWidth)}},xx[wx.RIGHT]=function(t,e,n){return{top:t.top-Math.round(e.offsetHeight/2)+Math.round(n.height/2),left:Math.round(t.left+n.width)}},xx[wx.TOP]=function(t,e,n){return{top:Math.round(t.top-e.offsetHeight),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},xx[wx.BOTTOM]=function(t,e,n){return{top:Math.round(t.top+n.height),left:t.left-Math.round(e.offsetWidth/2)+Math.round(n.width/2)}},xx),Cx="undefined"!==typeof window?window:{innerHeight:0,scrollY:0,innerWidth:0,scrollX:0},Lx=function(){function t(t){void 0===t&&(t={}),this.positions=Px,this.positions=Object.assign({},Px,t)}return t.prototype.getRelativeOffset=function(t){var e={left:t.offsetLeft,top:t.offsetTop};while(t.offsetParent&&"static"===getComputedStyle(t.offsetParent).position)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},t.prototype.getAbsoluteOffset=function(t){var e=t,n={top:0,left:0};while(e.offsetParent){var r=getComputedStyle(e.offsetParent);"static"===r.position&&r.marginLeft&&r.marginTop&&(parseInt(r.marginTop,10)&&(n.top+=parseInt(r.marginTop,10)),parseInt(r.marginLeft,10)&&(n.left+=parseInt(r.marginLeft,10))),e=e.offsetParent}var i=t.getBoundingClientRect(),o=document.body.getBoundingClientRect();return{top:i.top-o.top+n.top,left:i.left-o.left+n.left}},t.prototype.findRelative=function(t,e,n){var r=this.getRelativeOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findAbsolute=function(t,e,n){var r=this.getAbsoluteOffset(t),i=t.getBoundingClientRect();return this.calculatePosition(r,i,e,n)},t.prototype.findPosition=function(t,e,n,r){void 0===r&&(r=this.getAbsoluteOffset);var i=r(t),o=t.getBoundingClientRect();return this.calculatePosition(i,o,e,n)},t.prototype.findPositionAt=function(t,e,n){return this.calculatePosition(t,{height:0,width:0},e,n)},t.prototype.getPlacementBox=function(t,e){var n=t.offsetHeight+e.top,r=t.offsetWidth+e.left;return{top:e.top,bottom:n,left:e.left,right:r}},t.prototype.addOffset=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Object.assign({},t,{top:t.top+e,left:t.left+n})},t.prototype.setElement=function(t,e){t.style.top=e.top+"px",t.style.left=e.left+"px"},t.prototype.findBestPlacement=function(t,e,n,r,i){var o=this;void 0===r&&(r=this.defaultContainerFunction),void 0===i&&(i=this.findPosition);var a=n.map((function(n){var a=i(t,e,n),s=o.getPlacementBox(e,a),u=s.bottom-r().height,c=s.right-r().width;u=u<0?e.offsetHeight:u,c=c<0?e.offsetWidth:c;var l=e.offsetHeight*e.offsetWidth,h=u*c,f=l-h;f=0===f?l:f;var p=f/l;return{placement:n,weight:p}}));return a.sort((function(t,e){return e.weight-t.weight})),a[0].placement},t.prototype.findBestPlacementAt=function(t,e,n,r){var i=this;void 0===r&&(r=this.defaultContainerFunction);var o=function(e,n,r){return i.findPositionAt(t,n,r)};return this.findBestPlacement(null,e,n,r,o)},t.prototype.defaultContainerFunction=function(){return{width:Cx.innerHeight-Cx.scrollY,height:Cx.innerWidth-Cx.scrollX}},t.prototype.calculatePosition=function(t,e,n,r){return this.positions[r]?this.positions[r](t,n,e):(console.error("No function found for placement, defaulting to 0,0"),{left:0,top:0})},t}(),jx=(new Lx,Lx),Dx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nx=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="tooltip",i.positionService=new jx,i.init(),i}return Dx(e,t),e.prototype.init=function(){var t=this,e=Tg(this.services.domUtils.getHolder()),n=Xs.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=Ng.appendOrSelect(e,"div."+Lg.a.prefix+"--"+n+"--tooltip");var r=Ng.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener("show-tooltip",(function(i){if(i.detail.type===l.DATAPOINT&&Xs.getProperty(t.model.getOptions(),"tooltip","datapoint","enabled")||i.detail.type===l.GRIDLINE&&Xs.getProperty(t.model.getOptions(),"tooltip","gridline","enabled")){var o=Tg(ug.target).datum(),a=void 0;i.detail.multidata?(o=i.detail.multidata,a=t.getMultilineTooltipHTML(o)):a=t.getTooltipHTML(o,l.DATAPOINT),Xs.getProperty(t.model.getOptions(),"tooltip","customHTML")?r.html(t.model.getOptions().tooltip.customHTML(o,a)):r.html(a),t.positionTooltip()}else if(i.detail.type===l.TITLE){var s=Ng.appendOrSelect(e,"svg."+Lg.a.prefix+"--"+n+"--chart-svg"),u=Ng.getSVGElementSize(s).width*Xs.getProperty(t.model.getOptions(),"tooltip","title","width");t.tooltip.style("max-width",u),r.html(t.getTooltipHTML(i.detail.hoveredElement,l.TITLE));var c=t.getTooltipPosition(i.detail.hoveredElement.node());t.positionTooltip(c)}t.tooltip.classed("hidden",!1)})),this.services.events.addEventListener("hide-tooltip",(function(){t.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipHTML=function(t,e){if(e===l.TITLE){var n=this.model.getOptions().title;return'<div class="title-tooltip"><text>'+n+"</text></div>"}var r=Xs.getProperty(t,"data")?t.data:t,i=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r.value):r.value.toLocaleString("en"),o=r.datasetLabel?r.datasetLabel:r.label;return'<div class="datapoint-tooltip">\n\t\t\t\t\t<p class="label">'+o+'</p>\n\t\t\t\t\t<p class="value">'+i+"</p>\n\t\t\t\t</div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.sort((function(t,e){return e.value-t.value}));var r=this.services.axes.getMainXAxis().scaleType;return"<ul class='multi-tooltip'>"+n.map((function(t){var n=t.value;n instanceof Object&&(n=r===u.TIME?t.value.date:t.value.value);var i=Xs.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(n):n.toLocaleString("en"),o=e.model.getStrokeColor(t.datasetLabel,t.label);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+o+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+i+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"</ul>"},e.prototype.render=function(){this.tooltip.classed("hidden",!0)},e.prototype.getTooltipPosition=function(t){var e=Tg(this.services.domUtils.getHolder()).node().getBoundingClientRect(),n=t.getBoundingClientRect(),r=this.model.getOptions().tooltip.title.verticalOffset,i={left:n.left-e.left+n.width/2,top:n.top-e.top-r};return{placement:c.BOTTOM,position:i}},e.prototype.positionTooltip=function(t){var e,n=this.services.domUtils.getHolder(),r=this.tooltip.node(),i=Pg(n);if(t){var o=t.placement===c.TOP?wx.TOP:wx.BOTTOM;e=this.positionService.findPositionAt(t.position,r,o)}else{var a=this.positionService.findBestPlacementAt({left:i[0],top:i[1]},r,[wx.RIGHT,wx.LEFT,wx.TOP,wx.BOTTOM],(function(){return{width:n.offsetWidth,height:n.offsetHeight}})),s=this.model.getOptions().tooltip.datapoint.horizontalOffset;a===wx.LEFT&&(s*=-1),e=this.positionService.findPositionAt({left:i[0]+s,top:i[1]},r,a)}this.positionService.setElement(r,e)},e}(Mx),Rx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rx(e,t),e.prototype.init=function(){var e=this,n=Tg(this.services.domUtils.getHolder()),r=Xs.getProperty(this.model.getOptions(),"style","prefix");this.tooltip=Ng.appendOrSelect(n,"div."+Lg.a.prefix+"--"+r+"--tooltip");var i=Ng.appendOrSelect(this.tooltip,"div.content-box");this.tooltip.style("max-width",null),this.services.events.addEventListener("show-tooltip",(function(o){if(o.detail.type===l.DATAPOINT&&Xs.getProperty(e.model.getOptions(),"tooltip","datapoint","enabled")||o.detail.type===l.GRIDLINE&&Xs.getProperty(e.model.getOptions(),"tooltip","gridline","enabled")){var a=o.detail.hoveredElement.node(),s=void 0;s=o.detail.multidata?e.getMultilineTooltipHTML(o.detail.multidata):e.getTooltipHTML(o.detail.hoveredElement.datum()),Xs.getProperty(e.model.getOptions(),"tooltip","customHTML")?i.html(e.model.getOptions().tooltip.customHTML(a,s)):i.html(s);var u=e.getTooltipPosition(a);e.positionTooltip(o.detail.multidata?void 0:u)}else if(o.detail.type===l.TITLE){var c=Ng.appendOrSelect(n,"svg."+Lg.a.prefix+"--"+r+"--chart-svg"),h=Ng.getSVGElementSize(c).width*Xs.getProperty(e.model.getOptions(),"tooltip","title","width");e.tooltip.style("max-width",h),i.html(t.prototype.getTooltipHTML.call(e,o.detail.hoveredElement,l.TITLE));u=t.prototype.getTooltipPosition.call(e,o.detail.hoveredElement.node());e.positionTooltip(u)}e.tooltip.classed("hidden",!1)})),this.services.events.addEventListener("hide-tooltip",(function(){e.tooltip.classed("hidden",!0)}))},e.prototype.getTooltipPosition=function(t){var e=Tg(t).datum(),n=Tg(this.services.domUtils.getHolder()).node().getBoundingClientRect(),r=t.getBoundingClientRect(),i=this.model.getOptions().tooltip.datapoint.verticalOffset;if(e.value<=0){var o={left:r.left-n.left+r.width/2,top:r.bottom-n.top+i};return{placement:c.BOTTOM,position:o}}o={left:r.left-n.left+r.width/2,top:r.top-n.top-i};return{placement:c.TOP,position:o}},e.prototype.getTooltipHTML=function(t){var e=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en");return'<div class="datapoint-tooltip"><p class="value">'+e+"</p></div>"},e.prototype.getMultilineTooltipHTML=function(t){var e=this,n=t;n.reverse();var r=n.reduce((function(t,e){return t+e.value}),0);return r=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(r):r.toLocaleString("en"),"<ul class='multi-tooltip'>"+n.map((function(t){var n=Xs.getProperty(e.model.getOptions(),"tooltip","valueFormatter")?e.model.getOptions().tooltip.valueFormatter(t.value):t.value.toLocaleString("en"),r=e.model.getStrokeColor(t.datasetLabel,t.label,t.value);return'\n\t\t\t\t<li>\n\t\t\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t\t\t<a style="background-color:'+r+'" class="tooltip-color"></a>\n\t\t\t\t\t\t<p class="label">'+t.datasetLabel+'</p>\n\t\t\t\t\t\t<p class="value">'+n+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>"})).join("")+"<li>\n\t\t\t\t\t<div class='total-val'>\n\t\t\t\t\t\t<p class='label'>Total</p>\n\t\t\t\t\t\t<p class='value'>"+r+"</p>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t</ul>"},e}(Nx),Ix=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ix(e,t),e.prototype.getTooltipHTML=function(e,n){if(n===l.TITLE)return t.prototype.getTooltipHTML.call(this,e,n);var r=Xs.getProperty(this.model.getOptions(),"tooltip","valueFormatter")?this.model.getOptions().tooltip.valueFormatter(e.value):e.value.toLocaleString("en"),i=this.model.getStrokeColor(e.datasetLabel,e.label,e.value);return'\n\t\t\t<div class="datapoint-tooltip">\n\t\t\t\t<a style="background-color:'+i+'" class="tooltip-color"></a>\n\t\t\t\t<p class="label">'+e.datasetLabel+'</p>\n\t\t\t\t<p class="value">'+r+"</p>\n\t\t\t</div>"},e}(Nx),Hx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Hx(e,t),e.prototype.getBarWidth=function(){var t=this.services.axes.getMainXAxis(),e=this.model.getOptions();return t.scale.step?Math.min(e.bars.maxWidth,t.scale.step()/2):Math.min(e.bars.maxWidth,5/t.scale.ticks().length*e.bars.maxWidth)},e}(Mx),zx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="simple-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-simple-bar")).attr("opacity",(function(t){return t.label!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-simple-bar")).attr("opacity",1)},e}return zx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.getContainerSVG(),r=n.selectAll("g.bars").data(this.model.getDisplayData().datasets,(function(t){return t.label}));r.exit().attr("opacity",0).remove();var o=r.enter().append("g").classed("bars",!0).attr("role",i.GROUP),a=o.merge(r).selectAll("rect.bar").data((function(t,n){return e.addLabelsToDataPoints(t,n)}),(function(t){return t.label}));a.exit().attr("opacity",0).remove();var s=a.enter().append("rect").attr("opacity",0);s.merge(a).classed("bar",!0).attr("x",(function(t,n){var r=e.getBarWidth();return e.services.axes.getXValue(t,n)-r/2})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(Math.max(0,t.value))})).attr("fill",(function(t){return e.model.getFillScale()(t.label)})).attr("height",(function(t,n){return Math.abs(e.services.axes.getYValue(t,n)-e.services.axes.getYValue(0))})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().labels;return t.data.map((function(e,r){return{date:e.date,label:n[r],datasetLabel:t.label,value:isNaN(e)?e.value:e}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.classed("hovered",!0),e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString()),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()(e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),Ux=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grouped-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Ux(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getGroupWidth=function(){var t=this.model.getDisplayData().datasets,e=5;return t.length*this.getBarWidth()+e*(t.length-1)},e.prototype.setGroupScale=function(){var t=this.model.getDisplayData().datasets;this.groupScale=_l().domain(t.map((function(t){return t.label}))).rangeRound([0,this.getGroupWidth()])},e.prototype.getBarWidth=function(){var e=this.model.getDisplayData().datasets;return Math.min(this.services.axes.getMainXAxis().scale.step()/2/e.length,t.prototype.getBarWidth.call(this))},e.prototype.render=function(t){var e=this,n=this.model.getDisplayData();this.setGroupScale();var r=this.getContainerSVG(),o=r.selectAll("g.bars").data(n.labels);o.exit().attr("opacity",0).remove();var a=o.enter().append("g").classed("bars",!0).attr("role",i.GROUP).attr("aria-labelledby",(function(t){return t})),s=a.merge(o).attr("transform",(function(t,n){var r=e.services.axes.getXValue(t,n);return"translate("+(r-e.getGroupWidth()/2)+", 0)"})).selectAll("rect.bar").data((function(t,n){return e.addLabelsToDataPoints(t,n)}));s.exit().attr("opacity",0).remove();var u=s.enter().append("rect").attr("opacity",0);u.merge(s).classed("bar",!0).attr("x",(function(t){return e.groupScale(t.datasetLabel)})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(Math.max(0,t.value))})).attr("height",(function(t,n){return Math.abs(e.services.axes.getYValue(t,n)-e.services.axes.getYValue(0))})).attr("fill",(function(t){return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().datasets;return n.map((function(n){return{label:t,datasetLabel:n.label,value:n.data[e].value?n.data[e].value:n.data[e]}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString()),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),Xx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wx=function(t){return Object.keys(t).map((function(e){"object"===typeof t[e]&&(t[e]["datasetLabel"]=t.key,t[e]["label"]=t[e].data["label"],t[e]["value"]=t[e].data[t.key])})),t},qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stacked-bar",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("rect.bar").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Xx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getStackData=function(){var t,e=this.model.getDisplayData(),n=this.services.axes.getMainXAxis().scaleType===u.TIME;if(n){var r=[];e.datasets.forEach((function(t){r=r.concat(t.data.map((function(t){return Number(t.date)})))})),r=Xs.removeArrayDuplicates(r).sort(),t=r.map((function(t,n){var r={};return e.datasets.forEach((function(e){var n=e.data.find((function(e){return Number(e.date)===Number(t)}));r[e.label]=n?n.value:0})),r["label"]=t,r}))}else t=e.labels.map((function(t,n){var r={};return e.datasets.forEach((function(t){r[t.label]=isNaN(t.data[n])?t.data[n].value:t.data[n]})),r["label"]=t,r}));return t},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=this.getContainerSVG(),o=this.model.getDisplayData(),a=this.getStackData(),s=o.datasets.map((function(t){return t.label})),u=r.selectAll("g.bars").data(bx().keys(s)(a),(function(t){return t.key}));u.exit().attr("opacity",0).remove(),u.enter().append("g").classed("bars",!0).attr("role",i.GROUP);var c=r.selectAll("g.bars").selectAll("rect.bar").data((function(t){return Wx(t)}),(function(t){return t.label}));c.exit().remove(),c.enter().append("rect").merge(c).classed("bar",!0).attr("x",(function(t,n){var r=e.getBarWidth();return e.services.axes.getXValue(t,n)-r/2})).attr("width",this.getBarWidth.bind(this)).transition(this.services.transitions.getTransition("bar-update-enter",t)).attr("y",(function(t,n){return e.services.axes.getYValue(t[1],n)})).attr("fill",(function(t){return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("height",(function(t,r){var i=t.datasetLabel,o=s.indexOf(i),a=e.services.axes.getYValue(t[0])-e.services.axes.getYValue(t[1]);return o>0&&a>=n.bars.dividerSize?a-n.bars.dividerSize:a})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","bar").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("rect.bar").on("mouseover",(function(){var e=Tg(this);e.transition(t.services.transitions.getTransition("graph_element_mouseover_fill_update")).attr("fill",Il(e.attr("fill")).darker(.7).toString())})).on("mousemove",(function(){var e=Tg(this),n=Tg(this).datum();e.classed("hovered",!0);var r=n["data"],i=r["label"];delete r["label"];var o=Object.keys(r).map((function(t){return{datasetLabel:t,value:r[t],label:i}}));t.services.events.dispatchEvent("show-tooltip",{multidata:o,hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),e.transition(t.services.transitions.getTransition("graph_element_mouseout_fill_update")).attr("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("rect.bar").on("mouseover",null).on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Bx),$x=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return $x(e,t),e.prototype.init=function(){var t=this;this.services.events.addEventListener("legend-item-onhover",(function(e){var n=e.detail.hoveredElement;t.parent.selectAll("g.lines").transition(t.services.transitions.getTransition("legend-hover-line")).attr("opacity",(function(t){return t.label!==n.datum()["key"]?fu.opacity.unselected:fu.opacity.selected}))})),this.services.events.addEventListener("legend-item-onmouseout",(function(e){t.parent.selectAll("g.lines").transition(t.services.transitions.getTransition("legend-mouseout-line")).attr("opacity",fu.opacity.selected)}))},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.getContainerSVG();this.lineGenerator=xb().x((function(t,n){return e.services.axes.getXValue(t,n)})).y((function(t,n){return e.services.axes.getYValue(t,n)})).curve(this.services.curves.getD3Curve());var r=n.selectAll("g.lines").data(this.model.getDisplayData().datasets,(function(t){return t.label}));r.exit().attr("opacity",0).remove();var o=r.enter().append("g").classed("lines",!0),a=this,s=o.append("path").attr("opacity",0);s.merge(n.selectAll("g.lines path")).attr("stroke",(function(t){var e=Tg(this.parentNode).datum();return a.model.getStrokeColor(e.label)})).datum((function(t){var e=Tg(this.parentNode).datum();return this._datasetLabel=e.label,e.data})).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","line").attr("aria-label",(function(t){return t.map((function(t){return t.value||t})).join(",")})).transition(this.services.transitions.getTransition("line-update-enter",t)).attr("opacity",1).attr("class","line").attr("d",this.lineGenerator)},e}(Mx),Jx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="scatter",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-hover-scatter")).attr("opacity",(function(t){return t.datasetLabel!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("circle.dot").transition(e.services.transitions.getTransition("legend-mouseout-scatter")).attr("opacity",1)},e}return Jx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.render=function(t){var e=this,n=this.model.getOptions(),r=this.getContainerSVG(),o=r.selectAll("g.dots").data(this.model.getDisplayData().datasets,(function(t){return t.label}));o.exit().attr("opacity",0).remove();var a=o.enter().append("g").classed("dots",!0).attr("role",i.GROUP),s=a.merge(o).selectAll("circle.dot").data((function(t,n){return e.addLabelsToDataPoints(t,n)})),u=s.enter().append("circle").attr("opacity",0),c=n.points.filled;u.merge(s).raise().classed("dot",!0).classed("filled",c).classed("unfilled",!c).attr("cx",(function(t,n){return e.services.axes.getXValue(t,n)})).transition(this.services.transitions.getTransition("scatter-update-enter",t)).attr("cy",(function(t,n){return e.services.axes.getYValue(t,n)})).attr("r",n.points.radius).attr("fill",(function(t){if(c)return e.model.getFillScale()[t.datasetLabel](t.label)})).attr("fill-opacity",c?.2:1).attr("stroke",(function(t){return e.model.getStrokeColor(t.datasetLabel,t.label,t.value)})).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","point").attr("aria-label",(function(t){return t.value})),this.addEventListeners()},e.prototype.addLabelsToDataPoints=function(t,e){var n=this.model.getDisplayData().labels;return t.data.map((function(e,r){return{date:e.date,label:n[r],datasetLabel:t.label,value:isNaN(e)?e.value:e}}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("circle").on("mouseover mousemove",(function(){var e=Tg(this);e.classed("hovered",!0),e.style("fill",(function(e){return t.model.getFillScale()[e.datasetLabel](e.label)})),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1),t.configs.filled||e.style("fill",null),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})}))},e.prototype.destroy=function(){this.parent.selectAll("circle").on("mousemove",null).on("mouseout",null);var t=this.services.events;t.removeEventListener("legend-item-onhover",this.handleLegendOnHover),t.removeEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e}(Mx),Kx=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function tw(t,e){var n=this,r=wh(this._current,t);return function(t){return n._current=r(t),e(n._current)}}var ew=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e.handleLegendOnHover=function(t){var n=t.detail.hoveredElement;e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-hover-bar")).attr("opacity",(function(t){return t.data.label!==n.datum()["key"]?.3:1}))},e.handleLegendMouseOut=function(t){e.parent.selectAll("path.slice").transition(e.services.transitions.getTransition("legend-mouseout-bar")).attr("opacity",1)},e}return Kx(e,t),e.prototype.init=function(){var t=this.services.events;t.addEventListener("legend-item-onhover",this.handleLegendOnHover),t.addEventListener("legend-item-onmouseout",this.handleLegendMouseOut)},e.prototype.getDataList=function(){var t=this.model.getDisplayData(),e=t.datasets[0];return e.data.map((function(e,n){return{label:t.labels[n],value:e.value?e.value:e}}))},e.prototype.getInnerRadius=function(){var t=this.model.getOptions();return t.pie.innerRadius},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this,r=this.getContainerSVG(),o=this.model.getOptions(),a=this.getDataList(),s=this.computeRadius();this.arc=yb().innerRadius(this.getInnerRadius()).outerRadius(s),this.hoverArc=yb().innerRadius(this.getInnerRadius()).outerRadius(s+o.pie.hoverArc.outerRadiusOffset);var u=Tb().value((function(t){return t.value})).sort((function(t,e){return e.value-t.value})).padAngle(o.pie.padAngle),c=u(a).sort((function(t,e){return t.index-e.index})),l=Ng.appendOrSelect(r,"g.slices").attr("role",i.GROUP),h=l.selectAll("path.slice").data(c,(function(t){return t.data.label}));h.exit().attr("opacity",0).remove();var f=h.enter().append("path").classed("slice",!0).attr("opacity",0);f.merge(h).attr("fill",(function(t){return e.model.getFillScale()(t.data.label)})).attr("d",this.arc).transition(this.services.transitions.getTransition("pie-slice-enter-update",t)).attr("opacity",1).attr("role",i.GRAPHICS_SYMBOL).attr("aria-roledescription","slice").attr("aria-label",(function(t){return t.value+", "+Xs.convertValueToPercentage(t.data.value,a)+"%"})).attrTween("d",(function(t){return tw.bind(this)(t,n.arc)}));var p=Ng.appendOrSelect(r,"g.labels").attr("role",i.GROUP),d=p.selectAll("text.pie-label").data(c,(function(t){return t.data.label}));d.exit().attr("opacity",0).remove();var y=d.enter().append("text").classed("pie-label",!0),g=[];y.merge(d).style("text-anchor","middle").text((function(t){return o.pie.labels.formatter?o.pie.labels.formatter(t):Xs.convertValueToPercentage(t.data.value,a)+"%"})).datum((function(t){var e=this.getComputedTextLength();t.textOffsetX=e/2,t.textOffsetY=parseFloat(getComputedStyle(this).fontSize)/2;var n=s+7,r=(t.endAngle-t.startAngle)/2+t.startAngle;return t.xPosition=(t.textOffsetX+n)*Math.sin(r),t.yPosition=(t.textOffsetY+n)*-Math.cos(r),t})).attr("transform",(function(t,e){var n=a.length,r=(t.endAngle-t.startAngle)*(180/Math.PI);if(e>=n-2&&r<o.pie.callout.minSliceDegree){var i=void 0,s=void 0;return t.index===n-1?(i=t.xPosition+o.pie.callout.offsetX+o.pie.callout.textMargin+t.textOffsetX,s=t.yPosition-o.pie.callout.offsetY,t.direction=v.RIGHT,g.push(t)):(i=t.xPosition-o.pie.callout.offsetX-t.textOffsetX-o.pie.callout.textMargin,s=t.yPosition-o.pie.callout.offsetY,t.direction=v.LEFT,g.push(t)),"translate("+i+", "+s+")"}return"translate("+t.xPosition+", "+t.yPosition+")"})),this.renderCallouts(g);var _=s+o.pie.xOffset,m=s+o.pie.yOffset;g.length>0&&(m+=o.pie.yOffsetCallout),r.attr("transform","translate("+_+", "+m+")"),this.addEventListeners()},e.prototype.renderCallouts=function(t){var e=Ng.appendOrSelect(this.getContainerSVG(),"g.callouts").attr("role",i.GROUP),n=this.model.getOptions(),r=e.selectAll("g.callout").data(t);r.exit().remove();var o=r.enter().append("g").classed("callout",!0).attr("role",i.GRAPHICS_SYMBOL+" "+i.GROUP).attr("aria-roledescription","label callout");o.merge(r).datum((function(t){var e=t.xPosition,r=t.yPosition,i=t.direction;return i===v.RIGHT?(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e+n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x-n.pie.callout.horizontalLineLength):(t.startPos={x:e,y:r+t.textOffsetY},t.endPos={x:e-n.pie.callout.offsetX,y:r-n.pie.callout.offsetY+t.textOffsetY},t.intersectPointX=t.endPos.x+n.pie.callout.horizontalLineLength),t}));var a=o.append("line").classed("vertical-line",!0);a.merge(e.selectAll("line.vertical-line")).datum((function(t){return Tg(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.startPos.x})).attr("y1",(function(t){return t.startPos.y})).attr("x2",(function(t){return t.intersectPointX})).attr("y2",(function(t){return t.endPos.y}));var s=o.append("line").classed("horizontal-line",!0);s.merge(r.selectAll("line.horizontal-line")).datum((function(t){return Tg(this.parentNode).datum()})).style("stroke-width","1px").attr("x1",(function(t){return t.intersectPointX})).attr("y1",(function(t){return t.endPos.y})).attr("x2",(function(t){return t.endPos.x})).attr("y2",(function(t){return t.endPos.y}))},e.prototype.addEventListeners=function(){var t=this;this.parent.selectAll("path.slice").on("mousemove",(function(){var e=Tg(this);e.classed("hovered",!0).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.hoverArc),t.services.events.dispatchEvent("pie-slice-mouseover",e),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:e,type:l.DATAPOINT})})).on("mouseout",(function(){var e=Tg(this);e.classed("hovered",!1).transition(t.services.transitions.getTransition("pie_slice_mouseover")).attr("d",t.arc),t.services.events.dispatchEvent("pie-slice-mouseout",e),t.services.events.dispatchEvent("hide-tooltip",{hoveredElement:e})})).on("click",(function(e){return t.services.events.dispatchEvent("pie-slice-click",e)}))},e.prototype.computeRadius=function(){var t=this.model.getOptions(),e=Ng.getSVGElementSize(this.parent,{useAttrs:!0}),n=e.width,r=e.height,i=Math.min(n,r)/2;return i+t.pie.radiusOffset},e}(Mx),nw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="donut",e}return nw(e,t),e.prototype.render=function(e){void 0===e&&(e=!0),t.prototype.render.call(this,e);var n=this,r=Ng.appendOrSelect(this.getContainerSVG(),"g.center"),i=this.model.getOptions(),o=this.computeRadius();Ng.appendOrSelect(r,"text.donut-figure").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.numberFontSize(o)})).transition(this.services.transitions.getTransition("donut-figure-enter-update",e)).tween("text",(function(){return n.centerNumberTween(Tg(this))})),Ng.appendOrSelect(r,"text.donut-title").attr("text-anchor","middle").style("font-size",(function(){return i.donut.center.titleFontSize(o)})).attr("y",i.donut.center.titleYPosition(o)).text(Xs.getProperty(i,"donut","center","label"))},e.prototype.getInnerRadius=function(){var t=this.computeRadius();return.75*t},e.prototype.centerNumberTween=function(t){var e=this.model.getOptions(),n=Xs.getProperty(e,"donut","center","number");n||(n=this.getDataList().reduce((function(t,e){return t+e.value}),0));var r=parseInt(t.text().replace(/[, ]+/g,""),10)||0,i=hh(r,n);return function(n){var r=e.donut.center.numberFormatter;t.text(r(i(n)))}},e}(ew),iw=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ow=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="spacer",e}return iw(e,t),e.prototype.render=function(){this.getContainerSVG().append("rect").attr("x",0).attr("y",0).attr("width",this.configs.size||vu.default.size).attr("height",this.configs.size||vu.default.size).attr("opacity",0)},e}(Mx);function aw(t){var e=0,n=t.children,r=n&&n.length;if(r)while(--r>=0)e+=n[r].value;else e=1;t.value=e}var sw=function(){return this.eachAfter(aw)},uw=function(t){var e,n,r,i,o=this,a=[o];do{e=a.reverse(),a=[];while(o=e.pop())if(t(o),n=o.children,n)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},cw=function(t){var e,n,r=this,i=[r];while(r=i.pop())if(t(r),e=r.children,e)for(n=e.length-1;n>=0;--n)i.push(e[n]);return this},lw=function(t){var e,n,r,i=this,o=[i],a=[];while(i=o.pop())if(a.push(i),e=i.children,e)for(n=0,r=e.length;n<r;++n)o.push(e[n]);while(i=a.pop())t(i);return this},hw=function(t){return this.eachAfter((function(e){var n=+t(e.data)||0,r=e.children,i=r&&r.length;while(--i>=0)n+=r[i].value;e.value=n}))},fw=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},pw=function(t){var e=this,n=dw(e,t),r=[e];while(e!==n)e=e.parent,r.push(e);var i=r.length;while(t!==n)r.splice(i,0,t),t=t.parent;return r};function dw(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();while(t===e)i=t,t=n.pop(),e=r.pop();return i}var vw=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},yw=function(){var t=[];return this.each((function(e){t.push(e)})),t},gw=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},_w=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e};function mw(t,e){var n,r,i,o,a,s=new Tw(t),u=+t.value&&(s.value=t.value),c=[s];null==e&&(e=xw);while(n=c.pop())if(u&&(n.value=+n.data.value),(i=e(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Tw(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Ow)}function bw(){return mw(this).eachBefore(ww)}function xw(t){return t.children}function ww(t){t.data=t.data.data}function Ow(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function Tw(t){this.data=t,this.depth=this.height=0,this.parent=null}Tw.prototype=mw.prototype={constructor:Tw,count:sw,each:uw,eachAfter:lw,eachBefore:cw,sum:hw,sort:fw,path:pw,ancestors:vw,descendants:yw,leaves:gw,links:_w,copy:bw};Array.prototype.slice;function Mw(t){if("function"!==typeof t)throw new Error;return t}function Ew(){return 0}var Sw=function(t){return function(){return t}};var Aw=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)},kw=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(r-e)/t.value;while(++s<u)o=a[s],o.y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*c};function Pw(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}Pw.prototype=Object.create(Tw.prototype);var Cw=function(t,e,n,r,i){var o,a=t.children,s=-1,u=a.length,c=t.value&&(i-n)/t.value;while(++s<u)o=a[s],o.x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*c},Lw=(1+Math.sqrt(5))/2;function jw(t,e,n,r,i,o){var a,s,u,c,l,h,f,p,d,v,y,g=[],_=e.children,m=0,b=0,x=_.length,w=e.value;while(m<x){u=i-n,c=o-r;do{l=_[b++].value}while(!l&&b<x);for(h=f=l,v=Math.max(c/u,u/c)/(w*t),y=l*l*v,d=Math.max(f/y,y/h);b<x;++b){if(l+=s=_[b].value,s<h&&(h=s),s>f&&(f=s),y=l*l*v,p=Math.max(f/y,y/h),p>d){l-=s;break}d=p}g.push(a={value:l,dice:u<c,children:_.slice(m,b)}),a.dice?kw(a,n,r,i,w?r+=c*l/w:o):Cw(a,n,r,w?n+=u*l/w:i,o),w-=l,m=b}return g}var Dw=function t(e){function n(t,n,r,i,o){jw(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Lw),Nw=function(){var t=Dw,e=!1,n=1,r=1,i=[0],o=Ew,a=Ew,s=Ew,u=Ew,c=Ew;function l(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(h),i=[0],e&&t.eachBefore(Aw),t}function h(e){var n=i[e.depth],r=e.x0+n,l=e.y0+n,h=e.x1-n,f=e.y1-n;h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),e.x0=r,e.y0=l,e.x1=h,e.y1=f,e.children&&(n=i[e.depth+1]=o(e)/2,r+=c(e)-n,l+=a(e)-n,h-=s(e)-n,f-=u(e)-n,h<r&&(r=h=(r+h)/2),f<l&&(l=f=(l+f)/2),t(e,r,l,h,f))}return l.round=function(t){return arguments.length?(e=!!t,l):e},l.size=function(t){return arguments.length?(n=+t[0],r=+t[1],l):[n,r]},l.tile=function(e){return arguments.length?(t=Mw(e),l):t},l.padding=function(t){return arguments.length?l.paddingInner(t).paddingOuter(t):l.paddingInner()},l.paddingInner=function(t){return arguments.length?(o="function"===typeof t?t:Sw(+t),l):o},l.paddingOuter=function(t){return arguments.length?l.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):l.paddingTop()},l.paddingTop=function(t){return arguments.length?(a="function"===typeof t?t:Sw(+t),l):a},l.paddingRight=function(t){return arguments.length?(s="function"===typeof t?t:Sw(+t),l):s},l.paddingBottom=function(t){return arguments.length?(u="function"===typeof t?t:Sw(+t),l):u},l.paddingLeft=function(t){return arguments.length?(c="function"===typeof t?t:Sw(+t),l):c},l},Rw=(function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e){var a,s,u,c,l,h=-1,f=a.length,p=t.value;while(++h<f){for(s=a[h],u=s.children,c=s.value=0,l=u.length;c<l;++c)s.value+=u[c].value;s.dice?kw(s,n,r,i,r+=(o-r)*s.value/p):Cw(s,n,r,n+=(i-n)*s.value/p,o),p-=s.value}}else t._squarify=a=jw(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(Lw),function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),Fw=function(t){function e(n,r,i,o){var a=t.call(this,n,r,o)||this;a.type="layout",a.configs=o,a.children=i,a._instanceID=e.instanceID++;var s=a.configs.direction===p.ROW_REVERSE||a.configs.direction===p.COLUMN_REVERSE;return s&&(a.children=a.children.reverse()),a.init(),a}return Rw(e,t),e.prototype.init=function(){this.children.forEach((function(t){t.components.forEach((function(t){t.init()}))}))},e.prototype.getPreferedAndFixedSizeSum=function(){var t=this.parent,e=0;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Xs.getProperty(t,"data","growth","x");return e===d.PREFERRED||e===d.FIXED})).each((function(t){e+=t.data.size})),e},e.prototype.getNumOfStretchChildren=function(){var t=this.parent;return t.selectAll("svg.layout-child-"+this._instanceID).filter((function(t){var e=Xs.getProperty(t,"data","growth","x");return e===d.STRETCH})).size()},e.prototype.render=function(t){var e=this;void 0===t&&(t=!0);var n=this.parent,r=Ng.getSVGElementSize(n,{useAttrs:!0}),i=r.width,o=r.height,a=mw({children:this.children}).sum((function(t){return t.size})),s=this.configs.direction===p.ROW||this.configs.direction===p.ROW_REVERSE?kw:Cw;Nw().tile(s).size([i,o])(a);var u=this.configs.direction===p.ROW||this.configs.direction===p.ROW_REVERSE,c=n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id}));c.attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0}));var l=c.enter().append("svg").attr("class",(function(t){return"layout-child layout-child-"+e._instanceID+" "+t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0}));l.merge(n.selectAll("svg.layout-child-"+this._instanceID)).each((function(e){var n=this;e.data.components.forEach((function(r){r.setParent(Tg(n));var i=Xs.getProperty(e,"data","growth","x");i!==d.PREFERRED&&i!==d.FIXED||r.render(t)}))})),n.selectAll("svg.layout-child-"+this._instanceID).each((function(t){var e=Xs.getProperty(t,"data","growth","x"),n=Ng.getSVGElementSize(Tg(this),{useBBox:!0});if(e===d.PREFERRED){var r=u?n.width:n.height,a=u?i:o;t.data.size=r/a*100}})),c.exit().remove(),this.children.filter((function(t){var e=Xs.getProperty(t,"growth","x");return e===d.STRETCH})).forEach((function(t,n){t.size=(100-+e.getPreferedAndFixedSizeSum())/+e.getNumOfStretchChildren()})),a=mw({children:this.children}).sum((function(t){return t.size})),Nw().tile(s).size([i,o]).padding(0)(a),n.selectAll("svg.layout-child-"+this._instanceID).data(a.leaves(),(function(t){return t.data.id})).attr("x",(function(t){return t.x0})).attr("y",(function(t){return t.y0})).attr("width",(function(t){return t.x1-t.x0})).attr("height",(function(t){return t.y1-t.y0})).each((function(e,n){e.data.components.forEach((function(n){var r=Xs.getProperty(e,"data","growth","x");r===d.STRETCH&&n.render(t)}))}))},e.prototype.setModel=function(e){t.prototype.setModel.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setModel(e)}))}))},e.prototype.setServices=function(e){t.prototype.setServices.call(this,e),this.children.forEach((function(t){t.components.forEach((function(t){return t.setServices(e)}))}))},e.prototype.destroy=function(){this.children.forEach((function(t){t.components.forEach((function(t){return t.destroy()}))}))},e.instanceID=Math.floor(99999999999*Math.random()),e}(Mx),Iw=Array.prototype.slice,Vw=function(t){return t},Hw=1,Bw=2,zw=3,Gw=4,Uw=1e-6;function Yw(t){return"translate("+(t+.5)+",0)"}function Xw(t){return"translate(0,"+(t+.5)+")"}function Ww(t){return function(e){return+t(e)}}function qw(t){var e=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(e=Math.round(e)),function(n){return+t(n)+e}}function $w(){return!this.__axis}function Zw(t,e){var n=[],r=null,i=null,o=6,a=6,s=3,u=t===Hw||t===Gw?-1:1,c=t===Gw||t===Bw?"x":"y",l=t===Hw||t===zw?Yw:Xw;function h(h){var f=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):Vw:i,d=Math.max(o,0)+s,v=e.range(),y=+v[0]+.5,g=+v[v.length-1]+.5,_=(e.bandwidth?qw:Ww)(e.copy()),m=h.selection?h.selection():h,b=m.selectAll(".domain").data([null]),x=m.selectAll(".tick").data(f,e).order(),w=x.exit(),O=x.enter().append("g").attr("class","tick"),T=x.select("line"),M=x.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(O),T=T.merge(O.append("line").attr("stroke","currentColor").attr(c+"2",u*o)),M=M.merge(O.append("text").attr("fill","currentColor").attr(c,u*d).attr("dy",t===Hw?"0em":t===zw?"0.71em":"0.32em")),h!==m&&(b=b.transition(h),x=x.transition(h),T=T.transition(h),M=M.transition(h),w=w.transition(h).attr("opacity",Uw).attr("transform",(function(t){return isFinite(t=_(t))?l(t):this.getAttribute("transform")})),O.attr("opacity",Uw).attr("transform",(function(t){var e=this.parentNode.__axis;return l(e&&isFinite(e=e(t))?e:_(t))}))),w.remove(),b.attr("d",t===Gw||t==Bw?a?"M"+u*a+","+y+"H0.5V"+g+"H"+u*a:"M0.5,"+y+"V"+g:a?"M"+y+","+u*a+"V0.5H"+g+"V"+u*a:"M"+y+",0.5H"+g),x.attr("opacity",1).attr("transform",(function(t){return l(_(t))})),T.attr(c+"2",u*o),M.attr(c,u*d).text(p),m.filter($w).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Bw?"start":t===Gw?"end":"middle"),m.each((function(){this.__axis=_}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Iw.call(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Iw.call(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Iw.call(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(s=+t,h):s},h}function Jw(t){return Zw(Hw,t)}function Qw(t){return Zw(Bw,t)}function Kw(t){return Zw(zw,t)}function tO(t){return Zw(Gw,t)}var eO,nO,rO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),iO=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.type="axes",r&&(i.configs=r),i.margins=i.configs.margins,i}return rO(e,t),e.prototype.createOrGetScale=function(){var t,e,n=this.configs.position,r=Xs.getProperty(this.model.getOptions(),"axes",n);if(this.scaleType=r&&r.scaleType?r.scaleType:u.LINEAR,e=this.scaleType===u.TIME?Av():this.scaleType===u.LOG?sp().base(r.base||10):this.scaleType===u.LABELS?_l():Zf(),!this.model.get(n)){var i=(t={},t[n]=this,t);r&&(!0===r.primary&&(i[s.PRIMARY]=this),!0===r.secondary&&(i[s.SECONDARY]=this)),this.model.set(i,!0)}return this.scale=e,e},e.prototype.getScale=function(){return this.scale?this.scale:this.createOrGetScale()},e.prototype.getScaleDomain=function(){var t,e=this.model.getOptions(),n=this.configs.position,r=Xs.getProperty(e,"axes",n),i=this.model.getDisplayData(),o=i.datasets,a=i.labels;if(r&&r.scaleType===u.LABELS)return a||this.model.getDisplayData().datasets[0].data.map((function(t,e){return e+1}));if(r.stacked)t=$c(a.reduce((function(t,e,n){var r=o.map((function(t){return isNaN(t.data[n])?t.data[n].value:t.data[n]})),i=r.reduce((function(t,e){return t+e}),0);return t.concat(i,il(r))}),[]).concat(0));else{var s=o.reduce((function(t,e){return e.data.forEach((function(e){t=r.scaleType===u.TIME?t.concat(e.date):t.concat(isNaN(e)?e.value:e)})),t}),[]);r.scaleType!==u.TIME&&(s=s.concat(0)),t=$c(s)}if(r.scaleType===u.TIME){if(Xs.getProperty(e,"timeScale","addSpaceOnEdges")){var c=t[0],l=t[1];c.setDate(c.getDate()-1),l.setDate(l.getDate()+1)}return[new Date(t[0]),new Date(t[1])]}return t[1]=1.1*t[1],t},e.prototype.render=function(t){void 0===t&&(t=!0);var e,n,r=this.configs.position,o=this.model.getOptions(),s=Xs.getProperty(o,"axes",r),c=this.getContainerSVG(),l=Ng.getSVGElementSize(this.parent,{useAttrs:!0}),h=l.width,f=l.height;r===a.BOTTOM||r===a.TOP?(e=this.configs.axes[a.LEFT]?this.margins.left:0,n=this.configs.axes[a.RIGHT]?h-this.margins.right:h):(e=f-this.margins.bottom,n=this.margins.top);var p,d=this.createOrGetScale().domain(this.getScaleDomain());switch(this.scaleType===u.LABELS?d.rangeRound([e,n]):d.range([e,n]),r){case a.LEFT:p=tO;break;case a.BOTTOM:p=Kw;break;case a.RIGHT:p=Qw;break;case a.TOP:p=Jw;break}if(this.scaleType===u.TIME){var v=Xs.getProperty(o,"locale","time");v&&dv(v)}var y=p(d).tickSizeOuter(0).tickFormat(Xs.getProperty(s,"ticks","formatter"));if(d.ticks){var g=Xs.getProperty(s,"ticks","number")||du.ticks.number;if(y.ticks(g),this.scaleType===u.TIME){var _=d.ticks(g).concat(d.domain()).map((function(t){return+t})).sort();_=Xs.removeArrayDuplicates(_),Xs.getProperty(o,"timeScale","addSpaceOnEdges")&&_.length>2&&(_.splice(_.length-1,1),_.splice(0,1)),y.tickValues(_)}}var m=Ng.appendOrSelect(c,"g.axis."+r),b=!m.select("g.ticks").empty(),x=Ng.appendOrSelect(m,"g.ticks");b||x.attr("role",i.GRAPHICS_OBJECT+" "+i.GROUP);var w=Ng.appendOrSelect(m,"g.ticks.invisible").style("opacity","0").attr("aria-hidden",!0);switch(r){case a.LEFT:x.attr("transform","translate("+this.margins.left+", 0)");break;case a.BOTTOM:x.attr("transform","translate(0, "+(f-this.margins.bottom)+")");break;case a.RIGHT:x.attr("transform","translate("+(h-this.margins.right)+", 0)");break;case a.TOP:x.attr("transform","translate(0, "+this.margins.top+")");break}if(s.title){var O=Ng.appendOrSelect(m,"text.axis-title").text(s.title);switch(r){case a.LEFT:O.attr("transform","rotate(-90)").attr("y",0).attr("x",-d.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case a.BOTTOM:O.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+f+")").style("text-anchor","middle");break;case a.RIGHT:O.attr("transform","rotate(90)").attr("y",-h).attr("x",d.range()[0]/2).attr("dy","1em").style("text-anchor","middle");break;case a.TOP:var T=Ng.getSVGElementSize(O,{useBBox:!0}).height;O.attr("transform","translate("+(this.margins.left/2+d.range()[1]/2)+", "+T/2+")").style("text-anchor","middle");break}}if(x=t&&b?x.transition(this.services.transitions.getTransition("axis-update")).call(y):x.call(y),w.call(y),r===a.BOTTOM||r===a.TOP){var M=!1;if(d.step){var E=w.selectAll("g.tick text").nodes();M=E.some((function(t){return Ng.getSVGElementSize(t,{useBBox:!0}).width>=d.step()}))}else{var S=Xs.getProperty(s,"ticks","rotateIfSmallerThan")||du.ticks.rotateIfSmallerThan,A=h/d.ticks().length/2;M=A<S}M?m.selectAll("g.ticks g.tick text").attr("transform","rotate(45)").style("text-anchor",r===a.TOP?"end":"start"):m.selectAll("g.ticks g.tick text").attr("transform",null).style("text-anchor",null)}},e.prototype.getValueFromScale=function(t,e){var n=isNaN(t)?t.value:t;if(this.scaleType===u.LABELS){var r=this.model.getDisplayData().labels[e];return this.scale(r)+this.scale.step()/2}return this.scaleType===u.TIME?this.scale(new Date(t.date||t.label)):this.scale(n)},e.prototype.getInvisibleAxisRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" g.ticks.invisible")},e.prototype.getTitleRef=function(){var t=this.configs.position;return this.getContainerSVG().select("g.axis."+t+" text.axis-title")},e}(Mx),oO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),aO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="2D-axes",e.children={},e.margins={top:0,right:0,bottom:0,left:0},e}return oO(e,t),e.prototype.render=function(t){var e=this;void 0===t&&(t=!1);var n={},r=Object.keys(a),i=Xs.getProperty(this.model.getOptions(),"axes");i?r.forEach((function(t){var e=i[a[t]];e&&(n[a[t]]=!0,!0===e.primary?e:!0===e.secondary&&e)})):(this.model.getOptions().axes={left:{primary:!0},bottom:{secondary:!0,type:this.model.getDisplayData().labels?u.LABELS:void 0}},n[a.LEFT]=!0,n[a.BOTTOM]=!0);this.configs.axes=n,r.forEach((function(t){var n=a[t];if(e.configs.axes[n]&&!e.children[n]){var r=new iO(e.model,e.services,{position:n,axes:e.configs.axes,margins:e.margins});r.setModel(e.model),r.setServices(e.services),r.setParent(e.parent),e.children[n]=r}})),Object.keys(this.children).forEach((function(n){var r=e.children[n];r.render(t)}));var o={};Object.keys(this.children).forEach((function(t){var n,r=e.children[t],i=r.configs.position,s=r.getInvisibleAxisRef(),u=Ng.getSVGElementSize(s,{useBBox:!0}),c=u.width,l=u.height;switch(n=r.getTitleRef().empty()?0:Ng.getSVGElementSize(r.getTitleRef(),{useBBox:!0}).height,i){case a.TOP:o.top=l+n;break;case a.BOTTOM:o.bottom=l+n;break;case a.LEFT:o.left=c+n;break;case a.RIGHT:o.right=c+n;break}}));var s=Object.keys(o).some((function(t){return e.margins[t]!==o[t]}));s&&(this.margins=Object.assign(this.margins,o),Object.keys(this.children).forEach((function(t){var n=e.children[t];n.margins=e.margins})),this.render(!0))},e}(Mx),sO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return sO(e,t),e.prototype.render=function(){this.drawBackdrop(),Ng.appendOrSelect(this.backdrop,"g.x.grid"),Ng.appendOrSelect(this.backdrop,"g.y.grid"),this.drawXGrid(),this.drawYGrid(),Xs.getProperty(this.model.getOptions(),"tooltip","gridline","enabled")&&this.addGridEventListeners()},e.prototype.drawXGrid=function(){var t=this.parent,e=this.backdrop.attr("height"),n=this.services.axes.getMainXAxis().getScale(),r=Kw(n).tickSizeInner(-e).tickSizeOuter(0),i=Xs.getProperty(this.model.getOptions(),"grid","x","numberOfTicks");r.ticks(i);var o=t.select(".x.grid").attr("transform","translate("+-this.backdrop.attr("x")+", "+e+")").call(r);this.cleanGrid(o)},e.prototype.drawYGrid=function(){var t=this.parent,e=this.backdrop.attr("width"),n=this.services.axes.getMainYAxis().getScale(),r=tO(n).tickSizeInner(-e).tickSizeOuter(0),i=Xs.getProperty(this.model.getOptions(),"grid","y","numberOfTicks");r.ticks(i);var o=t.select(".y.grid").attr("transform","translate(0, "+-this.backdrop.attr("y")+")").call(r);this.cleanGrid(o)},e.prototype.getGridlineThreshold=function(t){var e,n=this.parent,r=n.selectAll(".x.grid .tick").nodes().sort((function(t,e){return Number(Xs.getTranslationValues(t).tx)-Number(Xs.getTranslationValues(e).tx)})),i=-1;r.forEach((function(e,n){t[0]>=+Xs.getTranslationValues(e).tx&&i++})),e=i+1<r.length?i+1:r.length;var o,a=r[i],s=r[e];if(a)if(s)o=+Xs.getTranslationValues(s).tx-+Xs.getTranslationValues(a).tx;else{var u=n.select("rect.chart-grid-backdrop").node(),c=Ng.getSVGElementSize(u).width;o=c-+Xs.getTranslationValues(a).tx}else o=+Xs.getTranslationValues(s).tx;var l=this.model.getOptions().tooltip.gridline.threshold;return o*l},e.prototype.getActiveGridline=function(t){var e=Xs.getProperty(this.model.getOptions,"tooltip","gridline","threshold")?Xs.getProperty(this.model.getOptions,"tooltip","gridline","threshold"):this.getGridlineThreshold(t),n=this.parent,r=n.selectAll(".x.grid .tick").filter((function(){var n=Xs.getTranslationValues(this),r={min:Number(n.tx)-e,max:Number(n.tx)+e};return r.min<=t[0]&&t[0]<=r.max}));return r},e.prototype.addGridEventListeners=function(){var t=this,e=this.parent,n=Ng.appendOrSelect(e,"rect.chart-grid-backdrop");n.on("mousemove mouseover",(function(){var n=t.services.domUtils.getMainSVG(),r=Pg(n),i=Tg(this),o=e.selectAll(".x.grid .tick");o.classed("active",!1);var a,s=t.getActiveGridline(r);s.empty()?t.services.events.dispatchEvent("hide-tooltip",{}):(s.classed("active",!0),s.each((function(e){a=t.services.axes.getDataFromDomain(e)})),t.services.events.dispatchEvent("show-tooltip",{hoveredElement:i,multidata:a,type:l.GRIDLINE}))})).on("mouseout",(function(){e.selectAll(".x.grid .tick").classed("active",!1),t.services.events.dispatchEvent("hide-tooltip",{})}))},e.prototype.drawBackdrop=function(){var t=this.parent,e=this.services.axes.getMainXAxis().getScale(),n=this.services.axes.getMainYAxis().getScale(),r=e.range(),i=r[0],o=r[1],a=n.range(),s=a[0],u=a[1];this.backdrop=Ng.appendOrSelect(t,"svg.chart-grid-backdrop");var c=Ng.appendOrSelect(this.backdrop,"rect.chart-grid-backdrop");this.backdrop.merge(c).attr("x",i).attr("y",u).attr("width",o-i).attr("height",s-u).lower(),c.attr("width","100%").attr("height","100%")},e.prototype.cleanGrid=function(t){var e=this.model.getOptions();t.selectAll("line").attr("stroke",e.grid.strokeColor),t.selectAll("text").remove(),t.select(".domain").remove()},e}(Mx),cO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lO=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="horizontal-zero-line",e}return cO(e,t),e.prototype.render=function(t){var e=this.getContainerSVG(),n=this.services.axes.getMainXAxis().scale.range(),r=n[0],i=n[1],o=this.services.axes.getYValue(0)+.5,a=Ng.appendOrSelect(e,"line.domain");a.transition(this.services.transitions.getTransition("horizontal-line-update",t)).attr("y1",o).attr("y2",o).attr("x1",r).attr("x2",i)},e}(Mx),hO=function(){function t(t,e){this.services={domUtils:Ng,events:Fg,transitions:Vm},this.model=new Lv(this.services)}return t.prototype.init=function(t,e){var n=this;this.model.set({holder:t},!0),Object.keys(this.services).forEach((function(t){var e=n.services[t];n.services[t]=new e(n.model,n.services)})),this.services.events.addEventListener("model-update",(function(){n.update(!0)})),this.model.setData(e.data),this.services.events.addEventListener("chart-resize",(function(){n.update(!1)})),this.components=this.getComponents(),this.update()},t.prototype.getComponents=function(){return console.error("getComponents() method is not implemented"),null},t.prototype.update=function(t){var e=this;if(void 0===t&&(t=!0),this.components){Object.keys(this.services).forEach((function(t){var n=e.services[t];n.update()})),this.components.forEach((function(e){return e.render(t)}));var n=this.services.transitions.getPendingTransitions(),r=Object.keys(n).map((function(t){var e=n[t];return e.end().catch((function(t){return t}))}));Promise.all(r).then((function(){return e.services.events.dispatchEvent("render-finished")}))}},t.prototype.destroy=function(){this.components.forEach((function(t){return t.destroy()})),this.services.domUtils.getHolder().remove(),this.model.set({destroyed:!0},!0)},t.prototype.getChartComponents=function(t){var e={id:"title",components:[new kx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},n={id:"legend",components:[new Sx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},r={id:"graph-frame",components:t,growth:{x:d.STRETCH,y:d.FIXED}},i=p.COLUMN,o=Xs.getProperty(this.model.getOptions(),"legend","position");"left"===o?(i=p.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):"right"===o?(i=p.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):"bottom"===o&&(i=p.COLUMN_REVERSE);var a={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},s={id:"full-frame",components:[new Fw(this.model,this.services,[n,a,r],{direction:i})],growth:{x:d.STRETCH,y:d.FIXED}},u=[];if(this.model.getOptions().title){u.push(e);var c={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}};u.push(c)}return u.push(s),[new Fw(this.model,this.services,u,{direction:p.COLUMN})]},t}(),fO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.services=Object.assign(r.services,{axes:Bm,curves:Tx}),r}return fO(e,t),e.prototype.getAxisChartComponents=function(t){var e={id:"title",components:[new kx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},n={id:"legend",components:[new Sx(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},r={id:"graph-frame",components:t,growth:{x:d.STRETCH,y:d.FIXED}},i=p.COLUMN,o=Xs.getProperty(this.model.getOptions(),"legend","position");o===h.LEFT?(i=p.ROW,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):o===h.RIGHT?(i=p.ROW_REVERSE,this.model.getOptions().legend.orientation||(this.model.getOptions().legend.orientation=f.VERTICAL)):o===h.BOTTOM&&(i=p.COLUMN_REVERSE);var a={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}},s={id:"full-frame",components:[new Fw(this.model,this.services,[n,a,r],{direction:i})],growth:{x:d.STRETCH,y:d.FIXED}},u=[];if(this.model.getOptions().title){u.push(e);var c={id:"spacer",components:[new ow(this.model,this.services)],growth:{x:d.PREFERRED,y:d.FIXED}};u.push(c)}return u.push(s),[new Fw(this.model,this.services,u,{direction:p.COLUMN})]},e}(hO),dO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vO=function(t){function e(e){return t.call(this,e)||this}return dO(e,t),e.prototype.generateDataLabels=function(t){var e={};return t.labels.forEach((function(t){e[t]=qs.items.status.ACTIVE})),e},e.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data")),r=n.datasets[0];return r.data=r.data.filter((function(r,i){var o=n.labels[i];return e[o]===t})),n.labels=n.labels.filter((function(n){return e[n]===t})),n},e.prototype.setColorScale=function(){var t=this.getDisplayData().datasets[0];if(t.fillColors)this.colorScale=gl().range(t.fillColors).domain(this.allDataLabels);else{var e=zc;this.colorScale=gl().range(e).domain(this.allDataLabels)}},e.prototype.getFillColor=function(t){var e=this.getOptions();return e.getFillColor?e.getFillColor(t):this.getFillScale()(t)},e.prototype.getStrokeColor=function(t){var e=this.getOptions();return e.getStrokeColor?e.getStrokeColor(t):this.colorScale(t)},e}(Lv),yO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),gO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model=new vO(r.services),r.model.setOptions(Xs.merge(Xs.clone(hu.simpleBarChart),n.options)),r.init(e,n),r}return yO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Gx(this.model,this.services),new lO(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),_O=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.groupedBarChart),n.options)),r.init(e,n),r}return _O(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Yx(this.model,this.services),new lO(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),bO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.stackedBarChart),n.options)),r.init(e,n),r}return bO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Fx(this.model,this.services)),e},e}(pO),wO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),OO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.lineChart),n.options)),r.init(e,n),r}return wO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Zx(this.model,this.services),new Qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Vx(this.model,this.services)),e},e}(pO),TO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),MO=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.scatterChart),n.options)),r.init(e,n),r}return TO(e,t),e.prototype.getComponents=function(){var t=[new aO(this.model,this.services),new uO(this.model,this.services),new Qx(this.model,this.services)],e=this.getAxisChartComponents(t);return e.push(new Vx(this.model,this.services)),e},e}(pO),EO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),SO=function(t){function e(e){return t.call(this,e)||this}return EO(e,t),e.prototype.generateDataLabels=function(t){var e={};return t.labels.forEach((function(t){e[t]=qs.items.status.ACTIVE})),e},e.prototype.getDisplayData=function(){var t=qs.items.status.ACTIVE,e=this.get("dataLabels");if(!this.get("data"))return null;var n=Xs.clone(this.get("data")),r=n.datasets[0];return r.data=r.data.filter((function(r,i){var o=n.labels[i];return e[o]===t})),n.labels=n.labels.filter((function(n){return e[n]===t})),n},e.prototype.toggleDataLabel=function(t){var e=qs.items.status,n=e.ACTIVE,r=e.DISABLED,i=this.get("dataLabels"),o=Object.keys(i).some((function(t){return i[t]===r})),a=Object.keys(i).filter((function(t){return i[t]===n}));o?1===a.length&&a[0]===t?Object.keys(i).forEach((function(t){i[t]=n})):i[t]=i[t]===r?n:r:Object.keys(i).forEach((function(e){i[e]=e===t?n:r})),this.set({dataLabels:i})},e.prototype.setColorScale=function(){var t=this.getDisplayData().datasets[0];if(t.fillColors)this.colorScale=gl().range(t.fillColors).domain(this.allDataLabels);else{var e=zc;this.colorScale=gl().range(e).domain(this.allDataLabels)}},e.prototype.getFillColor=function(t){var e=this.getOptions();return e.getFillColor?e.getFillColor(t):this.getFillScale()(t)},e.prototype.getStrokeColor=function(t){var e=this.getOptions();return e.getStrokeColor?e.getStrokeColor(t):this.colorScale(t)},e}(Lv),AO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),kO=function(t){function e(e,n,r){void 0===r&&(r=!1);var i=t.call(this,e,n)||this;return i.model=new SO(i.services),r?i:(i.model.setOptions(Xs.merge(Xs.clone(hu.pieChart),n.options)),i.init(e,n),i)}return AO(e,t),e.prototype.getComponents=function(){var t=[new ew(this.model,this.services)],e=this.getChartComponents(t);return e.push(new Nx(this.model,this.services)),e},e}(hO),PO=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},t(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),CO=function(t){function e(e,n){var r=t.call(this,e,n,!0)||this;return r.model.setOptions(Xs.merge(Xs.clone(hu.donutChart),n.options)),r.init(e,n),r}return PO(e,t),e.prototype.getComponents=function(){var t=[new rw(this.model,this.services)],e=this.getChartComponents(t);return e.push(new Nx(this.model,this.services)),e},e}(kO),LO={name:"CcvBaseChart",data:function(){return{coreChart:null}},props:{data:{type:Object,required:!0},options:{type:Object,required:!0}},watch:{data:{handler:function(t){this.coreChart.model.setData(t)},deep:!0},options:{handler:function(t){this.coreChart.model.setOptions(t)},deep:!0}}},jO=LO;function DO(t,e,n,r,i,o,a,s){var u,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var h=c.beforeCreate;c.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:c}}var NO=DO(jO,eO,nO,!1,null,null,null),RO=NO.exports,FO={name:"CcvSimpleBarChart",extends:RO,mounted:function(){this.coreChart=new gO(this.$el,{data:this.data,options:this.options})}},IO=FO,VO=DO(IO,y,g,!1,null,null,null),HO=VO.exports,BO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-grouped-bar-chart"})},zO=[],GO={name:"CcvGroupedBarChart",extends:RO,mounted:function(){this.coreChart=new mO(this.$el,{data:this.data,options:this.options})}},UO=GO,YO=DO(UO,BO,zO,!1,null,null,null),XO=YO.exports,WO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-stacked-bar-chart"})},qO=[],$O={name:"CcvStackedBarChart",extends:RO,mounted:function(){this.coreChart=new xO(this.$el,{data:this.data,options:this.options})}},ZO=$O,JO=DO(ZO,WO,qO,!1,null,null,null),QO=JO.exports,KO=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-line-chart"})},tT=[],eT={name:"CcvLineChart",extends:RO,mounted:function(){this.coreChart=new OO(this.$el,{data:this.data,options:this.options})}},nT=eT,rT=DO(nT,KO,tT,!1,null,null,null),iT=rT.exports,oT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-scatter-chart"})},aT=[],sT={name:"CcvScatterChart",extends:RO,mounted:function(){this.coreChart=new MO(this.$el,{data:this.data,options:this.options})}},uT=sT,cT=DO(uT,oT,aT,!1,null,null,null),lT=cT.exports,hT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-donut-chart"})},fT=[],pT={name:"CcvDonutChart",extends:RO,mounted:function(){this.coreChart=new CO(this.$el,{data:this.data,options:this.options})}},dT=pT,vT=DO(dT,hT,fT,!1,null,null,null),yT=vT.exports,gT=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"ccv-pie-chart"})},_T=[],mT={name:"CcvPieChart",extends:RO,mounted:function(){this.coreChart=new kO(this.$el,{data:this.data,options:this.options})}},bT=mT,xT=DO(bT,gT,_T,!1,null,null,null),wT=xT.exports,OT=[HO,XO,QO,iT,lT,yT,wT],TT={install:function(t,e){if("undefined"===typeof e){var n=!0,r=!1,i=void 0;try{for(var o,a=OT[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.component(s.name,s)}}catch(d){r=!0,i=d}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}else{if(!(e instanceof Array))throw new TypeError("options must be an array");var u=!0,c=!1,l=void 0;try{for(var h,f=OT[Symbol.iterator]();!(u=(h=f.next()).done);u=!0){var p=h.value;e.includes(p.name)&&t.component(p.name,p)}}catch(d){c=!0,l=d}finally{try{u||null==f.return||f.return()}finally{if(c)throw l}}}}};n.d(e,"CcvSimpleBarChart",(function(){return HO})),n.d(e,"CcvGroupedBarChart",(function(){return XO})),n.d(e,"CcvStackedBarChart",(function(){return QO})),n.d(e,"CcvLineChart",(function(){return iT})),n.d(e,"CcvScatterChart",(function(){return lT})),n.d(e,"CcvDonutChart",(function(){return yT})),n.d(e,"CcvPieChart",(function(){return wT}));e["default"]=TT},2314:function(t,e){const n={prefix:"bx",selectorTabbable:"\n a[href], area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true]\n "};t.exports=n},"25a6":function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},2866:function(t,e,n){var r=n("0b04"),i=n("c74b").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(r(t))}},"2c53":function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},"2d2d":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"2da1":function(t,e,n){"use strict";(function(t){var n=function(){if("undefined"!==typeof Map)return Map;function t(t,e){var n=-1;return t.some((function(t,r){return t[0]===e&&(n=r,!0)})),n}return function(){function e(){this.__entries__=[]}var n={size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},e.prototype.get=function(e){var n=t(this.__entries__,e),r=this.__entries__[n];return r&&r[1]},e.prototype.set=function(e,n){var r=t(this.__entries__,e);~r?this.__entries__[r][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,r=t(n,e);~r&&n.splice(r,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){var n=this;void 0===e&&(e=null);for(var r=0,i=n.__entries__;r<i.length;r+=1){var o=i[r];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,n),e}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof t&&t.Math===Math?t:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(t){return setTimeout((function(){return t(Date.now())}),1e3/60)}}(),a=2,s=function(t,e){var n=!1,r=!1,i=0;function s(){n&&(n=!1,t()),r&&c()}function u(){o(s)}function c(){var t=Date.now();if(n){if(t-i<a)return;r=!0}else n=!0,r=!1,setTimeout(u,e);i=t}return c},u=20,c=["top","right","bottom","left","width","height","size","weight"],l="undefined"!==typeof MutationObserver,h=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),u)};h.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},h.prototype.removeObserver=function(t){var e=this.observers_,n=e.indexOf(t);~n&&e.splice(n,1),!e.length&&this.connected_&&this.disconnect_()},h.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},h.prototype.updateObservers_=function(){var t=this.observers_.filter((function(t){return t.gatherActive(),t.hasActive()}));return t.forEach((function(t){return t.broadcastActive()})),t.length>0},h.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},h.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},h.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e="");var n=c.some((function(t){return!!~e.indexOf(t)}));n&&this.refresh()},h.getInstance=function(){return this.instance_||(this.instance_=new h),this.instance_},h.instance_=null;var f=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n+=1){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},p=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||i},d=T(0,0,0,0);function v(t){return parseFloat(t)||0}function y(t){var e=[],n=arguments.length-1;while(n-- >0)e[n]=arguments[n+1];return e.reduce((function(e,n){var r=t["border-"+n+"-width"];return e+v(r)}),0)}function g(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r+=1){var o=i[r],a=t["padding-"+o];n[o]=v(a)}return n}function _(t){var e=t.getBBox();return T(0,0,e.width,e.height)}function m(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return d;var r=p(t).getComputedStyle(t),i=g(r),o=i.left+i.right,a=i.top+i.bottom,s=v(r.width),u=v(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==e&&(s-=y(r,"left","right")+o),Math.round(u+a)!==n&&(u-=y(r,"top","bottom")+a)),!x(t)){var c=Math.round(s+o)-e,l=Math.round(u+a)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(l)&&(u-=l)}return T(i.left,i.top,s,u)}var b=function(){return"undefined"!==typeof SVGGraphicsElement?function(t){return t instanceof p(t).SVGGraphicsElement}:function(t){return t instanceof p(t).SVGElement&&"function"===typeof t.getBBox}}();function x(t){return t===p(t).document.documentElement}function w(t){return r?b(t)?_(t):m(t):d}function O(t){var e=t.x,n=t.y,r=t.width,i=t.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(o.prototype);return f(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function T(t,e,n,r){return{x:t,y:e,width:n,height:r}}var M=function(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=t};M.prototype.isActive=function(){var t=w(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},M.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};var E=function(t,e){var n=O(e);f(this,{target:t,contentRect:n})},S=function(t,e,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=r};S.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new M(t)),this.controller_.addObserver(this),this.controller_.refresh())}},S.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(t instanceof p(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},S.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},S.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach((function(e){e.isActive()&&t.activeObservations_.push(e)}))},S.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,e=this.activeObservations_.map((function(t){return new E(t.target,t.broadcastRect())}));this.callback_.call(t,e,t),this.clearActive()}},S.prototype.clearActive=function(){this.activeObservations_.splice(0)},S.prototype.hasActive=function(){return this.activeObservations_.length>0};var A="undefined"!==typeof WeakMap?new WeakMap:new n,k=function(t){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=h.getInstance(),n=new S(t,e,this);A.set(this,n)};["observe","unobserve","disconnect"].forEach((function(t){k.prototype[t]=function(){return(e=A.get(this))[t].apply(e,arguments);var e}}));var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:k}();e["a"]=P}).call(this,n("2c53"))},"2e73":function(t,e,n){for(var r=n("dde3"),i=n("8996"),o=n("e385"),a=n("0e8c"),s=n("bafe"),u=n("9dd3"),c=n("d951"),l=c("iterator"),h=c("toStringTag"),f=u.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},d=i(p),v=0;v<d.length;v++){var y,g=d[v],_=p[g],m=a[g],b=m&&m.prototype;if(b&&(b[l]||s(b,l,f),b[h]||s(b,h,g),u[g]=f,_))for(y in r)b[y]||o(b,y,r[y],!0)}},3460:function(t,e,n){var r=n("5c50"),i=n("0e8c"),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n("742f")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"36f8":function(t,e,n){var r=n("0e8c"),i=n("5c50"),o=n("742f"),a=n("b6ac"),s=n("6f0d").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3bd0":function(t,e,n){"use strict";var r=n("bec8"),i=n("ad8d"),o=n("0e85"),a={};n("bafe")(a,n("d951")("iterator"),(function(){return this})),t.exports=function(t,e,n){t.prototype=r(a,{next:i(1,n)}),o(t,e+" Iterator")}},"3d85":function(t,e,n){t.exports=!n("a124")((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},"402c":function(t,e,n){var r=n("d0e9"),i=n("ad8d"),o=n("0b04"),a=n("78d3"),s=n("25a6"),u=n("cd30"),c=Object.getOwnPropertyDescriptor;e.f=n("3d85")?c:function(t,e){if(t=o(t),e=a(e,!0),u)try{return c(t,e)}catch(n){}if(s(t,e))return i(!r.f.call(t,e),t[e])}},4823:function(t,e,n){"use strict";var r=n("0e8c"),i=n("25a6"),o=n("3d85"),a=n("ef37"),s=n("e385"),u=n("054c").KEY,c=n("a124"),l=n("3460"),h=n("0e85"),f=n("f455"),p=n("d951"),d=n("b6ac"),v=n("36f8"),y=n("ffaf"),g=n("4cf2"),_=n("8c7e"),m=n("194e"),b=n("79c1"),x=n("0b04"),w=n("78d3"),O=n("ad8d"),T=n("bec8"),M=n("2866"),E=n("402c"),S=n("8109"),A=n("6f0d"),k=n("8996"),P=E.f,C=A.f,L=M.f,j=r.Symbol,D=r.JSON,N=D&&D.stringify,R="prototype",F=p("_hidden"),I=p("toPrimitive"),V={}.propertyIsEnumerable,H=l("symbol-registry"),B=l("symbols"),z=l("op-symbols"),G=Object[R],U="function"==typeof j&&!!S.f,Y=r.QObject,X=!Y||!Y[R]||!Y[R].findChild,W=o&&c((function(){return 7!=T(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=P(G,e);r&&delete G[e],C(t,e,n),r&&t!==G&&C(G,e,r)}:C,q=function(t){var e=B[t]=T(j[R]);return e._k=t,e},$=U&&"symbol"==typeof j.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof j},Z=function(t,e,n){return t===G&&Z(z,e,n),_(t),e=w(e,!0),_(n),i(B,e)?(n.enumerable?(i(t,F)&&t[F][e]&&(t[F][e]=!1),n=T(n,{enumerable:O(0,!1)})):(i(t,F)||C(t,F,O(1,{})),t[F][e]=!0),W(t,e,n)):C(t,e,n)},J=function(t,e){_(t);var n,r=y(e=x(e)),i=0,o=r.length;while(o>i)Z(t,n=r[i++],e[n]);return t},Q=function(t,e){return void 0===e?T(t):J(T(t),e)},K=function(t){var e=V.call(this,t=w(t,!0));return!(this===G&&i(B,t)&&!i(z,t))&&(!(e||!i(this,t)||!i(B,t)||i(this,F)&&this[F][t])||e)},tt=function(t,e){if(t=x(t),e=w(e,!0),t!==G||!i(B,e)||i(z,e)){var n=P(t,e);return!n||!i(B,e)||i(t,F)&&t[F][e]||(n.enumerable=!0),n}},et=function(t){var e,n=L(x(t)),r=[],o=0;while(n.length>o)i(B,e=n[o++])||e==F||e==u||r.push(e);return r},nt=function(t){var e,n=t===G,r=L(n?z:x(t)),o=[],a=0;while(r.length>a)!i(B,e=r[a++])||n&&!i(G,e)||o.push(B[e]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(z,n),i(this,F)&&i(this[F],t)&&(this[F][t]=!1),W(this,t,O(1,n))};return o&&X&&W(G,t,{configurable:!0,set:e}),q(t)},s(j[R],"toString",(function(){return this._k})),E.f=tt,A.f=Z,n("c74b").f=M.f=et,n("d0e9").f=K,S.f=nt,o&&!n("742f")&&s(G,"propertyIsEnumerable",K,!0),d.f=function(t){return q(p(t))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;rt.length>it;)p(rt[it++]);for(var ot=k(p.store),at=0;ot.length>at;)v(ot[at++]);a(a.S+a.F*!U,"Symbol",{for:function(t){return i(H,t+="")?H[t]:H[t]=j(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in H)if(H[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!U,"Object",{create:Q,defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:nt});var st=c((function(){S.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return S.f(b(t))}}),D&&a(a.S+a.F*(!U||c((function(){var t=j();return"[null]"!=N([t])||"{}"!=N({a:t})||"{}"!=N(Object(t))}))),"JSON",{stringify:function(t){var e,n,r=[t],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=e=r[1],(m(e)||void 0!==t)&&!$(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!$(e))return e}),r[1]=e,N.apply(D,r)}}),j[R][I]||n("bafe")(j[R],I,j[R].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},"4cf0":function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i=n("5711"),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===o,u=s?r["a"].Buffer:void 0,c=u?u.isBuffer:void 0,l=c||i["a"];e["a"]=l}).call(this,n("0b74")(t))},"4cf2":function(t,e,n){var r=n("b735");t.exports=Array.isArray||function(t){return"Array"==r(t)}},"4f72":function(t,e,n){"use strict";var r=n("ef37"),i=n("af6b")(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("96ba")("includes")},"50cc":function(t,e,n){var r=n("0e8c").document;t.exports=r&&r.documentElement},5711:function(t,e,n){"use strict";function r(){return!1}e["a"]=r},"5c50":function(t,e){var n=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},"5e32":function(t,e,n){n("36f8")("asyncIterator")},"6ccd":function(t,e,n){var r=n("6f0d"),i=n("8c7e"),o=n("8996");t.exports=n("3d85")?Object.defineProperties:function(t,e){i(t);var n,a=o(e),s=a.length,u=0;while(s>u)r.f(t,n=a[u++],e[n]);return t}},"6f0d":function(t,e,n){var r=n("8c7e"),i=n("cd30"),o=n("78d3"),a=Object.defineProperty;e.f=n("3d85")?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return a(t,e,n)}catch(s){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},"742f":function(t,e){t.exports=!1},"78d3":function(t,e,n){var r=n("194e");t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},"79c1":function(t,e,n){var r=n("c8ae");t.exports=function(t){return Object(r(t))}},"7f0d":function(t,e,n){"use strict";var r=n("92ae"),i="object"==typeof self&&self&&self.Object===Object&&self,o=r["a"]||i||Function("return this")();e["a"]=o},8109:function(t,e){e.f=Object.getOwnPropertySymbols},8222:function(t,e,n){var r=n("d951")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[r]=!1,!"/./"[t](e)}catch(i){}}return!0}},8996:function(t,e,n){var r=n("dd61"),i=n("eaa3");t.exports=Object.keys||function(t){return r(t,i)}},"8c7e":function(t,e,n){var r=n("194e");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"904a":function(t,e,n){var r=n("25a6"),i=n("79c1"),o=n("f962")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"92ae":function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e["a"]=n}).call(this,n("2c53"))},"96ba":function(t,e,n){var r=n("d951")("unscopables"),i=Array.prototype;void 0==i[r]&&n("bafe")(i,r,{}),t.exports=function(t){i[r][t]=!0}},"9b86":function(t,e,n){var r=n("194e"),i=n("0e8c").document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},"9c84":function(t,e,n){t.exports=n("3460")("native-function-to-string",Function.toString)},"9dd3":function(t,e){t.exports={}},"9e61":function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},a124:function(t,e){t.exports=function(t){try{return!!t()}catch(e){return!0}}},ad8d:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},adb3:function(t,e,n){var r=n("9e61"),i=Math.max,o=Math.min;t.exports=function(t,e){return t=r(t),t<0?i(t+e,0):o(t,e)}},aec0:function(t,e,n){var r=n("b735");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},af6b:function(t,e,n){var r=n("0b04"),i=n("bb64"),o=n("adb3");t.exports=function(t){return function(e,n,a){var s,u=r(e),c=i(u.length),l=o(a,c);if(t&&n!=n){while(c>l)if(s=u[l++],s!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}}},b6ac:function(t,e,n){e.f=n("d951")},b735:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},bafe:function(t,e,n){var r=n("6f0d"),i=n("ad8d");t.exports=n("3d85")?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},bb64:function(t,e,n){var r=n("9e61"),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},bec8:function(t,e,n){var r=n("8c7e"),i=n("6ccd"),o=n("eaa3"),a=n("f962")("IE_PROTO"),s=function(){},u="prototype",c=function(){var t,e=n("9b86")("iframe"),r=o.length,i="<",a=">";e.style.display="none",n("50cc").appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(i+"script"+a+"document.F=Object"+i+"/script"+a),t.close(),c=t.F;while(r--)delete c[u][o[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[u]=r(t),n=new s,s[u]=null,n[a]=t):n=c(),void 0===e?n:i(n,e)}},c74b:function(t,e,n){var r=n("dd61"),i=n("eaa3").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},c880:function(t,e,n){var r=n("6f0d").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("3d85")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},c8ae:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},cd30:function(t,e,n){t.exports=!n("3d85")&&!n("a124")((function(){return 7!=Object.defineProperty(n("9b86")("div"),"a",{get:function(){return 7}}).a}))},d0e9:function(t,e){e.f={}.propertyIsEnumerable},d3d5:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},d6f0:function(t,e,n){"use strict";(function(t){var r=n("7f0d"),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof t&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?r["a"].Buffer:void 0,u=s?s.allocUnsafe:void 0;function c(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}e["a"]=c}).call(this,n("0b74")(t))},d951:function(t,e,n){var r=n("3460")("wks"),i=n("f455"),o=n("0e8c").Symbol,a="function"==typeof o,s=t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))};s.store=r},dafe:function(t,e,n){var r=n("eb58"),i=n("c8ae");t.exports=function(t,e,n){if(r(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},dcce:function(t,e,n){"use strict";var r=n("742f"),i=n("ef37"),o=n("e385"),a=n("bafe"),s=n("9dd3"),u=n("3bd0"),c=n("0e85"),l=n("904a"),h=n("d951")("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",v="values",y=function(){return this};t.exports=function(t,e,n,g,_,m,b){u(n,e,g);var x,w,O,T=function(t){if(!f&&t in A)return A[t];switch(t){case d:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",E=_==v,S=!1,A=t.prototype,k=A[h]||A[p]||_&&A[_],P=k||T(_),C=_?E?T("entries"):P:void 0,L="Array"==e&&A.entries||k;if(L&&(O=l(L.call(new t)),O!==Object.prototype&&O.next&&(c(O,M,!0),r||"function"==typeof O[h]||a(O,h,y))),E&&k&&k.name!==v&&(S=!0,P=function(){return k.call(this)}),r&&!b||!f&&!S&&A[h]||a(A,h,P),s[e]=P,s[M]=y,_)if(x={values:E?P:T(v),keys:m?P:T(d),entries:C},b)for(w in x)w in A||o(A,w,x[w]);else i(i.P+i.F*(f||S),e,x);return x}},dd61:function(t,e,n){var r=n("25a6"),i=n("0b04"),o=n("af6b")(!1),a=n("f962")("IE_PROTO");t.exports=function(t,e){var n,s=i(t),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(e.length>u)r(s,n=e[u++])&&(~o(c,n)||c.push(n));return c}},dde3:function(t,e,n){"use strict";var r=n("96ba"),i=n("2d2d"),o=n("9dd3"),a=n("0b04");t.exports=n("dcce")(Array,"Array",(function(t,e){this._t=a(t),this._i=0,this._k=e}),(function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},e385:function(t,e,n){var r=n("0e8c"),i=n("bafe"),o=n("25a6"),a=n("f455")("src"),s=n("9c84"),u="toString",c=(""+s).split(u);n("5c50").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var u="function"==typeof n;u&&(o(n,"name")||i(n,"name",e)),t[e]!==n&&(u&&(o(n,a)||i(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:i(t,e,n):(delete t[e],i(t,e,n)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},eaa3:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},eb58:function(t,e,n){var r=n("194e"),i=n("b735"),o=n("d951")("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},ef37:function(t,e,n){var r=n("0e8c"),i=n("5c50"),o=n("bafe"),a=n("e385"),s=n("124c"),u="prototype",c=function(t,e,n){var l,h,f,p,d=t&c.F,v=t&c.G,y=t&c.S,g=t&c.P,_=t&c.B,m=v?r:y?r[e]||(r[e]={}):(r[e]||{})[u],b=v?i:i[e]||(i[e]={}),x=b[u]||(b[u]={});for(l in v&&(n=e),n)h=!d&&m&&void 0!==m[l],f=(h?m:n)[l],p=_&&h?s(f,r):g&&"function"==typeof f?s(Function.call,f):f,m&&a(m,l,f,t&c.U),b[l]!=f&&o(b,l,p),g&&x[l]!=f&&(x[l]=f)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},f455:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},f962:function(t,e,n){var r=n("3460")("keys"),i=n("f455");t.exports=function(t){return r[t]||(r[t]=i(t))}},ffaf:function(t,e,n){var r=n("8996"),i=n("8109"),o=n("d0e9");t.exports=function(t){var e=r(t),n=i.f;if(n){var a,s=n(t),u=o.f,c=0;while(s.length>c)u.call(t,a=s[c++])&&e.push(a)}return e}}})}));
|
|
2
2
|
//# sourceMappingURL=charts-vue.umd.min.js.map
|